ServiceMonitor should allow specifying custom labels so that prometheus-operator can discover them #742
Labels
feature request
A request for a specific feature to be added to Kuberhealthy
good first issue
Good for newcomers
Describe the feature you would like and why you want it
Currently ServiceMonitor template has fixed set of labels and doesn't allow specifying additional labels. If we allow specifying that, then existing prometheus-operator that are configured to discover ServiceMonitors based on some label will work fine. As of now, we have to disable ServiceMonitor template and deploy custom one with the matching label(which our prometheus-operator uses).
Additional context
Add any other context or screenshots about the feature request here.
additional_labels should be a map of additional labels, which can be inserted in template ar at runtime.
Something on these lines,
The text was updated successfully, but these errors were encountered: