diff --git a/datadog_cluster_agent/changelog.d/19308.added b/datadog_cluster_agent/changelog.d/19308.added new file mode 100644 index 0000000000000..193751a80b106 --- /dev/null +++ b/datadog_cluster_agent/changelog.d/19308.added @@ -0,0 +1 @@ +Add `datadog.cluster_agent.leader_election.is_leader`. 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..4cd4750950002 100644 --- a/datadog_cluster_agent/datadog_checks/datadog_cluster_agent/check.py +++ b/datadog_cluster_agent/datadog_checks/datadog_cluster_agent/check.py @@ -68,6 +68,7 @@ 'kubernetes_apiserver_kube_events': 'kubernetes_apiserver.kube_events', 'language_detection_dca_handler_processed_requests': 'language_detection_dca_handler.processed_requests', 'language_detection_patcher_patches': 'language_detection_patcher.patches', + 'leader_election_is_leader': 'leader_election.is_leader', 'rate_limit_queries_limit': 'datadog.rate_limit_queries.limit', 'rate_limit_queries_period': 'datadog.rate_limit_queries.period', 'rate_limit_queries_remaining': 'datadog.rate_limit_queries.remaining', diff --git a/datadog_cluster_agent/metadata.csv b/datadog_cluster_agent/metadata.csv index 00b14ceb90bf7..6ae7bbd2500da 100644 --- a/datadog_cluster_agent/metadata.csv +++ b/datadog_cluster_agent/metadata.csv @@ -57,6 +57,7 @@ datadog.cluster_agent.kubernetes_apiserver.emitted_events,count,,,,"Datadog even datadog.cluster_agent.kubernetes_apiserver.kube_events,count,,,,"Kubernetes events processed by the kubernetes_apiserver check",0,datadog_cluster_agent,apiserver events, datadog.cluster_agent.language_detection_dca_handler.processed_requests,count,,,,"The number of process language detection requests processed by the handler",0,datadog_cluster_agent,language detection processed requests, datadog.cluster_agent.language_detection_patcher.patches,count,,,,"The number of patch requests sent by the patcher to the kube api server",0,datadog_cluster_agent,language detection patches, +datadog.cluster_agent.leader_election.is_leader,gauge,,,,"The label is_leader is true if the reporting pod is leader, equals false otherwise",0,datadog_cluster_agent,leader election is leader, datadog.cluster_agent.secret_backend.elapsed,gauge,,millisecond,,The elapsed time of secret backend invocation,0,datadog_cluster_agent,secret backend elapsed time duration, datadog.cluster_agent.tagger.stored_entities,gauge,,,,Number of entities stored in the tagger,0,datadog_cluster_agent,tagger stored entities, datadog.cluster_agent.tagger.updated_entities,count,,,,Number of updates made to entities in the tagger,0,datadog_cluster_agent,tagger updated entities, diff --git a/datadog_cluster_agent/tests/test_datadog_cluster_agent.py b/datadog_cluster_agent/tests/test_datadog_cluster_agent.py index d8c915e4ab465..7b42a4a05ed3d 100644 --- a/datadog_cluster_agent/tests/test_datadog_cluster_agent.py +++ b/datadog_cluster_agent/tests/test_datadog_cluster_agent.py @@ -70,6 +70,7 @@ 'kubernetes_apiserver.kube_events', 'language_detection_dca_handler.processed_requests', 'language_detection_patcher.patches', + 'leader_election.is_leader', 'secret_backend.elapsed', 'tagger.stored_entities', 'tagger.updated_entities',