-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Metric relabeling capability in the helm chart #1971
Copy link
Copy link
Closed
Description
Describe the solution you'd like
Ability to set further attributes of the servicemonitor resource
What is the added value?
While running in a multi-tenant setup, we can have multiple alertmanagerconfig resources (typically one per namespace) of the kube-prometheus-stack which has an implicit matcher on the namespace label. Given the namespace label in this case is always the namespace of the service monitor resource and the value of the namespace of external secret resource is under the exported_namespace label.
Give us examples of the outcome
Desired endpoints block in servicemonitor spec:
endpoints:
- interval: 30s
port: metrics
scrapeTimeout: 25s
honorLabels: true
metricRelabelings:
- action: replace
regex: (.*)
replacement: $1
sourceLabels:
- exported_namespace
targetLabel: namespaceObservations (Constraints, Context, etc):
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels

