add info on how to manage metrics
This commit is contained in:
BIN
infrastructure-guide/add_new_metric_source.png
Normal file
BIN
infrastructure-guide/add_new_metric_source.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.9 MiB |
@@ -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
|
||||
* 
|
||||
|
||||
|
||||
|
||||
# Questions
|
||||
- Is there a more detailed documenation/script/playbook that descibes the setup of this server?
|
||||
|
||||
Reference in New Issue
Block a user