Skip to content

Commit

Permalink
Collect datadog_cluster_agent.cluster_checks.configs_info metric
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmed-mez committed Mar 31, 2022
1 parent 50681b9 commit 9f1b0fa
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
'cluster_checks_busyness': 'cluster_checks.busyness',
'cluster_checks_configs_dangling': 'cluster_checks.configs_dangling',
'cluster_checks_configs_dispatched': 'cluster_checks.configs_dispatched',
'cluster_checks_configs_info': 'cluster_checks.configs_info',
'cluster_checks_failed_stats_collection': 'cluster_checks.failed_stats_collection',
'cluster_checks_nodes_reporting': 'cluster_checks.nodes_reporting',
'cluster_checks_rebalancing_decisions': 'cluster_checks.rebalancing_decisions',
Expand Down
1 change: 1 addition & 0 deletions datadog_cluster_agent/metadata.csv
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ datadog.cluster_agent.api_requests,count,,request,,"Requests made to the cluster
datadog.cluster_agent.cluster_checks.busyness,gauge,,,,Busyness of a node per the number of metrics submitted and average duration of all checks run,0,datadog_cluster_agent,cluster check node busyness,
datadog.cluster_agent.cluster_checks.configs_dangling,gauge,,,,Number of check configurations not dispatched,-1,datadog_cluster_agent,cluster check configs dangling,
datadog.cluster_agent.cluster_checks.configs_dispatched,gauge,,,,Number of check configurations dispatched by node,0,datadog_cluster_agent,cluster check configs dispatched,
datadog.cluster_agent.cluster_checks.configs_info,gauge,,,,Information about check configurations dispatched (node and check ID),0,datadog_cluster_agent,cluster check configs info,
datadog.cluster_agent.cluster_checks.failed_stats_collection,count,,,,Total number of unsuccessful stats collection attempts,0,datadog_cluster_agent,cluster check failed stats collection,
datadog.cluster_agent.cluster_checks.nodes_reporting,gauge,,,,Number of node agents reporting,0,datadog_cluster_agent,cluster check nodes reporting,
datadog.cluster_agent.cluster_checks.rebalancing_decisions,count,,,,Total number of check rebalancing decisions,0,datadog_cluster_agent,cluster check rebalancing decisions,
Expand Down
9 changes: 8 additions & 1 deletion datadog_cluster_agent/tests/fixtures/metrics.txt
Original file line number Diff line number Diff line change
Expand Up @@ -308,4 +308,11 @@ transactions__success_bytes{domain="https://1-13-1-app.agent.datadoghq.com",endp
transactions__success_bytes{domain="https://orchestrator.datadoghq.com",endpoint="orchestrator"} 22668
# HELP secret_backend__elapsed_ms Elapsed time of secret backend invocation
# TYPE secret_backend__elapsed_ms gauge
secret_backend__elapsed_ms{command="/usr/local/bin/secrets",exit_code="0"} 156
secret_backend__elapsed_ms{command="/usr/local/bin/secrets",exit_code="0"} 156
# HELP cluster_checks_configs_info Information about the dispatched checks (node, check ID)
# TYPE cluster_checks_configs_info gauge
cluster_checks_configs_info{check_id="http_check:kubernetes:b6afdcb9527c9071",join_leader="true",node="datadog-clusterchecks-779dfcd7bf-hxjwg"} 1
cluster_checks_configs_info{check_id="http_check:kubernetes:c964669d244288ea",join_leader="true",node="datadog-clusterchecks-779dfcd7bf-jm4mz"} 1
cluster_checks_configs_info{check_id="http_check:nginx 1:c89937d23c8b01a0",join_leader="true",node="datadog-clusterchecks-779dfcd7bf-jm4mz"} 1
cluster_checks_configs_info{check_id="http_check:nginx 2:89d07d5d897f5241",join_leader="true",node="datadog-clusterchecks-779dfcd7bf-hxjwg"} 1
cluster_checks_configs_info{check_id="http_check:nginx 3:8f889113ed52b58e",join_leader="true",node="datadog-clusterchecks-779dfcd7bf-hxjwg"} 1
1 change: 1 addition & 0 deletions datadog_cluster_agent/tests/test_datadog_cluster_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
'cluster_checks.busyness',
'cluster_checks.configs_dangling',
'cluster_checks.configs_dispatched',
'cluster_checks.configs_info',
'cluster_checks.failed_stats_collection',
'cluster_checks.nodes_reporting',
'cluster_checks.rebalancing_decisions',
Expand Down

0 comments on commit 9f1b0fa

Please sign in to comment.