Skip to content

Commit 892607f

Browse files
authored
Remove top() causing "Invalid Formula" (DataDog#21188)
The OOTB Kubernetes DaemonSets Overview page displays a "Replicas Changes" change widget with the following error for all users: Invalid Formula in Query Object This is being caused by a conflict between a top() function with the change widget, and this PR removes the top() function in the query. Motivation: https://datadog.zendesk.com/agent/tickets/2226887
1 parent d3544db commit 892607f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

kubernetes/assets/dashboards/kubernetes_daemonsets.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@
309309
{
310310
"name": "query1",
311311
"data_source": "metrics",
312-
"query": "top(avg:kubernetes_state.daemonset.ready{$scope,$kube_namespace,$kube_cluster_name,$kube_daemon_set} by {kube_cluster_name,kube_namespace,kube_replica_set}, 10, 'mean', 'desc')",
312+
"query": "avg:kubernetes_state.daemonset.ready{$scope,$kube_namespace,$kube_cluster_name,$kube_daemon_set} by {kube_cluster_name,kube_namespace,kube_replica_set}",
313313
"aggregator": "avg"
314314
}
315315
]
@@ -1317,4 +1317,4 @@
13171317
],
13181318
"layout_type": "free",
13191319
"notify_list": []
1320-
}
1320+
}

0 commit comments

Comments
 (0)