okozachenko 63915ca596 Add rally-exporter chart
Change-Id: I5a7c70e5d9602dedbf550217b7f02ace294d84f2
2020-09-10 15:40:03 +03:00

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 }}