summaryrefslogtreecommitdiffstats
path: root/kud/tests/vnfs/comp-app/collection/app2/helm/prometheus-operator/templates/prometheus
diff options
context:
space:
mode:
Diffstat (limited to 'kud/tests/vnfs/comp-app/collection/app2/helm/prometheus-operator/templates/prometheus')
-rw-r--r--kud/tests/vnfs/comp-app/collection/app2/helm/prometheus-operator/templates/prometheus/servicemonitor-collectd.yaml20
-rwxr-xr-xkud/tests/vnfs/comp-app/collection/app2/helm/prometheus-operator/templates/prometheus/servicemonitors.yaml34
2 files changed, 20 insertions, 34 deletions
diff --git a/kud/tests/vnfs/comp-app/collection/app2/helm/prometheus-operator/templates/prometheus/servicemonitor-collectd.yaml b/kud/tests/vnfs/comp-app/collection/app2/helm/prometheus-operator/templates/prometheus/servicemonitor-collectd.yaml
new file mode 100644
index 00000000..6bd961c0
--- /dev/null
+++ b/kud/tests/vnfs/comp-app/collection/app2/helm/prometheus-operator/templates/prometheus/servicemonitor-collectd.yaml
@@ -0,0 +1,20 @@
+{{- if and .Values.prometheus.enabled .Values.prometheus.additionalServiceMonitors }}
+apiVersion: monitoring.coreos.com/v1
+kind: ServiceMonitor
+metadata:
+ name: service-monitor-collectd
+ namespace: {{ $.Release.Namespace | quote }}
+ labels:
+ app: {{ template "prometheus-operator.name" $ }}-prometheus
+{{ include "prometheus-operator.labels" $ | indent 8 }}
+ collector: collectd
+spec:
+ endpoints:
+ - interval : 10s
+ path: /metrics
+ port: collectd-prometheus
+ jobLabel: collectd
+ selector:
+ matchLabels:
+ app: collectd
+{{- end }}
diff --git a/kud/tests/vnfs/comp-app/collection/app2/helm/prometheus-operator/templates/prometheus/servicemonitors.yaml b/kud/tests/vnfs/comp-app/collection/app2/helm/prometheus-operator/templates/prometheus/servicemonitors.yaml
deleted file mode 100755
index 4da752ff..00000000
--- a/kud/tests/vnfs/comp-app/collection/app2/helm/prometheus-operator/templates/prometheus/servicemonitors.yaml
+++ /dev/null
@@ -1,34 +0,0 @@
-{{- if and .Values.prometheus.enabled .Values.prometheus.additionalServiceMonitors }}
-apiVersion: v1
-kind: List
-items:
-{{- range .Values.prometheus.additionalServiceMonitors }}
- - apiVersion: monitoring.coreos.com/v1
- kind: ServiceMonitor
- metadata:
- name: {{ .name }}
- namespace: {{ $.Release.Namespace | quote }}
- labels:
- app: {{ template "prometheus-operator.name" $ }}-prometheus
-{{ include "prometheus-operator.labels" $ | indent 8 }}
- {{- if .additionalLabels }}
-{{ toYaml .additionalLabels | indent 8 }}
- {{- end }}
- spec:
- endpoints:
-{{ toYaml .endpoints | indent 8 }}
- {{- if .jobLabel }}
- jobLabel: {{ .jobLabel }}
- {{- end }}
- {{- if .namespaceSelector }}
- namespaceSelector:
-{{ toYaml .namespaceSelector | indent 8 }}
- {{- end }}
- selector:
-{{ toYaml .selector | indent 8 }}
- {{- if .targetLabels }}
- targetLabels:
-{{ toYaml .targetLabels | indent 8 }}
- {{- end }}
-{{- end }}
-{{- end }}