From e2935100db17dc284921a382911495adae44c7a3 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Fri, 10 Jun 2022 14:32:36 -0700 Subject: [PATCH] Move prometheus annotations from deployment to pod spec --- crates/collab/k8s/manifest.template.yml | 26 ++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/crates/collab/k8s/manifest.template.yml b/crates/collab/k8s/manifest.template.yml index 36fa32a441..6f3eb26df4 100644 --- a/crates/collab/k8s/manifest.template.yml +++ b/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