Monitors for Prometheus exporter in sidecar mode #2306
Labels
area:collector
Issues for deploying collector
enhancement
New feature or request
good first issue
Good for newcomers
Component(s)
operator
Is your feature request related to a problem? Please describe.
Relates to #1983
Generating a ServiceMonitor for a collector using
observability.metrics.enableMetrics: true
works fine using thedeployment
mode, but when generating for thesidecar
mode, the ServiceMonitor will not scrape metrics from the sidecar.Describe the solution you'd like
I don't believe this can be solved using the current implementation with ServiceMonitors, as the operator won't have visibility of the services generated for the injected applications.
Could we use a
PodMonitor
instead in the sidecar case? Perhaps matching on thesidecar.opentelemetry.io/injected
label. Also won't want to restrict to the namespace the collector is defined in, as it could feasibly be used from any.Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: