diff --git a/infrastructure-guide/add_new_metric_source.png b/infrastructure-guide/add_new_metric_source.png new file mode 100644 index 00000000..6a4c92ae Binary files /dev/null and b/infrastructure-guide/add_new_metric_source.png differ diff --git a/infrastructure-guide/influx00.md b/infrastructure-guide/influx00.md index 6a62160a..a372e055 100644 --- a/infrastructure-guide/influx00.md +++ b/infrastructure-guide/influx00.md @@ -36,6 +36,60 @@ Data is stored at `/var/lib/influxdb` "locally" on the virtual machine. The influx configuration can be found `/etc/influxdb/influxdb.conf` +# Administration + +Connect to the influx server +``` +ssh influx.psi.ch +``` + +Connect to the influx database: +``` +influx +``` + +Now you should have the prompt of the influx cli client + + +Show all databases +``` +show databases +``` + +Switch to a database: +``` +use "database_name" +``` + +Show all measurements +``` +show measurements +``` + +Show all series (of all measurements) +``` +show series +``` + +Show all series for a particular host: +``` +show series where "host" = 'puppet00.psi.ch' +``` + +Delete all series for a particular host: +``` +DROP SERIES FROM /.*/ WHERE "host" = 'puppet00.psi.ch' +``` + + +If there is a new influx database (telegraf_XXXX) this source has to be explicitly added to the metrics server + +For this, connect to: +* https://metrics.psi.ch +* Login +* ![](add_new_metric_source.png) + + # Questions - Is there a more detailed documenation/script/playbook that descibes the setup of this server?