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 00000000..84935135 --- /dev/null +++ b/devstack/files/grafana/dashboards.d/09-monasca.json @@ -0,0 +1,2138 @@ +{ + "id": null, + "title": "Monasca Monitoring", + "originalTitle": "Monasca Monitoring", + "tags": [], + "style": "dark", + "timezone": "utc", + "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 - Logs", + "height": "100px", + "editable": true, + "collapse": false, + "panels": [ + { + "title": "Log API", + "error": false, + "span": 2, + "editable": true, + "type": "singlestat", + "id": 20, + "links": [], + "maxDataPoints": 100, + "interval": null, + "targets": [ + { + "aggregator": "none", + "column": "value", + "metric": "process.pid_count", + "condition_filter": true, + "dimensions": [{"key": "service", "value": "log-api"}] + } + ], + "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": "-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": "Log Transformer", + "error": false, + "span": 2, + "editable": true, + "type": "singlestat", + "id": 54, + "links": [], + "maxDataPoints": 100, + "interval": null, + "targets": [ + { + "aggregator": "none", + "column": "value", + "metric": "process.pid_count", + "condition_filter": true, + "dimensions": [{"key": "service", "value": "log-transformer"}] + } + ], + "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": "Log Metrics", + "error": false, + "span": 2, + "editable": true, + "type": "singlestat", + "id": 102, + "links": [], + "maxDataPoints": 100, + "interval": null, + "targets": [ + { + "aggregator": "none", + "column": "value", + "metric": "process.pid_count", + "condition_filter": true, + "dimensions": [{"key": "service", "value": "log-metrics"}] + } + ], + "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": "Log Persister", + "error": false, + "span": 2, + "editable": true, + "type": "singlestat", + "id": 53, + "links": [], + "maxDataPoints": 100, + "interval": null, + "targets": [ + { + "aggregator": "none", + "column": "value", + "metric": "process.pid_count", + "condition_filter": true, + "dimensions": [{"key": "service", "value": "log-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": "Log DB", + "error": false, + "span": 2, + "editable": true, + "type": "singlestat", + "id": 33, + "links": [], + "maxDataPoints": 100, + "interval": null, + "targets": [ + { + "aggregator": "none", + "column": "value", + "metric": "elasticsearch.cluster_status", + "condition_filter": true + } + ], + "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" + }, + { + "value": "8", + "op": "=", + "text": "UP" + }, + { + "value": "9", + "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": "Kibana", + "error": false, + "span": 2, + "editable": true, + "type": "singlestat", + "id": 22, + "links": [], + "maxDataPoints": 100, + "interval": null, + "targets": [ + { + "aggregator": "none", + "column": "value", + "metric": "http_status", + "condition_filter": true, + "dimensions": [{"key": "service", "value": "kibana"}] + } + ], + "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)" + } + } + ], + "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": "/rootfs" + } + ] + } + ], + "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", + "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": [] + }, + { + "headings": false, + "id": 169, + "limit": 10, + "links": [], + "query": "", + "recent": false, + "search": true, + "span": 4, + "starred": false, + "tags": [ + "logs" + ], + "title": "Logs", + "type": "dashlist" + } + ] + } + ], + "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/20-kibana.json b/devstack/files/grafana/dashboards.d/20-kibana.json new file mode 100644 index 00000000..712afb00 --- /dev/null +++ b/devstack/files/grafana/dashboards.d/20-kibana.json @@ -0,0 +1,624 @@ +{ + "id": null, + "title": "Kibana", + "tags": [ + "logs" + ], + "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": "kibana" + } + ], + "error": "", + "metric": "process.pid_count", + "period": "300", + "refId": "A" + } + ], + "thresholds": "0.2,0.8", + "title": "Kibana", + "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": "kibana" + } + ], + "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": "kibana" + } + ], + "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": "kibana" + } + ], + "error": "", + "metric": "process.io.read_count", + "period": "300", + "refId": "A" + }, + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "kibana" + } + ], + "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": "kibana" + } + ], + "error": "", + "metric": "process.io.read_kbytes", + "period": "300", + "refId": "A" + }, + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "kibana" + } + ], + "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": "kibana" + } + ], + "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/21-logapi.json b/devstack/files/grafana/dashboards.d/21-logapi.json new file mode 100644 index 00000000..7d6e15ef --- /dev/null +++ b/devstack/files/grafana/dashboards.d/21-logapi.json @@ -0,0 +1,624 @@ +{ + "id": null, + "title": "Log API", + "tags": [ + "logs" + ], + "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": "log-api" + } + ], + "error": "", + "metric": "process.pid_count", + "period": "300", + "refId": "A" + } + ], + "thresholds": "0.2,0.8", + "title": "Log 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": "log-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": "log-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": "log-api" + } + ], + "error": "", + "metric": "process.io.read_count", + "period": "300", + "refId": "A" + }, + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "log-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": "log-api" + } + ], + "error": "", + "metric": "process.io.read_kbytes", + "period": "300", + "refId": "A" + }, + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "log-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": "log-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/22-logtransformer.json b/devstack/files/grafana/dashboards.d/22-logtransformer.json new file mode 100644 index 00000000..dd9dae5c --- /dev/null +++ b/devstack/files/grafana/dashboards.d/22-logtransformer.json @@ -0,0 +1,624 @@ +{ + "id": null, + "title": "Log Transformer", + "tags": [ + "logs" + ], + "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": "log-transformer" + } + ], + "error": "", + "metric": "process.pid_count", + "period": "300", + "refId": "A" + } + ], + "thresholds": "0.2,0.8", + "title": "Log Transformer", + "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": "log-transformer" + } + ], + "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": "log-transformer" + } + ], + "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": "log-transformer" + } + ], + "error": "", + "metric": "process.io.read_count", + "period": "300", + "refId": "A" + }, + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "log-transformer" + } + ], + "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": "log-transformer" + } + ], + "error": "", + "metric": "process.io.read_kbytes", + "period": "300", + "refId": "A" + }, + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "log-transformer" + } + ], + "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": "log-transformer" + } + ], + "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/23-logtmetrics.json b/devstack/files/grafana/dashboards.d/23-logtmetrics.json new file mode 100644 index 00000000..eb44a73d --- /dev/null +++ b/devstack/files/grafana/dashboards.d/23-logtmetrics.json @@ -0,0 +1,624 @@ +{ + "id": null, + "title": "Log Metrics", + "tags": [ + "logs" + ], + "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": "log-metrics" + } + ], + "error": "", + "metric": "process.pid_count", + "period": "300", + "refId": "A" + } + ], + "thresholds": "0.2,0.8", + "title": "Log Metrics", + "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": "log-metrics" + } + ], + "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": "log-metrics" + } + ], + "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": "log-metrics" + } + ], + "error": "", + "metric": "process.io.read_count", + "period": "300", + "refId": "A" + }, + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "log-metrics" + } + ], + "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": "log-metrics" + } + ], + "error": "", + "metric": "process.io.read_kbytes", + "period": "300", + "refId": "A" + }, + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "log-metrics" + } + ], + "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": "log-metrics" + } + ], + "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/24-logpersister.json b/devstack/files/grafana/dashboards.d/24-logpersister.json new file mode 100644 index 00000000..28a1adec --- /dev/null +++ b/devstack/files/grafana/dashboards.d/24-logpersister.json @@ -0,0 +1,624 @@ +{ + "id": null, + "title": "Log Persister", + "tags": [ + "logs" + ], + "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": "log-persister" + } + ], + "error": "", + "metric": "process.pid_count", + "period": "300", + "refId": "A" + } + ], + "thresholds": "0.2,0.8", + "title": "Log 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": "log-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": "log-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": "log-persister" + } + ], + "error": "", + "metric": "process.io.read_count", + "period": "300", + "refId": "A" + }, + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "log-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": "log-persister" + } + ], + "error": "", + "metric": "process.io.read_kbytes", + "period": "300", + "refId": "A" + }, + { + "aggregator": "avg", + "dimensions": [ + { + "key": "process_name", + "value": "log-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": "log-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/grafana.py b/devstack/files/grafana/grafana.py new file mode 100644 index 00000000..de20f206 --- /dev/null +++ b/devstack/files/grafana/grafana.py @@ -0,0 +1,111 @@ +#!/usr/bin/env python +# coding=utf-8 + +# (C) Copyright 2017 Hewlett Packard Enterprise Development LP +# (C) Copyright 2018 FUJITSU LIMITED +# +# 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': ''}] + +DASHBOARDS_DIR = sys.argv[1] + + +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() + +def create_dashboard_payload(json_path): + with open(json_path, 'r') as f: + dashboard = json.load(f) + dashboard['id'] = None + + return { + 'dashboard': dashboard, + 'overwrite': True + } + +def main(): + for user in create_login_payload(): + logging.info('Opening a Grafana session...') + session = Session() + login(session, user) + + 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/elastic.yaml b/devstack/files/monasca-agent/elastic.yaml new file mode 100644 index 00000000..269fdae7 --- /dev/null +++ b/devstack/files/monasca-agent/elastic.yaml @@ -0,0 +1,3 @@ +init_config: +instances: +- url: http://{{IP}}:9200 diff --git a/devstack/files/monasca-agent/http_check.yaml b/devstack/files/monasca-agent/http_check.yaml new file mode 100644 index 00000000..97424e55 --- /dev/null +++ b/devstack/files/monasca-agent/http_check.yaml @@ -0,0 +1,27 @@ +init_config: null +instances: +- name: keystone + dimensions: + service: keystone + timeout: 3 + url: http://127.0.0.1/identity +- 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 +- name: elasticsearch + dimensions: + service: elasticsearch + timeout: 3 + url: http://{{IP}}:9200/_cat/health +- name: kibana + dimensions: + service: kibana + timeout: 3 + url: http://{{IP}}:5601/status diff --git a/devstack/files/monasca-agent/process.yaml b/devstack/files/monasca-agent/process.yaml new file mode 100644 index 00000000..d8878bbd --- /dev/null +++ b/devstack/files/monasca-agent/process.yaml @@ -0,0 +1,143 @@ +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 +- name: logspout + detailed: true + dimensions: + service: logspout + exact_match: false + search_string: + - logspout +- name: log-agent + detailed: true + dimensions: + service: log-agent + exact_match: false + search_string: + - log-agent +- name: log-api + detailed: true + dimensions: + service: log-api + exact_match: false + search_string: + - log-api +- name: kibana + detailed: true + dimensions: + service: kibana + exact_match: false + search_string: + - kibana +- name: elasticsearch + detailed: true + dimensions: + service: elasticsearch + exact_match: false + search_string: + - elasticsearch +- name: log-transformer + detailed: true + dimensions: + service: log-transformer + exact_match: false + search_string: + - log-transformer +- name: log-persister + detailed: true + dimensions: + service: log-persister + exact_match: false + search_string: + - log-persister +- name: log-metrics + detailed: true + dimensions: + service: log-metrics + exact_match: false + search_string: + - log-metrics diff --git a/devstack/plugin.sh b/devstack/plugin.sh index 40c7efe4..1636e22f 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -92,6 +92,26 @@ function init_monasca_log { create_log_management_accounts } +function init_monasca_grafana_dashboards { + if is_service_enabled horizon; then + echo_summary "Init Grafana dashboards" + + sudo python "${PLUGIN_FILES}"/grafana/grafana.py "${PLUGIN_FILES}"/grafana/dashboards.d + fi +} + +function init_agent { + echo_summary "Init Monasca agent" + + sudo cp -f "${PLUGIN_FILES}"/monasca-agent/http_check.yaml /etc/monasca/agent/conf.d/http_check.yaml + sudo cp -f "${PLUGIN_FILES}"/monasca-agent/process.yaml /etc/monasca/agent/conf.d/process.yaml + sudo cp -f "${PLUGIN_FILES}"/monasca-agent/elastic.yaml /etc/monasca/agent/conf.d/elastic.yaml + + sudo sed -i "s/{{IP}}/$(ip -o -4 addr list eth1 | awk '{print $4}' | cut -d/ -f1 | head -1)/" /etc/monasca/agent/conf.d/*.yaml + sudo sed -i "s/127\.0\.0\.1/$(hostname)/" /etc/monasca/agent/conf.d/*.yaml + sudo systemctl restart monasca-collector +} + function stop_monasca_log { stop_process "monasca-log-agent" || true stop_monasca_log_api @@ -820,6 +840,8 @@ if is_service_enabled monasca-log; then # Initialize and start the Monasca service echo_summary "Initializing Monasca Log Management" init_monasca_log + init_monasca_grafana_dashboards + init_agent start_monasca_log fi diff --git a/devstack/settings b/devstack/settings index c7bfac78..fc5b8184 100644 --- a/devstack/settings +++ b/devstack/settings @@ -51,4 +51,3 @@ MONASCA_KIBANA_PLUGIN_BRANCH=${MONASCA_KIBANA_PLUGIN_BRANCH:-master} MONASCA_KIBANA_PLUGIN_DIR=${DEST}/monasca-kibana-plugin DOWNLOAD_FILE_TIMEOUT=${DOWNLOAD_FILE_TIMEOUT:-300} -