Docker compose setup for a InfluxDB-Grafana-Chronograf-Telegraf stack that actually works.
The telegraf service will log to the influxdb every 10 seconds. The attached telegraf configuration is from: https://github.com/nicolargo/docker-influxdb-grafana. All data is by default written to a database in influxdb called telegraf
.
git clone [email protected]:storesund/docker-influxdb-grafana-chronograf-telegraf.git
cd docker-influxdb-grafana-chronograf-telegraf
docker-compose up -d
docker ps
- Go to http://localhost:8888 to see the welcome guide for chronograf.
- For the influxdb connection, replace
localhost
in the URL withinfluxdb
(the docker bridge network). No need for username/password. The database default should betelegraf
since it is the only one with data. - In the next step, choose the
system
dashboard, as suggested by chronograf. - Find the
system
dashboard in the main system, and see all the telemetry from telegraf right away.
- Go to http://localhost:3000 to see the welcome guide for grafana.
- Log in using username/password "admin"/"admin". Choose a new password on the next screen.
- Click "Add Datasource" and "InfluxDB".
- Enter
http://influxdb:8086
for HTTP URL. - Enter
telegraf
for "Database". Click "Save and Test". - Go to "Explore" and run some test-queries against the
autogen
dataseries.
docker-compose stop
docker-compose rm