]> git-server-git.apps.pok.os.sepia.ceph.com Git - cephmetrics.git/commitdiff
at-a-glance db: host panels for OSD and RGW hosts switched to status-panel add-host-up
authorPaul Cuzner <pcuzner@redhat.com>
Wed, 20 Sep 2017 00:00:10 +0000 (12:00 +1200)
committerPaul Cuzner <pcuzner@redhat.com>
Wed, 20 Sep 2017 00:00:10 +0000 (12:00 +1200)
Status panel now being used so the panel can show total/up and down
metrics for the host types. This up/down state is purely based on whether
collectd is getting and sending data. The count for total is based on the
number of metrics seen in the graphite backend.

dashboards/current/ceph-at-a-glance.json

index 2730adb540bbc3d129702553133c27559d8dfe50..78a159e92bce5cf224b6f8c61a2767fb81ed8a7c 100644 (file)
@@ -7,7 +7,7 @@
         "gnetId": null, 
         "graphTooltip": 0, 
         "hideControls": true, 
-        "id": 1
+        "id": 64
         "links": [
             {
                 "asDropdown": true, 
                         "type": "vonage-status-panel"
                     }, 
                     {
-                        "clusterName": "MDS", 
-                        "displayName": "MDS", 
-                        "flipCard": false, 
+                        "clusterName": "OSD Hosts", 
+                        "displayName": "OSD Hosts", 
                         "flipTime": 5, 
                         "hideTimeOverride": true, 
-                        "id": 99
+                        "id": 100
                         "links": [], 
-                        "minSpan": 1, 
-                        "namePrefix": "", 
                         "span": 1, 
                         "targets": [
                             {
                                 "aggregation": "Last", 
-                                "alias": "up", 
+                                "alias": "total", 
                                 "displayType": "Regular", 
-                                "hide": false, 
                                 "refId": "A", 
-                                "target": "alias(keepLastValue(consolidateBy(maxSeries(collectd.$mon_servers.$domain.cephmetrics.gauge.$cluster_name.mon.num_mds_up), \"max\")),\"up\")", 
+                                "target": "alias(countSeries(collectd.*.$domain.cephmetrics.gauge.$cluster_name.osd.num_osds),\"total\")", 
                                 "textEditor": true, 
                                 "valueHandler": "Text Only"
                             }, 
                             {
                                 "aggregation": "Last", 
-                                "alias": "in", 
+                                "alias": "up", 
                                 "displayType": "Regular", 
-                                "hide": false, 
-                                "refId": "E", 
-                                "target": "alias(keepLastValue(consolidateBy(maxSeries(collectd.$mon_servers.$domain.cephmetrics.gauge.$cluster_name.mon.num_mds_in), \"max\")),\"in\")", 
+                                "refId": "B", 
+                                "target": "alias(countSeries(currentAbove(collectd.*.$domain.cephmetrics.gauge.$cluster_name.osd.num_osds,0)),\"up\")", 
                                 "textEditor": true, 
                                 "valueHandler": "Text Only"
                             }, 
                                 "crit": "2", 
                                 "display": true, 
                                 "displayType": "Regular", 
-                                "hide": false
-                                "refId": "B", 
-                                "target": "alias(keepLastValue(consolidateBy(maxSeries(collectd.$mon_servers.$domain.cephmetrics.gauge.$cluster_name.mon.num_mds_failed), \"max\")),\"down\")", 
+                                "refId": "C"
+                                "target": "alias(diffSeries(#A, #B), \"down\")", 
+                                "targetFull": "alias(diffSeries(alias(countSeries(collectd.*.$domain.cephmetrics.gauge.$cluster_name.osd.num_osds),\"total\"), alias(countSeries(currentAbove(collectd.*.$domain.cephmetrics.gauge.$cluster_name.osd.num_osds,0)),\"up\")), \"down\")", 
                                 "textEditor": true, 
                                 "valueHandler": "Threshold", 
                                 "warn": "1"
                             }
                         ], 
-                        "timeFrom": "1m", 
+                        "timeFrom": "60s", 
                         "timeShift": null, 
                         "title": "", 
                         "type": "vonage-status-panel"
                     }, 
                     {
-                        "cacheTimeout": null, 
-                        "colorBackground": false, 
-                        "colorValue": false, 
-                        "colors": [
-                            "rgba(245, 54, 54, 0.9)", 
-                            "rgba(237, 129, 40, 0.89)", 
-                            "rgba(50, 172, 45, 0.97)"
-                        ], 
-                        "datasource": "Local", 
-                        "decimals": 0, 
-                        "format": "short", 
-                        "gauge": {
-                            "maxValue": 100, 
-                            "minValue": 0, 
-                            "show": false, 
-                            "thresholdLabels": false, 
-                            "thresholdMarkers": true
-                        }, 
-                        "id": 35, 
-                        "interval": null, 
-                        "links": [], 
-                        "mappingType": 1, 
-                        "mappingTypes": [
-                            {
-                                "name": "value to text", 
-                                "value": 1
-                            }, 
-                            {
-                                "name": "range to text", 
-                                "value": 2
-                            }
-                        ], 
-                        "maxDataPoints": "", 
-                        "minSpan": 1, 
-                        "nullPointMode": "connected", 
-                        "nullText": null, 
-                        "postfix": "", 
-                        "postfixFontSize": "50%", 
-                        "prefix": "", 
-                        "prefixFontSize": "50%", 
-                        "rangeMaps": [
+                        "clusterName": "RGWs", 
+                        "displayName": "RGWs", 
+                        "flipTime": 5, 
+                        "hideTimeOverride": true, 
+                        "id": 101, 
+                        "isGrayOnNoData": false, 
+                        "links": [
                             {
-                                "from": "null", 
-                                "text": "N/A", 
-                                "to": "null"
+                                "dashUri": "db/ceph-rgw-workload", 
+                                "dashboard": "Ceph RGW Workload", 
+                                "includeVars": true, 
+                                "keepTime": true, 
+                                "targetBlank": true, 
+                                "title": "Ceph RGW Workload", 
+                                "type": "dashboard"
                             }
                         ], 
                         "span": 1, 
-                        "sparkline": {
-                            "fillColor": "rgba(31, 118, 189, 0.18)", 
-                            "full": false, 
-                            "lineColor": "rgb(31, 120, 193)", 
-                            "show": false
-                        }, 
-                        "tableColumn": "", 
                         "targets": [
                             {
+                                "aggregation": "Last", 
+                                "alias": "total", 
+                                "displayType": "Regular", 
+                                "hide": true, 
                                 "refId": "A", 
-                                "target": "maxSeries(consolidateBy(collectd.*.$domain.cephmetrics.gauge.$cluster_name.mon.num_osd_hosts, \"max\"))", 
-                                "textEditor": true
-                            }
-                        ], 
-                        "thresholds": "", 
-                        "title": "OSD Hosts", 
-                        "type": "singlestat", 
-                        "valueFontSize": "80%", 
-                        "valueMaps": [
+                                "target": "constantLine(0)", 
+                                "textEditor": true, 
+                                "valueHandler": "Text Only"
+                            }, 
                             {
-                                "op": "=", 
-                                "text": "N/A", 
-                                "value": "null"
-                            }
-                        ], 
-                        "valueName": "current"
-                    }, 
-                    {
-                        "cacheTimeout": null, 
-                        "colorBackground": false, 
-                        "colorValue": false, 
-                        "colors": [
-                            "rgba(245, 54, 54, 0.9)", 
-                            "rgba(237, 129, 40, 0.89)", 
-                            "rgba(50, 172, 45, 0.97)"
-                        ], 
-                        "datasource": "Local", 
-                        "decimals": 0, 
-                        "format": "short", 
-                        "gauge": {
-                            "maxValue": 100, 
-                            "minValue": 0, 
-                            "show": false, 
-                            "thresholdLabels": false, 
-                            "thresholdMarkers": true
-                        }, 
-                        "id": 33, 
-                        "interval": null, 
-                        "links": [], 
-                        "mappingType": 1, 
-                        "mappingTypes": [
+                                "aggregation": "Last", 
+                                "displayType": "Regular", 
+                                "hide": true, 
+                                "refId": "B", 
+                                "target": "countSeries(collectd.*.$domain.cephmetrics.derive.$cluster_name.rgw.put)", 
+                                "textEditor": true, 
+                                "valueHandler": "Regular"
+                            }, 
                             {
-                                "name": "value to text", 
-                                "value": 1
+                                "aggregation": "Last", 
+                                "alias": "total", 
+                                "displayType": "Regular", 
+                                "hide": false, 
+                                "refId": "C", 
+                                "target": "alias(limit(sortByMaxima(group(#A,#B)),1),\"total\")", 
+                                "targetFull": "alias(limit(sortByMaxima(group(constantLine(0),countSeries(collectd.*.$domain.cephmetrics.derive.$cluster_name.rgw.put))),1),\"total\")", 
+                                "textEditor": true, 
+                                "valueHandler": "Text Only"
                             }, 
                             {
-                                "name": "range to text", 
-                                "value": 2
-                            }
-                        ], 
-                        "maxDataPoints": "", 
-                        "minSpan": 1, 
-                        "nullPointMode": "connected", 
-                        "nullText": null, 
-                        "postfix": "", 
-                        "postfixFontSize": "50%", 
-                        "prefix": "", 
-                        "prefixFontSize": "50%", 
-                        "rangeMaps": [
+                                "displayType": "Regular", 
+                                "hide": true, 
+                                "refId": "D", 
+                                "target": "countSeries(currentAbove(collectd.*.$domain.cephmetrics.derive.$cluster_name.rgw.put,0))", 
+                                "textEditor": true, 
+                                "valueHandler": "Regular"
+                            }, 
                             {
-                                "from": "null", 
-                                "text": "N/A", 
-                                "to": "null"
+                                "aggregation": "Last", 
+                                "alias": "up", 
+                                "displayType": "Regular", 
+                                "hide": false, 
+                                "refId": "E", 
+                                "target": "alias(limit(sortByMaxima(group(#A,#D)),1), \"up\")", 
+                                "targetFull": "alias(limit(sortByMaxima(group(constantLine(0),countSeries(currentAbove(collectd.*.$domain.cephmetrics.derive.$cluster_name.rgw.put,0)))),1), \"up\")", 
+                                "textEditor": true, 
+                                "valueHandler": "Text Only"
+                            }, 
+                            {
+                                "aggregation": "Last", 
+                                "alias": "down", 
+                                "crit": "6", 
+                                "display": true, 
+                                "displayType": "Regular", 
+                                "hide": false, 
+                                "refId": "F", 
+                                "target": "alias(diffSeries(#B,#D),\"down\")", 
+                                "targetFull": "alias(diffSeries(countSeries(collectd.*.$domain.cephmetrics.derive.$cluster_name.rgw.put),countSeries(currentAbove(collectd.*.$domain.cephmetrics.derive.$cluster_name.rgw.put,0))),\"down\")", 
+                                "textEditor": true, 
+                                "url": "dashboard/db/ceph-rgw-workload", 
+                                "valueHandler": "Threshold", 
+                                "warn": "1"
                             }
                         ], 
