Move prometheus annotations from deployment to pod spec

Max Brunsfeld created

Change summary

crates/collab/k8s/manifest.template.yml | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)

Detailed changes

crates/collab/k8s/manifest.template.yml 🔗

@@ -27,19 +27,6 @@ kind: Deployment
 metadata:
   namespace: ${ZED_KUBE_NAMESPACE}
   name: collab
-  annotations:
-    ad.datadoghq.com/collab.check_names: |
-      ["openmetrics"]
-    ad.datadoghq.com/collab.init_configs: |
-      [{}]
-    ad.datadoghq.com/collab.instances: |
-      [
-        {
-          "openmetrics_endpoint": "http://%%host%%:%%port%%/metrics",
-          "namespace": "collab_${ZED_KUBE_NAMESPACE}",
-          "metrics": [".*"]
-        }
-      ]
 
 spec:
   replicas: 1
@@ -50,6 +37,19 @@ spec:
     metadata:
       labels:
         app: collab
+      annotations:
+        ad.datadoghq.com/collab.check_names: |
+          ["openmetrics"]
+        ad.datadoghq.com/collab.init_configs: |
+          [{}]
+        ad.datadoghq.com/collab.instances: |
+          [
+              {
+              "openmetrics_endpoint": "http://%%host%%:%%port%%/metrics",
+              "namespace": "collab_${ZED_KUBE_NAMESPACE}",
+              "metrics": [".*"]
+              }
+          ]
     spec:
       containers:
         - name: collab