Skip to content

Commit cf213ba

Browse files
Add New External DNS Metrics: controller.consecutive.soft.errors & controller.last_reconcile (DataDog#23671)
* Add metrics external_dns_controller_consecutive_soft_errors & external_dns_controller_last_reconcile_timestamp_seconds * Updating naming of controller.last_reconcile * Add changelog * Sorting metric names
1 parent d10eeb0 commit cf213ba

4 files changed

Lines changed: 18 additions & 7 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Added metrics external_dns.controller.last_reconcile & external_dns.controller.consecutive.soft.errors

external_dns/datadog_checks/external_dns/metrics.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,6 @@
99
'source_errors_total': 'source.errors.total',
1010
'registry_errors_total': 'registry.errors.total',
1111
'external_dns_controller_last_sync_timestamp_seconds': 'controller.last_sync',
12+
'external_dns_controller_consecutive_soft_errors': 'controller.consecutive.soft.errors',
13+
'external_dns_controller_last_reconcile_timestamp_seconds': 'controller.last_reconcile',
1214
}

external_dns/metadata.csv

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
metric_name,metric_type,interval,unit_name,per_unit_name,description,orientation,integration,short_name,curated_metric
2-
external_dns.controller.last_sync,gauge,,second,,Timestamp of last successful sync with the DNS provider,0,external_dns,controller last sync timestamp,
3-
external_dns.registry.endpoints.total,gauge,,resource,,Number of registry endpoints,0,external_dns,registry endpoints,
4-
external_dns.registry.errors.total,gauge,,error,,Number of registry errors,-1,external_dns,registry errors,
5-
external_dns.source.endpoints.total,gauge,,resource,,Number of source endpoints,0,external_dns,source endpoints,
6-
external_dns.source.errors.total,gauge,,error,,Number of source errors,-1,external_dns,source errors,
1+
metric_name,metric_type,interval,unit_name,per_unit_name,description,orientation,integration,short_name,curated_metric,sample_tags
2+
external_dns.controller.consecutive.soft.errors,gauge,,error,,Number of consecutive soft errors in reconciliation loop,-1,external_dns,controller consecutive soft errors,,
3+
external_dns.controller.last_reconcile,gauge,,second,,Timestamp of last reconcile attempt,0,external_dns,controller last reconcile timestamp,,
4+
external_dns.controller.last_sync,gauge,,second,,Timestamp of last successful sync with the DNS provider,0,external_dns,controller last sync timestamp,,
5+
external_dns.registry.endpoints.total,gauge,,resource,,Number of registry endpoints,0,external_dns,registry endpoints,,
6+
external_dns.registry.errors.total,gauge,,error,,Number of registry errors,-1,external_dns,registry errors,,
7+
external_dns.source.endpoints.total,gauge,,resource,,Number of source endpoints,0,external_dns,source endpoints,,
8+
external_dns.source.errors.total,gauge,,error,,Number of source errors,-1,external_dns,source errors,,

external_dns/tests/fixtures/metrics.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,10 @@ registry_errors_total 0
1212
source_errors_total 0
1313
# HELP external_dns_controller_last_sync_timestamp_seconds Timestamp of last successful sync with the DNS provider
1414
# TYPE external_dns_controller_last_sync_timestamp_seconds gauge
15-
external_dns_controller_last_sync_timestamp_seconds 1.6343090342347014e+09
15+
external_dns_controller_last_sync_timestamp_seconds 1.6343090342347014e+09
16+
# HELP external_dns_controller_consecutive_soft_errors Number of consecutive soft errors in reconciliation loop
17+
# TYPE external_dns_controller_consecutive_soft_errors gauge
18+
external_dns_controller_consecutive_soft_errors 0
19+
# HELP external_dns_controller_last_reconcile_timestamp_seconds Timestamp of last reconcile attempt
20+
# TYPE external_dns_controller_last_reconcile_timestamp_seconds gauge
21+
external_dns_controller_last_reconcile_timestamp_seconds 1.715520123e+09

0 commit comments

Comments
 (0)