From c0db06dd69ba63b28a2bad93e571211ae7510d8e Mon Sep 17 00:00:00 2001 From: Brad Klein Date: Fri, 16 Jun 2017 09:59:34 -0600 Subject: [PATCH] Add some dashboard examples Change-Id: I697bfc0324ab65010a4956ca2297c1ebc738acd8 --- examples/README.txt | 7 + examples/active_routers.json | 181 +++ examples/customer_compute_breakdown.json | 867 ++++++++++++ .../customer_default_project_dashboard.json | 1070 +++++++++++++++ examples/mysql_performance.json | 971 +++++++++++++ examples/node_activity.json | 1212 +++++++++++++++++ examples/rabbitmq_activity.json | 764 +++++++++++ examples/solidfire_overview.json | 712 ++++++++++ examples/vertica_resource_pools.json | 842 ++++++++++++ 9 files changed, 6626 insertions(+) create mode 100644 examples/README.txt create mode 100644 examples/active_routers.json create mode 100644 examples/customer_compute_breakdown.json create mode 100644 examples/customer_default_project_dashboard.json create mode 100644 examples/mysql_performance.json create mode 100644 examples/node_activity.json create mode 100644 examples/rabbitmq_activity.json create mode 100644 examples/solidfire_overview.json create mode 100644 examples/vertica_resource_pools.json diff --git a/examples/README.txt b/examples/README.txt new file mode 100644 index 0000000..f489911 --- /dev/null +++ b/examples/README.txt @@ -0,0 +1,7 @@ +The json files in this directory are meant to be a starting point for useful +dashboards, but may require modification to work in various enviroments. Some +values that may likely need changing: + +1. Region (many have templated values of 'NCW' and 'NCE') +2. Tags (if tags are used, may need to change to fit your environment) +3. Data source (most assume monasca-grafana-datasource as datasource name) diff --git a/examples/active_routers.json b/examples/active_routers.json new file mode 100644 index 0000000..7e0acc0 --- /dev/null +++ b/examples/active_routers.json @@ -0,0 +1,181 @@ +{ + "id": 5601, + "title": "Active Routers", + "tags": [ + "router" + ], + "style": "dark", + "timezone": "browser", + "editable": true, + "sharedCrosshair": false, + "hideControls": false, + "time": { + "from": "now-24h", + "to": "now" + }, + "timepicker": { + "refresh_intervals": [ + "5s", + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ], + "time_options": [ + "5m", + "15m", + "1h", + "6h", + "12h", + "24h", + "2d", + "7d", + "30d" + ] + }, + "templating": { + "list": [ + { + "allValue": null, + "current": { + "tags": [], + "text": "NCE", + "value": "NCE" + }, + "hide": 0, + "includeAll": false, + "label": null, + "multi": false, + "name": "region", + "options": [ + { + "selected": false, + "text": "NCW", + "value": "NCW" + }, + { + "selected": true, + "text": "NCE", + "value": "NCE" + } + ], + "query": "NCW,NCE", + "type": "custom" + } + ] + }, + "annotations": { + "list": [] + }, + "schemaVersion": 13, + "version": 3, + "links": [], + "gnetId": null, + "rows": [ + { + "collapse": false, + "height": "250px", + "isNew": false, + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "editable": true, + "error": false, + "fill": 1, + "id": 1, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "hideZero": true, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 12, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "alias": "@hostname", + "dimensions": [ + { + "key": "hostname", + "value": "$all" + }, + { + "key": "region", + "value": "$region" + } + ], + "error": "", + "metric": "ovs.vrouter.active_routers", + "period": "300", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Active Routers", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + } + ], + "repeat": null, + "repeatIteration": null, + "repeatRowId": null, + "showTitle": false, + "title": "Dashboard Row", + "titleSize": "h6" + } + ] +} diff --git a/examples/customer_compute_breakdown.json b/examples/customer_compute_breakdown.json new file mode 100644 index 0000000..d4e77fb --- /dev/null +++ b/examples/customer_compute_breakdown.json @@ -0,0 +1,867 @@ +{ + "id": 5007, + "title": "Customer Compute Breakdown", + "description": "", + "tags": [ + "drilldown" + ], + "style": "dark", + "timezone": "utc", + "editable": true, + "sharedCrosshair": false, + "hideControls": false, + "time": { + "from": "now-24h", + "to": "now" + }, + "timepicker": { + "refresh_intervals": [ + "5s", + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ], + "time_options": [ + "5m", + "15m", + "1h", + "6h", + "12h", + "24h", + "2d", + "7d", + "30d" + ] + }, + "templating": { + "list": [ + { + "current": { + "tags": [], + "text": "$hostname", + "value": "$hostname" + }, + "datasource": null, + "hide": 0, + "includeAll": false, + "label": "", + "multi": false, + "name": "hostname", + "options": [ + { + "selected": true, + "text": "$hostname", + "value": "$hostname" + } + ], + "query": "$hostname", + "refresh": 0, + "regex": "/-compute-/", + "type": "constant" + } + ] + }, + "annotations": { + "list": [] + }, + "schemaVersion": 13, + "version": 32, + "links": [], + "gnetId": null, + "rows": [ + { + "collapse": false, + "editable": true, + "height": "25px", + "isNew": false, + "panels": [ + { + "content": "To use this dashboard, select the hostname drop down and type the name of the node to view.", + "editable": true, + "error": false, + "id": 9, + "isNew": true, + "links": [], + "mode": "text", + "span": 12, + "title": "", + "type": "text" + } + ], + "repeat": null, + "repeatIteration": null, + "repeatRowId": null, + "showTitle": false, + "title": "New row", + "titleSize": "h6" + }, + { + "collapse": false, + "editable": true, + "height": "250px", + "isNew": false, + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "editable": true, + "error": false, + "fill": 1, + "grid": {}, + "id": 1, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "dimensions": [ + { + "key": "hostname", + "value": "$hostname" + } + ], + "error": "", + "group": true, + "metric": "cpu.user_perc", + "period": "300", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "CPU Utilization", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "percent", + "label": null, + "logBase": 1, + "max": null, + "min": 0, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "editable": true, + "error": false, + "fill": 1, + "grid": {}, + "id": 5, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "alias": "@vm_name (@tenant_name)", + "dimensions": [ + { + "key": "hostname", + "value": "$hostname" + } + ], + "error": "", + "group": true, + "metric": "vm.cpu.utilization_perc", + "period": "300", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Customer CPU Utilization", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "percent", + "label": null, + "logBase": 1, + "max": null, + "min": 0, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + } + ], + "repeat": null, + "repeatIteration": null, + "repeatRowId": null, + "showTitle": false, + "title": "Row", + "titleSize": "h6" + }, + { + "collapse": false, + "editable": true, + "height": "250px", + "isNew": false, + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "editable": true, + "error": false, + "fill": 1, + "grid": {}, + "id": 2, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "dimensions": [ + { + "key": "hostname", + "value": "$hostname" + } + ], + "error": "", + "group": true, + "metric": "mem.used_real_mb", + "period": "300", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Memory Used", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "mbytes", + "label": null, + "logBase": 1, + "max": null, + "min": 0, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "editable": true, + "error": false, + "fill": 1, + "grid": {}, + "id": 6, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "alias": "@vm_name (@tenant_name)", + "dimensions": [ + { + "key": "hostname", + "value": "$hostname" + } + ], + "error": "", + "group": true, + "metric": "vm.mem.used_mb", + "period": "300", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Customer Memory Used", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "mbytes", + "label": null, + "logBase": 1, + "max": null, + "min": 0, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + } + ], + "repeat": null, + "repeatIteration": null, + "repeatRowId": null, + "showTitle": false, + "title": "New row", + "titleSize": "h6" + }, + { + "collapse": false, + "editable": true, + "height": "250px", + "isNew": false, + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "editable": true, + "error": false, + "fill": 1, + "grid": {}, + "id": 4, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "dimensions": [ + { + "key": "hostname", + "value": "$hostname" + }, + { + "key": "device", + "value": "bond1" + } + ], + "error": "", + "group": true, + "metric": "net.in_bits_sec", + "period": "300", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Net In (Bond 1)", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "bps", + "label": null, + "logBase": 1, + "max": null, + "min": 0, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "editable": true, + "error": false, + "fill": 1, + "grid": {}, + "id": 8, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "alias": "instance: @vm_name (@tenant_name)", + "dimensions": [ + { + "key": "hostname", + "value": "$hostname" + } + ], + "error": "", + "group": true, + "metric": "vm.net.in_bits_sec", + "period": "300", + "refId": "A" + }, + { + "aggregator": "avg", + "alias": "router: @router_name (@tenant_name)", + "dimensions": [ + { + "key": "hostname", + "value": "$hostname" + } + ], + "error": "", + "group": true, + "metric": "ovs.vrouter.in_bits_sec", + "period": "300", + "refId": "B" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Customer Net In", + "tooltip": { + "msResolution": false, + "shared": false, + "sort": 1, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "bps", + "label": null, + "logBase": 1, + "max": null, + "min": 0, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + } + ], + "repeat": null, + "repeatIteration": null, + "repeatRowId": null, + "showTitle": false, + "title": "New row", + "titleSize": "h6" + }, + { + "collapse": false, + "editable": true, + "height": "250px", + "isNew": false, + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "editable": true, + "error": false, + "fill": 1, + "grid": {}, + "id": 3, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "dimensions": [ + { + "key": "hostname", + "value": "$hostname" + }, + { + "key": "device", + "value": "bond1" + } + ], + "error": "", + "group": true, + "metric": "net.out_bits_sec", + "period": "300", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Net Out (Bond 1)", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "bps", + "label": null, + "logBase": 1, + "max": null, + "min": 0, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "editable": true, + "error": false, + "fill": 1, + "grid": {}, + "id": 7, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "alias": "instance: @vm_name (@tenant_name)", + "dimensions": [ + { + "key": "hostname", + "value": "$hostname" + } + ], + "error": "", + "group": true, + "metric": "vm.net.out_bits_sec", + "period": "300", + "refId": "A" + }, + { + "aggregator": "avg", + "alias": "router: @router_name (@tenant_name)", + "dimensions": [ + { + "key": "hostname", + "value": "$hostname" + } + ], + "error": "", + "group": true, + "metric": "ovs.vrouter.out_bits_sec", + "period": "300", + "refId": "B" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Customer Net Out", + "tooltip": { + "msResolution": false, + "shared": false, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "bps", + "label": null, + "logBase": 1, + "max": null, + "min": 0, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + } + ], + "repeat": null, + "repeatIteration": null, + "repeatRowId": null, + "showTitle": false, + "title": "New row", + "titleSize": "h6" + } + ] +} diff --git a/examples/customer_default_project_dashboard.json b/examples/customer_default_project_dashboard.json new file mode 100644 index 0000000..49ac954 --- /dev/null +++ b/examples/customer_default_project_dashboard.json @@ -0,0 +1,1070 @@ +{ + "__inputs": [ + { + "name": "DS_MONASCA", + "label": "Monasca", + "description": "", + "type": "datasource", + "pluginId": "monasca-grafana-datasource", + "pluginName": "Monasca" + } + ], + "__requires": [ + { + "type": "panel", + "id": "graph", + "name": "Graph", + "version": "" + }, + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "4.0.0-beta1" + }, + { + "type": "datasource", + "id": "monasca-grafana-datasource", + "name": "Monasca", + "version": "1.0.0" + } + ], + "id": null, + "title": "Customer Default Project Dashboard", + "tags": [ + "project" + ], + "style": "dark", + "timezone": "utc", + "editable": true, + "sharedCrosshair": false, + "hideControls": false, + "time": { + "from": "now-1d", + "to": "now" + }, + "timepicker": { + "refresh_intervals": [ + "5s", + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ], + "time_options": [ + "5m", + "15m", + "1h", + "6h", + "12h", + "24h", + "2d", + "7d", + "30d" + ] + }, + "templating": { + "list": [ + { + "allFormat": "glob", + "current": { + "selected": true, + "text": "NCE", + "value": "NCE" + }, + "datasource": null, + "hide": 0, + "includeAll": false, + "multi": false, + "multiFormat": "glob", + "name": "region", + "options": [ + { + "selected": true, + "text": "NCE", + "value": "NCE" + }, + { + "selected": false, + "text": "NCW", + "value": "NCW" + } + ], + "query": "NCE,NCW", + "refresh": 0, + "type": "custom", + "label": "", + "allValue": null + }, + { + "current": {}, + "datasource": "${DS_MONASCA}", + "hide": 0, + "includeAll": false, + "multi": false, + "name": "tenant", + "options": [], + "query": "tenant_id", + "refresh": 1, + "type": "query", + "label": null, + "regex": "", + "sort": 0, + "allValue": null, + "tagsQuery": null, + "tagValuesQuery": null + } + ] + }, + "annotations": { + "list": [] + }, + "schemaVersion": 13, + "version": 7, + "links": [], + "gnetId": null, + "rows": [ + { + "collapse": false, + "editable": true, + "height": "250px", + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": "${DS_MONASCA}", + "editable": true, + "error": false, + "fill": 1, + "grid": {}, + "id": 1, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "alias": "@resource_id", + "dimensions": [ + { + "key": "hostname", + "value": "$all" + }, + { + "key": "region", + "value": "$region" + }, + { + "key": "tenant_id", + "value": "$tenant" + } + ], + "error": "", + "errors": {}, + "group": true, + "metric": "vm.cpu.utilization_perc", + "period": "300", + "refId": "A" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "CPU Utilization", + "tooltip": { + "msResolution": false, + "ordering": "alphabetical", + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "show": true, + "mode": "time", + "name": null, + "values": [] + }, + "yaxes": [ + { + "format": "percent", + "logBase": 1, + "max": null, + "min": 0, + "show": true + }, + { + "format": "short", + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "thresholds": [] + }, + { + "aliasColors": {}, + "bars": false, + "datasource": "${DS_MONASCA}", + "editable": true, + "error": false, + "fill": 1, + "grid": {}, + "id": 2, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "alias": "@resource_id", + "dimensions": [ + { + "key": "hostname", + "value": "$all" + }, + { + "key": "region", + "value": "$region" + }, + { + "key": "tenant_id", + "value": "$tenant" + } + ], + "error": "", + "errors": {}, + "group": true, + "metric": "vm.mem.used_mb", + "period": "300", + "refId": "A" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Memory Utilization", + "tooltip": { + "msResolution": false, + "ordering": "alphabetical", + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "show": true, + "mode": "time", + "name": null, + "values": [] + }, + "yaxes": [ + { + "format": "mbytes", + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "thresholds": [] + } + ], + "title": "Row", + "showTitle": false, + "titleSize": "h6", + "isNew": false, + "repeat": null, + "repeatRowId": null, + "repeatIteration": null + }, + { + "collapse": false, + "editable": true, + "height": "250px", + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": "${DS_MONASCA}", + "editable": true, + "error": false, + "fill": 1, + "grid": {}, + "id": 3, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "alias": "@resource_id out", + "dimensions": [ + { + "key": "hostname", + "value": "$all" + }, + { + "key": "region", + "value": "$region" + }, + { + "key": "tenant_id", + "value": "$tenant" + } + ], + "error": "", + "errors": {}, + "group": true, + "metric": "vm.net.out_bits_sec", + "period": "300", + "refId": "A" + }, + { + "aggregator": "avg", + "alias": "@resource_id in", + "dimensions": [ + { + "key": "hostname", + "value": "$all" + }, + { + "key": "region", + "value": "$region" + }, + { + "key": "tenant_id", + "value": "$tenant" + } + ], + "error": "", + "errors": {}, + "group": true, + "metric": "vn.net.in_bits_sec", + "period": "300", + "refId": "B" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Network Utilization", + "tooltip": { + "msResolution": false, + "ordering": "alphabetical", + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "show": true, + "mode": "time", + "name": null, + "values": [] + }, + "yaxes": [ + { + "format": "bps", + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "thresholds": [] + }, + { + "aliasColors": {}, + "bars": false, + "datasource": "${DS_MONASCA}", + "editable": true, + "error": false, + "fill": 1, + "grid": {}, + "id": 4, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "alias": "@resource_id write", + "dimensions": [ + { + "key": "hostname", + "value": "$all" + }, + { + "key": "region", + "value": "$region" + }, + { + "key": "tenant_id", + "value": "$tenant" + } + ], + "error": "", + "errors": {}, + "group": true, + "metric": "vm.io.write_bytes_sec", + "period": "300", + "refId": "A" + }, + { + "aggregator": "avg", + "alias": "@resource_id read", + "dimensions": [ + { + "key": "hostname", + "value": "$all" + }, + { + "key": "region", + "value": "$region" + }, + { + "key": "tenant_id", + "value": "$tenant" + } + ], + "error": "", + "errors": {}, + "group": true, + "metric": "vm.io.read_bytes_sec", + "period": "300", + "refId": "B" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Disk Utilization", + "tooltip": { + "msResolution": false, + "ordering": "alphabetical", + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "show": true, + "mode": "time", + "name": null, + "values": [] + }, + "yaxes": [ + { + "format": "Bps", + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "thresholds": [] + } + ], + "title": "New row", + "showTitle": false, + "titleSize": "h6", + "isNew": false, + "repeat": null, + "repeatRowId": null, + "repeatIteration": null + }, + { + "collapse": false, + "editable": true, + "height": "250px", + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": "${DS_MONASCA}", + "editable": true, + "error": false, + "fill": 1, + "grid": {}, + "id": 7, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "alias": "@resource_id in", + "dimensions": [ + { + "key": "router_name", + "value": "$all" + }, + { + "key": "region", + "value": "$region" + }, + { + "key": "tenant_id", + "value": "$tenant" + } + ], + "error": "", + "errors": {}, + "group": true, + "metric": "ovs.vrouter.in_packets_sec", + "period": "300", + "refId": "A" + }, + { + "aggregator": "avg", + "alias": "@resource_id out", + "dimensions": [ + { + "key": "router_name", + "value": "$all" + }, + { + "key": "region", + "value": "$region" + }, + { + "key": "tenant_id", + "value": "$tenant" + } + ], + "error": "", + "errors": {}, + "group": true, + "metric": "ovs.vrouter.out_packets_sec", + "period": "300", + "refId": "B" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Router Packets", + "tooltip": { + "msResolution": false, + "ordering": "alphabetical", + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "show": true, + "mode": "time", + "name": null, + "values": [] + }, + "yaxes": [ + { + "format": "pps", + "label": "", + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "thresholds": [] + }, + { + "aliasColors": {}, + "bars": false, + "datasource": "${DS_MONASCA}", + "editable": true, + "error": false, + "fill": 1, + "grid": {}, + "id": 5, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "alias": "@resource_id in", + "dimensions": [ + { + "key": "router_name", + "value": "$all" + }, + { + "key": "region", + "value": "$region" + }, + { + "key": "tenant_id", + "value": "$tenant" + } + ], + "error": "", + "errors": {}, + "group": true, + "metric": "ovs.vrouter.in_bits_sec", + "period": "300", + "refId": "A" + }, + { + "aggregator": "avg", + "alias": "@resource_id out", + "dimensions": [ + { + "key": "router_name", + "value": "$all" + }, + { + "key": "region", + "value": "$region" + }, + { + "key": "tenant_id", + "value": "$tenant" + } + ], + "error": "", + "errors": {}, + "group": true, + "metric": "ovs.vrouter.out_bits_sec", + "period": "300", + "refId": "B" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Router Bandwidth", + "tooltip": { + "msResolution": false, + "ordering": "alphabetical", + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "show": true, + "mode": "time", + "name": null, + "values": [] + }, + "yaxes": [ + { + "format": "bps", + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "thresholds": [] + } + ], + "title": "New row", + "showTitle": false, + "titleSize": "h6", + "isNew": false, + "repeat": null, + "repeatRowId": null, + "repeatIteration": null + }, + { + "collapse": false, + "editable": true, + "height": "250px", + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": "${DS_MONASCA}", + "editable": true, + "error": false, + "fill": 1, + "grid": {}, + "id": 6, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "alias": "@resource_id out", + "dimensions": [ + { + "key": "router_name", + "value": "$all" + }, + { + "key": "region", + "value": "$region" + }, + { + "key": "tenant_id", + "value": "$tenant" + } + ], + "error": "", + "errors": {}, + "group": true, + "metric": "ovs.vrouter.out_dropped_sec", + "period": "300", + "refId": "A" + }, + { + "aggregator": "avg", + "alias": "@resource_id in", + "dimensions": [ + { + "key": "router_name", + "value": "$all" + }, + { + "key": "region", + "value": "$region" + }, + { + "key": "tenant_id", + "value": "$tenant" + } + ], + "error": "", + "errors": {}, + "group": true, + "metric": "ovs.vrouter.in_dropped_sec", + "period": "300", + "refId": "B" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Router Dropped Packets", + "tooltip": { + "msResolution": false, + "ordering": "alphabetical", + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "show": true, + "mode": "time", + "name": null, + "values": [] + }, + "yaxes": [ + { + "format": "pps", + "logBase": 1, + "max": null, + "min": 0, + "show": true + }, + { + "format": "short", + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "thresholds": [] + }, + { + "aliasColors": {}, + "bars": false, + "datasource": "${DS_MONASCA}", + "editable": true, + "error": false, + "fill": 1, + "grid": {}, + "id": 8, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "alias": "@resource_id in", + "dimensions": [ + { + "key": "router_name", + "value": "$all" + }, + { + "key": "region", + "value": "$region" + }, + { + "key": "tenant_id", + "value": "$tenant" + } + ], + "error": "", + "errors": {}, + "group": true, + "metric": "ovs.vrouter.in_errors_sec", + "period": "300", + "refId": "A" + }, + { + "aggregator": "avg", + "alias": "@resource_id out", + "dimensions": [ + { + "key": "router_name", + "value": "$all" + }, + { + "key": "region", + "value": "$region" + }, + { + "key": "tenant_id", + "value": "$tenant" + } + ], + "error": "", + "errors": {}, + "group": true, + "metric": "ovs.vrouter.out_errors_sec", + "period": "300", + "refId": "B" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Router Errors/Second", + "tooltip": { + "msResolution": true, + "ordering": "alphabetical", + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "show": true, + "mode": "time", + "name": null, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "logBase": 1, + "max": null, + "min": 0, + "show": true + }, + { + "format": "short", + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "thresholds": [] + } + ], + "title": "New row", + "showTitle": false, + "titleSize": "h6", + "isNew": false, + "repeat": null, + "repeatRowId": null, + "repeatIteration": null + } + ] +} diff --git a/examples/mysql_performance.json b/examples/mysql_performance.json new file mode 100644 index 0000000..e5477ce --- /dev/null +++ b/examples/mysql_performance.json @@ -0,0 +1,971 @@ +{ + "__inputs": [ + { + "name": "DS_MONASCA", + "label": "Monasca", + "description": "", + "type": "datasource", + "pluginId": "monasca-grafana-datasource", + "pluginName": "Monasca" + } + ], + "__requires": [ + { + "type": "panel", + "id": "graph", + "name": "Graph", + "version": "" + }, + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "4.0.0-beta1" + }, + { + "type": "datasource", + "id": "monasca-grafana-datasource", + "name": "Monasca", + "version": "1.0.0" + } + ], + "id": null, + "title": "Mysql - Performance", + "tags": [ + "mysql" + ], + "style": "dark", + "timezone": "browser", + "editable": true, + "sharedCrosshair": false, + "hideControls": false, + "time": { + "from": "now-6h", + "to": "now" + }, + "timepicker": { + "refresh_intervals": [ + "5s", + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ], + "time_options": [ + "5m", + "15m", + "1h", + "6h", + "12h", + "24h", + "2d", + "7d", + "30d" + ] + }, + "templating": { + "list": [ + { + "current": { + "tags": [], + "text": "All", + "value": "$__all" + }, + "datasource": null, + "hide": 0, + "includeAll": true, + "multi": false, + "name": "region", + "options": [ + { + "selected": true, + "text": "All", + "value": "$__all" + }, + { + "selected": false, + "text": "NCE", + "value": "NCE" + }, + { + "selected": false, + "text": "NCW", + "value": "NCW" + } + ], + "query": "NCE,NCW", + "refresh": 0, + "type": "custom", + "label": "", + "allValue": null + }, + { + "current": { + "tags": [], + "text": "keystone", + "value": "keystone" + }, + "datasource": null, + "hide": 0, + "includeAll": false, + "multi": false, + "name": "hostrole", + "options": [ + { + "selected": true, + "text": "keystone", + "value": "keystone" + }, + { + "selected": false, + "text": "control", + "value": "control" + } + ], + "query": "keystone,control", + "refresh": 0, + "type": "custom", + "label": "", + "allValue": null + }, + { + "auto": true, + "auto_count": 100, + "current": { + "text": "auto", + "value": "$__auto_interval" + }, + "datasource": null, + "hide": 0, + "includeAll": false, + "multi": false, + "name": "interval", + "options": [ + { + "text": "auto", + "value": "$__auto_interval", + "selected": true + }, + { + "text": "1m", + "value": "1m", + "selected": false + }, + { + "text": "10m", + "value": "10m", + "selected": false + }, + { + "text": "30m", + "value": "30m", + "selected": false + }, + { + "text": "1h", + "value": "1h", + "selected": false + }, + { + "text": "6h", + "value": "6h", + "selected": false + }, + { + "text": "12h", + "value": "12h", + "selected": false + }, + { + "text": "1d", + "value": "1d", + "selected": false + }, + { + "text": "7d", + "value": "7d", + "selected": false + }, + { + "text": "14d", + "value": "14d", + "selected": false + }, + { + "text": "30d", + "value": "30d", + "selected": false + } + ], + "query": "1m,10m,30m,1h,6h,12h,1d,7d,14d,30d", + "refresh": 2, + "type": "interval", + "label": "", + "auto_min": "10s" + } + ] + }, + "annotations": { + "list": [] + }, + "schemaVersion": 13, + "version": 8, + "links": [], + "gnetId": null, + "rows": [ + { + "collapse": false, + "editable": true, + "height": "250px", + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": "${DS_MONASCA}", + "editable": true, + "error": false, + "fill": 1, + "grid": {}, + "id": 1, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": "region", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "alias": "@hostname", + "dimensions": [ + { + "key": "region", + "value": "$region" + }, + { + "key": "hostrole", + "value": "$hostrole" + }, + { + "key": "hostname", + "value": "$all" + } + ], + "error": "", + "group": true, + "metric": "mysql.performance.qcache_hits", + "period": "$interval", + "refId": "A" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "QCache Hits ($region)", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "show": true, + "mode": "time", + "name": null, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "thresholds": [] + } + ], + "title": "Row", + "showTitle": false, + "titleSize": "h6", + "isNew": false, + "repeat": null, + "repeatRowId": null, + "repeatIteration": null + }, + { + "collapse": false, + "editable": true, + "height": "250px", + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": "${DS_MONASCA}", + "editable": true, + "error": false, + "fill": 1, + "grid": {}, + "id": 2, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": "region", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "alias": "@hostname", + "dimensions": [ + { + "key": "region", + "value": "$region" + }, + { + "key": "hostrole", + "value": "$hostrole" + }, + { + "key": "hostname", + "value": "$all" + } + ], + "error": "", + "group": true, + "metric": "mysql.performance.open_files", + "period": "$interval", + "refId": "A" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Open Files ($region)", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "show": true, + "mode": "time", + "name": null, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "thresholds": [] + } + ], + "title": "New row", + "showTitle": false, + "titleSize": "h6", + "isNew": false, + "repeat": null, + "repeatRowId": null, + "repeatIteration": null + }, + { + "collapse": false, + "editable": true, + "height": "250px", + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": "${DS_MONASCA}", + "editable": true, + "error": false, + "fill": 1, + "grid": {}, + "id": 3, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": "region", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "alias": "@hostname", + "dimensions": [ + { + "key": "region", + "value": "$region" + }, + { + "key": "hostrole", + "value": "$hostrole" + }, + { + "key": "hostname", + "value": "$all" + } + ], + "error": "", + "group": true, + "metric": "mysql.performance.user_time", + "period": "$interval", + "refId": "A" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "User Time ($region)", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "show": true, + "mode": "time", + "name": null, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "thresholds": [] + } + ], + "title": "New row", + "showTitle": false, + "titleSize": "h6", + "isNew": false, + "repeat": null, + "repeatRowId": null, + "repeatIteration": null + }, + { + "collapse": false, + "editable": true, + "height": "250px", + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": "${DS_MONASCA}", + "editable": true, + "error": false, + "fill": 1, + "grid": {}, + "id": 4, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": "region", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "alias": "@hostname", + "dimensions": [ + { + "key": "region", + "value": "$region" + }, + { + "key": "hostrole", + "value": "$hostrole" + }, + { + "key": "hostname", + "value": "$all" + } + ], + "error": "", + "group": true, + "metric": "mysql.performance.kernel_time", + "period": "$interval", + "refId": "A" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Kernel Time ($region)", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "show": true, + "mode": "time", + "name": null, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "thresholds": [] + } + ], + "title": "New row", + "showTitle": false, + "titleSize": "h6", + "isNew": false, + "repeat": null, + "repeatRowId": null, + "repeatIteration": null + }, + { + "collapse": false, + "editable": true, + "height": "250px", + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": "${DS_MONASCA}", + "editable": true, + "error": false, + "fill": 1, + "grid": {}, + "id": 5, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": "region", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "alias": "@hostname", + "dimensions": [ + { + "key": "region", + "value": "$region" + }, + { + "key": "hostrole", + "value": "$hostrole" + }, + { + "key": "hostname", + "value": "$all" + } + ], + "error": "", + "group": true, + "metric": "mysql.performance.threads_connected", + "period": "$interval", + "refId": "A" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Threads Connected ($region)", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "show": true, + "mode": "time", + "name": null, + "values": [] + }, + "yaxes": [ + { + "format": "bytes", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "thresholds": [] + } + ], + "title": "New row", + "showTitle": false, + "titleSize": "h6", + "isNew": false, + "repeat": null, + "repeatRowId": null, + "repeatIteration": null + }, + { + "collapse": false, + "editable": true, + "height": "250px", + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": "${DS_MONASCA}", + "editable": true, + "error": false, + "fill": 1, + "grid": {}, + "id": 6, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": "region", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "alias": "@hostname", + "dimensions": [ + { + "key": "region", + "value": "$region" + }, + { + "key": "hostrole", + "value": "$hostrole" + }, + { + "key": "hostname", + "value": "$all" + } + ], + "error": "", + "group": true, + "metric": "mysql.performance.table_locks_waited", + "period": "$interval", + "refId": "A" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Table Locks Waited ($region)", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "show": true, + "mode": "time", + "name": null, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "thresholds": [] + } + ], + "title": "New row", + "showTitle": false, + "titleSize": "h6", + "isNew": false, + "repeat": null, + "repeatRowId": null, + "repeatIteration": null + }, + { + "collapse": false, + "editable": true, + "height": "250px", + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": "${DS_MONASCA}", + "editable": true, + "error": false, + "fill": 1, + "grid": {}, + "id": 7, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": "region", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "alias": "@hostname", + "dimensions": [ + { + "key": "region", + "value": "$region" + }, + { + "key": "hostrole", + "value": "$hostrole" + }, + { + "key": "hostname", + "value": "$all" + } + ], + "error": "", + "group": true, + "metric": "mysql.performance.queries", + "period": "$interval", + "refId": "A" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Queries ($region)", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "show": true, + "mode": "time", + "name": null, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "thresholds": [] + } + ], + "title": "New row", + "showTitle": false, + "titleSize": "h6", + "isNew": false, + "repeat": null, + "repeatRowId": null, + "repeatIteration": null + } + ] +} diff --git a/examples/node_activity.json b/examples/node_activity.json new file mode 100644 index 0000000..c984fc3 --- /dev/null +++ b/examples/node_activity.json @@ -0,0 +1,1212 @@ +{ + "id": 4587, + "title": "Node Activity", + "description": "", + "tags": [ + "drilldown" + ], + "style": "dark", + "timezone": "utc", + "editable": true, + "sharedCrosshair": true, + "hideControls": false, + "time": { + "from": "now-24h", + "to": "now" + }, + "timepicker": { + "refresh_intervals": [ + "5s", + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ], + "time_options": [ + "5m", + "15m", + "1h", + "6h", + "12h", + "24h", + "2d", + "7d", + "30d" + ] + }, + "templating": { + "list": [ + { + "auto": false, + "auto_count": 30, + "auto_min": "10s", + "current": { + "text": "1m", + "value": "1m" + }, + "datasource": null, + "hide": 0, + "includeAll": false, + "label": "", + "multi": false, + "name": "interval", + "options": [ + { + "text": "1m", + "value": "1m", + "selected": true + }, + { + "text": "5m", + "value": "5m", + "selected": false + }, + { + "text": "10m", + "value": "10m", + "selected": false + }, + { + "text": "30m", + "value": "30m", + "selected": false + }, + { + "text": "1h", + "value": "1h", + "selected": false + }, + { + "text": "6h", + "value": "6h", + "selected": false + }, + { + "text": "12h", + "value": "12h", + "selected": false + }, + { + "text": "1d", + "value": "1d", + "selected": false + }, + { + "text": "7d", + "value": "7d", + "selected": false + }, + { + "text": "14d", + "value": "14d", + "selected": false + }, + { + "text": "30d", + "value": "30d", + "selected": false + } + ], + "query": "1m,5m,10m,30m,1h,6h,12h,1d,7d,14d,30d", + "refresh": 2, + "type": "interval" + }, + { + "current": { + "text": "$hostname", + "value": "$hostname" + }, + "datasource": null, + "hide": 0, + "includeAll": false, + "label": "", + "multi": false, + "name": "hostname", + "options": [ + { + "selected": true, + "text": "", + "value": "" + } + ], + "query": "", + "refresh": 0, + "type": "constant" + } + ] + }, + "annotations": { + "list": [ + { + "datasource": "Monasca", + "dimensions": "hostname=$hostname", + "enable": true, + "iconColor": "rgba(255, 96, 96, 1)", + "limit": 100, + "metric": "puppet.run.changed", + "name": "Puppet Changes", + "shownull": false, + "type": "alert" + } + ] + }, + "refresh": false, + "schemaVersion": 13, + "version": 7, + "links": [], + "gnetId": null, + "rows": [ + { + "collapse": false, + "editable": true, + "height": "25px", + "isNew": false, + "panels": [ + { + "content": "To use this dashboard, select the hostname drop down and type the name of the node to view.", + "editable": true, + "error": false, + "id": 13, + "isNew": true, + "links": [], + "mode": "text", + "span": 12, + "title": "", + "type": "text" + } + ], + "repeat": null, + "repeatIteration": null, + "repeatRowId": null, + "showTitle": false, + "title": "Instructions", + "titleSize": "h6" + }, + { + "collapse": false, + "editable": true, + "height": "250px", + "isNew": false, + "panels": [ + { + "aliasColors": { + "IO Wait": "#BF1B00", + "Idle": "#7EB26D", + "System": "#EAB839", + "User": "#6ED0E0", + "cpu.idle_perc": "#7EB26D", + "cpu.user_perc": "#6ED0E0" + }, + "bars": false, + "datasource": null, + "editable": true, + "error": false, + "fill": 6, + "grid": {}, + "id": 12, + "isNew": true, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": true, + "rightSide": true, + "show": true, + "sideWidth": null, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "links": [], + "minSpan": 12, + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": "region", + "seriesOverrides": [], + "span": 12, + "stack": true, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "alias": "IO Wait", + "dimensions": [ + { + "key": "hostname", + "value": "$hostname" + } + ], + "error": "", + "group": true, + "metric": "cpu.wait_perc", + "period": "$interval", + "refId": "D" + }, + { + "aggregator": "avg", + "alias": "User", + "dimensions": [ + { + "key": "hostname", + "value": "$hostname" + } + ], + "error": "", + "group": true, + "metric": "cpu.user_perc", + "period": "$interval", + "refId": "A" + }, + { + "aggregator": "avg", + "alias": "System", + "dimensions": [ + { + "key": "hostname", + "value": "$hostname" + } + ], + "error": "", + "group": true, + "metric": "cpu.system_perc", + "period": "$interval", + "refId": "B" + }, + { + "aggregator": "avg", + "alias": "Idle", + "dimensions": [ + { + "key": "hostname", + "value": "$hostname" + } + ], + "error": "", + "group": true, + "metric": "cpu.idle_perc", + "period": "$interval", + "refId": "C" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "CPU ($hostname)", + "tooltip": { + "msResolution": true, + "ordering": "alphabetical", + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "percent", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + } + ], + "repeat": null, + "repeatIteration": null, + "repeatRowId": null, + "showTitle": false, + "title": "CPU", + "titleSize": "h6" + }, + { + "collapse": false, + "editable": true, + "height": "250px", + "isNew": false, + "panels": [ + { + "aliasColors": { + "Buffers": "#5195CE", + "Free": "#7EB26D", + "Used": "#1F78C1" + }, + "bars": false, + "datasource": null, + "editable": true, + "error": false, + "fill": 6, + "grid": {}, + "id": 14, + "isNew": true, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": true, + "rightSide": true, + "show": true, + "sideWidth": null, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 12, + "stack": true, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "alias": "Used", + "dimensions": [ + { + "key": "hostname", + "value": "$hostname" + } + ], + "error": "", + "group": true, + "metric": "mem.used_real_mb", + "period": "$interval", + "refId": "A" + }, + { + "aggregator": "avg", + "alias": "Buffers", + "dimensions": [ + { + "key": "hostname", + "value": "$hostname" + } + ], + "error": "", + "group": true, + "metric": "mem.used_buffers", + "period": "$interval", + "refId": "B" + }, + { + "aggregator": "avg", + "alias": "Cache", + "dimensions": [ + { + "key": "hostname", + "value": "$hostname" + } + ], + "error": "", + "group": true, + "metric": "mem.used_cache", + "period": "$interval", + "refId": "C" + }, + { + "aggregator": "avg", + "alias": "Free", + "dimensions": [ + { + "key": "hostname", + "value": "$hostname" + } + ], + "error": "", + "group": true, + "metric": "mem.free_mb", + "period": "$interval", + "refId": "D" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Memory ($hostname)", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "mbytes", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + } + ], + "repeat": null, + "repeatIteration": null, + "repeatRowId": null, + "showTitle": false, + "title": "Memory", + "titleSize": "h6" + }, + { + "collapse": false, + "editable": true, + "height": "250px", + "isNew": false, + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "editable": true, + "error": false, + "fill": 1, + "grid": {}, + "id": 15, + "isNew": true, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": true, + "rightSide": true, + "show": true, + "sideWidth": null, + "sort": "current", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 12, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "alias": "@mount_point", + "dimensions": [ + { + "key": "hostname", + "value": "$hostname" + } + ], + "error": "", + "group": true, + "metric": "disk.space_used_perc", + "period": "$interval", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Disk ($hostname)", + "tooltip": { + "msResolution": false, + "shared": false, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "percent", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + } + ], + "repeat": null, + "repeatIteration": null, + "repeatRowId": null, + "showTitle": false, + "title": "Disk", + "titleSize": "h6" + }, + { + "collapse": false, + "editable": true, + "height": "250px", + "isNew": false, + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "editable": true, + "error": false, + "fill": 1, + "grid": {}, + "id": 11, + "isNew": true, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": true, + "rightSide": true, + "show": true, + "sideWidth": null, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "links": [], + "minSpan": 12, + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": "region", + "seriesOverrides": [], + "span": 12, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "alias": "@device In", + "dimensions": [ + { + "key": "hostname", + "value": "$hostname" + } + ], + "error": "", + "group": true, + "metric": "net.in_bits_sec", + "period": "$interval", + "refId": "A" + }, + { + "aggregator": "avg", + "alias": "@device Out", + "dimensions": [ + { + "key": "hostname", + "value": "$hostname" + } + ], + "error": "", + "group": true, + "metric": "net.out_bits_sec", + "period": "$interval", + "refId": "B" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Net In/Out ($hostname)", + "tooltip": { + "msResolution": true, + "ordering": "alphabetical", + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "bps", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + } + ], + "repeat": null, + "repeatIteration": null, + "repeatRowId": null, + "showTitle": false, + "title": "Net", + "titleSize": "h6" + }, + { + "collapse": false, + "editable": true, + "height": "250px", + "isNew": false, + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "editable": true, + "error": false, + "fill": 1, + "grid": {}, + "id": 16, + "isNew": true, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": true, + "rightSide": true, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 12, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "alias": "@device In", + "dimensions": [ + { + "key": "hostname", + "value": "$hostname" + } + ], + "error": "", + "group": true, + "metric": "net.in_packets_sec", + "period": "300", + "refId": "A" + }, + { + "aggregator": "avg", + "alias": "@device Out", + "dimensions": [ + { + "key": "hostname", + "value": "$hostname" + } + ], + "error": "", + "group": true, + "metric": "net.out_packets_sec", + "period": "300", + "refId": "B" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Packets/Sec In/Out ($hostname)", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + } + ], + "repeat": null, + "repeatIteration": null, + "repeatRowId": null, + "showTitle": false, + "title": "New row", + "titleSize": "h6" + }, + { + "collapse": false, + "editable": true, + "height": "250px", + "isNew": false, + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "editable": true, + "error": false, + "fill": 1, + "grid": {}, + "id": 17, + "isNew": true, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": true, + "rightSide": true, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 12, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "alias": "@device In", + "dimensions": [ + { + "key": "hostname", + "value": "$hostname" + } + ], + "error": "", + "group": true, + "metric": "net.in_errors_sec", + "period": "$interval", + "refId": "A" + }, + { + "aggregator": "avg", + "alias": "@device Out", + "dimensions": [ + { + "key": "hostname", + "value": "$hostname" + } + ], + "error": "", + "group": true, + "metric": "net.out_errors_sec", + "period": "$interval", + "refId": "B" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Net Errors/Sec ($hostname)", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + } + ], + "repeat": null, + "repeatIteration": null, + "repeatRowId": null, + "showTitle": false, + "title": "New row", + "titleSize": "h6" + }, + { + "collapse": false, + "editable": true, + "height": "250px", + "isNew": false, + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "decimals": 1, + "editable": true, + "error": false, + "fill": 1, + "grid": {}, + "id": 10, + "isNew": true, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": true, + "rightSide": true, + "show": true, + "sideWidth": null, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "links": [], + "minSpan": 6, + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": "region", + "seriesOverrides": [], + "span": 12, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "alias": "1 minute", + "dimensions": [ + { + "key": "hostname", + "value": "$hostname" + } + ], + "error": "", + "group": true, + "metric": "load.avg_1_min", + "period": "$interval", + "refId": "A" + }, + { + "aggregator": "avg", + "alias": "5 minute", + "dimensions": [ + { + "key": "hostname", + "value": "$hostname" + } + ], + "error": "", + "group": true, + "metric": "load.avg_5_min", + "period": "$interval", + "refId": "B" + }, + { + "aggregator": "avg", + "alias": "15 minute", + "dimensions": [ + { + "key": "hostname", + "value": "$hostname" + } + ], + "error": "", + "group": true, + "metric": "load.avg_15_min", + "period": "$interval", + "refId": "C" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Load ($hostname)", + "tooltip": { + "msResolution": true, + "ordering": "alphabetical", + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "percentunit", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + } + ], + "repeat": null, + "repeatIteration": null, + "repeatRowId": null, + "showTitle": false, + "title": "Load", + "titleSize": "h6" + }, + { + "collapse": true, + "height": 250, + "isNew": false, + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "editable": true, + "error": false, + "fill": 0, + "id": 18, + "isNew": true, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": true, + "rightSide": true, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 12, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "none", + "alias": "max", + "dimensions": [ + { + "key": "hostname", + "value": "$hostname" + } + ], + "error": "", + "group": true, + "metric": "conntrack.connections.open.max", + "period": "300", + "refId": "A" + }, + { + "aggregator": "none", + "alias": "avg", + "dimensions": [ + { + "key": "hostname", + "value": "$hostname" + } + ], + "error": "", + "group": true, + "metric": "conntrack.connections.open.avg", + "period": "300", + "refId": "B" + }, + { + "aggregator": "none", + "alias": "min", + "dimensions": [ + { + "key": "hostname", + "value": "$hostname" + } + ], + "error": "", + "group": true, + "metric": "conntrack.connections.open.min", + "period": "300", + "refId": "C" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Conntrack Connections ($hostname)", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + } + ], + "repeat": null, + "repeatIteration": null, + "repeatRowId": null, + "showTitle": true, + "title": "Node Metrics", + "titleSize": "h6" + } + ] +} diff --git a/examples/rabbitmq_activity.json b/examples/rabbitmq_activity.json new file mode 100644 index 0000000..4d705c9 --- /dev/null +++ b/examples/rabbitmq_activity.json @@ -0,0 +1,764 @@ +{ + "__inputs": [ + { + "name": "DS_MONASCA", + "label": "Monasca", + "description": "", + "type": "datasource", + "pluginId": "monasca-grafana-datasource", + "pluginName": "Monasca" + }, + { + "name": "VAR_HOSTROLE", + "type": "constant", + "label": "hostrole", + "value": "control", + "description": "" + } + ], + "__requires": [ + { + "type": "panel", + "id": "graph", + "name": "Graph", + "version": "" + }, + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "4.0.0-beta1" + }, + { + "type": "datasource", + "id": "monasca-grafana-datasource", + "name": "Monasca", + "version": "1.0.0" + } + ], + "id": null, + "title": "RabbitMQ - Control", + "tags": [ + "rabbitmq" + ], + "style": "dark", + "timezone": "utc", + "editable": true, + "sharedCrosshair": false, + "hideControls": false, + "time": { + "from": "now-24h", + "to": "now" + }, + "timepicker": { + "now": true, + "refresh_intervals": [ + "5s", + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ], + "time_options": [ + "5m", + "15m", + "1h", + "6h", + "12h", + "24h", + "2d", + "7d", + "30d" + ] + }, + "templating": { + "list": [ + { + "allValue": null, + "current": { + "tags": [], + "text": "All", + "value": "$__all" + }, + "datasource": null, + "hide": 0, + "includeAll": true, + "label": "", + "multi": false, + "name": "region", + "options": [ + { + "selected": true, + "text": "All", + "value": "$__all" + }, + { + "selected": false, + "text": "NCE", + "value": "NCE" + }, + { + "selected": false, + "text": "NCW", + "value": "NCW" + } + ], + "query": "NCE,NCW", + "refresh": 0, + "type": "custom" + }, + { + "current": { + "value": "${VAR_HOSTROLE}", + "text": "${VAR_HOSTROLE}" + }, + "datasource": null, + "hide": 2, + "includeAll": false, + "label": "hostrole", + "multi": false, + "name": "hostrole", + "options": [ + { + "value": "${VAR_HOSTROLE}", + "text": "${VAR_HOSTROLE}" + } + ], + "query": "${VAR_HOSTROLE}", + "refresh": 0, + "type": "constant" + }, + { + "auto": true, + "auto_count": 100, + "auto_min": "10s", + "current": { + "text": "auto", + "value": "$__auto_interval" + }, + "datasource": null, + "hide": 0, + "includeAll": false, + "label": "", + "multi": false, + "name": "interval", + "options": [ + { + "text": "auto", + "value": "$__auto_interval", + "selected": true + }, + { + "text": "1m", + "value": "1m", + "selected": false + }, + { + "text": "10m", + "value": "10m", + "selected": false + }, + { + "text": "30m", + "value": "30m", + "selected": false + }, + { + "text": "1h", + "value": "1h", + "selected": false + }, + { + "text": "6h", + "value": "6h", + "selected": false + }, + { + "text": "12h", + "value": "12h", + "selected": false + }, + { + "text": "1d", + "value": "1d", + "selected": false + }, + { + "text": "7d", + "value": "7d", + "selected": false + }, + { + "text": "14d", + "value": "14d", + "selected": false + }, + { + "text": "30d", + "value": "30d", + "selected": false + } + ], + "query": "1m,10m,30m,1h,6h,12h,1d,7d,14d,30d", + "refresh": 2, + "type": "interval" + } + ] + }, + "annotations": { + "list": [] + }, + "schemaVersion": 13, + "version": 17, + "links": [], + "gnetId": null, + "rows": [ + { + "collapse": false, + "editable": true, + "height": "250px", + "isNew": false, + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": "${DS_MONASCA}", + "editable": true, + "error": false, + "fill": 1, + "grid": {}, + "id": 10, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": "region", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "alias": "@node", + "dimensions": [ + { + "key": "region", + "value": "$region" + }, + { + "key": "hostrole", + "value": "$hostrole" + }, + { + "key": "hostname", + "value": "$all" + } + ], + "error": "", + "group": true, + "metric": "rabbitmq.node.mem_used", + "period": "$interval", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Memory Usage ($region)", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "bytes", + "label": null, + "logBase": 1, + "max": null, + "min": 0, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + } + ], + "repeat": null, + "repeatIteration": null, + "repeatRowId": null, + "showTitle": false, + "title": "New row", + "titleSize": "h6" + }, + { + "collapse": false, + "editable": true, + "height": "250px", + "isNew": false, + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": "${DS_MONASCA}", + "editable": true, + "error": false, + "fill": 1, + "grid": {}, + "id": 2, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "minSpan": 6, + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": "region", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "alias": "@node", + "dimensions": [ + { + "key": "region", + "value": "$region" + }, + { + "key": "hostrole", + "value": "$hostrole" + }, + { + "key": "hostname", + "value": "$all" + } + ], + "error": "", + "errors": {}, + "group": true, + "metric": "rabbitmq.node.run_queue", + "period": "$interval", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Run Queue ($region)", + "tooltip": { + "msResolution": false, + "ordering": "alphabetical", + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "logBase": 1, + "max": null, + "min": 0, + "show": true + }, + { + "format": "short", + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + } + ], + "repeat": null, + "repeatIteration": null, + "repeatRowId": null, + "showTitle": false, + "title": "Row", + "titleSize": "h6" + }, + { + "collapse": false, + "editable": true, + "height": "250px", + "isNew": false, + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": "${DS_MONASCA}", + "editable": true, + "error": false, + "fill": 1, + "grid": {}, + "id": 3, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": "region", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "alias": "@node", + "dimensions": [ + { + "key": "region", + "value": "$region" + }, + { + "key": "hostrole", + "value": "$hostrole" + }, + { + "key": "hostname", + "value": "$all" + } + ], + "error": "", + "errors": {}, + "group": true, + "metric": "rabbitmq.node.fd_used", + "period": "$interval", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "File Descriptors ($region)", + "tooltip": { + "msResolution": false, + "ordering": "alphabetical", + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "logBase": 1, + "max": null, + "min": 0, + "show": true + }, + { + "format": "short", + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + } + ], + "repeat": null, + "repeatIteration": null, + "repeatRowId": null, + "scopedVars": { + "region": { + "selected": false, + "text": "NCE", + "value": "NCE" + } + }, + "showTitle": false, + "title": "New row", + "titleSize": "h6" + }, + { + "collapse": false, + "editable": true, + "height": "250px", + "isNew": false, + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": "${DS_MONASCA}", + "editable": true, + "error": false, + "fill": 1, + "grid": {}, + "id": 11, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": "region", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "alias": "@node", + "dimensions": [ + { + "key": "region", + "value": "$region" + }, + { + "key": "hostrole", + "value": "$hostrole" + }, + { + "key": "hostname", + "value": "$all" + } + ], + "error": "", + "group": true, + "metric": "rabbitmq.node.sockets_used", + "period": "$interval", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Sockets ($region)", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": 0, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + } + ], + "repeat": null, + "repeatIteration": null, + "repeatRowId": null, + "showTitle": false, + "title": "New row", + "titleSize": "h6" + }, + { + "collapse": false, + "editable": true, + "height": "250px", + "isNew": false, + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": "${DS_MONASCA}", + "editable": true, + "error": false, + "fill": 1, + "id": 16, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": "region", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "alias": "@node", + "dimensions": [ + { + "key": "region", + "value": "$region" + }, + { + "key": "hostrole", + "value": "$hostrole" + }, + { + "key": "hostname", + "value": "$all" + } + ], + "error": "", + "group": true, + "metric": "rabbitmq.node.partitions", + "period": "$interval", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Partitions ($region)", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": "0", + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + } + ], + "repeat": null, + "repeatIteration": null, + "repeatRowId": null, + "showTitle": false, + "title": "New row", + "titleSize": "h6" + } + ] +} diff --git a/examples/solidfire_overview.json b/examples/solidfire_overview.json new file mode 100644 index 0000000..91cd27d --- /dev/null +++ b/examples/solidfire_overview.json @@ -0,0 +1,712 @@ +{ + "__inputs": [ + { + "name": "DS_MONASCA", + "label": "Monasca", + "description": "", + "type": "datasource", + "pluginId": "monasca-grafana-datasource", + "pluginName": "Monasca" + } + ], + "__requires": [ + { + "type": "panel", + "id": "graph", + "name": "Graph", + "version": "" + }, + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "4.0.0-beta1" + }, + { + "type": "datasource", + "id": "monasca-grafana-datasource", + "name": "Monasca", + "version": "1.0.0" + } + ], + "id": null, + "title": "Solidfire Overview", + "tags": [ + "monasca" + ], + "style": "dark", + "timezone": "browser", + "editable": true, + "sharedCrosshair": false, + "hideControls": false, + "time": { + "from": "now-24h", + "to": "now" + }, + "timepicker": { + "refresh_intervals": [ + "5s", + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ], + "time_options": [ + "5m", + "15m", + "1h", + "6h", + "12h", + "24h", + "2d", + "7d", + "30d" + ] + }, + "templating": { + "list": [] + }, + "annotations": { + "list": [] + }, + "schemaVersion": 13, + "version": 3, + "links": [], + "gnetId": null, + "rows": [ + { + "collapse": false, + "editable": true, + "height": "250px", + "isNew": false, + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": "${DS_MONASCA}", + "editable": true, + "error": false, + "fill": 1, + "grid": {}, + "id": 1, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "alias": "@cluster", + "dimensions": [], + "error": "", + "group": true, + "metric": "solidfire.cluster_utilization", + "period": "300", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Cluster Utilization", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "percentunit", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "datasource": "${DS_MONASCA}", + "decimals": 0, + "editable": true, + "error": false, + "fill": 1, + "grid": {}, + "id": 2, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "alias": "@cluster", + "dimensions": [], + "error": "", + "group": true, + "metric": "solidfire.zero_blocks", + "period": "300", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Zero Blocks", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + } + ], + "repeat": null, + "repeatIteration": null, + "repeatRowId": null, + "showTitle": false, + "title": "Row", + "titleSize": "h6" + }, + { + "collapse": false, + "editable": true, + "height": "250px", + "isNew": false, + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": "${DS_MONASCA}", + "editable": true, + "error": false, + "fill": 1, + "grid": {}, + "id": 3, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "alias": "@cluster", + "dimensions": [], + "error": "", + "group": true, + "metric": "solidfire.iops.avg_5_sec", + "period": "300", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "IOPs 5 Second Avg", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "datasource": "${DS_MONASCA}", + "decimals": 2, + "editable": true, + "error": false, + "fill": 1, + "grid": {}, + "id": 4, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "alias": "@cluster", + "dimensions": [], + "error": "", + "group": true, + "metric": "solidfire.active_block_bytes", + "period": "300", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Active Blocks Bytes", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "bytes", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + } + ], + "repeat": null, + "repeatIteration": null, + "repeatRowId": null, + "showTitle": false, + "title": "New row", + "titleSize": "h6" + }, + { + "collapse": false, + "editable": true, + "height": "250px", + "isNew": false, + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": "${DS_MONASCA}", + "editable": true, + "error": false, + "fill": 1, + "grid": {}, + "id": 5, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "alias": "@cluster", + "dimensions": [], + "error": "", + "group": true, + "metric": "solidfire.thin_provision_factor", + "period": "300", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Thin Provision Factor", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "datasource": "${DS_MONASCA}", + "editable": true, + "error": false, + "fill": 1, + "grid": {}, + "id": 6, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "alias": "@cluster", + "dimensions": [], + "error": "", + "group": true, + "metric": "solidfire.data_reduction_factor", + "period": "300", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Data Reduction Factor", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + } + ], + "repeat": null, + "repeatIteration": null, + "repeatRowId": null, + "showTitle": false, + "title": "New row", + "titleSize": "h6" + }, + { + "collapse": false, + "height": 250, + "isNew": false, + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": "${DS_MONASCA}", + "editable": true, + "error": false, + "fill": 1, + "id": 7, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 12, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "alias": "@cluster.deduplication_factor", + "dimensions": [], + "error": "", + "group": true, + "metric": "solidfire.deduplication_factor", + "period": "300", + "refId": "A" + }, + { + "aggregator": "avg", + "alias": "@cluster.thin_provinsion_factor", + "dimensions": [], + "error": "", + "group": true, + "metric": "solidfire.thin_provision_factor", + "period": "300", + "refId": "B" + }, + { + "aggregator": "avg", + "alias": "@cluster.compression_factor", + "dimensions": [], + "error": "", + "group": true, + "metric": "solidfire.compression_factor", + "period": "300", + "refId": "C" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Efficiency", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + } + ], + "repeat": null, + "repeatIteration": null, + "repeatRowId": null, + "showTitle": false, + "title": "Dashboard Row", + "titleSize": "h6" + } + ] +} diff --git a/examples/vertica_resource_pools.json b/examples/vertica_resource_pools.json new file mode 100644 index 0000000..34bf6bd --- /dev/null +++ b/examples/vertica_resource_pools.json @@ -0,0 +1,842 @@ +{ + "id": 5547, + "title": "Monasca Resource Pools", + "tags": [ + "monasca" + ], + "style": "dark", + "timezone": "browser", + "editable": true, + "sharedCrosshair": false, + "hideControls": false, + "time": { + "from": "now-24h", + "to": "now" + }, + "timepicker": { + "refresh_intervals": [ + "5s", + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ], + "time_options": [ + "5m", + "15m", + "1h", + "6h", + "12h", + "24h", + "2d", + "7d", + "30d" + ] + }, + "templating": { + "list": [ + { + "allValue": null, + "current": { + "text": "api_pool", + "value": "api_pool" + }, + "datasource": "Monasca", + "hide": 1, + "includeAll": false, + "label": null, + "multi": false, + "name": "resource_pool", + "options": [ + { + "text": "api_pool", + "value": "api_pool", + "selected": true + }, + { + "text": "dbd", + "value": "dbd", + "selected": false + }, + { + "text": "general", + "value": "general", + "selected": false + }, + { + "text": "jvm", + "value": "jvm", + "selected": false + }, + { + "text": "persister_pool", + "value": "persister_pool", + "selected": false + }, + { + "text": "recovery", + "value": "recovery", + "selected": false + }, + { + "text": "refresh", + "value": "refresh", + "selected": false + }, + { + "text": "sysdata", + "value": "sysdata", + "selected": false + }, + { + "text": "sysquery", + "value": "sysquery", + "selected": false + }, + { + "text": "tm", + "value": "tm", + "selected": false + }, + { + "text": "wosdata", + "value": "wosdata", + "selected": false + } + ], + "query": "resource_pool", + "refresh": 1, + "regex": "", + "sort": 0, + "tagValuesQuery": null, + "tagsQuery": null, + "type": "query" + }, + { + "allValue": null, + "current": { + "text": "All", + "value": "$__all" + }, + "hide": 2, + "includeAll": true, + "label": null, + "multi": false, + "name": "region", + "options": [ + { + "selected": true, + "text": "All", + "value": "$__all" + }, + { + "selected": false, + "text": "NCW", + "value": "NCW" + }, + { + "selected": false, + "text": "NCE", + "value": "NCE" + } + ], + "query": "NCW,NCE", + "type": "custom" + } + ] + }, + "annotations": { + "list": [] + }, + "refresh": "1h", + "schemaVersion": 13, + "version": 30, + "links": [], + "gnetId": null, + "rows": [ + { + "collapse": false, + "height": "250px", + "isNew": false, + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "editable": true, + "error": false, + "fill": 1, + "id": 1, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "minSpan": null, + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": "region", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "alias": "inuse @hostname", + "dimensions": [ + { + "key": "resource_pool", + "value": "$resource_pool" + }, + { + "key": "region", + "value": "$region" + }, + { + "key": "hostname", + "value": "$all" + } + ], + "error": "", + "group": true, + "metric": "vertica.resource.pool.memory_inuse_kb", + "period": "300", + "refId": "A" + }, + { + "aggregator": "avg", + "alias": "total", + "dimensions": [ + { + "key": "resource_pool", + "value": "$resource_pool" + }, + { + "key": "region", + "value": "$region" + } + ], + "error": "", + "group": false, + "metric": "vertica.resource.pool.memory_size_actual_kb", + "period": "300", + "refId": "B" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "$resource_pool memory usage ($region)", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "deckbytes", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "scopedVars": { + "region": { + "selected": false, + "text": "NCW", + "value": "NCW" + } + } + }, + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "editable": true, + "error": false, + "fill": 1, + "id": 6, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "minSpan": null, + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": null, + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "alias": "inuse @hostname", + "dimensions": [ + { + "key": "resource_pool", + "value": "$resource_pool" + }, + { + "key": "region", + "value": "$region" + }, + { + "key": "hostname", + "value": "$all" + } + ], + "error": "", + "group": true, + "metric": "vertica.resource.pool.memory_inuse_kb", + "period": "300", + "refId": "A" + }, + { + "aggregator": "avg", + "alias": "total", + "dimensions": [ + { + "key": "resource_pool", + "value": "$resource_pool" + }, + { + "key": "region", + "value": "$region" + } + ], + "error": "", + "group": false, + "metric": "vertica.resource.pool.memory_size_actual_kb", + "period": "300", + "refId": "B" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "$resource_pool memory usage ($region)", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "deckbytes", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "scopedVars": { + "region": { + "selected": false, + "text": "NCE", + "value": "NCE" + } + }, + "repeatIteration": 1497628517061, + "repeatPanelId": 1 + } + ], + "repeat": null, + "repeatIteration": null, + "repeatRowId": null, + "showTitle": false, + "title": "Dashboard Row", + "titleSize": "h6" + }, + { + "collapse": false, + "height": 250, + "isNew": false, + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "editable": true, + "error": false, + "fill": 1, + "id": 4, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": "region", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "alias": "@hostname", + "dimensions": [ + { + "key": "resource_pool", + "value": "$resource_pool" + }, + { + "key": "region", + "value": "$region" + }, + { + "key": "hostname", + "value": "$all" + } + ], + "error": "", + "group": true, + "metric": "vertica.resource.pool.running_query_count", + "period": "300", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "$resource_pool running queries ($region)", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "scopedVars": { + "region": { + "selected": false, + "text": "NCW", + "value": "NCW" + } + } + }, + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "editable": true, + "error": false, + "fill": 1, + "id": 7, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": null, + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "alias": "@hostname", + "dimensions": [ + { + "key": "resource_pool", + "value": "$resource_pool" + }, + { + "key": "region", + "value": "$region" + }, + { + "key": "hostname", + "value": "$all" + } + ], + "error": "", + "group": true, + "metric": "vertica.resource.pool.running_query_count", + "period": "300", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "$resource_pool running queries ($region)", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "scopedVars": { + "region": { + "selected": false, + "text": "NCE", + "value": "NCE" + } + }, + "repeatIteration": 1497628517061, + "repeatPanelId": 4 + } + ], + "repeat": null, + "repeatIteration": null, + "repeatRowId": null, + "showTitle": false, + "title": "Dashboard Row", + "titleSize": "h6" + }, + { + "collapse": false, + "height": 250, + "isNew": false, + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "editable": true, + "error": false, + "fill": 1, + "id": 5, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": "region", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "alias": "@hostname", + "dimensions": [ + { + "key": "resource_pool", + "value": "$resource_pool" + }, + { + "key": "region", + "value": "$region" + }, + { + "key": "hostname", + "value": "$all" + } + ], + "error": "", + "group": true, + "metric": "vertica.resource.pool.rejection_count", + "period": "300", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "$resource_pool rejected queries ($region)", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "scopedVars": { + "region": { + "selected": false, + "text": "NCW", + "value": "NCW" + } + } + }, + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "editable": true, + "error": false, + "fill": 1, + "id": 8, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": null, + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "alias": "@hostname", + "dimensions": [ + { + "key": "resource_pool", + "value": "$resource_pool" + }, + { + "key": "region", + "value": "$region" + }, + { + "key": "hostname", + "value": "$all" + } + ], + "error": "", + "group": true, + "metric": "vertica.resource.pool.rejection_count", + "period": "300", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "$resource_pool rejected queries ($region)", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "scopedVars": { + "region": { + "selected": false, + "text": "NCE", + "value": "NCE" + } + }, + "repeatIteration": 1497628517061, + "repeatPanelId": 5 + } + ], + "repeat": null, + "repeatIteration": null, + "repeatRowId": null, + "showTitle": false, + "title": "Dashboard Row", + "titleSize": "h6" + } + ] +}