Move prometheus annotations from deployment to pod spec

This commit is contained in:
Max Brunsfeld 2022-06-10 14:32:36 -07:00
parent 2311534c3c
commit e2935100db

View file

@ -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