You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
619 B
25 lines
619 B
--- |
|
apiVersion: monitoring.coreos.com/v1 |
|
kind: ServiceMonitor |
|
metadata: |
|
namespace: {{ .Release.Namespace }} |
|
name: {{ include "dell-exporter.fullname" . }} |
|
labels: |
|
{{ include "dell-exporter.labels" $ | indent 4 }} |
|
spec: |
|
endpoints: |
|
- port: metrics |
|
scrapeTimeout: 30s |
|
relabelings: |
|
- action: replace |
|
regex: (.*) |
|
replacment: $1 |
|
sourceLabels: |
|
- __meta_kubernetes_pod_node_name |
|
targetLabel: instance |
|
- action: labeldrop |
|
regex: '^(endpoint|namespace|pod|service)$' |
|
jobLabel: jobLabel |
|
selector: |
|
matchLabels: |
|
{{ include "dell-exporter.labels" $ | indent 6 }}
|
|
|