Fix Collection Service Helm charts package
[demo.git] / vnfs / DAaaS / collection / charts / prometheus / templates / prometheus.yaml
index 86e1478..9c3d84c 100644 (file)
@@ -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: