Skip to content

Commit 574d63b

Browse files
authored
[cluster-agent] Add new metric for SSI gradual rollout (DataDog#21599)
* Add admission_webhooks.image_resolution_attempts telemetry to cluster agent * Add missing count in fixture * Add changelog * Add missing type in metadata * Correctly sort metadata * Remove commas and update description in metadata * Add missing metadata * Update datadog_cluster_agent/changelog.d/21599.added
1 parent b59b15b commit 574d63b

5 files changed

Lines changed: 7 additions & 0 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add new metric for SSI gradual rollout

datadog_cluster_agent/datadog_checks/datadog_cluster_agent/check.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
'admission_webhooks_reconcile_success': 'admission_webhooks.reconcile_success',
2323
'admission_webhooks_response_duration': 'admission_webhooks.response_duration',
2424
'admission_webhooks_webhooks_received': 'admission_webhooks.webhooks_received',
25+
'admission_webhooks_image_resolution_attempts': 'admission_webhooks.image_resolution_attempts',
2526
'autoscaling_workload_autoscaler_conditions': 'autoscaling.workload.autoscaler_conditions',
2627
'autoscaling_workload_horizontal_scaling_actions': 'autoscaling.workload.horizontal_scaling_actions',
2728
'autoscaling_workload_horizontal_scaling_applied_replicas': 'autoscaling.workload.horizontal_scaling_applied_replicas', # noqa: E501

datadog_cluster_agent/metadata.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ datadog.cluster_agent.admission_webhooks.cws_exec_mutation_attempts,count,,,,Num
44
datadog.cluster_agent.admission_webhooks.cws_pod_mutation_attempts,count,,,,Number of CWS pod mutation attempts by reason and status,0,datadog_cluster_agent,cws pod mutation attempts,,
55
datadog.cluster_agent.admission_webhooks.cws_response_duration.count,count,,,,CWS mutating webhook response duration count,0,datadog_cluster_agent,cws response duration count,,
66
datadog.cluster_agent.admission_webhooks.cws_response_duration.sum,count,,,,CWS mutating webhook response duration sum,0,datadog_cluster_agent,cws response duration sum,,
7+
datadog.cluster_agent.admission_webhooks.image_resolution_attempts,count,,,,Number of image resolution attempts for gradual rollout,0,datadog_cluster_agent,image resolution attempts,,
78
datadog.cluster_agent.admission_webhooks.library_injection_attempts,count,,,,Number of library injection attempts by language,0,datadog_cluster_agent,library injection attempts,,
89
datadog.cluster_agent.admission_webhooks.library_injection_errors,count,,,,Number of library injection failures by language,0,datadog_cluster_agent,library injection errors,,
910
datadog.cluster_agent.admission_webhooks.mutation_attempts,gauge,,,,Number of pod mutation attempts by mutation type,0,datadog_cluster_agent,admission webhooks mutation attempts,,

datadog_cluster_agent/tests/fixtures/metrics.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ admission_webhooks_response_duration_count 108
4040
# HELP admission_webhooks_webhooks_received Number of webhook requests received.
4141
# TYPE admission_webhooks_webhooks_received gauge
4242
admission_webhooks_webhooks_received 300
43+
# HELP admission_webhooks_image_resolution_attempts Number of image resolution attempts
44+
# TYPE admission_webhooks_image_resolution_attempts counter
45+
admission_webhooks_image_resolution_attempts{registry="gcr.io/datadoghq",repository="dd-lib-python-init",digest_resolution="enabled",outcome="sha256:test"} 1
4346
# HELP aggregator__dogstatsd_contexts Count the number of dogstatsd contexts in the aggregator
4447
# TYPE aggregator__dogstatsd_contexts gauge
4548
aggregator__dogstatsd_contexts 1

datadog_cluster_agent/tests/test_datadog_cluster_agent.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
'admission_webhooks.response_duration.count',
3333
'admission_webhooks.response_duration.sum',
3434
'admission_webhooks.webhooks_received',
35+
'admission_webhooks.image_resolution_attempts',
3536
'aggregator.flush',
3637
'aggregator.processed',
3738
'api_requests',

0 commit comments

Comments
 (0)