Files
gitea-pages/engineering-guide/influx.md

55 lines
1.0 KiB
Markdown

# Metrics Server - Influx DB
This is puppet managed:
https://git.psi.ch/linux-infra/hiera/data-lx/blob/master/default/lx-influx-01.psi.ch.yaml
Runs the influxdb backend for the metrics.psi.ch service, as part of the telegraph, influxdb and grafana stack.
Data is stored at `/var/lib/influxdb` "locally" on the virtual machine.
The influx configuration can be found `/etc/influxdb/influxdb.conf`
# Administration Influx Database
Connect to the influx server
```bash
ssh influx.psi.ch
```
Connect to the influx database:
```bash
influx
```
Now you should have the prompt of the influx cli client
Show all databases
```bash
show databases
```
Switch to a database:
```bash
use "database_name"
```
Show all measurements
```bash
show measurements
```
Show all series (of all measurements)
```bash
show series
```
Show all series for a particular host:
```bash
show series where "host" = 'lx-puppet-01.psi.ch'
```
Delete all series for a particular host:
```
DROP SERIES FROM /.*/ WHERE "host" = 'lx-puppet-01.psi.ch'
```