github.com/google/cadvisor@v0.49.1/docs/storage/influxdb.md (about) 1 # Exporting cAdvisor Stats to InfluxDB 2 3 cAdvisor supports exporting stats to [InfluxDB](http://influxdb.com). To use InfluxDB, you need to pass some additional flags to cAdvisor telling it where the InfluxDB instance is located: 4 5 Set the storage driver as InfluxDB. 6 7 ``` 8 -storage_driver=influxdb 9 ``` 10 11 Specify what InfluxDB instance to push data to: 12 13 ``` 14 # The *ip:port* of the database. Default is 'localhost:8086' 15 -storage_driver_host=ip:port 16 # database name. Uses db 'cadvisor' by default 17 -storage_driver_db 18 # database username. Default is 'root' 19 -storage_driver_user 20 # database password. Default is 'root' 21 -storage_driver_password 22 # Use secure connection with database. False by default 23 -storage_driver_secure 24 # Writes will be buffered for this duration, and committed to the non memory backends as a single transaction. Default is '60s' 25 -storage_driver_buffer_duration 26 # retention policy. Default is '' which corresponds to the default retention policy of the influxdb database 27 -storage_driver_influxdb_retention_policy 28 ``` 29 30 # Examples 31 32 [Brian Christner](https://www.brianchristner.io) wrote a detailed post on [setting up Docker monitoring](https://www.brianchristner.io/how-to-setup-docker-monitoring) with cAdvisor and Influxdb. A docker compose configuration for setting up cadvisor-influxdb-grafana can be found [here](https://github.com/dalekurt/docker-monitoring/blob/master/docker-compose.yml).