From 3fc0775b1b23f0d41da0c7da9fdf735a72686418 Mon Sep 17 00:00:00 2001 From: keisku Date: Wed, 25 Dec 2024 09:09:54 +0000 Subject: [PATCH] add datadog.cluster_agent.leader_election.is_leader --- .../datadog_checks/datadog_cluster_agent/check.py | 1 + datadog_cluster_agent/tests/test_datadog_cluster_agent.py | 1 + 2 files changed, 2 insertions(+) diff --git a/datadog_cluster_agent/datadog_checks/datadog_cluster_agent/check.py b/datadog_cluster_agent/datadog_checks/datadog_cluster_agent/check.py index e13153eb6a611..ef33a99bb94b5 100644 --- a/datadog_cluster_agent/datadog_checks/datadog_cluster_agent/check.py +++ b/datadog_cluster_agent/datadog_checks/datadog_cluster_agent/check.py @@ -64,6 +64,7 @@ 'go_goroutines': 'go.goroutines', 'go_memstats_alloc_bytes': 'go.memstats.alloc_bytes', 'go_threads': 'go.threads', + 'leader_election_is_leader': 'leader_election.is_leader', 'kubernetes_apiserver_emitted_events': 'kubernetes_apiserver.emitted_events', 'kubernetes_apiserver_kube_events': 'kubernetes_apiserver.kube_events', 'language_detection_dca_handler_processed_requests': 'language_detection_dca_handler.processed_requests', diff --git a/datadog_cluster_agent/tests/test_datadog_cluster_agent.py b/datadog_cluster_agent/tests/test_datadog_cluster_agent.py index d8c915e4ab465..5ee559996586c 100644 --- a/datadog_cluster_agent/tests/test_datadog_cluster_agent.py +++ b/datadog_cluster_agent/tests/test_datadog_cluster_agent.py @@ -66,6 +66,7 @@ 'go.goroutines', 'go.memstats.alloc_bytes', 'go.threads', + 'leader_election.is_leader', 'kubernetes_apiserver.emitted_events', 'kubernetes_apiserver.kube_events', 'language_detection_dca_handler.processed_requests',