Today the Prometheus Collector integration's condition is hardcoded to a bool for leader election:
|
condition: ${kubernetes_leaderelection.leader} == true |
The issue with this is it makes it so that the Prometheus collector integration can't be used for auto-discovery. Similar to other integrations
Example, Istio:
|
condition: {{ condition }} |
Given that Prometheus is one of the more common methods for exposing metrics within things like Kubernetes, it would be a great value add to be able to define conditions
Today the Prometheus Collector integration's
conditionis hardcoded to a bool for leader election:integrations/packages/prometheus/data_stream/collector/agent/stream/stream.yml.hbs
Line 30 in 0c96463
The issue with this is it makes it so that the Prometheus collector integration can't be used for auto-discovery. Similar to other integrations
Example, Istio:
integrations/packages/istio/data_stream/access_logs/agent/stream/stream.yml.hbs
Line 5 in 0c96463
Given that Prometheus is one of the more common methods for exposing metrics within things like Kubernetes, it would be a great value add to be able to define conditions