-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Telegraf prometheus doesn't detect pods added and deleted #5281
Comments
I saw that it was a problem of openshift roles so I created a service account with |
I modified the Prometheus plugin by taking into account the |
|
Relevant telegraf.conf:
Input plugin: Prometheus
Output plugin : OpenTSDB
System info:
Telegraf version : 1.9.1
Platform: Openshift 3.7
Steps to reproduce:
Expected behavior:
Metrics are retrieved successfully from all pods that contain Prometheus annotations, even if I added a pod or deleted a pod, telegraf picks up on that and start/stop retrieving metrics from the pod.
Actual behavior:
Metrics are retrieved successfully from all pods that are present the minute I deploy telegraf, but if I add a pod then telegraf doesn't detect it and if I delete a pod then telegraf starts showing errors because the pod's IP is not present anymore so it can't connect to it.
The text was updated successfully, but these errors were encountered: