opentelemetry-helm-charts icon indicating copy to clipboard operation
opentelemetry-helm-charts copied to clipboard

[collector] PrometheusRule is not created when using PodMonitor

Open lindeskar opened this issue 4 months ago • 0 comments

The condition here:

https://github.com/open-telemetry/opentelemetry-helm-charts/blob/3a6fff3f065dafcdcf7041885c5d0d1bf61a1167/charts/opentelemetry-collector/templates/prometheusrule.yaml#L1

means the PrometheusRule resource is not created when using PodMonitor instead of ServiceMonitor (makes sense for mode: daemonset).

Can change the condition to check for both values?

lindeskar avatar Oct 11 '24 12:10 lindeskar