Skip to content

Commit

Permalink
Small improvements in grafana dashboards.
Browse files Browse the repository at this point in the history
  • Loading branch information
camilb committed Sep 29, 2017
1 parent cb968ba commit 90011ee
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1043,6 +1043,6 @@
]
},
"timezone": "browser",
"title": "Kubernetes Capacity Planing",
"title": "Kubernetes Capacity Planning",
"version": 4
}
}
18 changes: 9 additions & 9 deletions operator/assets/grafana/kubernetes-cluster-health-dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "4.5.2"
"version": "4.4.1"
},
{
"type": "datasource",
Expand Down Expand Up @@ -182,7 +182,7 @@
"tableColumn": "",
"targets": [
{
"expr": "sum(ALERTS{alertstate=\"firing\"})",
"expr": "sum(ALERTS{alertstate=\"firing\",alertname!=\"DeadMansSwitch\"})",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "",
Expand All @@ -197,7 +197,7 @@
"valueMaps": [
{
"op": "=",
"text": "N/A",
"text": "0",
"value": "null"
}
],
Expand Down Expand Up @@ -260,7 +260,7 @@
"tableColumn": "",
"targets": [
{
"expr": "sum(ALERTS{alertstate=\"pending\"})",
"expr": "sum(ALERTS{alertstate=\"pending\",alertname!=\"DeadMansSwitch\"})",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "",
Expand All @@ -275,7 +275,7 @@
"valueMaps": [
{
"op": "=",
"text": "N/A",
"text": "0",
"value": "null"
}
],
Expand Down Expand Up @@ -428,7 +428,7 @@
"tableColumn": "",
"targets": [
{
"expr": "sum(kube_node_status_condition{condition!=\"Ready\", status=\"true\"})",
"expr": "sum(kube_node_status_condition{condition=\"Ready\",status!=\"true\"})",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "",
Expand Down Expand Up @@ -506,7 +506,7 @@
"tableColumn": "",
"targets": [
{
"expr": "sum(kube_node_status_disk_pressure{condition=\"true\"})",
"expr": "sum(kube_node_status_condition{condition=\"DiskPressure\",status=\"true\"})",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "",
Expand Down Expand Up @@ -584,7 +584,7 @@
"tableColumn": "",
"targets": [
{
"expr": "sum(kube_node_status_memory_pressure{condition=\"true\"})",
"expr": "sum(kube_node_status_condition{condition=\"MemoryPressure\",status=\"true\"})",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "",
Expand Down Expand Up @@ -729,5 +729,5 @@
},
"timezone": "",
"title": "Kubernetes Cluster Health",
"version": 12
"version": 9
}
14 changes: 7 additions & 7 deletions operator/assets/grafana/kubernetes-cluster-status-dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
"tableColumn": "",
"targets": [
{
"expr": "sum(ALERTS{alertstate=\"firing\"})",
"expr": "sum(ALERTS{alertstate=\"firing\",alertname!=\"DeadMansSwitch\"})",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "",
Expand All @@ -191,7 +191,7 @@
"valueMaps": [
{
"op": "=",
"text": "N/A",
"text": "0",
"value": "null"
}
],
Expand Down Expand Up @@ -266,7 +266,7 @@
"tableColumn": "",
"targets": [
{
"expr": "(sum(up{job=\"apiserver\"} == 1) / sum(up{job=\"apiserver\"})) * 100",
"expr": "(sum(up{job=\"apiserver\"} == 1) / count(up{job=\"apiserver\"})) * 100",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
Expand Down Expand Up @@ -345,7 +345,7 @@
"tableColumn": "",
"targets": [
{
"expr": "(sum(up{job=\"kube-controller-manager\"} == 1) / sum(up{job=\"kube-controller-manager\"})) * 100",
"expr": "(sum(up{job=\"kube-controller-manager\"} == 1) / count(up{job=\"kube-controller-manager\"})) * 100",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
Expand Down Expand Up @@ -424,7 +424,7 @@
"tableColumn": "",
"targets": [
{
"expr": "(sum(up{job=\"kube-scheduler\"} == 1) / sum(up{job=\"kube-scheduler\"})) * 100",
"expr": "(sum(up{job=\"kube-scheduler\"} == 1) / count(up{job=\"kube-scheduler\"})) * 100",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
Expand Down Expand Up @@ -892,5 +892,5 @@
},
"timezone": "",
"title": "Kubernetes Cluster Status",
"version": 22
}
"version": 3
}
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@
"tableColumn": "",
"targets": [
{
"expr": "topk(1, (sum by(instance) (rate(apiserver_request_count{code!~\"2..\"}[5m])) / sum by(instance) (rate(apiserver_request_count[5m]))) * 100)",
"expr": "topk(1, (sum by(instance) (rate(apiserver_request_count{code=~\"5..\"}[5m])) / sum by(instance) (rate(apiserver_request_count[5m]))) * 100)",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "",
Expand All @@ -348,7 +348,7 @@
"valueMaps": [
{
"op": "=",
"text": "N/A",
"text": "0",
"value": "null"
}
],
Expand Down Expand Up @@ -659,5 +659,5 @@
},
"timezone": "",
"title": "Kubernetes Control Plane Status",
"version": 11
}
"version": 3
}
47 changes: 25 additions & 22 deletions operator/manifests/grafana/grafana-dashboards.cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1880,9 +1880,10 @@ data:
]
},
"timezone": "browser",
"title": "Kubernetes Capacity Planing",
"title": "Kubernetes Capacity Planning",
"version": 4
},
}
,
"inputs": [
{
"name": "DS_PROMETHEUS",
Expand Down Expand Up @@ -1912,7 +1913,7 @@ data:
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "4.5.2"
"version": "4.4.1"
},
{
"type": "datasource",
Expand Down Expand Up @@ -2080,7 +2081,7 @@ data:
"tableColumn": "",
"targets": [
{
"expr": "sum(ALERTS{alertstate=\"firing\"})",
"expr": "sum(ALERTS{alertstate=\"firing\",alertname!=\"DeadMansSwitch\"})",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "",
Expand All @@ -2095,7 +2096,7 @@ data:
"valueMaps": [
{
"op": "=",
"text": "N/A",
"text": "0",
"value": "null"
}
],
Expand Down Expand Up @@ -2158,7 +2159,7 @@ data:
"tableColumn": "",
"targets": [
{
"expr": "sum(ALERTS{alertstate=\"pending\"})",
"expr": "sum(ALERTS{alertstate=\"pending\",alertname!=\"DeadMansSwitch\"})",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "",
Expand All @@ -2173,7 +2174,7 @@ data:
"valueMaps": [
{
"op": "=",
"text": "N/A",
"text": "0",
"value": "null"
}
],
Expand Down Expand Up @@ -2326,7 +2327,7 @@ data:
"tableColumn": "",
"targets": [
{
"expr": "sum(kube_node_status_condition{condition!=\"Ready\", status=\"true\"})",
"expr": "sum(kube_node_status_condition{condition=\"Ready\",status!=\"true\"})",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "",
Expand Down Expand Up @@ -2404,7 +2405,7 @@ data:
"tableColumn": "",
"targets": [
{
"expr": "sum(kube_node_status_disk_pressure{condition=\"true\"})",
"expr": "sum(kube_node_status_condition{condition=\"DiskPressure\",status=\"true\"})",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "",
Expand Down Expand Up @@ -2482,7 +2483,7 @@ data:
"tableColumn": "",
"targets": [
{
"expr": "sum(kube_node_status_memory_pressure{condition=\"true\"})",
"expr": "sum(kube_node_status_condition{condition=\"MemoryPressure\",status=\"true\"})",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "",
Expand Down Expand Up @@ -2627,7 +2628,7 @@ data:
},
"timezone": "",
"title": "Kubernetes Cluster Health",
"version": 12
"version": 9
}
,
"inputs": [
Expand Down Expand Up @@ -3781,7 +3782,7 @@ data:
"tableColumn": "",
"targets": [
{
"expr": "sum(ALERTS{alertstate=\"firing\"})",
"expr": "sum(ALERTS{alertstate=\"firing\",alertname!=\"DeadMansSwitch\"})",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "",
Expand All @@ -3796,7 +3797,7 @@ data:
"valueMaps": [
{
"op": "=",
"text": "N/A",
"text": "0",
"value": "null"
}
],
Expand Down Expand Up @@ -3871,7 +3872,7 @@ data:
"tableColumn": "",
"targets": [
{
"expr": "(sum(up{job=\"apiserver\"} == 1) / sum(up{job=\"apiserver\"})) * 100",
"expr": "(sum(up{job=\"apiserver\"} == 1) / count(up{job=\"apiserver\"})) * 100",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
Expand Down Expand Up @@ -3950,7 +3951,7 @@ data:
"tableColumn": "",
"targets": [
{
"expr": "(sum(up{job=\"kube-controller-manager\"} == 1) / sum(up{job=\"kube-controller-manager\"})) * 100",
"expr": "(sum(up{job=\"kube-controller-manager\"} == 1) / count(up{job=\"kube-controller-manager\"})) * 100",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
Expand Down Expand Up @@ -4029,7 +4030,7 @@ data:
"tableColumn": "",
"targets": [
{
"expr": "(sum(up{job=\"kube-scheduler\"} == 1) / sum(up{job=\"kube-scheduler\"})) * 100",
"expr": "(sum(up{job=\"kube-scheduler\"} == 1) / count(up{job=\"kube-scheduler\"})) * 100",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
Expand Down Expand Up @@ -4497,8 +4498,9 @@ data:
},
"timezone": "",
"title": "Kubernetes Cluster Status",
"version": 22
},
"version": 3
}
,
"inputs": [
{
"name": "DS_PROMETHEUS",
Expand Down Expand Up @@ -4847,7 +4849,7 @@ data:
"tableColumn": "",
"targets": [
{
"expr": "topk(1, (sum by(instance) (rate(apiserver_request_count{code!~\"2..\"}[5m])) / sum by(instance) (rate(apiserver_request_count[5m]))) * 100)",
"expr": "topk(1, (sum by(instance) (rate(apiserver_request_count{code=~\"5..\"}[5m])) / sum by(instance) (rate(apiserver_request_count[5m]))) * 100)",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "",
Expand All @@ -4862,7 +4864,7 @@ data:
"valueMaps": [
{
"op": "=",
"text": "N/A",
"text": "0",
"value": "null"
}
],
Expand Down Expand Up @@ -5173,8 +5175,9 @@ data:
},
"timezone": "",
"title": "Kubernetes Control Plane Status",
"version": 11
},
"version": 3
}
,
"inputs": [
{
"name": "DS_PROMETHEUS",
Expand Down

0 comments on commit 90011ee

Please sign in to comment.