17 lines
380 B
YAML
17 lines
380 B
YAML
---
|
|
service-monitor:
|
|
templates:
|
|
- |
|
|
{{ range .Values.service-monitor.resources }}
|
|
apiVersion: monitoring.coreos.com/v1
|
|
kind: ServiceMonitor
|
|
metadata:
|
|
name: {{ .name }}
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
exporter: {{ .label.exporter }}
|
|
endpoints:
|
|
- port: {{ .endpoints.port }}
|
|
{{ end }}
|