Helm charts repository for various utiltiies
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.
 

23 lines
556 B

---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
namespace: {{ .Release.Namespace }}
name: {{ include "haproxy-exporter.fullname" . }}
labels:
{{ include "haproxy-exporter.labels" $ | indent 4 }}
spec:
endpoints:
- interval: 30s
port: metrics
relabelings:
- action: replace
regex: (.*)
replacement: ${1}:9101
sourceLabels:
- __meta_kubernetes_pod_node_name
targetLabel: instance
jobLabel: jobLabel
selector:
matchLabels:
{{ include "haproxy-exporter.labels" $ | indent 6 }}