]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/grafana: sum pg states for cluster 32370/head
authorAleksei Zakharov <zaharov@selectel.ru>
Thu, 23 Jan 2020 16:29:57 +0000 (19:29 +0300)
committerAleksei Zakharov <zaharov@selectel.ru>
Wed, 29 Jan 2020 14:28:36 +0000 (17:28 +0300)
Also, revert table formatting.

Signed-off-by: Aleksei Zakharov <zaharov@selectel.ru>
monitoring/grafana/dashboards/ceph-cluster.json

index 93fe3372c6c503e68b436fd2d8edae9488c72139..549bb1ea2f42855fa0a4fc84d1e9e63bb92cdd09 100644 (file)
       },
       "id": 53,
       "legend": {
-        "alignAsTable": true,
         "avg": false,
         "current": false,
         "max": false,
       "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"
         }
       ],