Skip to content

feat(helm): add custom labels to ServiceMonitor#384

Draft
nikatza wants to merge 1 commit into
mainfrom
expose-prometheus-metrics
Draft

feat(helm): add custom labels to ServiceMonitor#384
nikatza wants to merge 1 commit into
mainfrom
expose-prometheus-metrics

Conversation

@nikatza
Copy link
Copy Markdown
Contributor

@nikatza nikatza commented May 29, 2026

Add prometheus.labels field in values.yaml to allow custom labels on the ServiceMonitor resource. This enables integration with monitoring systems that use labels for scrape discovery.

The Makefile charts target preserves this change when kubebuilder regenerates templates.

Example:

prometheus:
  enable: true
  labels:
    plugin: kube-monitoring

Add prometheus.labels field in values.yaml to allow custom labels
on the ServiceMonitor resource. This enables integration with
monitoring systems that use labels for scrape discovery.

The Makefile charts target preserves this change when kubebuilder
regenerates templates.

Example:
```yaml
prometheus:
  enable: true
  labels:
    plugin: kube-monitoring
```

Signed-off-by: Pujol <enric.pujol@sap.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant