helm-charts/charts/rally-exporter/templates/podmonitor.yaml

25 lines
672 B
YAML
Executable File

---
apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
name: {{ include "rally-exporter.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
{{ include "rally-exporter.labels" . | indent 4 }}
spec:
podMetricsEndpoints:
- interval: {{ .Values.podMonitor.interval }}
scrapeTimeout: {{ .Values.podMonitor.scrapeTimeout }}
port: metrics
relabelings:
- action: replace
regex: (.*)
replacement: default
targetLabel: instance
- action: labeldrop
regex: '^(container|endpoint|namespace|pod)$'
namespaceSelector:
any: true
selector:
matchLabels:
{{ include "rally-exporter.labels" . | indent 6 }}