Skip to content

Commit

Permalink
mgr/grafana: sum pg states for cluster
Browse files Browse the repository at this point in the history
Also, revert table formatting.

Signed-off-by: Aleksei Zakharov <[email protected]>
  • Loading branch information
AlexZzz committed Jan 29, 2020
1 parent 4eb58f7 commit a37cf38
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions monitoring/grafana/dashboards/ceph-cluster.json
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,6 @@
},
"id": 53,
"legend": {
"alignAsTable": true,
"avg": false,
"current": false,
"max": false,
Expand Down Expand Up @@ -403,52 +402,52 @@
"steppedLine": false,
"targets": [
{
"expr": "ceph_pool_metadata * on(pool_id,instance) group_left() (ceph_pg_total)",
"expr": "sum(ceph_pg_total)",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{name}} Total",
"legendFormat": "Total",
"refId": "A"
},
{
"expr": "ceph_pool_metadata * on(pool_id,instance) group_left() (ceph_pg_active)",
"expr": "sum(ceph_pg_active)",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{name}} Active",
"legendFormat": "Active",
"refId": "B"
},
{
"expr": "ceph_pool_metadata * on(pool_id,instance) group_left() (ceph_pg_total - ceph_pg_active)",
"expr": "sum(ceph_pg_total - ceph_pg_active)",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{name}} Inactive",
"legendFormat": "Inactive",
"refId": "G"
},
{
"expr": "ceph_pool_metadata * on(pool_id,instance) group_left() (ceph_pg_undersized)",
"expr": "sum(ceph_pg_undersized)",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{name}} Undersized",
"legendFormat": "Undersized",
"refId": "F"
},
{
"expr": "ceph_pool_metadata * on(pool_id,instance) group_left() (ceph_pg_degraded)",
"expr": "sum(ceph_pg_degraded)",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{name}} Degraded",
"legendFormat": "Degraded",
"refId": "C"
},
{
"expr": "ceph_pool_metadata * on(pool_id,instance) group_left() (ceph_pg_inconsistent)",
"expr": "sum(ceph_pg_inconsistent)",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{name}} Inconsistent",
"legendFormat": "Inconsistent",
"refId": "D"
},
{
"expr": "ceph_pool_metadata * on(pool_id,instance) group_left() (ceph_pg_down)",
"expr": "sum(ceph_pg_down)",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{name}} Down",
"legendFormat": "Down",
"refId": "E"
}
],
Expand Down

0 comments on commit a37cf38

Please sign in to comment.