-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Description
I'm running cadvisor-canary:latest build, sending data to InfluxDB, and trying to set -storage_driver_buffer_duration to a lower value than the default 1 minute, so I'd be able to chart current data from influx rather than having a delay. I thought that was working when I ran a release build in Nov-Dec with influx v0.8, setting -storage_driver_buffer_duration=2s.
The reason I'm now running canary is to have influx v0.9 support, since that's what I need. When I tried setting the duration to 2s, the actual delay I saw was 2 minutes. That seems to match the setting to 60*time.Second in this code unless I'm misreading it. Trying a fractional value -storage_driver_buffer_duration=0.1 resulted in not seeing data in influxdb for several minutes (then i stopped waiting).
I'm now running with -storage_driver_buffer_duration=1m but would like a shorter delay.
This is the exact command line in my docker-compose file:
image: google/cadvisor-canary:latest
command: -storage_driver=influxdb -storage_driver_db=cadvisor -storage_driver_host=influxdb:8086 -logtostderr=true -v=9 -stderrthreshold=9 -storage_driver_buffer_duration=1m