Containers in restarting mode are still reported but the timestamp falls outside of retention policy... #3383
Closed
Description
Bug report
I just started using the TICK stack in favor of our old Prometheus stack and found this. When you have a container that is stuck in restarting mode. Telegraf docker plugin generates points that fall outside my already pretty wide retention policy (180d) which probably means it is sending a timestamp that is extremely low or maybe even a 0 value.
Relevant telegraf.conf:
Nothing special, just:
- Ensure docker plugin is scanning for metrics
- Ensure you are sending your data to an influxdb
System info:
Ubuntu 16.04 LTS: 4.4.0-66-generic
Docker version 1.12.6, build 78d1802
Telegraf (running from docker) using "telegraf:alpine"
Steps to reproduce:
- Create a docker environment where
1.1. a container is stuck in restarting mode (a custom container that fails to start because there is an error in the docker-entrypoint.sh usually does the trick)
1.2. an influxdb is running
1.3. a telegraf with docker plugin is active (no special config) - Let telegraf run, you should eventually get "Points beyond retention policy: Response Error: Status Code [400], expected [204]"
- Stop the container that is in restarting mode, you will stop getting warnings about points beyond retention policy
Expected behavior:
You should not be submitting points that result in an invalid timestamp
Actual behavior:
You are submitting points that result in an invalid timestamp which generates error messages