diff options
Diffstat (limited to 'vnfs/DAaaS/collection/charts/prometheus/templates')
-rw-r--r-- | vnfs/DAaaS/collection/charts/prometheus/templates/prometheus.yaml | 4 | ||||
-rw-r--r-- | vnfs/DAaaS/collection/charts/prometheus/templates/servicemonitor.yaml | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/vnfs/DAaaS/collection/charts/prometheus/templates/prometheus.yaml b/vnfs/DAaaS/collection/charts/prometheus/templates/prometheus.yaml index 86e14789..9c3d84c2 100644 --- a/vnfs/DAaaS/collection/charts/prometheus/templates/prometheus.yaml +++ b/vnfs/DAaaS/collection/charts/prometheus/templates/prometheus.yaml @@ -4,10 +4,12 @@ metadata: name: {{ template "prometheus.fullname" . }}-prometheus labels: app: {{ template "prometheus.name" . }}-prometheus + "helm.sh/hook": post-install + "helm.sh/hook-weight": "2" spec: serviceMonitorSelector: matchLabels: - app: collectd + app: {{ template "prometheus.name" . }}-prometheus release: {{ .Release.Name }} serviceMonitorNamespaceSelector: matchNames: diff --git a/vnfs/DAaaS/collection/charts/prometheus/templates/servicemonitor.yaml b/vnfs/DAaaS/collection/charts/prometheus/templates/servicemonitor.yaml index 47a911c6..f360d0df 100644 --- a/vnfs/DAaaS/collection/charts/prometheus/templates/servicemonitor.yaml +++ b/vnfs/DAaaS/collection/charts/prometheus/templates/servicemonitor.yaml @@ -7,6 +7,8 @@ items: kind: ServiceMonitor metadata: name: {{ .name }} + "helm.sh/hook": post-install + "helm.sh/hook-weight": "1" labels: app: {{ template "prometheus.name" $ }}-prometheus {{ include "prometheus.labels" $ | indent 8 }} |