+                        "timeFrom": "60s", 
+                        "timeShift": null, 
+                        "title": "", 
+                        "transparent": false, 
+                        "type": "vonage-status-panel"
+                    }, 
+                    {
+                        "clusterName": "MDS", 
+                        "displayName": "MDS", 
+                        "flipCard": false, 
+                        "flipTime": 5, 
+                        "hideTimeOverride": true, 
+                        "id": 99, 
+                        "links": [], 
+                        "minSpan": 1, 
+                        "namePrefix": "", 
                         "span": 1, 
-                        "sparkline": {
-                            "fillColor": "rgba(31, 118, 189, 0.18)", 
-                            "full": false, 
-                            "lineColor": "rgb(31, 120, 193)", 
-                            "show": false
-                        }, 
-                        "tableColumn": "", 
                         "targets": [
                             {
+                                "aggregation": "Last", 
+                                "alias": "up", 
+                                "displayType": "Regular", 
+                                "hide": false, 
                                 "refId": "A", 
-                                "target": "countSeries(collectd.*.$domain.cephmetrics.derive.$cluster_name.rgw.put)", 
-                                "textEditor": true
-                            }
-                        ], 
-                        "thresholds": "", 
-                        "title": "RGW Hosts", 
-                        "type": "singlestat", 
-                        "valueFontSize": "80%", 
-                        "valueMaps": [
+                                "target": "alias(keepLastValue(consolidateBy(maxSeries(collectd.$mon_servers.$domain.cephmetrics.gauge.$cluster_name.mon.num_mds_up), \"max\")),\"up\")", 
+                                "textEditor": true, 
+                                "valueHandler": "Text Only"
+                            }, 
                             {
-                                "op": "=", 
-                                "text": "0", 
-                                "value": "null"
+                                "aggregation": "Last", 
+                                "alias": "in", 
+                                "displayType": "Regular", 
+                                "hide": false, 
+                                "refId": "E", 
+                                "target": "alias(keepLastValue(consolidateBy(maxSeries(collectd.$mon_servers.$domain.cephmetrics.gauge.$cluster_name.mon.num_mds_in), \"max\")),\"in\")", 
+                                "textEditor": true, 
+                                "valueHandler": "Text Only"
+                            }, 
+                            {
+                                "aggregation": "Last", 
+                                "alias": "down", 
+                                "crit": "2", 
+                                "display": true, 
+                                "displayType": "Regular", 
+                                "hide": false, 
+                                "refId": "B", 
+                                "target": "alias(keepLastValue(consolidateBy(maxSeries(collectd.$mon_servers.$domain.cephmetrics.gauge.$cluster_name.mon.num_mds_failed), \"max\")),\"down\")", 
+                                "textEditor": true, 
+                                "valueHandler": "Threshold", 
+                                "warn": "1"
                             }
                         ], 
