Derived from kamon-io/docker-grafana-influxdb, this image contains a sensible default configuration of InfluxDB and Grafana but also:
- Is based on phusion/baseimage instead of stock Ubuntu
- Bundles cloudwatch-to-graphite, run via cron, for fetching metrics from AWS CloudWatch
- Enables InfluxDB's Graphite input plugin
See the introductory blog post All-in-one Docker with Grafana, InfluxDB, and cloudwatch-to-graphite for AWS/Beanstalk monitoring for more details.
For InfluxDB and Grafana, see docker-grafana-influxdb.
By default there are 2 databases, grafana
for dashboards and data
for metrics.
Use the user and password data
to access the metrics via the InfluxDB UI.
Regarding cloudwatch-to-graphite and its leadbutt
command-line:
- Metrics to fetch are in
cloudwatch/leadbutt-cloudwatch
- AWS Credentials are supposed to be provided via env variables, for example:
docker run -e AWS_ACCESS_KEY_ID=xxxx -e AWS_SECRET_ACCESS_KEY=yyyy ...
(see./start
) - in the case of AWS Elastic Beanstalk you can set them in you environment's configuration UI
See utils/leadbutt2influxdb.clj
for a utility that can convert leadbutt output
to InfluxDB input. You might want to copy and modify the leadbutt configuration
file to fetch the last 2 weeks of hourly data (Period: 60; Count: 336
), use
the utility to convert it and post to InfluxDB.