Skip to content

Commit

Permalink
Updated all container waiting statuses to use most recent metric with…
Browse files Browse the repository at this point in the history
… a reason tag (DataDog#18176)
  • Loading branch information
ewoodthomas authored Aug 5, 2024
1 parent 004435e commit 58fc3e0
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion datadog_operator/assets/dashboards/operator_overview.json
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@
"response_format": "scalar",
"queries": [
{
"query": "sum:kubernetes.containers.state.waiting{$scope,$cluster,kube_app_name:datadog-operator,reason:crashloopbackoff} by {kube_cluster_name,image_tag}",
"query": "sum:kubernetes_state.container.status_report.count.waiting{$scope,$cluster,kube_app_name:datadog-operator,reason:crashloopbackoff} by {kube_cluster_name,image_tag}",
"data_source": "metrics",
"name": "query1",
"aggregator": "last"
Expand Down
8 changes: 4 additions & 4 deletions kubernetes/assets/dashboards/kubernetes_clusters.json
Original file line number Diff line number Diff line change
Expand Up @@ -3173,7 +3173,7 @@
"requests": [
{
"display_type": "bars",
"q": "sum:kubernetes_state.container.waiting{$cluster,reason:crashloopbackoff,*,$scope} by {pod_name}",
"q": "sum:kubernetes_state.container.status_report.count.waiting{$cluster,reason:crashloopbackoff,*,$scope} by {pod_name}",
"style": {
"line_type": "solid",
"line_width": "normal",
Expand Down Expand Up @@ -3551,10 +3551,10 @@
},
{
"alias_name": "waiting",
"expression": "sum:kubernetes_state.container.waiting{$cluster,$scope}"
"expression": "sum:kubernetes_state.container.status_report.count.waiting{$cluster,$scope}"
}
],
"q": "sum:kubernetes_state.container.ready{$cluster,$scope}, sum:kubernetes_state.container.running{$cluster,$scope}, sum:kubernetes_state.container.terminated{$cluster,$scope}, sum:kubernetes_state.container.waiting{$cluster,$scope}",
"q": "sum:kubernetes_state.container.ready{$cluster,$scope}, sum:kubernetes_state.container.running{$cluster,$scope}, sum:kubernetes_state.container.terminated{$cluster,$scope}, sum:kubernetes_state.container.status_report.count.waiting{$cluster,$scope}",
"style": {
"line_type": "solid",
"line_width": "normal",
Expand Down Expand Up @@ -3650,7 +3650,7 @@
{
"data_source": "metrics",
"name": "query1",
"query": "sum:kubernetes.containers.state.waiting{$cluster,reason:crashloopbackoff,$scope} by {pod_name}"
"query": "sum:kubernetes_state.container.status_report.count.waiting{$cluster,reason:crashloopbackoff,$scope} by {pod_name}"
}
],
"response_format": "timeseries",
Expand Down
4 changes: 2 additions & 2 deletions kubernetes/assets/dashboards/kubernetes_dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@
{
"data_source": "metrics",
"name": "query1",
"query": "sum:kubernetes_state.container.waiting{$cluster,$namespace,$deployment,$statefulset,$replicaset,$daemonset,reason:crashloopbackoff,$scope,$daemonset,$label,$node,$service} by {pod_name}"
"query": "sum:kubernetes_state.container.status_report.count.waiting{$cluster,$namespace,$deployment,$statefulset,$replicaset,$daemonset,reason:crashloopbackoff,$scope,$daemonset,$label,$node,$service} by {pod_name}"
}
],
"style": {
Expand Down Expand Up @@ -1462,7 +1462,7 @@
{
"data_source": "metrics",
"name": "query1",
"query": "sum:kubernetes_state.container.waiting{$scope,$deployment,$statefulset,$replicaset,$daemonset,$service,$namespace,$label,$cluster,$node}"
"query": "sum:kubernetes_state.container.status_report.count.waiting{$scope,$deployment,$statefulset,$replicaset,$daemonset,$service,$namespace,$label,$cluster,$node}"
}
],
"response_format": "timeseries",
Expand Down
4 changes: 2 additions & 2 deletions kubernetes/assets/dashboards/kubernetes_pods.json
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@
"name": "query3"
},
{
"query": "sum:kubernetes_state.container.waiting{$cluster,$namespace,$deployment,$scope,$statefulset,$daemonset,$job}",
"query": "sum:kubernetes_state.container.status_report.count.waiting{$cluster,$namespace,$deployment,$scope,$statefulset,$daemonset,$job}",
"data_source": "metrics",
"name": "query4"
}
Expand Down Expand Up @@ -625,7 +625,7 @@
"on_right_yaxis": false,
"queries": [
{
"query": "sum:kubernetes.containers.state.waiting{$cluster,$namespace,$deployment,reason:crashloopbackoff,$scope,$statefulset,$daemonset,$job} by {pod_name}",
"query": "sum:kubernetes_state.container.status_report.count.waiting{$cluster,$namespace,$deployment,reason:crashloopbackoff,$scope,$statefulset,$daemonset,$job} by {pod_name}",
"data_source": "metrics",
"name": "query1"
}
Expand Down
4 changes: 2 additions & 2 deletions vsphere/assets/dashboards/vmware_vsphere_tkg_-_overview.json
Original file line number Diff line number Diff line change
Expand Up @@ -1014,7 +1014,7 @@
{
"data_source": "metrics",
"name": "query4",
"query": "sum:kubernetes_state.container.waiting{$namespace,$scope,$vsphere_cluster,$vsphere_host,$vsphere_vcenter,$pod_name,$kube_container_name}"
"query": "sum:kubernetes_state.container.status_report.count.waiting{$namespace,$scope,$vsphere_cluster,$vsphere_host,$vsphere_vcenter,$pod_name,$kube_container_name}"
}
],
"response_format": "timeseries",
Expand Down Expand Up @@ -1123,7 +1123,7 @@
{
"data_source": "metrics",
"name": "query1",
"query": "sum:kubernetes.containers.state.waiting{$namespace,$deployment,reason:crashloopbackoff,$scope,$statefulset,$daemonset,$job,$vsphere_cluster,$vsphere_host,$vsphere_vcenter,$pod_name,$kube_container_name} by {pod_name}"
"query": "sum:kubernetes_state.container.status_report.count.waiting{$namespace,$deployment,reason:crashloopbackoff,$scope,$statefulset,$daemonset,$job,$vsphere_cluster,$vsphere_host,$vsphere_vcenter,$pod_name,$kube_container_name} by {pod_name}"
}
],
"response_format": "timeseries",
Expand Down

0 comments on commit 58fc3e0

Please sign in to comment.