-                        "valueName": "current"
+                        "timeFrom": "1m", 
+                        "timeShift": null, 
+                        "title": "", 
+                        "type": "vonage-status-panel"
                     }, 
                     {
                         "cacheTimeout": null, 
                 {
                     "allValue": null, 
                     "current": {
-                        "text": "front.sepia.ceph.com", 
-                        "value": "front.sepia.ceph.com"
+                        "text": "storage.lab", 
+                        "value": "storage.lab"
                     }, 
                     "hide": 2, 
                     "includeAll": false, 
                     "options": [
                         {
                             "selected": true, 
-                            "text": "front.sepia.ceph.com", 
-                            "value": "front.sepia.ceph.com"
+                            "text": "storage.lab", 
+                            "value": "storage.lab"
                         }
                     ], 
-                    "query": "front.sepia.ceph.com", 
+                    "query": "storage.lab", 
                     "type": "custom"
                 }, 
                 {
                         }, 
                         {
                             "selected": false, 
-                            "text": "mira019", 
-                            "value": "mira019"
-                        }, 
-                        {
-                            "selected": false, 
-                            "text": "mira021", 
-                            "value": "mira021"
-                        }, 
-                        {
-                            "selected": false, 
-                            "text": "mira031", 
-                            "value": "mira031"
+                            "text": "obj-osd-1", 
+                            "value": "obj-osd-1"
                         }, 
                         {
                             "selected": false, 
-                            "text": "mira049", 
-                            "value": "mira049"
+                            "text": "obj-osd-2", 
+                            "value": "obj-osd-2"
                         }, 
                         {
                             "selected": false, 
-                            "text": "mira055", 
-                            "value": "mira055"
-                        }, 
-                        {
-                            "selected": false, 
-                            "text": "mira060", 
-                            "value": "mira060"
-                        }, 
-                        {
-                            "selected": false, 
-                            "text": "mira070", 
-                            "value": "mira070"
-                        }, 
-                        {
-                            "selected": false, 
-                            "text": "mira076", 
-                            "value": "mira076"
-                        }, 
-                        {
-                            "selected": false, 
-                            "text": "mira087", 
-                            "value": "mira087"
-                        }, 
-                        {
-                            "selected": false, 
-                            "text": "mira093", 
-                            "value": "mira093"
-                        }, 
-                        {
-                            "selected": false, 
-                            "text": "mira099", 
-                            "value": "mira099"
-                        }, 
-                        {
-                            "selected": false, 
-                            "text": "mira116", 
-                            "value": "mira116"
-                        }, 
-                        {
-                            "selected": false, 
-                            "text": "mira120", 
-                            "value": "mira120"
-                        }, 
-                        {
-                            "selected": false, 
-                            "text": "mira122", 
-                            "value": "mira122"
-                        }, 
-                        {
-                            "selected": false, 
-                            "text": "apama002", 
-                            "value": "apama002"
+                            "text": "obj-osd-3", 
+                            "value": "obj-osd-3"
                         }
                     ], 
