Skip to content

Commit b3dfc50

Browse files
steveny91ravindrasojitra-crest
authored andcommitted
appset metric fix (DataDog#18018)
* appset metric fix * changelogs
1 parent 412d946 commit b3dfc50

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

argocd/changelog.d/18018.fixed

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix collection of 2 appset counters

argocd/datadog_checks/argocd/metrics.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@
6464
APPSET_CONTROLLER = {
6565
'controller_runtime_active_workers': 'active.workers',
6666
'controller_runtime_max_concurrent_reconciles': 'max.concurrent.reconciles',
67-
'controller_runtime_reconcile_errors_total': 'reconcile.errors.total',
67+
'controller_runtime_reconcile_errors': 'reconcile.errors',
6868
'controller_runtime_reconcile_time_seconds': 'reconcile.time_seconds',
69-
'controller_runtime_reconcile_total': 'runtime.reconcile.total',
69+
'controller_runtime_reconcile': 'runtime.reconcile',
7070
}
7171

7272
API_SERVER = {

argocd/metadata.csv

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,11 @@ argocd.appset_controller.process.resident_memory.bytes,gauge,,byte,,The resident
143143
argocd.appset_controller.process.start_time.seconds,gauge,,second,,The start time of the process since unix epoch in seconds in the ApplicationSet controller,0,argocd,appset_controller process start_time seconds,
144144
argocd.appset_controller.process.virtual_memory.bytes,gauge,,byte,,The virtual memory size in bytes in the ApplicationSet controller,0,argocd,appset_controller process virtual_memory bytes,
145145
argocd.appset_controller.process.virtual_memory.max_bytes,gauge,,byte,,The maximum amount of virtual memory available in bytes in the ApplicationSet controller,0,argocd,appset_controller process virtual_memory max_byte,
146-
argocd.appset_controller.reconcile.errors.total,gauge,,,,Total number of reconciliation errors per controller,0,argocd,appset_controller runtime reconcile errors count,
146+
argocd.appset_controller.reconcile.errors.count,count,,,,The count of reconciliation errors per controller,0,argocd,appset_controller runtime reconcile errors count,
147147
argocd.appset_controller.reconcile.time_seconds.bucket,count,,,,The histogram bucket for length of time per reconciliation per controller,0,argocd,appset_controller runtime reconcile buckets,
148148
argocd.appset_controller.reconcile.time_seconds.count,count,,,,The count aggregation of length of time per reconciliation per controller,0,argocd,appset_controller runtime reconcile count,
149149
argocd.appset_controller.reconcile.time_seconds.sum,count,,,,The sum aggregation of length of time per reconciliation per controller,0,argocd,appset_controller runtime reconcile sum,
150-
argocd.appset_controller.runtime.reconcile.total,count,,,,Total number of reconciliations per controller,0,argocd,appset_controller runtime total reconcile count,
150+
argocd.appset_controller.runtime.reconcile.count,count,,,,The count of reconciliations per controller,0,argocd,appset_controller runtime total reconcile count,
151151
argocd.notifications_controller.go.gc.duration.seconds.count,count,,second,,The summary count of garbage collection cycles in the API Server,0,argocd,notifications_controller go gc duration seconds count,
152152
argocd.notifications_controller.go.gc.duration.seconds.quantile,gauge,,second,,A summary of the pause duration of garbage collection cycles in the API Server,0,argocd,notifications_controller go gc duration seconds,
153153
argocd.notifications_controller.go.gc.duration.seconds.sum,count,,second,,The sum of the pause duration of garbage collection cycles in the API Server,0,argocd,notifications_controller go gc duration seconds sum,

argocd/tests/common.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
'redis.request.duration.sum',
109109
]
110110

111-
appset_controller_counters = ['reconcile.errors.total', 'runtime.reconcile.total']
111+
appset_controller_counters = ['reconcile.errors.count', 'runtime.reconcile.count']
112112

113113
appset_controller_gauges = [
114114
'active.workers',
@@ -163,8 +163,6 @@
163163
'argocd.app_controller.cluster.api.resources',
164164
'argocd.app_controller.cluster.cache.age.seconds',
165165
'argocd.app_controller.redis.request.duration',
166-
'argocd.appset_controller.reconcile.errors.total',
167-
'argocd.appset_controller.runtime.reconcile.total',
168166
]
169167

170168
# Additional metrics that aren't exposed in the E2E environment

0 commit comments

Comments
 (0)