add info on how to manage metrics

This commit is contained in:
2023-03-01 15:05:08 +01:00
parent fa155ffdf0
commit afffafde6e
2 changed files with 54 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

View File

@@ -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?