diff --git a/devstack/files/grafana/dashboards.d/08-openstack.json b/devstack/files/grafana/dashboards.d/08-openstack.json new file mode 100644 index 000000000..6edc5d2b6 --- /dev/null +++ b/devstack/files/grafana/dashboards.d/08-openstack.json @@ -0,0 +1,988 @@ +{ + "id": null, + "title": "Openstack Dashboard", + "originalTitle": "Openstack Dashboard", + "tags": [], + "style": "light", + "timezone": "browser", + "time": { + "from": "now-1h", + "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" + ] + }, + "editable": true, + "hideControls": false, + "sharedCrosshair": false, + "rows": [ + { + "title": "OpenStack Health", + "height": "100px", + "editable": true, + "collapse": false, + "collapsable": true, + "panels": [ + { + "title": "compute (Nova)", + "error": false, + "span": 2, + "editable": true, + "type": "singlestat", + "id": 1, + "links": [], + "maxDataPoints": 100, + "interval": null, + "targets": [ + { + "aggregator": "none", + "column": "value", + "metric": "http_status", + "condition_filter": true, + "dimensions": [{"key": "service", "value": "compute"}] + } + ], + "cacheTimeout": null, + "format": "none", + "prefix": "", + "postfix": "", + "nullText": null, + "valueMaps": [ + { + "value": "0", + "op": "=", + "text": "UP" + }, + { + "value": "1", + "op": "=", + "text": "DOWN" + } + ], + "nullPointMode": "connected", + "valueName": "current", + "prefixFontSize": "50%", + "valueFontSize": "80%", + "postfixFontSize": "50%", + "thresholds": "-1.0,0.2,0.8", + "colorBackground": true, + "colorValue": false, + "colors": [ + "rgba(71, 212, 59, 0.4)", + "rgba(245, 150, 40, 0.73)", + "rgba(225, 40, 40, 0.59)" + ], + "sparkline": { + "show": false, + "full": false, + "lineColor": "rgb(31, 120, 193)", + "fillColor": "rgba(31, 118, 189, 0.18)" + }, + "height": "100" + }, + { + "title": "networking (Neutron)", + "error": false, + "span": 2, + "editable": true, + "type": "singlestat", + "id": 4, + "links": [], + "maxDataPoints": 100, + "interval": null, + "targets": [ + { + "aggregator": "none", + "column": "value", + "metric": "http_status", + "condition_filter": true, + "dimensions": [{"key": "service", "value": "networking"}] + } + ], + "cacheTimeout": null, + "format": "none", + "prefix": "", + "postfix": "", + "nullText": null, + "valueMaps": [ + { + "value": "0", + "op": "=", + "text": "UP" + }, + { + "value": "1", + "op": "=", + "text": "DOWN" + } + ], + "nullPointMode": "connected", + "valueName": "current", + "prefixFontSize": "50%", + "valueFontSize": "80%", + "postfixFontSize": "50%", + "thresholds": "-1.0,0.2,0.8", + "colorBackground": true, + "colorValue": false, + "colors": [ + "rgba(71, 212, 59, 0.4)", + "rgba(245, 150, 40, 0.73)", + "rgba(225, 40, 40, 0.59)" + ], + "sparkline": { + "show": false, + "full": false, + "lineColor": "rgb(31, 120, 193)", + "fillColor": "rgba(31, 118, 189, 0.18)" + }, + "height": "100" + }, + { + "title": "image-service (Glance)", + "error": false, + "span": 2, + "editable": true, + "type": "singlestat", + "id": 5, + "links": [], + "maxDataPoints": 100, + "interval": null, + "targets": [ + { + "aggregator": "none", + "column": "value", + "metric": "http_status", + "condition_filter": true, + "dimensions": [{"key": "service", "value": "image-service"}] + } + ], + "cacheTimeout": null, + "format": "none", + "prefix": "", + "postfix": "", + "nullText": null, + "valueMaps": [ + { + "value": "0", + "op": "=", + "text": "UP" + }, + { + "value": "1", + "op": "=", + "text": "DOWN" + } + ], + "nullPointMode": "connected", + "valueName": "current", + "prefixFontSize": "50%", + "valueFontSize": "80%", + "postfixFontSize": "50%", + "thresholds": "-1.0,0.2,0.8", + "colorBackground": true, + "colorValue": false, + "colors": [ + "rgba(71, 212, 59, 0.4)", + "rgba(245, 150, 40, 0.73)", + "rgba(225, 40, 40, 0.59)" + ], + "sparkline": { + "show": false, + "full": false, + "lineColor": "rgb(31, 120, 193)", + "fillColor": "rgba(31, 118, 189, 0.18)" + }, + "height": "100" + }, + { + "title": "block-storage (Cinder)", + "error": false, + "span": 2, + "editable": true, + "type": "singlestat", + "id": 7, + "links": [], + "maxDataPoints": 100, + "interval": null, + "targets": [ + { + "aggregator": "none", + "column": "value", + "metric": "http_status", + "condition_filter": true, + "dimensions": [{"key": "service", "value": "block-storage"}] + } + ], + "cacheTimeout": null, + "format": "none", + "prefix": "", + "postfix": "", + "nullText": null, + "valueMaps": [ + { + "value": "0", + "op": "=", + "text": "UP" + }, + { + "value": "1", + "op": "=", + "text": "DOWN" + } + ], + "nullPointMode": "connected", + "valueName": "current", + "prefixFontSize": "50%", + "valueFontSize": "80%", + "postfixFontSize": "50%", + "thresholds": "-1.0,0.2,0.8", + "colorBackground": true, + "colorValue": false, + "colors": [ + "rgba(71, 212, 59, 0.4)", + "rgba(245, 150, 40, 0.73)", + "rgba(225, 40, 40, 0.59)" + ], + "sparkline": { + "show": false, + "full": false, + "lineColor": "rgb(31, 120, 193)", + "fillColor": "rgba(31, 118, 189, 0.18)" + }, + "height": "100" + }, + { + "title": "object-storage (Swift)", + "error": false, + "span": 2, + "editable": true, + "type": "singlestat", + "id": 8, + "links": [], + "maxDataPoints": 100, + "interval": null, + "targets": [ + { + "aggregator": "none", + "column": "value", + "metric": "http_status", + "dimensions": [{"key": "service", "value": "object-storage"}] + } + ], + "cacheTimeout": null, + "format": "none", + "prefix": "", + "postfix": "", + "nullText": null, + "valueMaps": [ + { + "value": "0", + "op": "=", + "text": "UP" + }, + { + "value": "1", + "op": "=", + "text": "DOWN" + } + ], + "nullPointMode": "connected", + "valueName": "current", + "prefixFontSize": "50%", + "valueFontSize": "80%", + "postfixFontSize": "50%", + "thresholds": "-1.0,0.2,0.8", + "colorBackground": true, + "colorValue": false, + "colors": [ + "rgba(71, 212, 59, 0.4)", + "rgba(245, 150, 40, 0.73)", + "rgba(225, 40, 40, 0.59)" + ], + "sparkline": { + "show": false, + "full": false, + "lineColor": "rgb(31, 120, 193)", + "fillColor": "rgba(31, 118, 189, 0.18)" + }, + "height": "100" + }, + { + "title": "identity-service (Keystone)", + "error": false, + "span": 2, + "editable": true, + "type": "singlestat", + "id": 12, + "links": [], + "maxDataPoints": 100, + "interval": null, + "targets": [ + { + "aggregator": "none", + "column": "value", + "metric": "http_status", + "dimensions": [{"key": "service", "value": "identity-service"}] + } + ], + "cacheTimeout": null, + "format": "none", + "prefix": "", + "postfix": "", + "nullText": null, + "valueMaps": [ + { + "value": "0", + "op": "=", + "text": "UP" + }, + { + "value": "1", + "op": "=", + "text": "DOWN" + } + ], + "nullPointMode": "connected", + "valueName": "current", + "prefixFontSize": "50%", + "valueFontSize": "80%", + "postfixFontSize": "50%", + "thresholds": "-1.0,0.2,0.8", + "colorBackground": true, + "colorValue": false, + "colors": [ + "rgba(71, 212, 59, 0.4)", + "rgba(245, 150, 40, 0.73)", + "rgba(225, 40, 40, 0.59)" + ], + "sparkline": { + "show": false, + "full": false, + "lineColor": "rgb(31, 120, 193)", + "fillColor": "rgba(31, 118, 189, 0.18)" + }, + "height": "100" + } + ], + "notice": false, + "showTitle": true + }, + { + "title": "System Resources", + "height": "250px", + "editable": true, + "collapse": false, + "collapsable": true, + "panels": [ + { + "span": 6, + "editable": true, + "type": "graph", + "loadingEditor": false, + "renderer": "flot", + "x-axis": true, + "y-axis": true, + "scale": 1, + "y_formats": [ + "percent", + "none" + ], + "grid": { + "max": null, + "min": null, + "threshold1": null, + "threshold2": null, + "threshold1Color": "rgba(216, 200, 27, 0.27)", + "threshold2Color": "rgba(234, 112, 112, 0.22)", + "leftMax": 100, + "rightMax": null, + "leftMin": 0, + "rightMin": null + }, + "annotate": { + "enable": false + }, + "resolution": 100, + "lines": true, + "fill": 0, + "linewidth": 1, + "points": false, + "pointradius": 5, + "bars": false, + "stack": false, + "legend": { + "show": true, + "values": false, + "min": false, + "max": false, + "current": false, + "total": false, + "avg": false, + "alignAsTable": true, + "rightSide": false + }, + "percentage": false, + "zerofill": true, + "nullPointMode": "null", + "steppedLine": false, + "tooltip": { + "value_type": "cumulative", + "query_as_alias": true, + "shared": true + }, + "targets": [ + { + "aggregator": "none", + "column": "value", + "metric": "cpu.percent", + "condition_filter": false, + "alias": "cpu.percent (@hostname)", + "dimensions": [ + { + "key": "hostname", + "value": "$all" + } + ] + }, + { + "target": "", + "aggregator": "none", + "column": "value", + "metric": "cpu.wait_perc", + "alias": "cpu.wait_perc (@hostname)", + "dimensions": [ + { + "key": "hostname", + "value": "$all" + } + ] + }, + { + "target": "", + "aggregator": "none", + "column": "value", + "metric": "cpu.system_perc", + "alias": "cpu.system_perc (@hostname)", + "dimensions": [ + { + "key": "hostname", + "value": "$all" + } + ] + }, + { + "target": "", + "aggregator": "none", + "column": "value", + "metric": "cpu.user_perc", + "alias": "cpu.user_perc (@hostname)", + "dimensions": [ + { + "key": "hostname", + "value": "$all" + } + ] + } + ], + "aliasColors": {}, + "title": "CPU usage", + "id": 2, + "seriesOverrides": [], + "links": [], + "leftYAxisLabel": "" + }, + { + "title": "Memory usage", + "error": false, + "span": 6, + "editable": true, + "type": "graph", + "id": 13, + "renderer": "flot", + "x-axis": true, + "y-axis": true, + "y_formats": [ + "none", + "none" + ], + "grid": { + "leftMax": null, + "rightMax": null, + "leftMin": 0, + "rightMin": null, + "threshold1": null, + "threshold2": null, + "threshold1Color": "rgba(216, 200, 27, 0.27)", + "threshold2Color": "rgba(234, 112, 112, 0.22)", + "thresholdLine": false + }, + "lines": true, + "fill": 0, + "linewidth": 1, + "points": false, + "pointradius": 5, + "bars": false, + "stack": false, + "percentage": false, + "legend": { + "show": true, + "values": false, + "min": false, + "max": false, + "current": false, + "total": false, + "avg": false, + "alignAsTable": true, + "rightSide": false + }, + "nullPointMode": "null", + "steppedLine": false, + "tooltip": { + "value_type": "cumulative", + "shared": true + }, + "targets": [ + { + "aggregator": "none", + "column": "value", + "metric": "mem.total_mb", + "merge": false, + "alias": "mem.total_mb (@hostname)", + "dimensions": [ + { + "key": "hostname", + "value": "$all" + } + ] + }, + { + "target": "", + "aggregator": "none", + "column": "value", + "metric": "mem.swap_used_mb", + "alias": "mem.swap_used_mb (@hostname)", + "dimensions": [ + { + "key": "hostname", + "value": "$all" + } + ] + }, + { + "target": "", + "aggregator": "none", + "column": "value", + "metric": "mem.used_mb", + "alias": "mem.used_mb (@hostname)", + "dimensions": [ + { + "key": "hostname", + "value": "$all" + } + ] + }, + { + "target": "", + "aggregator": "none", + "column": "value", + "metric": "mem.swap_total_mb", + "alias": "mem.swap_total_mb (@hostname)", + "dimensions": [ + { + "key": "hostname", + "value": "$all" + } + ] + }, + { + "target": "", + "aggregator": "none", + "column": "value", + "metric": "mem.used_cache", + "alias": "mem.used_cache (@hostname)", + "dimensions": [ + { + "key": "hostname", + "value": "$all" + } + ] + } + ], + "aliasColors": {}, + "seriesOverrides": [], + "links": [], + "leftYAxisLabel": "MB" + }, + { + "title": "Disk usage", + "error": false, + "span": 6, + "editable": true, + "type": "graph", + "id": 14, + "renderer": "flot", + "x-axis": true, + "y-axis": true, + "y_formats": [ + "percent", + "short" + ], + "grid": { + "leftMax": 100, + "rightMax": null, + "leftMin": 0, + "rightMin": null, + "threshold1": null, + "threshold1Color": "rgba(216, 200, 27, 0.27)", + "threshold2Color": "rgba(234, 112, 112, 0.22)" + }, + "lines": true, + "fill": 0, + "linewidth": 1, + "points": false, + "pointradius": 5, + "bars": false, + "stack": false, + "percentage": false, + "legend": { + "show": true, + "values": false, + "min": false, + "max": false, + "current": false, + "total": false, + "avg": false, + "alignAsTable": true, + "rightSide": false, + "sortDesc": null, + "sort": null + }, + "nullPointMode": "null", + "steppedLine": false, + "tooltip": { + "value_type": "cumulative", + "shared": true + }, + "targets": [ + { + "aggregator": "none", + "column": "value", + "metric": "disk.space_used_perc", + "merge": false, + "dimensions": [ + { + "key": "hostname", + "value": "$all" + }, + { + "key": "device", + "value": "rootfs" + } + ], + "alias": "disk.space_used_perc (@hostname @device)" + }, + { + "target": "", + "aggregator": "none", + "column": "value", + "metric": "disk.space_used_perc", + "dimensions": [ + { + "key": "hostname", + "value": "$all" + }, + { + "key": "mount_point", + "value": "/boot" + } + ], + "alias": "disk.space_used_perc (@hostname @mount_point)" + }, + { + "target": "", + "aggregator": "none", + "column": "value", + "metric": "disk.space_used_perc", + "dimensions": [ + { + "key": "hostname", + "value": "$all" + }, + { + "key": "mount_point", + "value": "/srv/node/swiftloopback" + } + ], + "alias": "disk.space_used_perc (@hostname @mount_point)" + } + ], + "aliasColors": {}, + "seriesOverrides": [], + "links": [] + }, + { + "title": "System load", + "error": false, + "span": 6, + "editable": true, + "type": "graph", + "id": 15, + "renderer": "flot", + "x-axis": true, + "y-axis": true, + "y_formats": [ + "none", + "short" + ], + "grid": { + "leftMax": null, + "rightMax": null, + "leftMin": 0, + "rightMin": null, + "threshold1": null, + "threshold2": null, + "threshold1Color": "rgba(216, 200, 27, 0.27)", + "threshold2Color": "rgba(234, 112, 112, 0.22)" + }, + "lines": true, + "fill": 0, + "linewidth": 1, + "points": false, + "pointradius": 5, + "bars": false, + "stack": false, + "percentage": false, + "legend": { + "show": true, + "values": false, + "min": false, + "max": false, + "current": false, + "total": false, + "avg": false, + "alignAsTable": true + }, + "nullPointMode": "null", + "steppedLine": false, + "tooltip": { + "value_type": "cumulative", + "shared": true + }, + "targets": [ + { + "aggregator": "none", + "column": "value", + "metric": "load.avg_1_min", + "alias": "load.avg_1_min (@hostname)", + "dimensions": [ + { + "key": "hostname", + "value": "$all" + } + ] + }, + { + "target": "", + "aggregator": "none", + "column": "value", + "metric": "load.avg_5_min", + "alias": "load.avg_5_min (@hostname)", + "dimensions": [ + { + "key": "hostname", + "value": "$all" + } + ] + }, + { + "target": "", + "aggregator": "none", + "column": "value", + "metric": "load.avg_15_min", + "alias": "load.avg_15_min (@hostname)", + "dimensions": [ + { + "key": "hostname", + "value": "$all" + } + ] + } + ], + "aliasColors": {}, + "seriesOverrides": [], + "links": [] + } + ], + "notice": false, + "showTitle": true + }, + { + "title": "Network monitoring", + "height": "250px", + "editable": true, + "collapse": false, + "panels": [ + { + "title": "Network usage", + "error": false, + "span": 6, + "editable": true, + "type": "graph", + "id": 16, + + "renderer": "flot", + "x-axis": true, + "y-axis": true, + "y_formats": [ + "bps", + "short" + ], + "grid": { + "leftMax": null, + "rightMax": null, + "leftMin": 0, + "rightMin": null, + "threshold1": null, + "threshold2": null, + "threshold1Color": "rgba(216, 200, 27, 0.27)", + "threshold2Color": "rgba(234, 112, 112, 0.22)" + }, + "lines": true, + "fill": 0, + "linewidth": 1, + "points": false, + "pointradius": 5, + "bars": false, + "stack": false, + "percentage": false, + "legend": { + "show": true, + "values": false, + "min": false, + "max": false, + "current": false, + "total": false, + "avg": false, + "alignAsTable": true + }, + "nullPointMode": "connected", + "steppedLine": false, + "tooltip": { + "value_type": "cumulative", + "shared": true + }, + "targets": [ + { + "aggregator": "none", + "column": "value", + "metric": "net.in_bytes_sec", + "merge": true, + "alias": "net.in_bytes_sec (@hostname @device)", + "dimensions": [ + { + "key": "hostname", + "value": "$all" + }, + { + "key": "device", + "value": "$all" + } + ] + }, + { + "target": "", + "aggregator": "none", + "column": "value", + "merge": true, + "metric": "net.out_bytes_sec", + "alias": "net.out_bytes_sec (@hostname @device)", + "dimensions": [ + { + "key": "hostname", + "value": "$all" + }, + { + "key": "device", + "value": "$all" + } + ] + } + ], + "aliasColors": {}, + "seriesOverrides": [], + "links": [] + } + ], + "showTitle": true + } + ], + "nav": [ + { + "type": "timepicker", + "collapse": false, + "notice": false, + "enable": true, + "status": "Stable", + "time_options": [ + "15m", + "1h", + "6h", + "12h", + "24h", + "2d", + "7d", + "30d" + ], + "refresh_intervals": [ + "5s", + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ], + "now": true + } + ], + "time": { + "from": "now-1h", + "to": "now" + }, + "templating": { + "list": [], + "enable": false + }, + "annotations": { + "enable": false, + "list": [] + }, + "refresh": "30s", + "version": 6, + "hideAllLegends": false +} diff --git a/devstack/files/grafana/dashboards.d/09-monasca.json b/devstack/files/grafana/dashboards.d/09-monasca.json new file mode 100644 index 000000000..6d8427dab --- /dev/null +++ b/devstack/files/grafana/dashboards.d/09-monasca.json @@ -0,0 +1,1603 @@ +{ + "id": null, + "title": "Monasca Monitoring", + "originalTitle": "Monasca Monitoring", + "tags": [], + "style": "dark", + "timezone": "utc", + "time": { + "from": "now-1h", + "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" + ] + }, + "editable": true, + "hideControls": false, + "sharedCrosshair": false, + "rows": [ + { + "title": "Monasca Health - metrics", + "height": "100px", + "editable": true, + "collapse": false, + "panels": [ + { + "title": "Metrics API", + "error": false, + "span": 2, + "editable": true, + "type": "singlestat", + "id": 19, + "links": [], + "maxDataPoints": 100, + "interval": null, + "targets": [ + { + "aggregator": "none", + "column": "value", + "metric": "process.pid_count", + "condition_filter": true, + "dimensions": [{"key": "service", "value": "uwsgi"}] + } + ], + "cacheTimeout": null, + "format": "none", + "prefix": "", + "postfix": "", + "nullText": null, + "valueMaps": [ + { + "value": "0", + "op": "=", + "text": "DOWN" + }, + { + "value": "1", + "op": "=", + "text": "UP" + }, + { + "value": "2", + "op": "=", + "text": "UP" + }, + { + "value": "3", + "op": "=", + "text": "UP" + }, + { + "value": "4", + "op": "=", + "text": "UP" + }, + { + "value": "5", + "op": "=", + "text": "UP" + }, + { + "value": "6", + "op": "=", + "text": "UP" + }, + { + "value": "7", + "op": "=", + "text": "UP" + }, + { + "value": "8", + "op": "=", + "text": "UP" + }, + { + "value": "9", + "op": "=", + "text": "UP" + }, + { + "value": "10", + "op": "=", + "text": "UP" + }, + { + "value": "11", + "op": "=", + "text": "UP" + }, + { + "value": "12", + "op": "=", + "text": "UP" + } + ], + "nullPointMode": "connected", + "valueName": "current", + "prefixFontSize": "50%", + "valueFontSize": "80%", + "postfixFontSize": "50%", + "thresholds": "0.0,0.2,1.0", + "colorBackground": true, + "colorValue": false, + "colors": [ + "rgba(225, 40, 40, 0.59)", + "rgba(245, 150, 40, 0.73)", + "rgba(71, 212, 59, 0.4)" + ], + "sparkline": { + "show": false, + "full": false, + "lineColor": "rgb(31, 120, 193)", + "fillColor": "rgba(31, 118, 189, 0.18)" + } + }, + { + "title": "Storm", + "error": false, + "span": 2, + "editable": true, + "type": "singlestat", + "id": 44, + "links": [], + "maxDataPoints": 100, + "interval": null, + "targets": [ + { + "aggregator": "none", + "column": "value", + "metric": "process.pid_count", + "condition_filter": true, + "dimensions": [{"key": "service", "value": "storm"}] + } + ], + "cacheTimeout": null, + "format": "none", + "prefix": "", + "postfix": "", + "nullText": null, + "valueMaps": [ + { + "value": "1", + "op": "=", + "text": "UP" + }, + { + "value": "0", + "op": "=", + "text": "DOWN" + }, + { + "value": "2", + "op": "=", + "text": "UP" + }, + { + "value": "3", + "op": "=", + "text": "UP" + }, + { + "value": "4", + "op": "=", + "text": "UP" + }, + { + "value": "5", + "op": "=", + "text": "UP" + }, + { + "value": "6", + "op": "=", + "text": "UP" + }, + { + "value": "7", + "op": "=", + "text": "UP" + }, + { + "value": "8", + "op": "=", + "text": "UP" + } + ], + "nullPointMode": "connected", + "valueName": "current", + "prefixFontSize": "50%", + "valueFontSize": "80%", + "postfixFontSize": "50%", + "thresholds": "-1.0,0.2,0.8", + "colorBackground": true, + "colorValue": false, + "colors": [ + "rgba(225, 40, 40, 0.59)", + "rgba(245, 150, 40, 0.73)", + "rgba(71, 212, 59, 0.4)" + ], + "sparkline": { + "show": false, + "full": false, + "lineColor": "rgb(31, 120, 193)", + "fillColor": "rgba(31, 118, 189, 0.18)" + } + }, + { + "title": "Persister", + "error": false, + "span": 2, + "editable": true, + "type": "singlestat", + "id": 21, + "links": [], + "maxDataPoints": 100, + "interval": null, + "targets": [ + { + "aggregator": "none", + "column": "value", + "metric": "process.pid_count", + "condition_filter": true, + "dimensions": [{"key": "service", "value": "persister"}] + } + ], + "cacheTimeout": null, + "format": "none", + "prefix": "", + "postfix": "", + "nullText": null, + "valueMaps": [ + { + "value": "1", + "op": "=", + "text": "UP" + }, + { + "value": "0", + "op": "=", + "text": "DOWN" + }, + { + "value": "2", + "op": "=", + "text": "UP" + }, + { + "value": "3", + "op": "=", + "text": "UP" + }, + { + "value": "4", + "op": "=", + "text": "UP" + }, + { + "value": "5", + "op": "=", + "text": "UP" + }, + { + "value": "6", + "op": "=", + "text": "UP" + }, + { + "value": "7", + "op": "=", + "text": "UP" + }, + { + "value": "8", + "op": "=", + "text": "UP" + } + ], + "nullPointMode": "connected", + "valueName": "current", + "prefixFontSize": "50%", + "valueFontSize": "80%", + "postfixFontSize": "50%", + "thresholds": "-1.0,0.2,0.8", + "colorBackground": true, + "colorValue": false, + "colors": [ + "rgba(225, 40, 40, 0.59)", + "rgba(245, 150, 40, 0.73)", + "rgba(71, 212, 59, 0.4)" + ], + "sparkline": { + "show": false, + "full": false, + "lineColor": "rgb(31, 120, 193)", + "fillColor": "rgba(31, 118, 189, 0.18)" + } + }, + { + "title": "Metrics DB", + "error": false, + "span": 2, + "editable": true, + "type": "singlestat", + "id": 51, + "links": [], + "maxDataPoints": 100, + "interval": null, + "targets": [ + { + "aggregator": "none", + "column": "value", + "metric": "http_status", + "condition_filter": true, + "dimensions": [{"key": "service", "value": "influxdb"}] + } + ], + "cacheTimeout": null, + "format": "none", + "prefix": "", + "postfix": "", + "nullText": null, + "valueMaps": [ + { + "value": "0", + "op": "=", + "text": "UP" + }, + { + "value": "1", + "op": "=", + "text": "DOWN" + } + ], + "nullPointMode": "connected", + "valueName": "current", + "prefixFontSize": "50%", + "valueFontSize": "80%", + "postfixFontSize": "50%", + "thresholds": "-1.0,0.2,0.8", + "colorBackground": true, + "colorValue": false, + "colors": [ + "rgba(71, 212, 59, 0.4)", + "rgba(245, 150, 40, 0.73)", + "rgba(225, 40, 40, 0.59)" + ], + "sparkline": { + "show": false, + "full": false, + "lineColor": "rgb(31, 120, 193)", + "fillColor": "rgba(31, 118, 189, 0.18)" + } + }, + { + "title": "Notification Engine", + "error": false, + "span": 2, + "editable": true, + "type": "singlestat", + "id": 42, + "links": [], + "maxDataPoints": 100, + "interval": null, + "targets": [ + { + "aggregator": "none", + "column": "value", + "metric": "process.pid_count", + "condition_filter": true, + "dimensions": [{"key": "service", "value": "monasca-notification"}] + } + ], + "cacheTimeout": null, + "format": "none", + "prefix": "", + "postfix": "", + "nullText": null, + "valueMaps": [ + { + "value": "1", + "op": "=", + "text": "UP" + }, + { + "value": "0", + "op": "=", + "text": "DOWN" + }, + { + "value": "2", + "op": "=", + "text": "UP" + }, + { + "value": "3", + "op": "=", + "text": "UP" + }, + { + "value": "4", + "op": "=", + "text": "UP" + }, + { + "value": "5", + "op": "=", + "text": "UP" + }, + { + "value": "6", + "op": "=", + "text": "UP" + }, + { + "value": "7", + "op": "=", + "text": "UP" + }, + { + "value": "8", + "op": "=", + "text": "UP" + } + ], + "nullPointMode": "connected", + "valueName": "current", + "prefixFontSize": "50%", + "valueFontSize": "80%", + "postfixFontSize": "50%", + "thresholds": "-1.0,0.2,0.8", + "colorBackground": true, + "colorValue": false, + "colors": [ + "rgba(225, 40, 40, 0.59)", + "rgba(245, 150, 40, 0.73)", + "rgba(71, 212, 59, 0.4)" + ], + "sparkline": { + "show": false, + "full": false, + "lineColor": "rgb(31, 120, 193)", + "fillColor": "rgba(31, 118, 189, 0.18)" + } + } + ], + "showTitle": true + }, + { + "title": "Monasca Health - Common", + "height": "100px", + "editable": true, + "collapse": false, + "panels": [ + { + "title": "Kafka", + "error": false, + "span": 2, + "editable": true, + "type": "singlestat", + "id": 38, + "links": [], + "maxDataPoints": 100, + "interval": null, + "targets": [ + { + "aggregator": "none", + "column": "value", + "metric": "process.pid_count", + "condition_filter": true, + "dimensions": [{"key": "service", "value": "kafka"}] + } + ], + "cacheTimeout": null, + "format": "none", + "prefix": "", + "postfix": "", + "nullText": null, + "valueMaps": [ + { + "value": "1", + "op": "=", + "text": "UP" + }, + { + "value": "0", + "op": "=", + "text": "DOWN" + }, + { + "value": "2", + "op": "=", + "text": "UP" + }, + { + "value": "3", + "op": "=", + "text": "UP" + }, + { + "value": "4", + "op": "=", + "text": "UP" + }, + { + "value": "5", + "op": "=", + "text": "UP" + } + ], + "nullPointMode": "connected", + "valueName": "current", + "prefixFontSize": "50%", + "valueFontSize": "80%", + "postfixFontSize": "50%", + "thresholds": "-1.0,0.2,0.8", + "colorBackground": true, + "colorValue": false, + "colors": [ + "rgba(225, 40, 40, 0.59)", + "rgba(245, 150, 40, 0.73)", + "rgba(71, 212, 59, 0.4)" + ], + "sparkline": { + "show": false, + "full": false, + "lineColor": "rgb(31, 120, 193)", + "fillColor": "rgba(31, 118, 189, 0.18)" + } + }, + { + "title": "ZooKeeper", + "error": false, + "span": 2, + "editable": true, + "type": "singlestat", + "id": 48, + "links": [], + "maxDataPoints": 100, + "interval": null, + "targets": [ + { + "aggregator": "none", + "column": "value", + "metric": "process.pid_count", + "condition_filter": true, + "dimensions": [{"key": "service", "value": "zookeeper"}] + } + ], + "cacheTimeout": null, + "format": "none", + "prefix": "", + "postfix": "", + "nullText": null, + "valueMaps": [ + { + "value": "1", + "op": "=", + "text": "UP" + }, + { + "value": "0", + "op": "=", + "text": "DOWN" + }, + { + "value": "2", + "op": "=", + "text": "UP" + }, + { + "value": "3", + "op": "=", + "text": "UP" + }, + { + "value": "4", + "op": "=", + "text": "UP" + }, + { + "value": "5", + "op": "=", + "text": "UP" + }, + { + "value": "6", + "op": "=", + "text": "UP" + }, + { + "value": "7", + "op": "=", + "text": "UP" + }, + { + "value": "8", + "op": "=", + "text": "UP" + } + ], + "nullPointMode": "connected", + "valueName": "current", + "prefixFontSize": "50%", + "valueFontSize": "80%", + "postfixFontSize": "50%", + "thresholds": "-1.0,0.2,0.8", + "colorBackground": true, + "colorValue": false, + "colors": [ + "rgba(225, 40, 40, 0.59)", + "rgba(245, 150, 40, 0.73)", + "rgba(71, 212, 59, 0.4)" + ], + "sparkline": { + "show": false, + "full": false, + "lineColor": "rgb(31, 120, 193)", + "fillColor": "rgba(31, 118, 189, 0.18)" + } + }, + { + "title": "MariaDB", + "error": false, + "span": 2, + "editable": true, + "type": "singlestat", + "id": 66, + "links": [], + "maxDataPoints": 100, + "interval": null, + "targets": [ + { + "aggregator": "none", + "column": "value", + "metric": "process.pid_count", + "condition_filter": true, + "dimensions": [{"key": "service", "value": "mysqld"}] + } + ], + "cacheTimeout": null, + "format": "none", + "prefix": "", + "postfix": "", + "nullText": null, + "valueMaps": [ + { + "value": "1", + "op": "=", + "text": "UP" + }, + { + "value": "0", + "op": "=", + "text": "DOWN" + }, + { + "value": "2", + "op": "=", + "text": "UP" + }, + { + "value": "3", + "op": "=", + "text": "UP" + }, + { + "value": "4", + "op": "=", + "text": "UP" + }, + { + "value": "5", + "op": "=", + "text": "UP" + }, + { + "value": "6", + "op": "=", + "text": "UP" + }, + { + "value": "7", + "op": "=", + "text": "UP" + }, + { + "value": "8", + "op": "=", + "text": "UP" + } + ], + "nullPointMode": "connected", + "valueName": "current", + "prefixFontSize": "50%", + "valueFontSize": "80%", + "postfixFontSize": "50%", + "thresholds": "-1.0,0.2,0.8", + "colorBackground": true, + "colorValue": false, + "colors": [ + "rgba(225, 40, 40, 0.59)", + "rgba(245, 150, 40, 0.73)", + "rgba(71, 212, 59, 0.4)" + ], + "sparkline": { + "show": false, + "full": false, + "lineColor": "rgb(31, 120, 193)", + "fillColor": "rgba(31, 118, 189, 0.18)" + } + }, + { + "title": "Statsd", + "error": false, + "span": 2, + "editable": true, + "type": "singlestat", + "id": 166, + "links": [], + "maxDataPoints": 100, + "interval": null, + "targets": [ + { + "aggregator": "none", + "column": "value", + "metric": "process.pid_count", + "condition_filter": true, + "dimensions": [{"key": "service", "value": "monasca-statsd"}] + } + ], + "cacheTimeout": null, + "format": "none", + "prefix": "", + "postfix": "", + "nullText": null, + "valueMaps": [ + { + "value": "1", + "op": "=", + "text": "UP" + }, + { + "value": "0", + "op": "=", + "text": "DOWN" + }, + { + "value": "2", + "op": "=", + "text": "UP" + }, + { + "value": "3", + "op": "=", + "text": "UP" + }, + { + "value": "4", + "op": "=", + "text": "UP" + }, + { + "value": "5", + "op": "=", + "text": "UP" + }, + { + "value": "6", + "op": "=", + "text": "UP" + }, + { + "value": "7", + "op": "=", + "text": "UP" + }, + { + "value": "8", + "op": "=", + "text": "UP" + } + ], + "nullPointMode": "connected", + "valueName": "current", + "prefixFontSize": "50%", + "valueFontSize": "80%", + "postfixFontSize": "50%", + "thresholds": "-1.0,0.2,0.8", + "colorBackground": true, + "colorValue": false, + "colors": [ + "rgba(225, 40, 40, 0.59)", + "rgba(245, 150, 40, 0.73)", + "rgba(71, 212, 59, 0.4)" + ], + "sparkline": { + "show": false, + "full": false, + "lineColor": "rgb(31, 120, 193)", + "fillColor": "rgba(31, 118, 189, 0.18)" + } + } + ], + "showTitle": true + }, + { + "title": "System resources", + "height": "250px", + "editable": true, + "collapse": false, + "panels": [ + { + "title": "CPU usage", + "error": false, + "span": 6, + "editable": true, + "type": "graph", + "id": 23, + "datasource": null, + "renderer": "flot", + "x-axis": true, + "y-axis": true, + "y_formats": [ + "percent", + "short" + ], + "grid": { + "leftMax": 100, + "rightMax": null, + "leftMin": 0, + "rightMin": null, + "threshold1": null, + "threshold2": null, + "threshold1Color": "rgba(216, 200, 27, 0.27)", + "threshold2Color": "rgba(234, 112, 112, 0.22)" + }, + "lines": true, + "fill": 0, + "linewidth": 1, + "points": false, + "pointradius": 5, + "bars": false, + "stack": false, + "percentage": false, + "legend": { + "show": true, + "values": false, + "min": false, + "max": false, + "current": false, + "total": false, + "avg": false, + "alignAsTable": true + }, + "nullPointMode": "connected", + "steppedLine": false, + "tooltip": { + "value_type": "cumulative", + "shared": false + }, + "targets": [ + { + "aggregator": "none", + "column": "value", + "metric": "cpu.percent", + "condition_filter": true, + "condition_key": "service", + "condition_value": "monitoring" + }, + { + "target": "", + "aggregator": "none", + "column": "value", + "metric": "cpu.user_perc", + "condition_filter": true, + "condition_key": "service", + "condition_value": "monitoring" + }, + { + "target": "", + "aggregator": "none", + "column": "value", + "metric": "cpu.system_perc", + "condition_filter": true + }, + { + "target": "", + "aggregator": "none", + "column": "value", + "metric": "cpu.wait_perc", + "condition_filter": true + } + ], + "aliasColors": {}, + "seriesOverrides": [], + "links": [] + }, + { + "title": "Memory usage", + "error": false, + "span": 6, + "editable": true, + "type": "graph", + "id": 24, + "datasource": null, + "renderer": "flot", + "x-axis": true, + "y-axis": true, + "y_formats": [ + "none", + "short" + ], + "grid": { + "leftMax": null, + "rightMax": null, + "leftMin": 0, + "rightMin": null, + "threshold1": null, + "threshold2": null, + "threshold1Color": "rgba(216, 200, 27, 0.27)", + "threshold2Color": "rgba(234, 112, 112, 0.22)" + }, + "lines": true, + "fill": 0, + "linewidth": 1, + "points": false, + "pointradius": 5, + "bars": false, + "stack": false, + "percentage": false, + "legend": { + "show": true, + "values": false, + "min": false, + "max": false, + "current": false, + "total": false, + "avg": false, + "alignAsTable": true + }, + "nullPointMode": "connected", + "steppedLine": false, + "tooltip": { + "value_type": "individual", + "shared": true + }, + "targets": [ + { + "aggregator": "none", + "column": "value", + "metric": "mem.total_mb", + "condition_filter": true + }, + { + "target": "", + "aggregator": "none", + "column": "value", + "metric": "mem.used_mb", + "period": "", + "condition_filter": true + }, + { + "target": "", + "aggregator": "none", + "column": "value", + "metric": "mem.swap_total_mb", + "condition_filter": true, + "condition_key": "service", + "condition_value": "monitoring" + }, + { + "target": "", + "aggregator": "none", + "column": "value", + "metric": "mem.swap_used_mb", + "condition_filter": true, + "condition_key": "service", + "condition_value": "monitoring" + }, + { + "target": "", + "aggregator": "none", + "column": "value", + "metric": "mem.used_cache", + "condition_filter": true, + "condition_key": "service", + "condition_value": "monitoring" + } + ], + "aliasColors": {}, + "seriesOverrides": [], + "links": [], + "leftYAxisLabel": "MB" + }, + { + "title": "Disk usage", + "error": false, + "span": 6, + "editable": true, + "type": "graph", + "id": 25, + "datasource": null, + "renderer": "flot", + "x-axis": true, + "y-axis": true, + "y_formats": [ + "percent", + "short" + ], + "grid": { + "leftMax": 100, + "rightMax": null, + "leftMin": 0, + "rightMin": null, + "threshold1": null, + "threshold2": null, + "threshold1Color": "rgba(216, 200, 27, 0.27)", + "threshold2Color": "rgba(234, 112, 112, 0.22)" + }, + "lines": true, + "fill": 0, + "linewidth": 1, + "points": false, + "pointradius": 5, + "bars": false, + "stack": false, + "percentage": false, + "legend": { + "show": true, + "values": false, + "min": false, + "max": false, + "current": false, + "total": false, + "avg": false, + "alignAsTable": true + }, + "nullPointMode": "connected", + "steppedLine": false, + "tooltip": { + "value_type": "cumulative", + "shared": true + }, + "targets": [ + { + "aggregator": "none", + "column": "value", + "metric": "disk.space_used_perc", + "condition_filter": true, + "condition_key": "service", + "condition_value": "monitoring", + "dimensions": [ + { + "key": "mount_point", + "value": "/boot" + } + ] + } + ], + "aliasColors": {}, + "seriesOverrides": [], + "links": [] + }, + { + "title": "System load", + "error": false, + "span": 6, + "editable": true, + "type": "graph", + "id": 26, + "datasource": null, + "renderer": "flot", + "x-axis": true, + "y-axis": true, + "y_formats": [ + "none", + "short" + ], + "grid": { + "leftMax": null, + "rightMax": null, + "leftMin": 0, + "rightMin": null, + "threshold1": null, + "threshold2": null, + "threshold1Color": "rgba(216, 200, 27, 0.27)", + "threshold2Color": "rgba(234, 112, 112, 0.22)" + }, + "lines": true, + "fill": 0, + "linewidth": 1, + "points": false, + "pointradius": 5, + "bars": false, + "stack": false, + "percentage": false, + "legend": { + "show": true, + "values": false, + "min": false, + "max": false, + "current": false, + "total": false, + "avg": false, + "alignAsTable": true + }, + "nullPointMode": "connected", + "steppedLine": false, + "tooltip": { + "value_type": "cumulative", + "shared": true + }, + "targets": [ + { + "aggregator": "none", + "column": "value", + "metric": "load.avg_1_min", + "period": "", + "condition_filter": true, + "condition_key": "service", + "condition_value": "monitoring" + }, + { + "aggregator": "none", + "column": "value", + "condition_filter": true, + "condition_key": "service", + "condition_value": "monitoring", + "metric": "load.avg_5_min", + "period": "300", + "refId": "B", + "dimensions": [], + "error": "" + }, + { + "aggregator": "none", + "column": "value", + "condition_filter": true, + "condition_key": "service", + "condition_value": "monitoring", + "metric": "load.avg_15_min", + "period": "300", + "refId": "C", + "dimensions": [], + "error": "" + } + ], + "aliasColors": {}, + "seriesOverrides": [], + "links": [] + } + ], + "showTitle": true + }, + { + "title": "Network Monitoring", + "height": "250px", + "editable": true, + "collapse": false, + "panels": [ + { + "title": "Network usage", + "error": false, + "span": 6, + "editable": true, + "type": "graph", + "id": 61, + "datasource": null, + "renderer": "flot", + "x-axis": true, + "y-axis": true, + "y_formats": [ + "bps", + "short" + ], + "grid": { + "leftMax": null, + "rightMax": null, + "leftMin": 0, + "rightMin": null, + "threshold1": null, + "threshold2": null, + "threshold1Color": "rgba(216, 200, 27, 0.27)", + "threshold2Color": "rgba(234, 112, 112, 0.22)" + }, + "lines": true, + "fill": 0, + "linewidth": 1, + "points": false, + "pointradius": 5, + "bars": false, + "stack": false, + "percentage": false, + "legend": { + "show": true, + "values": false, + "min": false, + "max": false, + "current": false, + "total": false, + "avg": false, + "alignAsTable": true + }, + "nullPointMode": "connected", + "steppedLine": false, + "tooltip": { + "value_type": "cumulative", + "shared": true + }, + "targets": [ + { + "aggregator": "none", + "column": "value", + "metric": "net.in_bytes_sec", + "merge": true, + "dimensions": "", + "period": "", + "condition_filter": true, + "condition_key": "service", + "condition_value": "monitoring" + }, + { + "target": "", + "aggregator": "none", + "column": "value", + "metric": "net.out_bytes_sec", + "merge": true, + "dimensions": "", + "period": "", + "condition_filter": true, + "condition_key": "service", + "condition_value": "monitoring" + } + ], + "aliasColors": {}, + "seriesOverrides": [], + "links": [] + } + ], + "showTitle": true + }, + { + "title": "Kafka", + "height": "250px", + "editable": true, + "collapse": false, + "panels": [ + { + "title": "CPU usage", + "error": false, + "span": 4, + "editable": true, + "type": "graph", + "id": 60, + "datasource": null, + "renderer": "flot", + "x-axis": true, + "y-axis": true, + "y_formats": [ + "percent", + "short" + ], + "grid": { + "leftMax": null, + "rightMax": null, + "leftMin": 0, + "rightMin": null, + "threshold1": null, + "threshold2": null, + "threshold1Color": "rgba(216, 200, 27, 0.27)", + "threshold2Color": "rgba(234, 112, 112, 0.22)" + }, + "lines": true, + "fill": 0, + "linewidth": 1, + "points": false, + "pointradius": 5, + "bars": false, + "stack": false, + "percentage": false, + "legend": { + "show": true, + "values": false, + "min": false, + "max": false, + "current": false, + "total": false, + "avg": false, + "alignAsTable": true + }, + "nullPointMode": "connected", + "steppedLine": false, + "tooltip": { + "value_type": "cumulative", + "shared": true + }, + "targets": [ + { + "aggregator": "none", + "column": "value", + "metric": "process.cpu_perc", + "condition_filter": true, + "dimensions": [{"key": "service", "value": "kafka"}] + } + ], + "aliasColors": {}, + "seriesOverrides": [], + "links": [] + }, + { + "title": "Allocated memory", + "error": false, + "span": 4, + "editable": true, + "type": "graph", + "id": 59, + "datasource": null, + "renderer": "flot", + "x-axis": true, + "y-axis": true, + "y_formats": [ + "none", + "short" + ], + "grid": { + "leftMax": null, + "rightMax": null, + "leftMin": 0, + "rightMin": null, + "threshold1": null, + "threshold2": null, + "threshold1Color": "rgba(216, 200, 27, 0.27)", + "threshold2Color": "rgba(234, 112, 112, 0.22)" + }, + "lines": true, + "fill": 0, + "linewidth": 1, + "points": false, + "pointradius": 5, + "bars": false, + "stack": false, + "percentage": false, + "legend": { + "show": true, + "values": false, + "min": false, + "max": false, + "current": false, + "total": false, + "avg": false, + "alignAsTable": true + }, + "nullPointMode": "connected", + "steppedLine": false, + "tooltip": { + "value_type": "cumulative", + "shared": true + }, + "targets": [ + { + "aggregator": "none", + "column": "value", + "metric": "process.mem.rss_mbytes", + "condition_filter": true, + "dimensions": [{"key": "service", "value": "kafka"}] + } + ], + "aliasColors": {}, + "seriesOverrides": [], + "leftYAxisLabel": "MB", + "links": [] + }, + { + "title": "PID count", + "error": false, + "span": 4, + "editable": true, + "type": "graph", + "id": 89, + "datasource": null, + "renderer": "flot", + "x-axis": true, + "y-axis": true, + "y_formats": [ + "none", + "short" + ], + "grid": { + "leftMax": null, + "rightMax": null, + "leftMin": 0, + "rightMin": null, + "threshold1": null, + "threshold2": null, + "threshold1Color": "rgba(216, 200, 27, 0.27)", + "threshold2Color": "rgba(234, 112, 112, 0.22)" + }, + "lines": true, + "fill": 0, + "linewidth": 1, + "points": false, + "pointradius": 5, + "bars": false, + "stack": false, + "percentage": false, + "legend": { + "show": true, + "values": false, + "min": false, + "max": false, + "current": false, + "total": false, + "avg": false, + "alignAsTable": true + }, + "nullPointMode": "connected", + "steppedLine": true, + "tooltip": { + "value_type": "cumulative", + "shared": true + }, + "targets": [ + { + "aggregator": "none", + "column": "value", + "metric": "process.pid_count", + "condition_filter": true, + "dimensions": [{"key": "service", "value": "kafka"}] + } + ], + "aliasColors": {}, + "seriesOverrides": [], + "links": [] + }, + { + "title": "Consumer lag", + "error": false, + "span": 12, + "editable": true, + "type": "graph", + "id": 58, + "datasource": null, + "renderer": "flot", + "x-axis": true, + "y-axis": true, + "y_formats": [ + "none", + "short" + ], + "grid": { + "leftMax": null, + "rightMax": null, + "leftMin": 0, + "rightMin": null, + "threshold1": null, + "threshold2": null, + "threshold1Color": "rgba(216, 200, 27, 0.27)", + "threshold2Color": "rgba(234, 112, 112, 0.22)" + }, + "lines": true, + "fill": 0, + "linewidth": 1, + "points": false, + "pointradius": 5, + "bars": false, + "stack": false, + "percentage": false, + "legend": { + "show": true, + "values": false, + "min": false, + "max": false, + "current": false, + "total": false, + "avg": false, + "alignAsTable": true + }, + "nullPointMode": "connected", + "steppedLine": false, + "tooltip": { + "value_type": "cumulative", + "shared": true + }, + "targets": [ + { + "aggregator": "none", + "column": "value", + "metric": "kafka.consumer_lag", + "alias": "kafka.consumer_lag: @consumer_group", + "refId": "A", + "period": "300", + "dimensions": [ + { + "key": "consumer_group", + "value": "$all" + } + ], + "error": "" + } + ], + "aliasColors": {}, + "seriesOverrides": [], + "links": [] + } + ], + "showTitle": true + }, + { + "title": "Components", + "panels": [ + { + "id": 167, + "title": "Common", + "span": 4, + "type": "dashlist", + "query": "", + "limit": 10, + "tags": [ + "common" + ], + "recent": false, + "search": true, + "starred": false, + "headings": false, + "links": [] + }, + { + "id": 168, + "title": "Metrics", + "span": 4, + "type": "dashlist", + "query": "", + "limit": 10, + "tags": [ + "metrics" + ], + "recent": false, + "search": true, + "starred": false, + "headings": false, + "links": [] + } + ] + } + ], + "time": { + "from": "now-1h", + "to": "now" + }, + "templating": { + "list": [], + "enable": false + }, + "annotations": { + "enable": false, + "list": [] + }, + "refresh": "30s", + "version": 6, + "hideAllLegends": false +} diff --git a/devstack/files/grafana/dashboards.d/11-maradb.json b/devstack/files/grafana/dashboards.d/11-maradb.json new file mode 100644 index 000000000..f52b13065 --- /dev/null +++ b/devstack/files/grafana/dashboards.d/11-maradb.json @@ -0,0 +1,709 @@ +{ + "id": null, + "title": "MariaDB", + "tags": [ + "common" + ], + "style": "dark", + "timezone": "browser", + "editable": true, + "sharedCrosshair": false, + "hideControls": false, + "time": { + "from": "now-1h", + "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": 15, + "links": [], + "gnetId": null, + "rows": [ + { + "title": "Dashboard Row", + "panels": [ + { + "cacheTimeout": null, + "colorBackground": true, + "colorValue": false, + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "format": "none", + "gauge": { + "maxValue": 100, + "minValue": 0, + "show": false, + "thresholdLabels": false, + "thresholdMarkers": true + }, + "id": 1, + "interval": null, + "links": [], + "maxDataPoints": 100, + "nullPointMode": "connected", + "nullText": null, + "postfix": "", + "postfixFontSize": "50%", + "prefix": "", + "prefixFontSize": "50%", + "span": 4, + "sparkline": { + "fillColor": "rgba(31, 118, 189, 0.18)", + "full": false, + "lineColor": "rgb(31, 120, 193)", + "show": false + }, + "targets": [ + { + "aggregator": "none", + "dimensions": [ + { + "key": "service", + "value": "mysqld" + } + ], + "error": "", + "metric": "process.pid_count", + "period": "300", + "refId": "A" + } + ], + "thresholds": "0.2,0.8", + "title": "MariaDB", + "type": "singlestat", + "valueFontSize": "80%", + "valueMaps": [ + { + "value": "0", + "op": "=", + "text": "DOWN" + }, + { + "value": "1", + "op": "=", + "text": "UP" + }, + { + "value": "2", + "op": "=", + "text": "UP" + }, + { + "value": "3", + "op": "=", + "text": "UP" + }, + { + "value": "4", + "op": "=", + "text": "UP" + }, + { + "value": "5", + "op": "=", + "text": "UP" + }, + { + "value": "6", + "op": "=", + "text": "UP" + }, + { + "value": "7", + "op": "=", + "text": "UP" + }, + { + "value": "8", + "op": "=", + "text": "UP" + }, + { + "value": "9", + "op": "=", + "text": "UP" + }, + { + "value": "10", + "op": "=", + "text": "UP" + }, + { + "value": "11", + "op": "=", + "text": "UP" + }, + { + "value": "12", + "op": "=", + "text": "UP" + } + ], + "valueName": "current" + }, + { + "aliasColors": {}, + "bars": false, + "fill": 1, + "id": 2, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 4, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "mysqld" + } + ], + "error": "", + "metric": "process.cpu_perc", + "period": "300", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "CPU", + "tooltip": { + "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 + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "fill": 1, + "id": 3, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 4, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "mysqld" + } + ], + "error": "", + "metric": "process.mem.rss_mbytes", + "period": "300", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Memory", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "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 + } + ] + } + ], + "showTitle": false, + "titleSize": "h6", + "height": "250px", + "repeat": null, + "repeatRowId": null, + "repeatIteration": null, + "collapse": false + }, + { + "title": "Dashboard Row", + "panels": [ + { + "aliasColors": {}, + "bars": false, + "fill": 1, + "id": 4, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "dimensions": [], + "error": "", + "metric": "mysql.innodb.data_reads", + "period": "300", + "refId": "A" + }, + { + "aggregator": "avg", + "dimensions": [], + "error": "", + "metric": "mysql.innodb.data_writes", + "period": "300", + "refId": "B" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Data Read/Write", + "tooltip": { + "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 + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "fill": 1, + "id": 7, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "mysqld" + } + ], + "error": "", + "metric": "process.io.read_kbytes", + "period": "300", + "refId": "A" + }, + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "mysqld" + } + ], + "error": "", + "metric": "process.io.write_kbytes", + "period": "300", + "refId": "B" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "IO", + "tooltip": { + "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 + } + ] + } + ], + "showTitle": false, + "titleSize": "h6", + "height": 250, + "repeat": null, + "repeatRowId": null, + "repeatIteration": null, + "collapse": false + }, + { + "title": "Dashboard Row", + "panels": [ + { + "aliasColors": {}, + "bars": false, + "fill": 1, + "id": 5, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 12, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "dimensions": [], + "error": "", + "metric": "mysql.innodb.buffer_pool_free", + "period": "300", + "refId": "A" + }, + { + "aggregator": "avg", + "dimensions": [], + "error": "", + "metric": "mysql.innodb.buffer_pool_total", + "period": "300", + "refId": "B" + }, + { + "aggregator": "avg", + "dimensions": [], + "error": "", + "metric": "mysql.innodb.buffer_pool_used", + "period": "300", + "refId": "C" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Buffer Pool Size", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "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 + } + ] + } + ], + "showTitle": false, + "titleSize": "h6", + "height": 250, + "repeat": null, + "repeatRowId": null, + "repeatIteration": null, + "collapse": false + }, + { + "title": "Dashboard Row", + "panels": [ + { + "aliasColors": {}, + "bars": false, + "fill": 1, + "id": 6, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 12, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "dimensions": [], + "error": "", + "metric": "mysql.innodb.row_lock_time", + "period": "300", + "refId": "A" + }, + { + "aggregator": "avg", + "dimensions": [], + "error": "", + "metric": "mysql.innodb.row_lock_waits", + "period": "300", + "refId": "B" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Lock", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "ms", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + } + ], + "showTitle": false, + "titleSize": "h6", + "height": 250, + "repeat": null, + "repeatRowId": null, + "repeatIteration": null, + "collapse": false + } + ] +} diff --git a/devstack/files/grafana/dashboards.d/12-api.json b/devstack/files/grafana/dashboards.d/12-api.json new file mode 100644 index 000000000..bf520f27e --- /dev/null +++ b/devstack/files/grafana/dashboards.d/12-api.json @@ -0,0 +1,624 @@ +{ + "id": null, + "title": "Monasca API", + "tags": [ + "metrics" + ], + "style": "dark", + "timezone": "browser", + "editable": true, + "sharedCrosshair": false, + "hideControls": false, + "time": { + "from": "now-1h", + "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": 7, + "links": [], + "gnetId": null, + "rows": [ + { + "title": "Dashboard Row", + "panels": [ + { + "cacheTimeout": null, + "colorBackground": true, + "colorValue": false, + "colors": [ + "rgba(225, 40, 40, 0.59)", + "rgba(245, 150, 40, 0.73)", + "rgba(71, 212, 59, 0.4)" + ], + "format": "none", + "gauge": { + "maxValue": 100, + "minValue": 0, + "show": false, + "thresholdLabels": false, + "thresholdMarkers": true + }, + "id": 1, + "interval": null, + "links": [], + "mappingType": 1, + "mappingTypes": [ + ], + "maxDataPoints": 100, + "nullPointMode": "connected", + "nullText": null, + "postfix": "", + "postfixFontSize": "50%", + "prefix": "", + "prefixFontSize": "50%", + "span": 4, + "sparkline": { + "fillColor": "rgba(31, 118, 189, 0.18)", + "full": false, + "lineColor": "rgb(31, 120, 193)", + "show": false + }, + "targets": [ + { + "aggregator": "none", + "dimensions": [ + { + "key": "service", + "value": "uwsgi" + } + ], + "error": "", + "metric": "process.pid_count", + "period": "300", + "refId": "A" + } + ], + "thresholds": "0.2,0.8", + "title": "Monasca API", + "type": "singlestat", + "valueFontSize": "80%", + "valueMaps": [ + { + "value": "0", + "op": "=", + "text": "DOWN" + }, + { + "value": "1", + "op": "=", + "text": "UP" + }, + { + "value": "2", + "op": "=", + "text": "UP" + }, + { + "value": "3", + "op": "=", + "text": "UP" + }, + { + "value": "4", + "op": "=", + "text": "UP" + }, + { + "value": "5", + "op": "=", + "text": "UP" + }, + { + "value": "6", + "op": "=", + "text": "UP" + }, + { + "value": "7", + "op": "=", + "text": "UP" + }, + { + "value": "8", + "op": "=", + "text": "UP" + }, + { + "value": "9", + "op": "=", + "text": "UP" + }, + { + "value": "10", + "op": "=", + "text": "UP" + }, + { + "value": "11", + "op": "=", + "text": "UP" + }, + { + "value": "12", + "op": "=", + "text": "UP" + } + ], + "valueName": "current" + }, + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "fill": 1, + "id": 2, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 4, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "monasca-api" + } + ], + "error": "", + "metric": "process.cpu_perc", + "period": "300", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "CPU", + "tooltip": { + "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 + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "fill": 1, + "id": 3, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 4, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "monasca-api" + } + ], + "error": "", + "metric": "process.mem.rss_mbytes", + "period": "300", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Memory", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "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 + } + ] + } + ], + "showTitle": false, + "titleSize": "h6", + "height": "250px", + "repeat": null, + "repeatRowId": null, + "repeatIteration": null, + "collapse": false + }, + { + "title": "Dashboard Row", + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "fill": 1, + "id": 4, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "monasca-api" + } + ], + "error": "", + "metric": "process.io.read_count", + "period": "300", + "refId": "A" + }, + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "monasca-api" + } + ], + "error": "", + "metric": "process.io.write_count", + "period": "300", + "refId": "B" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "IO Count", + "tooltip": { + "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 + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "fill": 1, + "id": 5, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "monasca-api" + } + ], + "error": "", + "metric": "process.io.read_kbytes", + "period": "300", + "refId": "A" + }, + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "monasca-api" + } + ], + "error": "", + "metric": "process.io.write_kbytes", + "period": "300", + "refId": "B" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "IO Read/Write [kB]", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "kbytes", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + } + ], + "showTitle": false, + "titleSize": "h6", + "height": 250, + "repeat": null, + "repeatRowId": null, + "repeatIteration": null, + "collapse": false + }, + { + "title": "Dashboard Row", + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "fill": 1, + "id": 6, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 12, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "monasca-api" + } + ], + "error": "", + "metric": "process.open_file_descriptors", + "period": "300", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Open File Descriptors", + "tooltip": { + "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 + } + ] + } + ], + "showTitle": false, + "titleSize": "h6", + "height": 250, + "repeat": null, + "repeatRowId": null, + "repeatIteration": null, + "collapse": false + } + ] +} diff --git a/devstack/files/grafana/dashboards.d/13-storm.json b/devstack/files/grafana/dashboards.d/13-storm.json new file mode 100644 index 000000000..ce39304c3 --- /dev/null +++ b/devstack/files/grafana/dashboards.d/13-storm.json @@ -0,0 +1,624 @@ +{ + "id": null, + "title": "Storm", + "tags": [ + "metrics" + ], + "style": "dark", + "timezone": "browser", + "editable": true, + "sharedCrosshair": false, + "hideControls": false, + "time": { + "from": "now-1h", + "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": 7, + "links": [], + "gnetId": null, + "rows": [ + { + "title": "Dashboard Row", + "panels": [ + { + "cacheTimeout": null, + "colorBackground": true, + "colorValue": false, + "colors": [ + "rgba(225, 40, 40, 0.59)", + "rgba(245, 150, 40, 0.73)", + "rgba(71, 212, 59, 0.4)" + ], + "format": "none", + "gauge": { + "maxValue": 100, + "minValue": 0, + "show": false, + "thresholdLabels": false, + "thresholdMarkers": true + }, + "id": 1, + "interval": null, + "links": [], + "mappingType": 1, + "mappingTypes": [ + ], + "maxDataPoints": 100, + "nullPointMode": "connected", + "nullText": null, + "postfix": "", + "postfixFontSize": "50%", + "prefix": "", + "prefixFontSize": "50%", + "span": 4, + "sparkline": { + "fillColor": "rgba(31, 118, 189, 0.18)", + "full": false, + "lineColor": "rgb(31, 120, 193)", + "show": false + }, + "targets": [ + { + "aggregator": "none", + "dimensions": [ + { + "key": "service", + "value": "storm" + } + ], + "error": "", + "metric": "process.pid_count", + "period": "300", + "refId": "A" + } + ], + "thresholds": "0.2,0.8", + "title": "Storm", + "type": "singlestat", + "valueFontSize": "80%", + "valueMaps": [ + { + "value": "0", + "op": "=", + "text": "DOWN" + }, + { + "value": "1", + "op": "=", + "text": "UP" + }, + { + "value": "2", + "op": "=", + "text": "UP" + }, + { + "value": "3", + "op": "=", + "text": "UP" + }, + { + "value": "4", + "op": "=", + "text": "UP" + }, + { + "value": "5", + "op": "=", + "text": "UP" + }, + { + "value": "6", + "op": "=", + "text": "UP" + }, + { + "value": "7", + "op": "=", + "text": "UP" + }, + { + "value": "8", + "op": "=", + "text": "UP" + }, + { + "value": "9", + "op": "=", + "text": "UP" + }, + { + "value": "10", + "op": "=", + "text": "UP" + }, + { + "value": "11", + "op": "=", + "text": "UP" + }, + { + "value": "12", + "op": "=", + "text": "UP" + } + ], + "valueName": "current" + }, + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "fill": 1, + "id": 2, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 4, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "storm" + } + ], + "error": "", + "metric": "process.cpu_perc", + "period": "300", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "CPU", + "tooltip": { + "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 + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "fill": 1, + "id": 3, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 4, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "storm" + } + ], + "error": "", + "metric": "process.mem.rss_mbytes", + "period": "300", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Memory", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "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 + } + ] + } + ], + "showTitle": false, + "titleSize": "h6", + "height": "250px", + "repeat": null, + "repeatRowId": null, + "repeatIteration": null, + "collapse": false + }, + { + "title": "Dashboard Row", + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "fill": 1, + "id": 4, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "storm" + } + ], + "error": "", + "metric": "process.io.read_count", + "period": "300", + "refId": "A" + }, + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "storm" + } + ], + "error": "", + "metric": "process.io.write_count", + "period": "300", + "refId": "B" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "IO Count", + "tooltip": { + "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 + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "fill": 1, + "id": 5, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "storm" + } + ], + "error": "", + "metric": "process.io.read_kbytes", + "period": "300", + "refId": "A" + }, + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "storm" + } + ], + "error": "", + "metric": "process.io.write_kbytes", + "period": "300", + "refId": "B" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "IO Read/Write [kB]", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "kbytes", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + } + ], + "showTitle": false, + "titleSize": "h6", + "height": 250, + "repeat": null, + "repeatRowId": null, + "repeatIteration": null, + "collapse": false + }, + { + "title": "Dashboard Row", + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "fill": 1, + "id": 6, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 12, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "storm" + } + ], + "error": "", + "metric": "process.open_file_descriptors", + "period": "300", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Open File Descriptors", + "tooltip": { + "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 + } + ] + } + ], + "showTitle": false, + "titleSize": "h6", + "height": 250, + "repeat": null, + "repeatRowId": null, + "repeatIteration": null, + "collapse": false + } + ] +} diff --git a/devstack/files/grafana/dashboards.d/14-persister.json b/devstack/files/grafana/dashboards.d/14-persister.json new file mode 100644 index 000000000..993c99369 --- /dev/null +++ b/devstack/files/grafana/dashboards.d/14-persister.json @@ -0,0 +1,624 @@ +{ + "id": null, + "title": "Persister", + "tags": [ + "metrics" + ], + "style": "dark", + "timezone": "browser", + "editable": true, + "sharedCrosshair": false, + "hideControls": false, + "time": { + "from": "now-1h", + "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": 7, + "links": [], + "gnetId": null, + "rows": [ + { + "title": "Dashboard Row", + "panels": [ + { + "cacheTimeout": null, + "colorBackground": true, + "colorValue": false, + "colors": [ + "rgba(225, 40, 40, 0.59)", + "rgba(245, 150, 40, 0.73)", + "rgba(71, 212, 59, 0.4)" + ], + "format": "none", + "gauge": { + "maxValue": 100, + "minValue": 0, + "show": false, + "thresholdLabels": false, + "thresholdMarkers": true + }, + "id": 1, + "interval": null, + "links": [], + "mappingType": 1, + "mappingTypes": [ + ], + "maxDataPoints": 100, + "nullPointMode": "connected", + "nullText": null, + "postfix": "", + "postfixFontSize": "50%", + "prefix": "", + "prefixFontSize": "50%", + "span": 4, + "sparkline": { + "fillColor": "rgba(31, 118, 189, 0.18)", + "full": false, + "lineColor": "rgb(31, 120, 193)", + "show": false + }, + "targets": [ + { + "aggregator": "none", + "dimensions": [ + { + "key": "service", + "value": "persister" + } + ], + "error": "", + "metric": "process.pid_count", + "period": "300", + "refId": "A" + } + ], + "thresholds": "0.2,0.8", + "title": "Persister", + "type": "singlestat", + "valueFontSize": "80%", + "valueMaps": [ + { + "value": "0", + "op": "=", + "text": "DOWN" + }, + { + "value": "1", + "op": "=", + "text": "UP" + }, + { + "value": "2", + "op": "=", + "text": "UP" + }, + { + "value": "3", + "op": "=", + "text": "UP" + }, + { + "value": "4", + "op": "=", + "text": "UP" + }, + { + "value": "5", + "op": "=", + "text": "UP" + }, + { + "value": "6", + "op": "=", + "text": "UP" + }, + { + "value": "7", + "op": "=", + "text": "UP" + }, + { + "value": "8", + "op": "=", + "text": "UP" + }, + { + "value": "9", + "op": "=", + "text": "UP" + }, + { + "value": "10", + "op": "=", + "text": "UP" + }, + { + "value": "11", + "op": "=", + "text": "UP" + }, + { + "value": "12", + "op": "=", + "text": "UP" + } + ], + "valueName": "current" + }, + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "fill": 1, + "id": 2, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 4, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "persister" + } + ], + "error": "", + "metric": "process.cpu_perc", + "period": "300", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "CPU", + "tooltip": { + "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 + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "fill": 1, + "id": 3, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 4, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "persister" + } + ], + "error": "", + "metric": "process.mem.rss_mbytes", + "period": "300", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Memory", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "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 + } + ] + } + ], + "showTitle": false, + "titleSize": "h6", + "height": "250px", + "repeat": null, + "repeatRowId": null, + "repeatIteration": null, + "collapse": false + }, + { + "title": "Dashboard Row", + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "fill": 1, + "id": 4, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "persister" + } + ], + "error": "", + "metric": "process.io.read_count", + "period": "300", + "refId": "A" + }, + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "persister" + } + ], + "error": "", + "metric": "process.io.write_count", + "period": "300", + "refId": "B" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "IO Count", + "tooltip": { + "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 + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "fill": 1, + "id": 5, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "persister" + } + ], + "error": "", + "metric": "process.io.read_kbytes", + "period": "300", + "refId": "A" + }, + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "persister" + } + ], + "error": "", + "metric": "process.io.write_kbytes", + "period": "300", + "refId": "B" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "IO Read/Write [kB]", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "kbytes", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + } + ], + "showTitle": false, + "titleSize": "h6", + "height": 250, + "repeat": null, + "repeatRowId": null, + "repeatIteration": null, + "collapse": false + }, + { + "title": "Dashboard Row", + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "fill": 1, + "id": 6, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 12, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "persister" + } + ], + "error": "", + "metric": "process.open_file_descriptors", + "period": "300", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Open File Descriptors", + "tooltip": { + "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 + } + ] + } + ], + "showTitle": false, + "titleSize": "h6", + "height": 250, + "repeat": null, + "repeatRowId": null, + "repeatIteration": null, + "collapse": false + } + ] +} diff --git a/devstack/files/grafana/dashboards.d/15-influxdb.json b/devstack/files/grafana/dashboards.d/15-influxdb.json new file mode 100644 index 000000000..849226c5e --- /dev/null +++ b/devstack/files/grafana/dashboards.d/15-influxdb.json @@ -0,0 +1,564 @@ +{ + "id": null, + "title": "Metrics DB", + "tags": [ + "metrics" + ], + "style": "dark", + "timezone": "browser", + "editable": true, + "sharedCrosshair": false, + "hideControls": false, + "time": { + "from": "now-1h", + "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": 7, + "links": [], + "gnetId": null, + "rows": [ + { + "title": "Dashboard Row", + "panels": [ + { + "cacheTimeout": null, + "colorBackground": true, + "colorValue": false, + "colors": [ + "rgba(71, 212, 59, 0.4)", + "rgba(245, 150, 40, 0.73)", + "rgba(225, 40, 40, 0.59)" + ], + "format": "none", + "gauge": { + "maxValue": 100, + "minValue": 0, + "show": false, + "thresholdLabels": false, + "thresholdMarkers": true + }, + "id": 1, + "interval": null, + "links": [], + "mappingType": 1, + "mappingTypes": [ + ], + "maxDataPoints": 100, + "nullPointMode": "connected", + "nullText": null, + "postfix": "", + "postfixFontSize": "50%", + "prefix": "", + "prefixFontSize": "50%", + "span": 4, + "sparkline": { + "fillColor": "rgba(31, 118, 189, 0.18)", + "full": false, + "lineColor": "rgb(31, 120, 193)", + "show": false + }, + "targets": [ + { + "aggregator": "none", + "dimensions": [{"key": "service", "value": "influxdb"}], + "error": "", + "metric": "http_status", + "period": "300", + "refId": "A" + } + ], + "thresholds": "0.2,0.8", + "title": "InfluxDB", + "type": "singlestat", + "valueFontSize": "80%", + "valueMaps": [ + { + "value": "0", + "op": "=", + "text": "UP" + }, + { + "value": "1", + "op": "=", + "text": "DOWN" + } + ], + "valueName": "current" + }, + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "fill": 1, + "id": 2, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 4, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "influxd" + } + ], + "error": "", + "metric": "process.cpu_perc", + "period": "300", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "CPU", + "tooltip": { + "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 + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "fill": 1, + "id": 3, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 4, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "influxd" + } + ], + "error": "", + "metric": "process.mem.rss_mbytes", + "period": "300", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Memory", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "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 + } + ] + } + ], + "showTitle": false, + "titleSize": "h6", + "height": "250px", + "repeat": null, + "repeatRowId": null, + "repeatIteration": null, + "collapse": false + }, + { + "title": "Dashboard Row", + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "fill": 1, + "id": 4, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "influxd" + } + ], + "error": "", + "metric": "process.io.read_count", + "period": "300", + "refId": "A" + }, + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "influxd" + } + ], + "error": "", + "metric": "process.io.write_count", + "period": "300", + "refId": "B" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "IO Count", + "tooltip": { + "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 + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "fill": 1, + "id": 5, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "influxd" + } + ], + "error": "", + "metric": "process.io.read_kbytes", + "period": "300", + "refId": "A" + }, + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "influxd" + } + ], + "error": "", + "metric": "process.io.write_kbytes", + "period": "300", + "refId": "B" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "IO Read/Write [kB]", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "kbytes", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + } + ], + "showTitle": false, + "titleSize": "h6", + "height": 250, + "repeat": null, + "repeatRowId": null, + "repeatIteration": null, + "collapse": false + }, + { + "title": "Dashboard Row", + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "fill": 1, + "id": 6, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 12, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "influxd" + } + ], + "error": "", + "metric": "process.open_file_descriptors", + "period": "300", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Open File Descriptors", + "tooltip": { + "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 + } + ] + } + ], + "showTitle": false, + "titleSize": "h6", + "height": 250, + "repeat": null, + "repeatRowId": null, + "repeatIteration": null, + "collapse": false + } + ] +} diff --git a/devstack/files/grafana/dashboards.d/16-zookeper.json b/devstack/files/grafana/dashboards.d/16-zookeper.json new file mode 100644 index 000000000..1a48cfb3e --- /dev/null +++ b/devstack/files/grafana/dashboards.d/16-zookeper.json @@ -0,0 +1,760 @@ +{ + "id": null, + "title": "Zookeper", + "tags": [ + "common" + ], + "style": "dark", + "timezone": "browser", + "editable": true, + "sharedCrosshair": false, + "hideControls": false, + "time": { + "from": "now-1h", + "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": 15, + "links": [], + "gnetId": null, + "rows": [ + { + "title": "Dashboard Row", + "panels": [ + { + "cacheTimeout": null, + "colorBackground": true, + "colorValue": false, + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "datasource": null, + "format": "none", + "gauge": { + "maxValue": 100, + "minValue": 0, + "show": false, + "thresholdLabels": false, + "thresholdMarkers": true + }, + "id": 2, + "interval": null, + "links": [], + "maxDataPoints": 100, + "nullPointMode": "connected", + "nullText": null, + "postfix": "", + "postfixFontSize": "50%", + "prefix": "", + "prefixFontSize": "50%", + "span": 4, + "sparkline": { + "fillColor": "rgba(31, 118, 189, 0.18)", + "full": false, + "lineColor": "rgb(31, 120, 193)", + "show": false + }, + "targets": [ + { + "aggregator": "none", + "dimensions": [ + { + "key": "service", + "value": "zookeeper" + } + ], + "error": "", + "metric": "process.pid_count", + "period": "300", + "refId": "A" + } + ], + "thresholds": "0.2,0.8", + "title": "Zookeper", + "type": "singlestat", + "valueFontSize": "80%", + "valueMaps": [ + { + "op": "=", + "text": "UP", + "value": "1" + }, + { + "op": "=", + "text": "UP", + "value": "2" + }, + { + "op": "=", + "text": "UP", + "value": "3" + }, + { + "op": "=", + "text": "UP", + "value": "4" + }, + { + "op": "=", + "text": "UP", + "value": "5" + }, + { + "op": "=", + "text": "DOWN", + "value": "0" + } + ], + "valueName": "current" + }, + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "fill": 1, + "id": 3, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 4, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "zookeeper" + } + ], + "error": "", + "metric": "process.cpu_perc", + "period": "300", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "CPU", + "tooltip": { + "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 + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "fill": 1, + "id": 4, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 4, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "zookeeper" + } + ], + "error": "", + "metric": "process.mem.rss_mbytes", + "period": "300", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Memory", + "tooltip": { + "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 + } + ] + } + ], + "showTitle": false, + "titleSize": "h6", + "height": "250px", + "repeat": null, + "repeatRowId": null, + "repeatIteration": null, + "collapse": false + }, + { + "title": "Dashboard Row", + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "fill": 1, + "id": 5, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "zookeeper" + } + ], + "error": "", + "metric": "process.io.read_count", + "period": "300", + "refId": "A" + }, + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "zookeeper" + } + ], + "error": "", + "metric": "process.io.write_count", + "period": "300", + "refId": "B" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "IO Count", + "tooltip": { + "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 + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "fill": 1, + "id": 6, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "zookeeper" + } + ], + "error": "", + "metric": "process.io.read_kbytes", + "period": "300", + "refId": "A" + }, + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "zookeeper" + } + ], + "error": "", + "metric": "process.io.write_kbytes", + "period": "300", + "refId": "B" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "IO Read/Write [kB]", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "kbytes", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + } + ], + "showTitle": false, + "titleSize": "h6", + "height": 250, + "repeat": null, + "repeatRowId": null, + "repeatIteration": null, + "collapse": false + }, + { + "title": "Dashboard Row", + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "fill": 1, + "id": 7, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 12, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "zookeeper" + } + ], + "error": "", + "metric": "process.open_file_descriptors", + "period": "300", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Open File Descriptors", + "tooltip": { + "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 + } + ] + } + ], + "showTitle": false, + "titleSize": "h6", + "height": 250, + "repeat": null, + "repeatRowId": null, + "repeatIteration": null, + "collapse": false + }, + { + "title": "Dashboard Row", + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "fill": 1, + "id": 8, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "dimensions": [], + "error": "", + "metric": "zookeeper.avg_latency_sec", + "period": "300", + "refId": "A" + }, + { + "aggregator": "avg", + "dimensions": [], + "error": "", + "metric": "zookeeper.max_latency_sec", + "period": "300", + "refId": "B" + }, + { + "aggregator": "avg", + "dimensions": [], + "error": "", + "metric": "zookeeper.min_latency_sec", + "period": "300", + "refId": "C" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Latency", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "s", + "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": null, + "fill": 1, + "id": 9, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "dimensions": [], + "error": "", + "metric": "zookeeper.connections_count", + "period": "300", + "refId": "B" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Conections count", + "tooltip": { + "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 + } + ] + } + ], + "showTitle": false, + "titleSize": "h6", + "height": 250, + "repeat": null, + "repeatRowId": null, + "repeatIteration": null, + "collapse": false + } + ] +} diff --git a/devstack/files/grafana/dashboards.d/17-notification.json b/devstack/files/grafana/dashboards.d/17-notification.json new file mode 100644 index 000000000..29f1b6043 --- /dev/null +++ b/devstack/files/grafana/dashboards.d/17-notification.json @@ -0,0 +1,624 @@ +{ + "id": null, + "title": "Notification Engine", + "tags": [ + "metrics" + ], + "style": "dark", + "timezone": "browser", + "editable": true, + "sharedCrosshair": false, + "hideControls": false, + "time": { + "from": "now-1h", + "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": 7, + "links": [], + "gnetId": null, + "rows": [ + { + "title": "Dashboard Row", + "panels": [ + { + "cacheTimeout": null, + "colorBackground": true, + "colorValue": false, + "colors": [ + "rgba(225, 40, 40, 0.59)", + "rgba(245, 150, 40, 0.73)", + "rgba(71, 212, 59, 0.4)" + ], + "format": "none", + "gauge": { + "maxValue": 100, + "minValue": 0, + "show": false, + "thresholdLabels": false, + "thresholdMarkers": true + }, + "id": 1, + "interval": null, + "links": [], + "mappingType": 1, + "mappingTypes": [ + ], + "maxDataPoints": 100, + "nullPointMode": "connected", + "nullText": null, + "postfix": "", + "postfixFontSize": "50%", + "prefix": "", + "prefixFontSize": "50%", + "span": 4, + "sparkline": { + "fillColor": "rgba(31, 118, 189, 0.18)", + "full": false, + "lineColor": "rgb(31, 120, 193)", + "show": false + }, + "targets": [ + { + "aggregator": "none", + "dimensions": [ + { + "key": "service", + "value": "monasca-notification" + } + ], + "error": "", + "metric": "process.pid_count", + "period": "300", + "refId": "A" + } + ], + "thresholds": "0.2,0.8", + "title": "Notification", + "type": "singlestat", + "valueFontSize": "80%", + "valueMaps": [ + { + "value": "0", + "op": "=", + "text": "DOWN" + }, + { + "value": "1", + "op": "=", + "text": "UP" + }, + { + "value": "2", + "op": "=", + "text": "UP" + }, + { + "value": "3", + "op": "=", + "text": "UP" + }, + { + "value": "4", + "op": "=", + "text": "UP" + }, + { + "value": "5", + "op": "=", + "text": "UP" + }, + { + "value": "6", + "op": "=", + "text": "UP" + }, + { + "value": "7", + "op": "=", + "text": "UP" + }, + { + "value": "8", + "op": "=", + "text": "UP" + }, + { + "value": "9", + "op": "=", + "text": "UP" + }, + { + "value": "10", + "op": "=", + "text": "UP" + }, + { + "value": "11", + "op": "=", + "text": "UP" + }, + { + "value": "12", + "op": "=", + "text": "UP" + } + ], + "valueName": "current" + }, + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "fill": 1, + "id": 2, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 4, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "monasca-notification" + } + ], + "error": "", + "metric": "process.cpu_perc", + "period": "300", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "CPU", + "tooltip": { + "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 + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "fill": 1, + "id": 3, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 4, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "monasca-notification" + } + ], + "error": "", + "metric": "process.mem.rss_mbytes", + "period": "300", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Memory", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "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 + } + ] + } + ], + "showTitle": false, + "titleSize": "h6", + "height": "250px", + "repeat": null, + "repeatRowId": null, + "repeatIteration": null, + "collapse": false + }, + { + "title": "Dashboard Row", + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "fill": 1, + "id": 4, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "monasca-notification" + } + ], + "error": "", + "metric": "process.io.read_count", + "period": "300", + "refId": "A" + }, + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "monasca-notification" + } + ], + "error": "", + "metric": "process.io.write_count", + "period": "300", + "refId": "B" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "IO Count", + "tooltip": { + "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 + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "fill": 1, + "id": 5, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "monasca-notification" + } + ], + "error": "", + "metric": "process.io.read_kbytes", + "period": "300", + "refId": "A" + }, + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "monasca-notification" + } + ], + "error": "", + "metric": "process.io.write_kbytes", + "period": "300", + "refId": "B" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "IO Read/Write [kB]", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "kbytes", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + } + ], + "showTitle": false, + "titleSize": "h6", + "height": 250, + "repeat": null, + "repeatRowId": null, + "repeatIteration": null, + "collapse": false + }, + { + "title": "Dashboard Row", + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "fill": 1, + "id": 6, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 12, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "monasca-notification" + } + ], + "error": "", + "metric": "process.open_file_descriptors", + "period": "300", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Open File Descriptors", + "tooltip": { + "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 + } + ] + } + ], + "showTitle": false, + "titleSize": "h6", + "height": 250, + "repeat": null, + "repeatRowId": null, + "repeatIteration": null, + "collapse": false + } + ] +} diff --git a/devstack/files/grafana/dashboards.d/18-kafka.json b/devstack/files/grafana/dashboards.d/18-kafka.json new file mode 100644 index 000000000..7874cc752 --- /dev/null +++ b/devstack/files/grafana/dashboards.d/18-kafka.json @@ -0,0 +1,624 @@ +{ + "id": null, + "title": "Kafka", + "tags": [ + "common" + ], + "style": "dark", + "timezone": "browser", + "editable": true, + "sharedCrosshair": false, + "hideControls": false, + "time": { + "from": "now-1h", + "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": 7, + "links": [], + "gnetId": null, + "rows": [ + { + "title": "Dashboard Row", + "panels": [ + { + "cacheTimeout": null, + "colorBackground": true, + "colorValue": false, + "colors": [ + "rgba(225, 40, 40, 0.59)", + "rgba(245, 150, 40, 0.73)", + "rgba(71, 212, 59, 0.4)" + ], + "format": "none", + "gauge": { + "maxValue": 100, + "minValue": 0, + "show": false, + "thresholdLabels": false, + "thresholdMarkers": true + }, + "id": 1, + "interval": null, + "links": [], + "mappingType": 1, + "mappingTypes": [ + ], + "maxDataPoints": 100, + "nullPointMode": "connected", + "nullText": null, + "postfix": "", + "postfixFontSize": "50%", + "prefix": "", + "prefixFontSize": "50%", + "span": 4, + "sparkline": { + "fillColor": "rgba(31, 118, 189, 0.18)", + "full": false, + "lineColor": "rgb(31, 120, 193)", + "show": false + }, + "targets": [ + { + "aggregator": "none", + "dimensions": [ + { + "key": "service", + "value": "kafka" + } + ], + "error": "", + "metric": "process.pid_count", + "period": "300", + "refId": "A" + } + ], + "thresholds": "0.2,0.8", + "title": "Kafka", + "type": "singlestat", + "valueFontSize": "80%", + "valueMaps": [ + { + "value": "0", + "op": "=", + "text": "DOWN" + }, + { + "value": "1", + "op": "=", + "text": "UP" + }, + { + "value": "2", + "op": "=", + "text": "UP" + }, + { + "value": "3", + "op": "=", + "text": "UP" + }, + { + "value": "4", + "op": "=", + "text": "UP" + }, + { + "value": "5", + "op": "=", + "text": "UP" + }, + { + "value": "6", + "op": "=", + "text": "UP" + }, + { + "value": "7", + "op": "=", + "text": "UP" + }, + { + "value": "8", + "op": "=", + "text": "UP" + }, + { + "value": "9", + "op": "=", + "text": "UP" + }, + { + "value": "10", + "op": "=", + "text": "UP" + }, + { + "value": "11", + "op": "=", + "text": "UP" + }, + { + "value": "12", + "op": "=", + "text": "UP" + } + ], + "valueName": "current" + }, + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "fill": 1, + "id": 2, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 4, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "kafka" + } + ], + "error": "", + "metric": "process.cpu_perc", + "period": "300", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "CPU", + "tooltip": { + "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 + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "fill": 1, + "id": 3, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 4, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "kafka" + } + ], + "error": "", + "metric": "process.mem.rss_mbytes", + "period": "300", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Memory", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "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 + } + ] + } + ], + "showTitle": false, + "titleSize": "h6", + "height": "250px", + "repeat": null, + "repeatRowId": null, + "repeatIteration": null, + "collapse": false + }, + { + "title": "Dashboard Row", + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "fill": 1, + "id": 4, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "kafka" + } + ], + "error": "", + "metric": "process.io.read_count", + "period": "300", + "refId": "A" + }, + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "kafka" + } + ], + "error": "", + "metric": "process.io.write_count", + "period": "300", + "refId": "B" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "IO Count", + "tooltip": { + "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 + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "fill": 1, + "id": 5, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "kafka" + } + ], + "error": "", + "metric": "process.io.read_kbytes", + "period": "300", + "refId": "A" + }, + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "kafka" + } + ], + "error": "", + "metric": "process.io.write_kbytes", + "period": "300", + "refId": "B" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "IO Read/Write [kB]", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "kbytes", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + } + ], + "showTitle": false, + "titleSize": "h6", + "height": 250, + "repeat": null, + "repeatRowId": null, + "repeatIteration": null, + "collapse": false + }, + { + "title": "Dashboard Row", + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "fill": 1, + "id": 6, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 12, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "kafka" + } + ], + "error": "", + "metric": "process.open_file_descriptors", + "period": "300", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Open File Descriptors", + "tooltip": { + "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 + } + ] + } + ], + "showTitle": false, + "titleSize": "h6", + "height": 250, + "repeat": null, + "repeatRowId": null, + "repeatIteration": null, + "collapse": false + } + ] +} diff --git a/devstack/files/grafana/dashboards.d/19-statsd.json b/devstack/files/grafana/dashboards.d/19-statsd.json new file mode 100644 index 000000000..9074b21d7 --- /dev/null +++ b/devstack/files/grafana/dashboards.d/19-statsd.json @@ -0,0 +1,624 @@ +{ + "id": null, + "title": "Monasca statsd", + "tags": [ + "common" + ], + "style": "dark", + "timezone": "browser", + "editable": true, + "sharedCrosshair": false, + "hideControls": false, + "time": { + "from": "now-1h", + "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": 7, + "links": [], + "gnetId": null, + "rows": [ + { + "title": "Dashboard Row", + "panels": [ + { + "cacheTimeout": null, + "colorBackground": true, + "colorValue": false, + "colors": [ + "rgba(225, 40, 40, 0.59)", + "rgba(245, 150, 40, 0.73)", + "rgba(71, 212, 59, 0.4)" + ], + "format": "none", + "gauge": { + "maxValue": 100, + "minValue": 0, + "show": false, + "thresholdLabels": false, + "thresholdMarkers": true + }, + "id": 1, + "interval": null, + "links": [], + "mappingType": 1, + "mappingTypes": [ + ], + "maxDataPoints": 100, + "nullPointMode": "connected", + "nullText": null, + "postfix": "", + "postfixFontSize": "50%", + "prefix": "", + "prefixFontSize": "50%", + "span": 4, + "sparkline": { + "fillColor": "rgba(31, 118, 189, 0.18)", + "full": false, + "lineColor": "rgb(31, 120, 193)", + "show": false + }, + "targets": [ + { + "aggregator": "none", + "dimensions": [ + { + "key": "service", + "value": "monasca-statsd" + } + ], + "error": "", + "metric": "process.pid_count", + "period": "300", + "refId": "A" + } + ], + "thresholds": "0.2,0.8", + "title": "Monasca statsd", + "type": "singlestat", + "valueFontSize": "80%", + "valueMaps": [ + { + "value": "0", + "op": "=", + "text": "DOWN" + }, + { + "value": "1", + "op": "=", + "text": "UP" + }, + { + "value": "2", + "op": "=", + "text": "UP" + }, + { + "value": "3", + "op": "=", + "text": "UP" + }, + { + "value": "4", + "op": "=", + "text": "UP" + }, + { + "value": "5", + "op": "=", + "text": "UP" + }, + { + "value": "6", + "op": "=", + "text": "UP" + }, + { + "value": "7", + "op": "=", + "text": "UP" + }, + { + "value": "8", + "op": "=", + "text": "UP" + }, + { + "value": "9", + "op": "=", + "text": "UP" + }, + { + "value": "10", + "op": "=", + "text": "UP" + }, + { + "value": "11", + "op": "=", + "text": "UP" + }, + { + "value": "12", + "op": "=", + "text": "UP" + } + ], + "valueName": "current" + }, + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "fill": 1, + "id": 2, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 4, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "monasca-statsd" + } + ], + "error": "", + "metric": "process.cpu_perc", + "period": "300", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "CPU", + "tooltip": { + "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 + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "fill": 1, + "id": 3, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 4, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "monasca-statsd" + } + ], + "error": "", + "metric": "process.mem.rss_mbytes", + "period": "300", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Memory", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "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 + } + ] + } + ], + "showTitle": false, + "titleSize": "h6", + "height": "250px", + "repeat": null, + "repeatRowId": null, + "repeatIteration": null, + "collapse": false + }, + { + "title": "Dashboard Row", + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "fill": 1, + "id": 4, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "monasca-statsd" + } + ], + "error": "", + "metric": "process.io.read_count", + "period": "300", + "refId": "A" + }, + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "monasca-statsd" + } + ], + "error": "", + "metric": "process.io.write_count", + "period": "300", + "refId": "B" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "IO Count", + "tooltip": { + "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 + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "fill": 1, + "id": 5, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "monasca-statsd" + } + ], + "error": "", + "metric": "process.io.read_kbytes", + "period": "300", + "refId": "A" + }, + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "monasca-statsd" + } + ], + "error": "", + "metric": "process.io.write_kbytes", + "period": "300", + "refId": "B" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "IO Read/Write [kB]", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "kbytes", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + } + ], + "showTitle": false, + "titleSize": "h6", + "height": 250, + "repeat": null, + "repeatRowId": null, + "repeatIteration": null, + "collapse": false + }, + { + "title": "Dashboard Row", + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": null, + "fill": 1, + "id": 6, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 12, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "monasca-statsd" + } + ], + "error": "", + "metric": "process.open_file_descriptors", + "period": "300", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Open File Descriptors", + "tooltip": { + "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 + } + ] + } + ], + "showTitle": false, + "titleSize": "h6", + "height": 250, + "repeat": null, + "repeatRowId": null, + "repeatIteration": null, + "collapse": false + } + ] +} diff --git a/devstack/files/grafana/grafana-init.py b/devstack/files/grafana/grafana-init.py new file mode 100644 index 000000000..f71e34484 --- /dev/null +++ b/devstack/files/grafana/grafana-init.py @@ -0,0 +1,177 @@ +#!/usr/bin/env python +# coding=utf-8 + +# (C) Copyright 2017 Hewlett Packard Enterprise Development LP +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + +import glob +import json +import logging +import os +import sys +import time + +from requests import RequestException +from requests import Session + +LOG_LEVEL = logging.getLevelName(os.environ.get('LOG_LEVEL', 'INFO')) +logging.basicConfig(level=LOG_LEVEL) + +logger = logging.getLogger(__name__) + +GRAFANA_URL = os.environ.get('GRAFANA_URL', 'http://localhost:3000') +GRAFANA_USERNAME = os.environ.get('GRAFANA_USERNAME', 'mini-mon') +GRAFANA_PASSWORD = os.environ.get('GRAFANA_PASSWORD', 'password') +GRAFANA_USERS = [{'user': GRAFANA_USERNAME, 'password': GRAFANA_PASSWORD, 'email': ''}] + +DATASOURCE_NAME = os.environ.get('DATASOURCE_NAME', 'monasca') +DATASOURCE_URL = os.environ.get('DATASOURCE_URL', 'http://localhost/metrics') +DATASOURCE_ACCESS_MODE = os.environ.get('DATASOURCE_ACCESS_MODE', 'proxy') +DATASOURCE_AUTH = os.environ.get('DATASOURCE_AUTH', 'Keystone').capitalize() +DATASOURCE_AUTH_TOKEN = os.environ.get('DATASOURCE_AUTH_TOKEN', '') + +DASHBOARDS_DIR = os.environ.get('DASHBOARDS_DIR', '/dashboards.d') + + +def retry(retries=5, delay=2.0, exc_types=(RequestException,)): + def decorator(func): + def f_retry(*args, **kwargs): + for i in range(retries): + try: + return func(*args, **kwargs) + except exc_types as exc: + if i < retries - 1: + logger.debug('Caught exception, retrying...', + exc_info=True) + time.sleep(delay) + else: + logger.exception('Failed after %d attempts', retries) + if isinstance(exc, RequestException): + logger.debug('Response was: %r', exc.response.text) + + raise + return f_retry + return decorator + + +def create_login_payload(): + if os.environ.get('GRAFANA_USERS'): + try: + json.loads(os.environ.get('GRAFANA_USERS')) + except ValueError: + print("Invalid type GRAFANA_USERS") + raise + grafana_users = json.loads(os.environ.get('GRAFANA_USERS')) + else: + grafana_users = GRAFANA_USERS + return grafana_users + + +@retry(retries=24, delay=5.0) +def login(session, user): + r = session.post('{url}/login'.format(url=GRAFANA_URL), + json=user, + timeout=5) + r.raise_for_status() + + +@retry(retries=12, delay=5.0) +def check_initialized(session): + r = session.get('{url}/api/datasources'.format(url=GRAFANA_URL), timeout=5) + r.raise_for_status() + + logging.debug('existing datasources = %r', r.json()) + + for datasource in r.json(): + if datasource['name'] == DATASOURCE_NAME: + return True + + return False + + +def create_datasource_payload(): + payload = { + 'name': DATASOURCE_NAME, + 'url': DATASOURCE_URL, + 'access': DATASOURCE_ACCESS_MODE, + 'isDefault': True, + } + + if DATASOURCE_AUTH not in ['Keystone', 'Horizon', 'Token']: + logger.error('Unknown Keystone authentication option: %s', + DATASOURCE_AUTH) + sys.exit(1) + + keystone_auth = False + if DATASOURCE_AUTH in ['Keystone']: + keystone_auth = True + + payload.update({ + 'monasca': { + 'type': 'monasca-datasource', + 'jsonData': { + 'authMode': DATASOURCE_AUTH, + 'keystoneAuth': keystone_auth, + 'token': DATASOURCE_AUTH_TOKEN, + } + } + }.get(DATASOURCE_NAME, {})) + + logging.debug('payload = %r', payload) + + return payload + + +def create_dashboard_payload(json_path): + with open(json_path, 'r') as f: + dashboard = json.load(f) + dashboard['id'] = None + + return { + 'dashboard': dashboard, + 'overwrite': False + } + + +def main(): + for user in create_login_payload(): + logging.info('Opening a Grafana session...') + session = Session() + login(session, user) + + if check_initialized(session): + logging.info('Grafana has already been initialized, skipping!') + return + + logging.info('Attempting to add configured datasource...') + r = session.post('{url}/api/datasources'.format(url=GRAFANA_URL), + json=create_datasource_payload()) + logging.debug('Response: %r', r.json()) + r.raise_for_status() + + for path in sorted(glob.glob('{dir}/*.json'.format(dir=DASHBOARDS_DIR))): + logging.info('Creating dashboard from file: {path}'.format(path=path)) + r = session.post('{url}/api/dashboards/db'.format(url=GRAFANA_URL), + json=create_dashboard_payload(path)) + logging.debug('Response: %r', r.json()) + r.raise_for_status() + + logging.info('Ending %r session...', user.get('user')) + session.get('{url}/logout'.format(url=GRAFANA_URL)) + + logging.info('Finished successfully.') + + +if __name__ == '__main__': + main() diff --git a/devstack/files/monasca-agent/http_check.yaml b/devstack/files/monasca-agent/http_check.yaml new file mode 100644 index 000000000..a988ff68e --- /dev/null +++ b/devstack/files/monasca-agent/http_check.yaml @@ -0,0 +1,17 @@ +init_config: null +instances: +- name: keystone + dimensions: + service: keystone + timeout: 3 + url: http://127.0.0.1:5000 +- name: mysql + dimensions: + service: mysql + timeout: 3 + url: http://127.0.0.1:3306 +- name: influxdb + dimensions: + service: influxdb + timeout: 3 + url: http://127.0.0.1:8086/ping diff --git a/devstack/files/monasca-agent/kafka_consumer.yaml b/devstack/files/monasca-agent/kafka_consumer.yaml new file mode 100644 index 000000000..442fca344 --- /dev/null +++ b/devstack/files/monasca-agent/kafka_consumer.yaml @@ -0,0 +1,14 @@ +init_config: + +instances: +- built_by: Kafka + consumer_groups: + 1_metrics: + metrics: [] + thresh-event: + events: [] + thresh-metric: + metrics: [] + kafka_connect_str: 127.0.0.1:9092 + name: 127.0.0.1:9092 + per_partition: false diff --git a/devstack/files/monasca-agent/mysql.yaml b/devstack/files/monasca-agent/mysql.yaml new file mode 100644 index 000000000..29ac207e8 --- /dev/null +++ b/devstack/files/monasca-agent/mysql.yaml @@ -0,0 +1,8 @@ +init_config: +instances: +- built_by: MySQL + name: mysql + server: 127.0.0.1 + port: 3306 + user: root + pass: secretdatabase diff --git a/devstack/files/monasca-agent/process.yaml b/devstack/files/monasca-agent/process.yaml new file mode 100644 index 000000000..cafdfa75e --- /dev/null +++ b/devstack/files/monasca-agent/process.yaml @@ -0,0 +1,87 @@ +init_config: + +instances: +- name: influxd + detailed: true + dimensions: + service: influxd + exact_match: false + search_string: + - influxd +- name: monasca-statsd + detailed: true + dimensions: + service: monasca-statsd + exact_match: false + search_string: + - monasca-statsd +- name: monasca-notification + detailed: true + dimensions: + service: monasca-notification + exact_match: false + search_string: + - monasca-notification +- name: persister + detailed: true + dimensions: + service: persister + exact_match: false + search_string: + - persister +- name: storm + detailed: true + dimensions: + service: storm + exact_match: false + search_string: + - storm +- name: monasca-api + detailed: true + dimensions: + service: uwsgi + exact_match: false + search_string: + - uwsgi +- name: monasca-collector + detailed: true + dimensions: + service: monasca-collector + exact_match: false + search_string: + - monasca-collector +- name: memcached + detailed: true + dimensions: + service: memcached + exact_match: false + search_string: + - memcached +- name: monasca-forwarder + detailed: true + dimensions: + service: monasca-forwarder + exact_match: false + search_string: + - monasca-forwarder +- name: zookeeper + detailed: true + dimensions: + service: zookeeper + exact_match: false + search_string: + - zookeeper +- name: kafka + detailed: true + dimensions: + service: kafka + exact_match: false + search_string: + - kafka +- name: mysqld + detailed: true + dimensions: + service: mysqld + exact_match: false + search_string: + - mysqld diff --git a/devstack/files/monasca-agent/zk.yaml b/devstack/files/monasca-agent/zk.yaml new file mode 100644 index 000000000..b67f80e55 --- /dev/null +++ b/devstack/files/monasca-agent/zk.yaml @@ -0,0 +1,6 @@ +init_config: + +instances: + - host: 127.0.0.1 + port: 2181 + timeout: 3 diff --git a/devstack/plugin.sh b/devstack/plugin.sh index 5dc179e62..64527e33a 100755 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -174,6 +174,10 @@ function extra_monasca { start_monasca_services init_collector_service post_storm + + if is_service_enabled horizon; then + init_monasca_grafana + fi } function start_monasca_services { @@ -1169,8 +1173,13 @@ function install_monasca_agent { sudo chmod 0755 /usr/lib/monasca/agent/custom_detect.d sudo cp -f "${MONASCA_API_DIR}"/devstack/files/monasca-agent/host_alive.yaml /etc/monasca/agent/conf.d/host_alive.yaml + sudo cp -f "${MONASCA_API_DIR}"/devstack/files/monasca-agent/http_check.yaml /etc/monasca/agent/conf.d/http_check.yaml + sudo cp -f "${MONASCA_API_DIR}"/devstack/files/monasca-agent/kafka_consumer.yaml /etc/monasca/agent/conf.d/kafka_consumer.yaml + sudo cp -f "${MONASCA_API_DIR}"/devstack/files/monasca-agent/mysql.yaml /etc/monasca/agent/conf.d/mysql.yaml + sudo cp -f "${MONASCA_API_DIR}"/devstack/files/monasca-agent/process.yaml /etc/monasca/agent/conf.d/process.yaml + sudo cp -f "${MONASCA_API_DIR}"/devstack/files/monasca-agent/zk.yaml /etc/monasca/agent/conf.d/zk.yaml - sudo sed -i "s/127\.0\.0\.1/$(hostname)/" /etc/monasca/agent/conf.d/host_alive.yaml + sudo sed -i "s/127\.0\.0\.1/$(hostname)/" /etc/monasca/agent/conf.d/*.yaml sudo cp -f "${MONASCA_API_DIR}"/devstack/files/monasca-agent/monasca-reconfigure /usr/local/bin/monasca-reconfigure @@ -1248,6 +1257,18 @@ function install_node_nvm { set +i } +function init_monasca_grafana { + echo_summary "Init Grafana" + + sudo cp -f -r "${MONASCA_API_DIR}"/devstack/files/grafana/dashboards.d "${DASHBOARDS_DIR}" + sudo chown -R root:root "${DASHBOARDS_DIR}" + sudo chmod -R 0644 "${DASHBOARDS_DIR}" + + sudo python "${MONASCA_API_DIR}"/devstack/files/grafana/grafana-init.py + + sudo rm -rf "${DASHBOARDS_DIR}" +} + function install_monasca_grafana { echo_summary "Install Grafana" diff --git a/devstack/settings b/devstack/settings index e2303469d..b3e489834 100644 --- a/devstack/settings +++ b/devstack/settings @@ -159,6 +159,15 @@ MONASCA_GRAFANA_DATASOURCE_DIR=${MONASCA_BASE}/monasca-grafana-datasource GRAFANA_REPO=${GRAFANA_REPO:-"https://github.com/monasca/grafana.git"} GRAFANA_BRANCH=${GRAFANA_BRANCH:-"grafana4"} GRAFANA_DIR=${MONASCA_BASE}/grafana +GRAFANA_INIT_LOG_LEVEL=DEBUG +GRAFANA_URL=http://localhost:3000 +GRAFANA_USERNAME=mini-mon +GRAFANA_PASSWORD=password +DATASOURCE_TYPE=monasca +DATASOURCE_URL=http://localhost/metrics +DATASOURCE_ACCESS_MODE=proxy +DATASOURCE_AUTH=Keystone +DASHBOARDS_DIR=/dashboards.d GITDIR["python-monascaclient"]=${MONASCA_CLIENT_DIR} GITDIR["monasca-common"]=${MONASCA_COMMON_DIR}