From 6f53e0d8a2a2b54bc6c8734daf8ee78841416175 Mon Sep 17 00:00:00 2001 From: janli Date: Tue, 19 Nov 2024 12:54:20 -0800 Subject: [PATCH] fix: json template format --- templates/apiary-hms-readonly.json | 6 +++--- templates/apiary-hms-readwrite.json | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/templates/apiary-hms-readonly.json b/templates/apiary-hms-readonly.json index f60dd36..9e5b321 100644 --- a/templates/apiary-hms-readonly.json +++ b/templates/apiary-hms-readonly.json @@ -75,9 +75,9 @@ } }, "dockerLabels": { - "com.datadoghq.ad.instances": [{ \"prometheus_url\": \"http://%%host%%:8080/actuator/prometheus\", \"namespace\": \"${hms_metrics_namespace}\", \"metrics\": [\"${hms_metrics}\"],\"type_overrides\":{\"${hms_metrics_type_overrides}\": \"gauge\"} }], - "com.datadoghq.ad.check_names": [\"prometheus\"], - "com.datadoghq.ad.init_configs": "[{}]" + "com.datadoghq.ad.instances": [{ "prometheus_url": "http://%%host%%:8080/actuator/prometheus", "namespace": "${hms_metrics_namespace}", "metrics": ["${hms_metrics}"],"type_overrides":{"${hms_metrics_type_overrides}": "gauge"} }], + "com.datadoghq.ad.check_names": ["prometheus"], + "com.datadoghq.ad.init_configs": [{}] }, "portMappings": [ { diff --git a/templates/apiary-hms-readwrite.json b/templates/apiary-hms-readwrite.json index dfb0b2b..8198fad 100644 --- a/templates/apiary-hms-readwrite.json +++ b/templates/apiary-hms-readwrite.json @@ -75,9 +75,9 @@ } }, "dockerLabels": { - "com.datadoghq.ad.instances": [{ \"prometheus_url\": \"http://%%host%%:8080/actuator/prometheus\", \"namespace\": \"${hms_metrics_namespace}\", \"metrics\": [\"${hms_metrics}\"],\"type_overrides\":{\"${hms_metrics_type_overrides}\": \"gauge\"} }], - "com.datadoghq.ad.check_names": [\"prometheus\"], - "com.datadoghq.ad.init_configs": "[{}]" + "com.datadoghq.ad.instances": [{ "prometheus_url": "http://%%host%%:8080/actuator/prometheus", "namespace": "${hms_metrics_namespace}", "metrics": ["${hms_metrics}"],"type_overrides":{"${hms_metrics_type_overrides}": "gauge"} }], + "com.datadoghq.ad.check_names": ["prometheus"], + "com.datadoghq.ad.init_configs": [{}] }, "portMappings": [ {