redpanda-data / kminion

KMinion is a feature-rich Prometheus exporter for Apache Kafka written in Go. It is lightweight and highly configurable so that it will meet your requirements.
MIT License
601 stars 123 forks source link

Add to namespaceSelector to ServiceMonitor.spec #248

Closed marcosschroh closed 5 months ago

marcosschroh commented 5 months ago

Issue

Sometimes the namespaceSelector is needed in order to scrape certain services per namespace. The current ServiceMonitor does not have this options.

Feature request

Add the namespaceSelector to ServiceMonitor.spec. I think the default value should be {{.Release.namespace}} or any.

Alternatives

When the namespaceSelector is needed I create the object myself as workaround to this issue

marcosschroh commented 5 months ago

Duplicated with https://github.com/redpanda-data/helm-charts/issues/916