Skip to content

Commit

Permalink
monitoring: update Grafana dashboards
Browse files Browse the repository at this point in the history
Fix various panels that used outdated metric names, cluncky or
unnecessary label_replace calls. Also unify the style of many panels.

Fixes: http://tracker.ceph.com/issues/39652

Signed-off-by: Jan Fajerski <[email protected]>
  • Loading branch information
Jan Fajerski committed May 14, 2019
1 parent 615b11b commit e7a4437
Show file tree
Hide file tree
Showing 11 changed files with 1,119 additions and 648 deletions.
6 changes: 3 additions & 3 deletions monitoring/grafana/dashboards/ceph-cluster.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"list": []
},
"description": "Ceph cluster overview",
"editable": true,
"editable": false,
"gnetId": null,
"graphTooltip": 0,
"id": null,
Expand All @@ -52,7 +52,7 @@
"rgb(255, 0, 0)"
],
"datasource": "$datasource",
"editable": true,
"editable": false,
"error": false,
"format": "none",
"gauge": {
Expand Down Expand Up @@ -850,7 +850,7 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(deriv(ceph_pool_bytes_used{instance=~\"$instance\"}[1m]))",
"expr": "sum(deriv(ceph_pool_stored{instance=~\"$instance\"}[1m]))",
"format": "time_series",
"intervalFactor": 1,
"refId": "A"
Expand Down
41 changes: 28 additions & 13 deletions monitoring/grafana/dashboards/cephfs-overview.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"__inputs": [],
"__requires": [
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "5.0.0"
"version": "5.3.2"
},
{
"type": "panel",
Expand All @@ -30,7 +31,7 @@
"gnetId": null,
"graphTooltip": 0,
"id": null,
"iteration": 1534386614546,
"iteration": 1557392920097,
"links": [],
"panels": [
{
Expand All @@ -52,7 +53,7 @@
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
"fill": 1,
"fill": 0,
"gridPos": {
"h": 9,
"w": 12,
Expand All @@ -77,7 +78,12 @@
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"seriesOverrides": [
{
"alias": "/.*Reads/",
"transform": "negative-Y"
}
],
"spaceLength": 10,
"stack": true,
"steppedLine": false,
Expand All @@ -86,14 +92,14 @@
"expr": "sum(ceph_objecter_op_r{ceph_daemon=~\"($mds_servers).*\"})",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "MDS Reads",
"legendFormat": "Read Ops",
"refId": "A"
},
{
"expr": "sum(ceph_objecter_op_w{ceph_daemon=~\"($mds_servers).*\"})",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "MDS Writes",
"legendFormat": "Write Ops",
"refId": "B"
}
],
Expand All @@ -117,7 +123,7 @@
"yaxes": [
{
"format": "none",
"label": null,
"label": "Reads(-) / Writes (+)",
"logBase": 1,
"max": null,
"min": "0",
Expand All @@ -131,15 +137,19 @@
"min": null,
"show": true
}
]
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
"fill": 1,
"fill": 0,
"gridPos": {
"h": 9,
"w": 12,
Expand Down Expand Up @@ -197,7 +207,7 @@
"yaxes": [
{
"format": "none",
"label": null,
"label": "Client Requests",
"logBase": 1,
"max": null,
"min": "0",
Expand All @@ -211,7 +221,11 @@
"min": null,
"show": false
}
]
],
"yaxis": {
"align": false,
"alignLevel": null
}
}
],
"refresh": "15s",
Expand All @@ -222,7 +236,6 @@
"list": [
{
"current": {
"tags": [],
"text": "default",
"value": "default"
},
Expand All @@ -233,6 +246,7 @@
"query": "prometheus",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"type": "datasource"
},
{
Expand All @@ -248,6 +262,7 @@
"query": "label_values(ceph_mds_inodes, ceph_daemon)",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"tagValuesQuery": "",
"tags": [],
Expand Down Expand Up @@ -289,6 +304,6 @@
},
"timezone": "",
"title": "MDS Performance",
"uid": "rRfFzWtik",
"uid": "tbO9LAiZz",
"version": 2
}
Loading

0 comments on commit e7a4437

Please sign in to comment.