-                    "query": "mira019,mira021,mira031,mira049,mira055,mira060,mira070,mira076,mira087,mira093,mira099,mira116,mira120,mira122,apama002", 
+                    "query": "obj-osd-1,obj-osd-2,obj-osd-3", 
                     "type": "custom"
                 }, 
                 {
                     "allValue": null, 
                     "current": {
-                        "selected": true, 
-                        "text": "All", 
-                        "value": "$__all"
+                        "text": "obj-rgw-1", 
+                        "value": "obj-rgw-1"
                     }, 
                     "hide": 2, 
                     "includeAll": false, 
                     "options": [
                         {
                             "selected": true, 
-                            "text": "All", 
-                            "value": "$__all"
+                            "text": "obj-rgw-1", 
+                            "value": "obj-rgw-1"
                         }
                     ], 
-                    "query": "", 
+                    "query": "obj-rgw-1", 
                     "type": "custom"
                 }, 
                 {
         }, 
         "timezone": "browser", 
         "title": "Ceph - At A Glance", 
-        "version": 80
+        "version": 12
     }, 
     "meta": {
         "canEdit": true, 
         "canSave": true, 
         "canStar": true, 
-        "created": "2017-09-05T14:36:14-04:00", 
-        "createdBy": "admin", 
+        "created": "2017-09-19T01:06:14Z", 
+        "createdBy": "admin@localhost", 
         "expires": "0001-01-01T00:00:00Z", 
         "isStarred": true, 
         "slug": "ceph-at-a-glance", 
         "type": "db", 
-        "updated": "2017-09-12T15:16:24-04:00", 
-        "updatedBy": "admin", 
-        "version": 80
+        "updated": "2017-09-19T21:51:03Z", 
+        "updatedBy": "admin@localhost", 
+        "version": 12
     }
 }
\ No newline at end of file