This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
communitycloud:services:monitoring:grafana-influxdb [2017/04/28 15:14] tkilla created |
communitycloud:services:monitoring:grafana-influxdb [2017/04/28 16:10] (current) tkilla |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Grafana-InfluxDB ====== | ====== Grafana-InfluxDB ====== | ||
- | .. is a very good combination to montior | + | .. is a very good combination to monitor |
===== Grafana Setup ===== | ===== Grafana Setup ===== | ||
Line 34: | Line 34: | ||
+ | http:// | ||
+ | ===== InfluxDB Setup ===== | ||
+ | |||
+ | **Installation** | ||
+ | |||
+ | https:// | ||
+ | |||
+ | **Authentication** | ||
+ | |||
+ | Setup users in influx -cli: | ||
+ | |||
+ | Admin: | ||
+ | CREATE USER admin WITH PASSWORD ' | ||
+ | |||
+ | Normal User for logging: | ||
+ | CREATE USER logger WITH PASSWORD ' | ||
+ | GRANT ALL ON " | ||
+ | GRANT ALL ON " | ||
+ | GRANT ALL ON " | ||
+ | |||
+ | |||
+ | At last enable auth in / | ||
+ | |||
+ | auth-enabled = true | ||
+ | |||
+ | Restart influxdb and login to the cli via: | ||
+ | |||
+ | influx -username ' | ||
+ | |||
+ | |||
+ | **Setup Basic Auth in Grafana Datasources** | ||
+ | |||
+ | https:// | ||
+ | |||
+ | **httpS** | ||
+ | |||
+ | With a self-signed Cert you get crypto, but no verification of the host. Anyway: | ||
+ | |||
+ | openssl req -x509 -nodes -newkey rsa:2048 -keyout / | ||
+ | | ||
+ | / | ||
+ | |||
+ | https-enabled = true | ||
+ | https-certificate = "/ | ||
+ | https-private-key = "/ | ||
+ | |||
+ | Change the Datasource URLs in Grafana to use httpS and check "With CA Cert" | ||
+ | |||
+ | https:// | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ===== Telegraf Setup ===== | ||
+ | |||
+ | Telegraf is a superb logging system with a loooot of plugins. It can write directly to influxdb via http(s) | ||
+ | |||
+ | **Installation** | ||
+ | |||
+ | With the InfluxDB repos you can install it directly via deb packages: | ||
+ | |||
+ | https:// | ||
+ | |||
+ | |||
+ | **Configuration** | ||
+ | |||
+ | Setup InfluxDB Connection in / | ||
+ | |||
+ | [[outputs.influxdb]] | ||
+ | urls = [" | ||
+ | | ||
+ | |||
+ | | ||
+ | | ||
+ | |||
+ | **httpS** | ||
+ | |||
+ | Change the URLs to httpS://.. | ||
+ | |||
+ | For self-signed certs add: | ||
+ | |||
+ | insecure_skip_verify = true | ||
+ | |||
+ | https:// | ||