diff --git a/conf/provisioning/dashboards/nuodb.yaml b/conf/provisioning/dashboards/nuodb.yaml index d9da64d..6836f02 100644 --- a/conf/provisioning/dashboards/nuodb.yaml +++ b/conf/provisioning/dashboards/nuodb.yaml @@ -21,6 +21,17 @@ providers: updateIntervalSeconds: 10 #how often Grafana will scan for changed dashboards options: path: /etc/grafana/provisioning/dashboards/nuodb_ext +- name: 'nuodb_client' + orgId: 1 + folder: 'nuodb_client' + type: file + disableDeletion: false + editable: true + allowUiUpdates: true + updateIntervalSeconds: 10 #how often Grafana will scan for changed dashboards + options: + path: /etc/grafana/provisioning/dashboards/nuodb_client + diff --git a/conf/provisioning/dashboards/nuodb/adhoc-query.json b/conf/provisioning/dashboards/nuodb/adhoc-query.json new file mode 100644 index 0000000..67700a9 --- /dev/null +++ b/conf/provisioning/dashboards/nuodb/adhoc-query.json @@ -0,0 +1,2111 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": "-- Grafana --", + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "editable": true, + "gnetId": null, + "graphTooltip": 1, + "id": 8, + "iteration": 1607091304027, + "links": [ + { + "asDropdown": true, + "icon": "external link", + "includeVars": true, + "keepTime": true, + "tags": [ + "overview" + ], + "title": "top views", + "type": "dashboards" + }, + { + "asDropdown": true, + "icon": "external link", + "includeVars": true, + "keepTime": true, + "tags": [ + "nuodb" + ], + "title": "nuodb", + "type": "dashboards" + } + ], + "panels": [ + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "nuodb", + "fieldConfig": { + "defaults": { + "custom": {} + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 7, + "w": 6, + "x": 0, + "y": 0 + }, + "hiddenSeries": false, + "id": 1, + "interval": ">$interval", + "legend": { + "avg": false, + "current": false, + "hideEmpty": true, + "hideZero": true, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "paceLength": 10, + "percentage": false, + "pluginVersion": "7.3.2", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "TE - $tag_host[$tag_pid]", + "dsType": "influxdb", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "host" + ], + "type": "tag" + }, + { + "params": [ + "pid" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "/^$m1$/", + "orderByTime": "ASC", + "policy": "default", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "raw" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + }, + { + "alias": "SM - $tag_host[$tag_pid]", + "dsType": "influxdb", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "host" + ], + "type": "tag" + }, + { + "params": [ + "pid" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "/^$m1$/", + "orderByTime": "ASC", + "policy": "default", + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "raw" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Storage" + } + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "$m1", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "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 + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "nuodb", + "fieldConfig": { + "defaults": { + "custom": {} + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 7, + "w": 6, + "x": 6, + "y": 0 + }, + "hiddenSeries": false, + "id": 5, + "interval": ">$interval", + "legend": { + "avg": false, + "current": false, + "hideEmpty": true, + "hideZero": true, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "paceLength": 10, + "percentage": false, + "pluginVersion": "7.3.2", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "TE - $tag_host[$tag_pid]", + "dsType": "influxdb", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "host" + ], + "type": "tag" + }, + { + "params": [ + "pid" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "/^$m2$/", + "orderByTime": "ASC", + "policy": "default", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "raw" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + }, + { + "alias": "SM - $tag_host[$tag_pid]", + "dsType": "influxdb", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "host" + ], + "type": "tag" + }, + { + "params": [ + "pid" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "/^$m2$/", + "orderByTime": "ASC", + "policy": "default", + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "raw" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Storage" + } + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "$m2", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "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 + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "nuodb", + "fieldConfig": { + "defaults": { + "custom": {} + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 7, + "w": 6, + "x": 12, + "y": 0 + }, + "hiddenSeries": false, + "id": 6, + "interval": ">$interval", + "legend": { + "avg": false, + "current": false, + "hideEmpty": true, + "hideZero": true, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "paceLength": 10, + "percentage": false, + "pluginVersion": "7.3.2", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "TE - $tag_host[$tag_pid]", + "dsType": "influxdb", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "host" + ], + "type": "tag" + }, + { + "params": [ + "pid" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "/^$m3$/", + "orderByTime": "ASC", + "policy": "default", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "raw" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + }, + { + "alias": "SM - $tag_host[$tag_pid]", + "dsType": "influxdb", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "host" + ], + "type": "tag" + }, + { + "params": [ + "pid" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "/^$m3$/", + "orderByTime": "ASC", + "policy": "default", + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "raw" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Storage" + } + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "$m3", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "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 + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "nuodb", + "fieldConfig": { + "defaults": { + "custom": {} + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 7, + "w": 6, + "x": 18, + "y": 0 + }, + "hiddenSeries": false, + "id": 9, + "interval": ">$interval", + "legend": { + "avg": false, + "current": false, + "hideEmpty": true, + "hideZero": true, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "paceLength": 10, + "percentage": false, + "pluginVersion": "7.3.2", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "TE - $tag_host[$tag_pid]", + "dsType": "influxdb", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "host" + ], + "type": "tag" + }, + { + "params": [ + "pid" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "/^$m4$/", + "orderByTime": "ASC", + "policy": "default", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "raw" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + }, + { + "alias": "SM - $tag_host[$tag_pid]", + "dsType": "influxdb", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "host" + ], + "type": "tag" + }, + { + "params": [ + "pid" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "/^$m4$/", + "orderByTime": "ASC", + "policy": "default", + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "raw" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Storage" + } + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "$m4", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "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 + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "nuodb", + "fieldConfig": { + "defaults": { + "custom": {} + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 7, + "w": 6, + "x": 0, + "y": 7 + }, + "hiddenSeries": false, + "id": 7, + "interval": ">$interval", + "legend": { + "avg": false, + "current": false, + "hideEmpty": true, + "hideZero": true, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "paceLength": 10, + "percentage": false, + "pluginVersion": "7.3.2", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "TE - $tag_host[$tag_pid]", + "dsType": "influxdb", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "host" + ], + "type": "tag" + }, + { + "params": [ + "pid" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "/^$m5$/", + "orderByTime": "ASC", + "policy": "default", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "raw" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + }, + { + "alias": "SM - $tag_host[$tag_pid]", + "dsType": "influxdb", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "host" + ], + "type": "tag" + }, + { + "params": [ + "pid" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "/^$m5$/", + "orderByTime": "ASC", + "policy": "default", + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "raw" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Storage" + } + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "$m5", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "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 + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "nuodb", + "fieldConfig": { + "defaults": { + "custom": {} + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 7, + "w": 6, + "x": 6, + "y": 7 + }, + "hiddenSeries": false, + "id": 10, + "interval": ">$interval", + "legend": { + "avg": false, + "current": false, + "hideEmpty": true, + "hideZero": true, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "paceLength": 10, + "percentage": false, + "pluginVersion": "7.3.2", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "TE - $tag_host[$tag_pid]", + "dsType": "influxdb", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "host" + ], + "type": "tag" + }, + { + "params": [ + "pid" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "/^$m6$/", + "orderByTime": "ASC", + "policy": "default", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "raw" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + }, + { + "alias": "SM - $tag_host[$tag_pid]", + "dsType": "influxdb", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "host" + ], + "type": "tag" + }, + { + "params": [ + "pid" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "/^$m6$/", + "orderByTime": "ASC", + "policy": "default", + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "raw" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Storage" + } + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "$m6", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "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 + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "nuodb", + "fieldConfig": { + "defaults": { + "custom": {} + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 7, + "w": 6, + "x": 12, + "y": 7 + }, + "hiddenSeries": false, + "id": 11, + "interval": ">$interval", + "legend": { + "avg": false, + "current": false, + "hideEmpty": true, + "hideZero": true, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "paceLength": 10, + "percentage": false, + "pluginVersion": "7.3.2", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "TE - $tag_host[$tag_pid]", + "dsType": "influxdb", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "host" + ], + "type": "tag" + }, + { + "params": [ + "pid" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "/^$m7$/", + "orderByTime": "ASC", + "policy": "default", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "raw" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + }, + { + "alias": "SM - $tag_host[$tag_pid]", + "dsType": "influxdb", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "host" + ], + "type": "tag" + }, + { + "params": [ + "pid" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "/^$m7$/", + "orderByTime": "ASC", + "policy": "default", + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "raw" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Storage" + } + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "$m7", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "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 + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "nuodb", + "fieldConfig": { + "defaults": { + "custom": {} + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 7, + "w": 6, + "x": 18, + "y": 7 + }, + "hiddenSeries": false, + "id": 8, + "interval": ">$interval", + "legend": { + "avg": false, + "current": false, + "hideEmpty": true, + "hideZero": true, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "paceLength": 10, + "percentage": false, + "pluginVersion": "7.3.2", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "TE - $tag_host[$tag_pid]", + "dsType": "influxdb", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "host" + ], + "type": "tag" + }, + { + "params": [ + "pid" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "/^$m8$/", + "orderByTime": "ASC", + "policy": "default", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "raw" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + }, + { + "alias": "SM - $tag_host[$tag_pid]", + "dsType": "influxdb", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "host" + ], + "type": "tag" + }, + { + "params": [ + "pid" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "/^$m8$/", + "orderByTime": "ASC", + "policy": "default", + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "raw" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Storage" + } + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "$m8", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "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 + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + } + ], + "refresh": "10s", + "schemaVersion": 26, + "style": "dark", + "tags": [ + "overview" + ], + "templating": { + "list": [ + { + "auto": true, + "auto_count": "50", + "auto_min": "10s", + "current": { + "selected": false, + "text": "10s", + "value": "10s" + }, + "error": null, + "hide": 0, + "label": "interval", + "name": "interval", + "options": [ + { + "selected": false, + "text": "auto", + "value": "$__auto_interval_interval" + }, + { + "selected": true, + "text": "10s", + "value": "10s" + }, + { + "selected": false, + "text": "30s", + "value": "30s" + }, + { + "selected": false, + "text": "1m", + "value": "1m" + }, + { + "selected": false, + "text": "5m", + "value": "5m" + }, + { + "selected": false, + "text": "10m", + "value": "10m" + }, + { + "selected": false, + "text": "15m", + "value": "15m" + }, + { + "selected": false, + "text": "30m", + "value": "30m" + }, + { + "selected": false, + "text": "1h", + "value": "1h" + }, + { + "selected": false, + "text": "6h", + "value": "6h" + }, + { + "selected": false, + "text": "12h", + "value": "12h" + }, + { + "selected": false, + "text": "1d", + "value": "1d" + }, + { + "selected": false, + "text": "7d", + "value": "7d" + }, + { + "selected": false, + "text": "14d", + "value": "14d" + }, + { + "selected": false, + "text": "30d", + "value": "30d" + } + ], + "query": "10s,30s,1m,5m,10m,15m,30m,1h,6h,12h,1d,7d,14d,30d", + "queryValue": "", + "refresh": 2, + "skipUrlSync": false, + "type": "interval" + }, + { + "allValue": ".*", + "current": { + "selected": false, + "text": "RemoteCommitTime", + "value": "RemoteCommitTime" + }, + "datasource": "nuodb", + "definition": "", + "error": null, + "hide": 0, + "includeAll": false, + "label": "m1", + "multi": false, + "name": "m1", + "options": [], + "query": "show measurements", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": ".*", + "current": { + "selected": false, + "text": "MessageSequencerMergeTime", + "value": "MessageSequencerMergeTime" + }, + "datasource": "nuodb", + "definition": "", + "error": null, + "hide": 0, + "includeAll": false, + "label": "m2", + "multi": false, + "name": "m2", + "options": [], + "query": "show measurements", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": ".*", + "current": { + "selected": false, + "text": "MessageSequencerSortTime", + "value": "MessageSequencerSortTime" + }, + "datasource": "nuodb", + "definition": "", + "error": null, + "hide": 0, + "includeAll": false, + "label": "m3", + "multi": false, + "name": "m3", + "options": [], + "query": "show measurements", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": ".*", + "current": { + "selected": false, + "text": "MessagesReceived", + "value": "MessagesReceived" + }, + "datasource": "nuodb", + "definition": "", + "error": null, + "hide": 0, + "includeAll": false, + "label": "m4", + "multi": false, + "name": "m4", + "options": [], + "query": "show measurements", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": ".*", + "current": { + "selected": false, + "text": "ArchiveReadTime", + "value": "ArchiveReadTime" + }, + "datasource": "nuodb", + "definition": "", + "error": null, + "hide": 0, + "includeAll": false, + "label": "m5", + "multi": false, + "name": "m5", + "options": [], + "query": "show measurements", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": ".*", + "current": { + "selected": false, + "text": "ArchiveQueue", + "value": "ArchiveQueue" + }, + "datasource": "nuodb", + "definition": "", + "error": null, + "hide": 0, + "includeAll": false, + "label": "m6", + "multi": false, + "name": "m6", + "options": [], + "query": "show measurements", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": ".*", + "current": { + "selected": false, + "text": "ArchiveFsyncTime", + "value": "ArchiveFsyncTime" + }, + "datasource": "nuodb", + "definition": "", + "error": null, + "hide": 0, + "includeAll": false, + "label": "m7", + "multi": false, + "name": "m7", + "options": [], + "query": "show measurements", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": ".*", + "current": { + "selected": false, + "text": "JournalFsyncTime", + "value": "JournalFsyncTime" + }, + "datasource": "nuodb", + "definition": "", + "error": null, + "hide": 0, + "includeAll": false, + "label": "m8", + "multi": false, + "name": "m8", + "options": [], + "query": "show measurements", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": ".*", + "current": { + "selected": false, + "text": [ + "All" + ], + "value": [ + "$__all" + ] + }, + "datasource": "nuodb", + "definition": "SHOW TAG VALUES FROM \"Milliseconds\" WITH KEY = \"db\"", + "error": null, + "hide": 2, + "includeAll": true, + "label": null, + "multi": true, + "name": "database", + "options": [], + "query": "SHOW TAG VALUES FROM \"Milliseconds\" WITH KEY = \"db\"", + "refresh": 1, + "regex": ".*", + "skipUrlSync": false, + "sort": 1, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": ".*", + "current": { + "selected": false, + "text": [ + "All" + ], + "value": [ + "$__all" + ] + }, + "datasource": "nuodb", + "definition": "SHOW TAG VALUES FROM \"Milliseconds\" WITH KEY = \"host\" WHERE \"db\" =~ /$database$/ ", + "error": null, + "hide": 2, + "includeAll": true, + "label": null, + "multi": true, + "name": "host", + "options": [], + "query": "SHOW TAG VALUES FROM \"Milliseconds\" WITH KEY = \"host\" WHERE \"db\" =~ /$database$/ ", + "refresh": 1, + "regex": ".*", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + } + ] + }, + "time": { + "from": "now-30m", + "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" + ] + }, + "timezone": "", + "title": "Adhoc Query", + "uid": "cbe7ef0c-796f-4571-8402-cf44739852a1", + "version": 1 +} diff --git a/conf/provisioning/dashboards/nuodb/communication.json b/conf/provisioning/dashboards/nuodb/communication.json index df880fc..ed1fe2e 100644 --- a/conf/provisioning/dashboards/nuodb/communication.json +++ b/conf/provisioning/dashboards/nuodb/communication.json @@ -32,7 +32,7 @@ "editable": true, "gnetId": null, "graphTooltip": 1, - "id": null, + "id": 9, "iteration": 1616443686796, "links": [ { @@ -1697,6 +1697,6 @@ }, "timezone": "", "title": "Communication", - "uid": null, - "version": 6 + "uid": "a3650dff-b54c-42e6-b268-d65ab6d4a93f", + "version": 1 } diff --git a/conf/provisioning/dashboards/nuodb/cpu.json b/conf/provisioning/dashboards/nuodb/cpu.json index 3f2102d..fb6c549 100644 --- a/conf/provisioning/dashboards/nuodb/cpu.json +++ b/conf/provisioning/dashboards/nuodb/cpu.json @@ -32,7 +32,7 @@ "editable": true, "gnetId": null, "graphTooltip": 0, - "id": null, + "id": 2, "iteration": 1616443761599, "links": [ { @@ -3678,6 +3678,6 @@ }, "timezone": "", "title": "CPU", - "uid": null, - "version": 2 + "uid": "dcc684e7-111e-4470-acab-e7bf1bf54042", + "version": 1 } diff --git a/conf/provisioning/dashboards/nuodb/disk.json b/conf/provisioning/dashboards/nuodb/disk.json index 0d71378..325474b 100644 --- a/conf/provisioning/dashboards/nuodb/disk.json +++ b/conf/provisioning/dashboards/nuodb/disk.json @@ -33,7 +33,7 @@ "editable": true, "gnetId": null, "graphTooltip": 1, - "id": null, + "id": 3, "iteration": 1616704290502, "links": [ { @@ -4010,6 +4010,6 @@ }, "timezone": "", "title": "Disk", - "uid": null, - "version": 3 + "uid": "cd161128-2ed5-40c5-8f00-0bf05f927423", + "version": 1 } diff --git a/conf/provisioning/dashboards/nuodb/memory.json b/conf/provisioning/dashboards/nuodb/memory.json index 1829687..1f1b877 100644 --- a/conf/provisioning/dashboards/nuodb/memory.json +++ b/conf/provisioning/dashboards/nuodb/memory.json @@ -30,7 +30,7 @@ "editable": true, "gnetId": null, "graphTooltip": 1, - "id": null, + "id": 4, "iteration": 1613062743905, "links": [ { @@ -2282,6 +2282,6 @@ }, "timezone": "", "title": "Memory", - "uid": null, + "uid": "cfafe07f-e755-498c-99fc-4dc56a06bb30", "version": 1 } diff --git a/conf/provisioning/dashboards/nuodb/nuodb-ops-system-overview.json b/conf/provisioning/dashboards/nuodb/nuodb-ops-system-overview.json new file mode 100644 index 0000000..fe1a925 --- /dev/null +++ b/conf/provisioning/dashboards/nuodb/nuodb-ops-system-overview.json @@ -0,0 +1,1569 @@ +{ + "annotations": { + "list": [ + { + "$$hashKey": "object:3613", + "builtIn": 1, + "datasource": "-- Grafana --", + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + }, + { + "datasource": "-- Grafana --", + "enable": true, + "hide": false, + "iconColor": "rgba(255, 96, 96, 1)", + "limit": 100, + "name": "db annotations", + "showIn": 0, + "tags": [ + "$database" + ], + "type": "tags" + } + ] + }, + "description": "", + "editable": true, + "gnetId": 928, + "graphTooltip": 1, + "id": 5, + "iteration": 1619794261802, + "links": [ + { + "$$hashKey": "object:2794", + "asDropdown": true, + "icon": "external link", + "includeVars": true, + "keepTime": true, + "tags": [ + "overview" + ], + "title": "top views", + "type": "dashboards" + }, + { + "$$hashKey": "object:2829", + "asDropdown": true, + "icon": "external link", + "includeVars": true, + "keepTime": true, + "tags": [ + "nuodb" + ], + "title": "nuodb", + "type": "dashboards" + } + ], + "panels": [ + { + "cacheTimeout": null, + "colorBackground": false, + "colorValue": true, + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "#73BF69" + ], + "datasource": "nuodb", + "description": "Current number of running Transaction Engines processes in the NuoDB domain.", + "fieldConfig": { + "defaults": {}, + "overrides": [] + }, + "format": "none", + "gauge": { + "maxValue": 100, + "minValue": 0, + "show": false, + "thresholdLabels": false, + "thresholdMarkers": true + }, + "gridPos": { + "h": 3, + "w": 12, + "x": 0, + "y": 0 + }, + "hideTimeOverride": true, + "id": 61873, + "interval": null, + "links": [], + "mappingType": 1, + "mappingTypes": [ + { + "$$hashKey": "object:235", + "name": "value to text", + "value": 1 + }, + { + "$$hashKey": "object:236", + "name": "range to text", + "value": 2 + } + ], + "maxDataPoints": 100, + "nullPointMode": "null", + "nullText": null, + "postfix": "", + "postfixFontSize": "50%", + "prefix": "", + "prefixFontSize": "50%", + "rangeMaps": [ + { + "from": "null", + "text": "N/A", + "to": "null" + } + ], + "sparkline": { + "fillColor": "#B877D9", + "full": true, + "lineColor": "#5794F2", + "show": true + }, + "tableColumn": "", + "targets": [ + { + "dsType": "influxdb", + "groupBy": [ + { + "params": [ + "$interval" + ], + "type": "time" + }, + { + "params": [ + "host" + ], + "type": "tag" + }, + { + "params": [ + "pid" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "Milliseconds", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT count(\"mean\") FROM (SELECT mean(\"normvalue\") FROM \"Milliseconds\" WHERE \"nodetype\" = 'Transaction' AND \"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/ AND $timeFilter GROUP BY \"host\", \"$pid\")", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "normvalue" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + } + ], + "thresholds": "0,0", + "timeFrom": "20s", + "title": "# TEs", + "type": "singlestat", + "valueFontSize": "170%", + "valueMaps": [ + { + "$$hashKey": "object:238", + "op": "=", + "text": "N/A", + "value": "null" + } + ], + "valueName": "total" + }, + { + "cacheTimeout": null, + "colorBackground": false, + "colorValue": true, + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "#73BF69" + ], + "datasource": "nuodb", + "description": "Current number of running Storage Manager processes in the NuoDB domain.", + "fieldConfig": { + "defaults": {}, + "overrides": [] + }, + "format": "none", + "gauge": { + "maxValue": 100, + "minValue": 0, + "show": false, + "thresholdLabels": false, + "thresholdMarkers": true + }, + "gridPos": { + "h": 3, + "w": 12, + "x": 12, + "y": 0 + }, + "hideTimeOverride": true, + "id": 61874, + "interval": null, + "links": [], + "mappingType": 1, + "mappingTypes": [ + { + "$$hashKey": "object:346", + "name": "value to text", + "value": 1 + }, + { + "$$hashKey": "object:347", + "name": "range to text", + "value": 2 + } + ], + "maxDataPoints": 100, + "nullPointMode": "null", + "nullText": null, + "postfix": "", + "postfixFontSize": "50%", + "prefix": "", + "prefixFontSize": "50%", + "rangeMaps": [ + { + "from": "null", + "text": "N/A", + "to": "null" + } + ], + "sparkline": { + "fillColor": "rgba(31, 118, 189, 0.18)", + "full": false, + "lineColor": "rgb(31, 120, 193)", + "show": true + }, + "tableColumn": "", + "targets": [ + { + "dsType": "influxdb", + "groupBy": [ + { + "params": [ + "$interval" + ], + "type": "time" + }, + { + "params": [ + "host" + ], + "type": "tag" + }, + { + "params": [ + "pid" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "Milliseconds", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT count(\"mean\") FROM (SELECT mean(\"normvalue\") FROM \"Milliseconds\" WHERE \"nodetype\" = 'Storage' AND \"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/ AND $timeFilter GROUP BY \"host\", \"$pid\")", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "normvalue" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + } + ], + "thresholds": "0,0", + "timeFrom": "20s", + "title": "# SMs", + "type": "singlestat", + "valueFontSize": "170%", + "valueMaps": [ + { + "$$hashKey": "object:349", + "op": "=", + "text": "N/A", + "value": "null" + } + ], + "valueName": "total" + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "nuodb", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 9, + "w": 12, + "x": 0, + "y": 3 + }, + "hiddenSeries": false, + "id": 61869, + "interval": ">$interval", + "legend": { + "alignAsTable": true, + "avg": false, + "current": true, + "max": true, + "min": true, + "show": false, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "7.5.2", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "TE [$tag_$pid] $tag_host ($tag_db)", + "dsType": "influxdb", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "host" + ], + "type": "tag" + }, + { + "params": [ + "$pid" + ], + "type": "tag" + }, + { + "params": [ + "db" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "HeapAllocated", + "orderByTime": "ASC", + "policy": "default", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "raw" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "host", + "operator": "=~", + "value": "/^$host$/" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "SM [$tag_$pid] $tag_host ($tag_db)", + "dsType": "influxdb", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "host" + ], + "type": "tag" + }, + { + "params": [ + "$pid" + ], + "type": "tag" + }, + { + "params": [ + "db" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "HeapAllocated", + "orderByTime": "ASC", + "policy": "default", + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "raw" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Storage" + }, + { + "condition": "AND", + "key": "host", + "operator": "=~", + "value": "/^$host$/" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Memory Usage", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "bytes", + "label": null, + "logBase": 1, + "max": null, + "min": "0", + "show": true + }, + { + "format": "bytes", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": false + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "nuodb", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 9, + "w": 12, + "x": 12, + "y": 3 + }, + "hiddenSeries": false, + "id": 61872, + "interval": ">$interval", + "legend": { + "alignAsTable": false, + "avg": true, + "current": true, + "hideEmpty": true, + "hideZero": true, + "max": true, + "min": true, + "rightSide": false, + "show": false, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "7.5.2", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "[$tag_$pid] $tag_host ($tag_db)", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "$pid" + ], + "type": "tag" + }, + { + "params": [ + "host" + ], + "type": "tag" + }, + { + "params": [ + "db" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "PercentCpuTime", + "orderByTime": "ASC", + "policy": "default", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "norm" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "host", + "operator": "=~", + "value": "/^$host$/" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "CPU utilization per engine", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:765", + "format": "percent", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "$$hashKey": "object:766", + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "nuodb", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 6, + "w": 8, + "x": 0, + "y": 12 + }, + "hiddenSeries": false, + "id": 61870, + "interval": ">$interval", + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "7.5.2", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "$$hashKey": "object:2107", + "alias": "total", + "fill": 0, + "linewidth": 0, + "stack": false + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "[$tag_$pid] $tag_host ($tag_db)", + "dsType": "influxdb", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "host" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "Commits", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"rate\") AS rate FROM \"Commits\" WHERE (\"nodetype\" = 'Transaction' AND \"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/) AND $timeFilter GROUP BY time($__interval), \"host\" , \"db\", \"$pid\" fill(null)", + "rawQuery": true, + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + }, + { + "condition": "AND", + "key": "host", + "operator": "=~", + "value": "/^$host$/" + } + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Transaction Rate (TPS)", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:2124", + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "$$hashKey": "object:2125", + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "nuodb", + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 6, + "w": 8, + "x": 8, + "y": 12 + }, + "hiddenSeries": false, + "id": 61875, + "interval": ">$interval", + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": true, + "show": false, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "7.5.2", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "$$hashKey": "object:2110", + "alias": "# TEs", + "fill": 0, + "linewidth": 2, + "yaxis": 2 + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": true, + "targets": [ + { + "alias": "TPS", + "dsType": "influxdb", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "host" + ], + "type": "tag" + }, + { + "params": [ + "pid" + ], + "type": "tag" + }, + { + "params": [ + "none" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "Commits", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT SUM(\"rate\") FROM (SELECT mean(\"rate\") AS rate FROM \"Commits\" WHERE (\"nodetype\" = 'Transaction' AND \"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/) AND $timeFilter GROUP BY time($__interval), \"host\" , \"db\", \"$pid\" fill(null)) GROUP BY time($__interval) fill(none)", + "rawQuery": true, + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + }, + { + "alias": "# TEs", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT SUM(\"V\") FROM (SELECT mean(\"value\") AS \"V\" FROM \"Milliseconds\" WHERE (\"nodetype\" = 'Transaction' AND \"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/) AND $timeFilter GROUP BY time($__interval), \"$pid\" fill(none)) GROUP BY time($__interval) fill(none)", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Aggregate Transaction Rate (TPS)", + "tooltip": { + "shared": true, + "sort": 2, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:2127", + "format": "short", + "label": "TPS", + "logBase": 1, + "max": null, + "min": "0", + "show": true + }, + { + "$$hashKey": "object:2128", + "format": "short", + "label": "# TEs", + "logBase": 1, + "max": null, + "min": "0", + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "nuodb", + "description": "# client connections for each transaction engine", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 6, + "w": 8, + "x": 16, + "y": 12 + }, + "hiddenSeries": false, + "id": 61871, + "interval": ">$interval", + "legend": { + "avg": false, + "current": false, + "hideEmpty": true, + "hideZero": true, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "7.5.2", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "[$tag_$pid] $tag_host ($tag_db)", + "dsType": "influxdb", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "$group" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "ClientCncts", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"raw\") FROM \"ClientCncts\" WHERE (\"nodetype\" = 'Transaction' AND \"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/) AND $timeFilter GROUP BY time($__interval), \"host\", \"db\", \"$pid\" fill(null)", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "raw" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + }, + { + "condition": "AND", + "key": "host", + "operator": "=~", + "value": "/^$host$/" + } + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Client connections per engine", + "tooltip": { + "msResolution": true, + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:1725", + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": 0, + "show": true + }, + { + "$$hashKey": "object:1726", + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + } + ], + "refresh": "30s", + "schemaVersion": 27, + "style": "dark", + "tags": [ + "overview" + ], + "templating": { + "list": [ + { + "allValue": null, + "current": { + "selected": false, + "text": "host", + "value": "host" + }, + "description": null, + "error": null, + "hide": 2, + "includeAll": false, + "label": "By", + "multi": false, + "name": "breakdown", + "options": [ + { + "$$hashKey": "object:4050", + "selected": true, + "text": "host", + "value": "host" + }, + { + "$$hashKey": "object:4051", + "selected": false, + "text": "region", + "value": "region" + } + ], + "query": "host,region", + "skipUrlSync": false, + "type": "custom" + }, + { + "auto": true, + "auto_count": 50, + "auto_min": "10s", + "current": { + "selected": true, + "text": "auto", + "value": "$__auto_interval_interval" + }, + "description": null, + "error": null, + "hide": 0, + "label": "interval", + "name": "interval", + "options": [ + { + "selected": true, + "text": "auto", + "value": "$__auto_interval_interval" + }, + { + "selected": false, + "text": "10s", + "value": "10s" + }, + { + "selected": false, + "text": "30s", + "value": "30s" + }, + { + "selected": false, + "text": "1m", + "value": "1m" + }, + { + "selected": false, + "text": "5m", + "value": "5m" + }, + { + "selected": false, + "text": "10m", + "value": "10m" + }, + { + "selected": false, + "text": "15m", + "value": "15m" + }, + { + "selected": false, + "text": "30m", + "value": "30m" + }, + { + "selected": false, + "text": "1h", + "value": "1h" + }, + { + "selected": false, + "text": "6h", + "value": "6h" + }, + { + "selected": false, + "text": "12h", + "value": "12h" + }, + { + "selected": false, + "text": "1d", + "value": "1d" + }, + { + "selected": false, + "text": "7d", + "value": "7d" + }, + { + "selected": false, + "text": "14d", + "value": "14d" + }, + { + "selected": false, + "text": "30d", + "value": "30d" + } + ], + "query": "10s,30s,1m,5m,10m,15m,30m,1h,6h,12h,1d,7d,14d,30d", + "queryValue": "", + "refresh": 2, + "skipUrlSync": false, + "type": "interval" + }, + { + "allValue": ".*", + "current": { + "selected": true, + "text": [ + "All" + ], + "value": [ + "$__all" + ] + }, + "datasource": "nuodb", + "definition": "", + "description": null, + "error": null, + "hide": 0, + "includeAll": true, + "label": "Database", + "multi": true, + "name": "database", + "options": [], + "query": "select distinct(\"db\") from (select first(raw) from \"Milliseconds\" where $timeFilter GROUP BY \"db\")\n", + "refresh": 2, + "regex": ".*", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": ".*", + "current": { + "selected": true, + "text": [ + "All" + ], + "value": [ + "$__all" + ] + }, + "datasource": "nuodb", + "definition": "", + "description": null, + "error": null, + "hide": 0, + "includeAll": true, + "label": "Host", + "multi": true, + "name": "host", + "options": [], + "query": "select distinct(\"host\") from (select first(raw) from \"Milliseconds\" where $timeFilter AND db =~ /$database$/ AND nodetype = 'Transaction' GROUP BY \"host\")\n", + "refresh": 2, + "regex": ".*", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": null, + "current": { + "$$hashKey": "object:2654", + "selected": true, + "text": "startid", + "value": "startid" + }, + "description": null, + "error": null, + "hide": 0, + "includeAll": false, + "label": "Process Identier", + "multi": false, + "name": "pid", + "options": [ + { + "$$hashKey": "object:2653", + "selected": false, + "text": "pid", + "value": "pid" + }, + { + "$$hashKey": "object:2654", + "selected": true, + "text": "startid", + "value": "startid" + }, + { + "$$hashKey": "object:2655", + "selected": false, + "text": "nodeid", + "value": "nodeid" + } + ], + "query": "pid,startid,nodeid", + "queryValue": "", + "skipUrlSync": false, + "type": "custom" + } + ] + }, + "time": { + "from": "now-30m", + "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" + ] + }, + "timezone": "", + "title": "NuoDB Ops System Overview", + "uid": "a8205413-97f5-43b2-a5a3-57fa0678bbcd", + "version": 1 +} diff --git a/conf/provisioning/dashboards/nuodb/nuodb-overview.json b/conf/provisioning/dashboards/nuodb/nuodb-overview.json index e122c23..9f07506 100644 --- a/conf/provisioning/dashboards/nuodb/nuodb-overview.json +++ b/conf/provisioning/dashboards/nuodb/nuodb-overview.json @@ -4,7 +4,10 @@ { "$$hashKey": "object:65", "builtIn": 1, - "datasource": "-- Grafana --", + "datasource": { + "type": "datasource", + "uid": "grafana" + }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", @@ -13,26 +16,36 @@ }, { "$$hashKey": "object:2934", - "datasource": "-- Grafana --", + "datasource": { + "type": "datasource", + "uid": "grafana" + }, "enable": true, "hide": false, - "iconColor": "rgba(255, 96, 96, 1)", + "iconColor": "super-light-blue", "limit": 100, "name": "db annotations", "showIn": 0, "tags": [ "$database" ], + "target": { + "limit": 100, + "matchAny": false, + "tags": [ + "$database" + ], + "type": "tags" + }, "type": "tags" } ] }, "description": "NuoDB Summary", "editable": true, - "gnetId": null, + "fiscalYearStartMonth": 0, "graphTooltip": 1, - "id": null, - "iteration": 1616705608022, + "id": 6, "links": [ { "asDropdown": true, @@ -57,10 +70,14 @@ "type": "dashboards" } ], + "liveNow": false, "panels": [ { "collapsed": false, - "datasource": null, + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, "gridPos": { "h": 1, "w": 24, @@ -69,6 +86,15 @@ }, "id": 8, "panels": [], + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "refId": "A" + } + ], "title": "Summary", "type": "row" }, @@ -77,11 +103,13 @@ "bars": true, "dashLength": 10, "dashes": false, - "datasource": "nuodb", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, "description": "The left y-axis is for the stack bar graph that shows relative (in terms of cores) breakdown of where processing time is being spent. The right y-axis and grey shadow area graph is an indication of the total number of cores available by all selected TEs.", "fieldConfig": { "defaults": { - "custom": {}, "links": [] }, "overrides": [] @@ -114,7 +142,7 @@ }, "paceLength": 10, "percentage": false, - "pluginVersion": "7.4.2", + "pluginVersion": "10.0.3", "pointradius": 2, "points": false, "renderer": "flot", @@ -138,6 +166,10 @@ "targets": [ { "alias": "$measurement", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, "groupBy": [ { "params": [ @@ -177,6 +209,10 @@ }, { "alias": "$measurement", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, "groupBy": [ { "params": [ @@ -235,9 +271,7 @@ } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "Summary", "tooltip": { "shared": true, @@ -246,9 +280,7 @@ }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, @@ -259,7 +291,6 @@ "format": "short", "label": "measurement relative to vCPU", "logBase": 1, - "max": null, "min": "0", "show": true }, @@ -268,19 +299,19 @@ "format": "short", "label": "total number of vCPU", "logBase": 1, - "max": null, - "min": null, "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { "collapsed": false, - "datasource": null, + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, "gridPos": { "h": 1, "w": 24, @@ -289,86 +320,155 @@ }, "id": 4, "panels": [], - "repeat": null, + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "refId": "A" + } + ], "title": "Transactions", "type": "row" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "nuodb", - "decimals": 1, + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, "description": "the green line is relative to the left y-axis and displays the number of transactions committed per second. Displayed below the x-axis relative to the right axis is an average (across all TEs) of the current number of transactions for the database at the time the metric was collected. This measurement is a sum for the database as understood by the selected TEs. At any point of time the understanding of which transactions are active will be slightly different in each TE. The blue line is a calculation of the average number of transactions that were processing within the database for the colletion window (averaged across the display time window). The data used to calculate this is collected only when a transaction is done processing. So a transaction / statement that is in the database for a significant amount of time (for each a count on a very large table) will not skew this graph. You'll see a big spike in the blue line when the long running statement ends.", - "editable": true, - "error": false, "fieldConfig": { "defaults": { - "custom": {}, - "links": [] + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "stepAfter", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" }, - "overrides": [] + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "active:current" + }, + "properties": [ + { + "id": "custom.drawStyle", + "value": "bars" + }, + { + "id": "custom.fillOpacity", + "value": 100 + }, + { + "id": "color", + "value": { + "fixedColor": "#E24D42", + "mode": "fixed" + } + }, + { + "id": "custom.lineWidth", + "value": 0 + }, + { + "id": "custom.transform", + "value": "negative-Y" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "processing:average" + }, + "properties": [ + { + "id": "custom.transform", + "value": "negative-Y" + } + ] + } + ] }, - "fill": 1, - "fillGradient": 0, - "grid": {}, "gridPos": { "h": 7, "w": 24, "x": 0, "y": 10 }, - "hiddenSeries": false, "id": 2, "interval": "$interval", - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "max": true, - "min": false, - "show": false, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, "links": [], - "nullPointMode": "connected", "options": { - "alertThreshold": true - }, - "paceLength": 10, - "percentage": false, - "pluginVersion": "7.4.2", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "$$hashKey": "object:270", - "alias": "active:current", - "bars": true, - "color": "#E24D42", - "lines": false, - "transform": "negative-Y", - "yaxis": 2 + "legend": { + "calcs": [ + "mean", + "lastNotNull", + "max" + ], + "displayMode": "list", + "placement": "bottom", + "showLegend": false }, - { - "$$hashKey": "object:271", - "alias": "processing:average", - "steppedLine": true, - "transform": "negative-Y", - "yaxis": 2 + "tooltip": { + "mode": "multi", + "sort": "none" } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, + }, + "pluginVersion": "10.0.3", "targets": [ { "alias": "commits", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, "dsType": "influxdb", "groupBy": [ { @@ -416,6 +516,10 @@ }, { "alias": "active:current", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, "groupBy": [ { "params": [ @@ -473,6 +577,10 @@ }, { "alias": "processing:average", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, "groupBy": [ { "params": [ @@ -524,64 +632,24 @@ ] } ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, "title": "Transactions", - "tooltip": { - "msResolution": true, - "shared": true, - "sort": 0, - "value_type": "cumulative" - }, "transparent": true, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:154", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "$$hashKey": "object:155", - "decimals": null, - "format": "short", - "label": "", - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": true, - "alignLevel": null - } + "type": "timeseries" }, { "aliasColors": {}, "bars": true, "dashLength": 10, "dashes": false, - "datasource": "nuodb", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, "description": "How many transactions are Busy (in database) relative to Idle (not in database) during the collection interval. Only valid for NuoDB 4.1+", "editable": true, "error": false, "fieldConfig": { "defaults": { - "custom": {}, "links": [] }, "overrides": [] @@ -617,7 +685,7 @@ }, "paceLength": 10, "percentage": true, - "pluginVersion": "7.4.2", + "pluginVersion": "10.0.3", "pointradius": 5, "points": false, "renderer": "flot", @@ -639,6 +707,10 @@ "targets": [ { "alias": "Busy", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, "groupBy": [ { "params": [ @@ -697,6 +769,10 @@ }, { "alias": "Idle", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, "groupBy": [ { "params": [ @@ -749,9 +825,7 @@ } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "Workload", "tooltip": { "msResolution": true, @@ -762,9 +836,7 @@ "transparent": true, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, @@ -773,15 +845,11 @@ "$$hashKey": "object:3700", "decimals": 1, "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true }, { "$$hashKey": "object:3701", - "decimals": null, "format": "short", "label": "", "logBase": 1, @@ -791,13 +859,12 @@ } ], "yaxis": { - "align": true, - "alignLevel": null + "align": true } } ], - "refresh": "30s", - "schemaVersion": 27, + "refresh": "10s", + "schemaVersion": 38, "style": "dark", "tags": [ "overview" @@ -813,8 +880,6 @@ "text": "auto", "value": "$__auto_interval_interval" }, - "description": null, - "error": null, "hide": 0, "label": "interval", "name": "interval", @@ -908,10 +973,11 @@ "text": "All", "value": "All" }, - "datasource": "nuodb", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, "definition": "", - "description": null, - "error": null, "hide": 0, "includeAll": false, "label": "Database", @@ -924,7 +990,6 @@ "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", - "tags": [], "tagsQuery": "", "type": "query", "useTags": false @@ -940,10 +1005,11 @@ "$__all" ] }, - "datasource": "nuodb", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, "definition": "", - "description": null, - "error": null, "hide": 0, "includeAll": true, "label": "Host", @@ -956,7 +1022,6 @@ "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", - "tags": [], "tagsQuery": "", "type": "query", "useTags": false @@ -994,6 +1059,7 @@ }, "timezone": "", "title": "NuoDB Overview", - "uid": null, - "version": 2 + "uid": "c56279e1-b7f7-4df4-9f1a-95265a657bc2", + "version": 3, + "weekStart": "" } diff --git a/conf/provisioning/dashboards/nuodb/sql.json b/conf/provisioning/dashboards/nuodb/sql.json index da069ec..d43057f 100644 --- a/conf/provisioning/dashboards/nuodb/sql.json +++ b/conf/provisioning/dashboards/nuodb/sql.json @@ -34,7 +34,7 @@ "editable": true, "gnetId": null, "graphTooltip": 0, - "id": null, + "id": 7, "iteration": 1616441714280, "links": [ { @@ -2823,6 +2823,6 @@ }, "timezone": "", "title": "SQL", - "uid": null, - "version": 2 + "uid": "fa2dca19-bb80-4916-841d-ff4a8c06d5bf", + "version": 1 } diff --git a/conf/provisioning/dashboards/nuodb_client/nuodb-sql-overview.json b/conf/provisioning/dashboards/nuodb_client/nuodb-sql-overview.json new file mode 100644 index 0000000..01f23a6 --- /dev/null +++ b/conf/provisioning/dashboards/nuodb_client/nuodb-sql-overview.json @@ -0,0 +1,4952 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "datasource", + "uid": "grafana" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, + "type": "dashboard" + }, + { + "datasource": { + "type": "datasource", + "uid": "grafana" + }, + "enable": true, + "iconColor": "super-light-blue", + "name": "db annotations", + "target": { + "limit": 100, + "matchAny": true, + "tags": [ + "$database" + ], + "type": "tags" + } + } + ] + }, + "editable": false, + "fiscalYearStartMonth": 0, + "graphTooltip": 1, + "id": 19, + "links": [ + { + "asDropdown": true, + "icon": "external link", + "includeVars": true, + "keepTime": true, + "tags": [ + "overview" + ], + "title": "top views", + "type": "dashboards" + }, + { + "asDropdown": true, + "icon": "external link", + "includeVars": true, + "keepTime": true, + "tags": [ + "nuodb" + ], + "title": "nuodb", + "type": "dashboards" + }, + { + "asDropdown": true, + "icon": "external link", + "includeVars": false, + "keepTime": false, + "tags": [ + "sql" + ], + "targetBlank": false, + "title": "sql", + "tooltip": "", + "type": "dashboards", + "url": "" + } + ], + "liveNow": false, + "panels": [ + { + "collapsed": true, + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 49, + "panels": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "stepBefore", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "log": 10, + "type": "log" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + }, + "unit": "µs" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 12, + "x": 0, + "y": 1 + }, + "hideTimeOverride": true, + "id": 50, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "alias": "Full", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "SqlClientExecute", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT SUM(R) FROM (SELECT mean(\"rate\") AS R FROM \"SqlMonitorFullTime\" WHERE (\"nodetype\" = 'Transaction' AND \"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/) AND $timeFilter GROUP BY time($__interval) , startid fill(null)) GROUP BY time($__interval)", + "rawQuery": true, + "refId": "E", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "Empty", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "SqlClientConnectionTime", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT SUM(R) FROM (SELECT mean(\"rate\") AS R FROM \"SqlMonitorEmptyTime\" WHERE (\"nodetype\" = 'Transaction' AND \"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/) AND $timeFilter GROUP BY time($__interval) , startid fill(null)) GROUP BY time($__interval)", + "rawQuery": true, + "refId": "D", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + } + ], + "timeShift": "10s", + "title": "Duration", + "type": "timeseries" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "stepBefore", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "log": 10, + "type": "log" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 12, + "x": 12, + "y": 1 + }, + "hideTimeOverride": true, + "id": 51, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "alias": "Full", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "SqlClientExecute", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT SUM(R) FROM (SELECT mean(\"rate\") AS R FROM \"SqlMonitorFull\" WHERE (\"nodetype\" = 'Transaction' AND \"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/) AND $timeFilter GROUP BY time($__interval) , startid fill(null)) GROUP BY time($__interval)", + "rawQuery": true, + "refId": "E", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "Empty", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "SqlClientConnectionTime", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT SUM(R) FROM (SELECT mean(\"rate\") AS R FROM \"SqlMonitorEmpty\" WHERE (\"nodetype\" = 'Transaction' AND \"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/) AND $timeFilter GROUP BY time($__interval) , startid fill(null)) GROUP BY time($__interval)", + "rawQuery": true, + "refId": "D", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + } + ], + "timeShift": "10s", + "title": "Count", + "type": "timeseries" + } + ], + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "refId": "A" + } + ], + "title": "Monitor Event Queue", + "type": "row" + }, + { + "collapsed": false, + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 1 + }, + "id": 40, + "panels": [], + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "refId": "A" + } + ], + "title": "Client Messages", + "type": "row" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "µs" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 6, + "x": 0, + "y": 2 + }, + "hideTimeOverride": true, + "id": 45, + "links": [ + { + "title": "message chart", + "url": "/d/f499edfc-76ed-4d7a-843d-e73e4b6a2ef4/sql-client-messages?${__url_time_range}&${__all_variables}&groups=All" + } + ], + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "alias": "Execute", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "SqlClientExecute", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT SUM(R) FROM (SELECT mean(\"rate\") AS R FROM \"SqlClientExecuteTime\" WHERE (\"nodetype\" = 'Transaction' AND \"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/) AND $timeFilter GROUP BY time($__interval) , startid fill(null)) GROUP BY time($__interval)", + "rawQuery": true, + "refId": "E", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "Prepare", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "SqlClientConnectionTime", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT SUM(R) FROM (SELECT mean(\"rate\") AS R FROM \"SqlClientPrepareTime\" WHERE (\"nodetype\" = 'Transaction' AND \"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/) AND $timeFilter GROUP BY time($__interval) , startid fill(null)) GROUP BY time($__interval)", + "rawQuery": true, + "refId": "D", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "PrepareAndExecute", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "SqlClientConnectionTime", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT SUM(R) FROM (SELECT mean(\"rate\") AS R FROM \"SqlClientPrepareExecuteTime\" WHERE (\"nodetype\" = 'Transaction' AND \"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/) AND $timeFilter GROUP BY time($__interval) , startid fill(null)) GROUP BY time($__interval)", + "rawQuery": true, + "refId": "G", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "ResultSet", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "SqlClientConnectionTime", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT SUM(R) FROM (SELECT mean(\"rate\") AS R FROM \"SqlClientResultSetTime\" WHERE (\"nodetype\" = 'Transaction' AND \"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/) AND $timeFilter GROUP BY time($__interval) , startid fill(null)) GROUP BY time($__interval)", + "rawQuery": true, + "refId": "C", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "Transaction", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "SqlClientConnectionTime", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT SUM(R) FROM (SELECT mean(\"rate\") AS R FROM \"SqlClientTransactionTime\" WHERE (\"nodetype\" = 'Transaction' AND \"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/) AND $timeFilter GROUP BY time($__interval) , startid fill(null)) GROUP BY time($__interval)", + "rawQuery": true, + "refId": "F", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "Connection", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "SqlClientConnectionTime", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT SUM(R) FROM (SELECT mean(\"rate\") AS R FROM \"SqlClientConnectionTime\" WHERE (\"nodetype\" = 'Transaction' AND \"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/) AND $timeFilter GROUP BY time($__interval) , startid fill(null)) GROUP BY time($__interval)", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "Database", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "SqlClientConnectionTime", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT SUM(R) FROM (SELECT mean(\"rate\") AS R FROM \"SqlClientDatabaseTime\" WHERE (\"nodetype\" = 'Transaction' AND \"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/) AND $timeFilter GROUP BY time($__interval) , startid fill(null)) GROUP BY time($__interval)", + "rawQuery": true, + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + } + ], + "timeShift": "10s", + "title": "Duration", + "type": "timeseries" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "light-blue", + "value": null + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 6, + "y": 2 + }, + "id": 26, + "links": [ + { + "title": "Overview", + "url": "/d/AeBZNz9Vk/nuodb-overview?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "SqlListenerIdleTime", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT SUM(R) FROM (SELECT mean(\"value\") AS R FROM \"SqlListenerIdleTime\" WHERE (\"nodetype\" = 'Transaction' AND \"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/) AND $timeFilter GROUP BY startid, time($__interval) fill(null)) GROUP BY time($__interval)", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + } + ], + "title": "Idle Time", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "description": "Average Time (within 1 second) spent by Client Connections active in database over interval", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "light-blue", + "value": null + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 9, + "y": 2 + }, + "hideTimeOverride": true, + "id": 27, + "links": [ + { + "title": "Overview", + "url": "/d/AeBZNz9Vk/nuodb-overview?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "SqlListenerSqlProcTime", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT SUM(R) FROM (SELECT mean(\"value\") AS R FROM \"SqlListenerSqlProcTime\" WHERE (\"nodetype\" = 'Transaction' AND \"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/) AND $timeFilter GROUP BY startid, time($__interval) fill(null)) GROUP BY time($__interval)", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + }, + { + "condition": "AND", + "key": "host", + "operator": "=~", + "value": "/^$host$/" + } + ] + } + ], + "timeShift": "10s", + "title": "Proc Time", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "links": [ + { + "targetBlank": false, + "title": "message chart", + "url": "/d/f499edfc-76ed-4d7a-843d-e73e4b6a2ef4/sql-client-messages?${__url_time_range}&${__all_variables}&groups=All" + } + ], + "mappings": [], + "unit": "µs" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 12, + "y": 2 + }, + "hideTimeOverride": true, + "id": 52, + "links": [ + { + "title": "message chart", + "url": "/d/f499edfc-76ed-4d7a-843d-e73e4b6a2ef4/sql-client-messages?${__url_time_range}&${__all_variables}&groups=All" + } + ], + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "pieType": "pie", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "alias": "Execute", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "SqlClientExecute", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT SUM(R) FROM (SELECT mean(\"rate\") AS R FROM \"SqlClientExecuteTime\" WHERE (\"nodetype\" = 'Transaction' AND \"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/) AND $timeFilter GROUP BY time($__interval) , startid fill(null)) GROUP BY time($__interval)", + "rawQuery": true, + "refId": "E", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "Prepare", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "SqlClientConnectionTime", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT SUM(R) FROM (SELECT mean(\"rate\") AS R FROM \"SqlClientPrepareTime\" WHERE (\"nodetype\" = 'Transaction' AND \"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/) AND $timeFilter GROUP BY time($__interval) , startid fill(null)) GROUP BY time($__interval)", + "rawQuery": true, + "refId": "D", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "PrepareAndExecute", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "SqlClientConnectionTime", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT SUM(R) FROM (SELECT mean(\"rate\") AS R FROM \"SqlClientPrepareExecuteTime\" WHERE (\"nodetype\" = 'Transaction' AND \"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/) AND $timeFilter GROUP BY time($__interval) , startid fill(null)) GROUP BY time($__interval)", + "rawQuery": true, + "refId": "G", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "ResultSet", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "SqlClientConnectionTime", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT SUM(R) FROM (SELECT mean(\"rate\") AS R FROM \"SqlClientResultSetTime\" WHERE (\"nodetype\" = 'Transaction' AND \"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/) AND $timeFilter GROUP BY time($__interval) , startid fill(null)) GROUP BY time($__interval)", + "rawQuery": true, + "refId": "C", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "Transaction", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "SqlClientConnectionTime", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT SUM(R) FROM (SELECT mean(\"rate\") AS R FROM \"SqlClientTransactionTime\" WHERE (\"nodetype\" = 'Transaction' AND \"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/) AND $timeFilter GROUP BY time($__interval) , startid fill(null)) GROUP BY time($__interval)", + "rawQuery": true, + "refId": "F", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "Connection", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "SqlClientConnectionTime", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT SUM(R) FROM (SELECT mean(\"rate\") AS R FROM \"SqlClientConnectionTime\" WHERE (\"nodetype\" = 'Transaction' AND \"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/) AND $timeFilter GROUP BY time($__interval) , startid fill(null)) GROUP BY time($__interval)", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "Database", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "SqlClientConnectionTime", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT SUM(R) FROM (SELECT mean(\"rate\") AS R FROM \"SqlClientDatabaseTime\" WHERE (\"nodetype\" = 'Transaction' AND \"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/) AND $timeFilter GROUP BY time($__interval) , startid fill(null)) GROUP BY time($__interval)", + "rawQuery": true, + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + } + ], + "timeShift": "10s", + "title": "Duration", + "type": "piechart" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "links": [], + "mappings": [], + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 15, + "y": 2 + }, + "hideTimeOverride": true, + "id": 54, + "links": [ + { + "title": "message chart", + "url": "/d/f499edfc-76ed-4d7a-843d-e73e4b6a2ef4/sql-client-messages?${__url_time_range}&${__all_variables}&groups=All" + } + ], + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "pieType": "pie", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "alias": "Execute", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "SqlClientExecute", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(\"rate\") AS R FROM \"SqlClientExecute\" WHERE (\"nodetype\" = 'Transaction' AND \"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/) AND $timeFilter GROUP BY time(10s) , start_id fill(null)", + "rawQuery": true, + "refId": "E", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "Prepare", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "SqlClientConnectionTime", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(\"rate\") FROM \"SqlClientPrepare\" WHERE (\"nodetype\" = 'Transaction' AND \"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/) AND $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": true, + "refId": "D", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "PrepareAndExecute", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "SqlClientConnectionTime", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(\"rate\") FROM \"SqlClientPrepareExecute\" WHERE (\"nodetype\" = 'Transaction' AND \"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/) AND $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": true, + "refId": "G", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "ResultSet", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "SqlClientConnectionTime", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(\"rate\") FROM \"SqlClientResultSet\" WHERE (\"nodetype\" = 'Transaction' AND \"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/) AND $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": true, + "refId": "C", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "Transaction", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "SqlClientConnectionTime", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(\"rate\") FROM \"SqlClientTransaction\" WHERE (\"nodetype\" = 'Transaction' AND \"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/) AND $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": true, + "refId": "F", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "Connection", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "SqlClientConnectionTime", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(\"rate\") FROM \"SqlClientConnection\" WHERE (\"nodetype\" = 'Transaction' AND \"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/) AND $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "Database", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "SqlClientConnectionTime", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(\"rate\") FROM \"SqlClientDatabase\" WHERE (\"nodetype\" = 'Transaction' AND \"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/) AND $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": true, + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + } + ], + "timeShift": "10s", + "title": "Counts", + "type": "piechart" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 6, + "x": 18, + "y": 2 + }, + "hideTimeOverride": true, + "id": 44, + "links": [ + { + "title": "message chart", + "url": "/d/f499edfc-76ed-4d7a-843d-e73e4b6a2ef4/sql-client-messages?${__url_time_range}&${__all_variables}&groups=All" + } + ], + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "alias": "Execute", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "SqlClientExecute", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(\"rate\") AS R FROM \"SqlClientExecute\" WHERE (\"nodetype\" = 'Transaction' AND \"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/) AND $timeFilter GROUP BY time(10s) , start_id fill(null)", + "rawQuery": true, + "refId": "E", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "Prepare", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "SqlClientConnectionTime", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(\"rate\") FROM \"SqlClientPrepare\" WHERE (\"nodetype\" = 'Transaction' AND \"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/) AND $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": true, + "refId": "D", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "PrepareAndExecute", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "SqlClientConnectionTime", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(\"rate\") FROM \"SqlClientPrepareExecute\" WHERE (\"nodetype\" = 'Transaction' AND \"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/) AND $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": true, + "refId": "G", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "ResultSet", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "SqlClientConnectionTime", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(\"rate\") FROM \"SqlClientResultSet\" WHERE (\"nodetype\" = 'Transaction' AND \"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/) AND $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": true, + "refId": "C", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "Transaction", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "SqlClientConnectionTime", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(\"rate\") FROM \"SqlClientTransaction\" WHERE (\"nodetype\" = 'Transaction' AND \"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/) AND $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": true, + "refId": "F", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "Connection", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "SqlClientConnectionTime", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(\"rate\") FROM \"SqlClientConnection\" WHERE (\"nodetype\" = 'Transaction' AND \"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/) AND $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "Database", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "SqlClientConnectionTime", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(\"rate\") FROM \"SqlClientDatabase\" WHERE (\"nodetype\" = 'Transaction' AND \"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/) AND $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": true, + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + } + ], + "timeShift": "10s", + "title": "Counts", + "type": "timeseries" + }, + { + "collapsed": false, + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 7 + }, + "id": 31, + "panels": [], + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "refId": "A" + } + ], + "title": "Statement / Rows (Average 1 second rate over time range)", + "type": "row" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "super-light-blue", + "value": null + } + ] + }, + "unit": "µs" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 0, + "y": 8 + }, + "hideTimeOverride": true, + "id": 25, + "links": [ + { + "title": "Execute Breakdown", + "url": "/d/Qi5TDej4z/sql-statement-cache?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "SqlStatementExecTime", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"SqlStatementExecTime\" WHERE (\"nodetype\" = 'Transaction') AND (\"db\" =~ /^$database$/) AND (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY startid, time($__interval) fill(null)) group BY time($__interval)", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + } + ], + "timeShift": "10s", + "title": "Statement Exec Time", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "super-light-blue", + "value": null + } + ] + }, + "unit": "µs" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 3, + "y": 8 + }, + "hideTimeOverride": true, + "id": 47, + "links": [ + { + "title": "Execute Breakdown", + "url": "/d/Qi5TDej4z/sql-statement-cache?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "SqlStatementExecTime", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"SqlStatementCompileTime\" WHERE (\"nodetype\" = 'Transaction') AND (\"db\" =~ /^$database$/) AND (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY startid, time($__interval) fill(null)) group BY time($__interval)", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + } + ], + "timeShift": "10s", + "title": "Statement Compile Time", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "light-blue", + "value": null + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 6, + "y": 8 + }, + "hideTimeOverride": true, + "id": 38, + "links": [ + { + "title": "Details by Statement", + "url": "/d/ac1c1ab9-0112-43ec-8f23-78c625345906/sql-statement-operations?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "SqlStatementCount", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"SqlStatementCount\" WHERE (\"nodetype\" = 'Transaction') AND (\"db\" =~ /^$database$/) AND (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY startid, time($__interval) fill(null)) group BY time($__interval)", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + }, + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": true, + "measurement": "SqlStatementCount", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(\"rate\") as a FROM \"SqlStatementCount\" WHERE (\"nodetype\" = 'Transaction') AND (\"db\" =~ /^$database$/) AND (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY startid, time($__interval) fill(null)", + "rawQuery": true, + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + } + ], + "timeShift": "10s", + "title": "Statements Executed", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "mappings": [] + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 9, + "y": 8 + }, + "hideTimeOverride": true, + "id": 29, + "links": [ + { + "title": "Details by Statement", + "url": "/d/ac1c1ab9-0112-43ec-8f23-78c625345906/sql-statement-operations?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "pieType": "pie", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.3.0", + "repeatDirection": "h", + "targets": [ + { + "alias": "Selects", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "SqlStatementRecordsReturned", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"SqlStatementRecordsReturned\" WHERE(\"nodetype\" = 'Transaction') AND (\"db\" =~ /^$database$/) AND (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY startid, time($__interval) fill(null)) group BY time($__interval)", + "rawQuery": true, + "refId": "C", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + }, + { + "alias": "Inserts", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "SqlStatementInserts", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"SqlStatementInserts\" WHERE (\"nodetype\" = 'Transaction') AND (\"db\" =~ /^$database$/) AND (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY startid, time($__interval) fill(null)) group BY time($__interval)", + "rawQuery": true, + "refId": "E", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + }, + { + "alias": "Updates", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "SqlStatementUpdates", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"SqlStatementUpdates\" WHERE (\"nodetype\" = 'Transaction') AND (\"db\" =~ /^$database$/) AND (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY startid, time($__interval) fill(null)) group BY time($__interval)", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + }, + { + "alias": "Replace", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "SqlStatementReplaces", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"SqlStatementReplaces\" WHERE(\"nodetype\" = 'Transaction') AND (\"db\" =~ /^$database$/) AND (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY startid, time($__interval) fill(null)) group BY time($__interval)", + "rawQuery": true, + "refId": "D", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + }, + { + "alias": "Deletes", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "SqlStatementDeletes", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"SqlStatementDeletes\" WHERE (\"nodetype\" = 'Transaction') AND (\"db\" =~ /^$database$/) AND (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY startid, time($__interval) fill(null)) group BY time($__interval)", + "rawQuery": true, + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + } + ], + "timeShift": "10s", + "title": "SQL", + "type": "piechart" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 12, + "x": 12, + "y": 8 + }, + "hideTimeOverride": true, + "id": 37, + "links": [ + { + "title": "Details by Statement ", + "url": "/d/ac1c1ab9-0112-43ec-8f23-78c625345906/sql-statement-operations?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "repeatDirection": "h", + "targets": [ + { + "alias": "Selects", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "SqlStatementRecordsReturned", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"SqlStatementRecordsReturned\" WHERE(\"nodetype\" = 'Transaction') AND (\"db\" =~ /^$database$/) AND (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY startid, time($__interval) fill(null)) group BY time($__interval)", + "rawQuery": true, + "refId": "C", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + }, + { + "alias": "Inserts", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "SqlStatementInserts", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"SqlStatementInserts\" WHERE(\"nodetype\" = 'Transaction') AND (\"db\" =~ /^$database$/) AND (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY startid, time($__interval) fill(null)) group BY time($__interval)", + "rawQuery": true, + "refId": "E", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + }, + { + "alias": "Updates", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "SqlStatementUpdates", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"SqlStatementUpdates\" WHERE (\"nodetype\" = 'Transaction') AND (\"db\" =~ /^$database$/) AND (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY startid, time($__interval) fill(null)) group BY time($__interval)", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + }, + { + "alias": "Replace", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "SqlStatementReplaces", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"SqlStatementReplaces\" WHERE(\"nodetype\" = 'Transaction') AND (\"db\" =~ /^$database$/) AND (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY startid, time($__interval) fill(null)) group BY time($__interval)", + "rawQuery": true, + "refId": "D", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + }, + { + "alias": "Deletes", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "SqlStatementDeletes", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"SqlStatementDeletes\" WHERE (\"nodetype\" = 'Transaction') AND (\"db\" =~ /^$database$/) AND (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY startid, time($__interval) fill(null)) group BY time($__interval)", + "rawQuery": true, + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + } + ], + "timeShift": "10s", + "title": "SQL Rows by Operation", + "type": "stat" + }, + { + "collapsed": false, + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 12 + }, + "id": 17, + "panels": [], + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "refId": "A" + } + ], + "title": "Indexes (Average 1 second rate over time range)", + "type": "row" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 4, + "x": 0, + "y": 13 + }, + "hideTimeOverride": true, + "id": 10, + "links": [ + { + "title": "Details by Statement", + "url": "/d/e047494e-25c5-4efe-8572-fa1551034ce4/sql-statement-indexes?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "repeatDirection": "h", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "SqlStatementIndexHits", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"SqlStatementIndexHits\" WHERE(\"nodetype\" = 'Transaction') AND (\"db\" =~ /^$database$/) AND (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY startid, time($__interval) fill(null)) group BY time($__interval)", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + } + ], + "timeShift": "10s", + "title": "Index Hits", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "light-red", + "value": null + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 4, + "x": 4, + "y": 13 + }, + "hideTimeOverride": true, + "id": 12, + "links": [ + { + "title": "Details by Statement", + "url": "/d/e047494e-25c5-4efe-8572-fa1551034ce4/sql-statement-indexes?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "repeatDirection": "h", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "SqlStatementRejectedIndexHits", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"SqlStatementRejectedIndexHits\" WHERE (\"nodetype\" = 'Transaction') AND (\"db\" =~ /^$database$/) AND (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY startid, time($__interval) fill(null)) group BY time($__interval)", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + } + ], + "timeShift": "10s", + "title": "Rejected Index Hits", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 4, + "x": 8, + "y": 13 + }, + "hideTimeOverride": true, + "id": 15, + "links": [ + { + "title": "Details by Statement", + "url": "/d/e047494e-25c5-4efe-8572-fa1551034ce4/sql-statement-indexes?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "repeatDirection": "h", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "SqlStatementIndexFetches", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"SqlStatementIndexFetches\" WHERE(\"nodetype\" = 'Transaction') AND (\"db\" =~ /^$database$/) AND (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY startid, time($__interval) fill(null)) group BY time($__interval)", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + } + ], + "timeShift": "10s", + "title": "IndexScan Fetches", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "light-red", + "value": null + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 4, + "x": 12, + "y": 13 + }, + "hideTimeOverride": true, + "id": 13, + "links": [ + { + "title": "Details by Statement", + "url": "/d/e047494e-25c5-4efe-8572-fa1551034ce4/sql-statement-indexes?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "repeatDirection": "h", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "SqlStatementExhaustiveFetches", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"SqlStatementExhaustiveFetches\" WHERE (\"nodetype\" = 'Transaction') AND (\"db\" =~ /^$database$/) AND (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY startid, time($__interval) fill(null)) group BY time($__interval)", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + } + ], + "timeShift": "10s", + "title": "TableScan Fetches", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 4, + "x": 16, + "y": 13 + }, + "hideTimeOverride": true, + "id": 11, + "links": [ + { + "title": "Details by Statement", + "url": "/d/e047494e-25c5-4efe-8572-fa1551034ce4/sql-statement-indexes?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "repeatDirection": "h", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "SqlStatementIndexBatchFetches", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"SqlStatementIndexBatchFetches\" WHERE(\"nodetype\" = 'Transaction') AND (\"db\" =~ /^$database$/) AND (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY startid, time($__interval) fill(null)) group BY time($__interval)", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + } + ], + "timeShift": "10s", + "title": "# IndexScans", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "light-red", + "value": null + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 4, + "x": 20, + "y": 13 + }, + "hideTimeOverride": true, + "id": 14, + "links": [ + { + "title": "Details by Statement", + "url": "/d/e047494e-25c5-4efe-8572-fa1551034ce4/sql-statement-indexes?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "repeatDirection": "h", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "SqlStatementExhaustiveBatchFetches", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"SqlStatementExhaustiveBatchFetches\" WHERE (\"nodetype\" = 'Transaction') AND (\"db\" =~ /^$database$/) AND (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY startid, time($__interval) fill(null)) group BY time($__interval)", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + } + ], + "timeShift": "10s", + "title": "# TableScans", + "type": "stat" + }, + { + "collapsed": false, + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 17 + }, + "id": 4, + "panels": [], + "repeat": "SQLStatementStats", + "repeatDirection": "h", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "refId": "A" + } + ], + "title": "Records (Average 1 second rate over time range)", + "type": "row" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 6, + "x": 0, + "y": 18 + }, + "hideTimeOverride": true, + "id": 20, + "links": [ + { + "title": "Details by Statement", + "url": "/d/bceeb9dd-e8d6-474d-8b56-934d4f8e2f25/sql-statement-records?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "SqlStatementRecordsFetched", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"SqlStatementRecordsFetched\" WHERE (\"nodetype\" = 'Transaction') AND (\"db\" =~ /^$database$/) AND (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY startid, time($__interval) fill(null)) group BY time($__interval)", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + } + ], + "timeShift": "10s", + "title": "Records Fetched", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 6, + "x": 6, + "y": 18 + }, + "hideTimeOverride": true, + "id": 18, + "links": [ + { + "title": "Details by Statement", + "url": "/d/bceeb9dd-e8d6-474d-8b56-934d4f8e2f25/sql-statement-records?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "SqlStatementLockedRecords", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"SqlStatementLockedRecords\" WHERE(\"nodetype\" = 'Transaction') AND (\"db\" =~ /^$database$/) AND (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY startid, time($__interval) fill(null)) group BY time($__interval)", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + } + ], + "timeShift": "10s", + "title": "Records Locked", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 6, + "x": 12, + "y": 18 + }, + "hideTimeOverride": true, + "id": 21, + "links": [ + { + "title": "Details by Statement", + "url": "/d/bceeb9dd-e8d6-474d-8b56-934d4f8e2f25/sql-statement-records?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "SqlStatementRecordsSorted", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"SqlStatementRecordsSorted\" WHERE (\"nodetype\" = 'Transaction') AND (\"db\" =~ /^$database$/) AND (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY startid, time($__interval) fill(null)) group BY time($__interval)", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + } + ], + "timeShift": "10s", + "title": "Records Sorted", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 6, + "x": 18, + "y": 18 + }, + "hideTimeOverride": true, + "id": 36, + "links": [ + { + "title": "Details by Statement", + "url": "/d/bceeb9dd-e8d6-474d-8b56-934d4f8e2f25/sql-statement-records?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "SqlStatementEvicted", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"SqlStatementEvicted\" WHERE(\"nodetype\" = 'Transaction') AND (\"db\" =~ /^$database$/) AND (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY startid, time($__interval) fill(null)) group BY time($__interval)", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + } + ], + "timeShift": "10s", + "title": "Records Evicted", + "type": "stat" + } + ], + "refresh": false, + "schemaVersion": 38, + "style": "dark", + "tags": [ + "overview" + ], + "templating": { + "list": [ + { + "auto": true, + "auto_count": "50", + "auto_min": "10s", + "current": { + "selected": true, + "text": "10s", + "value": "10s" + }, + "hide": 0, + "label": "interval", + "name": "interval", + "options": [ + { + "selected": false, + "text": "auto", + "value": "$__auto_interval_interval" + }, + { + "selected": true, + "text": "10s", + "value": "10s" + }, + { + "selected": false, + "text": "30s", + "value": "30s" + }, + { + "selected": false, + "text": "1m", + "value": "1m" + }, + { + "selected": false, + "text": "5m", + "value": "5m" + }, + { + "selected": false, + "text": "10m", + "value": "10m" + }, + { + "selected": false, + "text": "15m", + "value": "15m" + }, + { + "selected": false, + "text": "30m", + "value": "30m" + }, + { + "selected": false, + "text": "1h", + "value": "1h" + }, + { + "selected": false, + "text": "6h", + "value": "6h" + }, + { + "selected": false, + "text": "12h", + "value": "12h" + }, + { + "selected": false, + "text": "1d", + "value": "1d" + }, + { + "selected": false, + "text": "7d", + "value": "7d" + }, + { + "selected": false, + "text": "14d", + "value": "14d" + }, + { + "selected": false, + "text": "30d", + "value": "30d" + } + ], + "query": "10s,30s,1m,5m,10m,15m,30m,1h,6h,12h,1d,7d,14d,30d", + "queryValue": "", + "refresh": 2, + "skipUrlSync": false, + "type": "interval" + }, + { + "allValue": ".*", + "current": { + "selected": false, + "text": "test", + "value": "test" + }, + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "definition": "SHOW TAG VALUES FROM \"Milliseconds\" WITH KEY = \"db\"", + "hide": 0, + "includeAll": false, + "label": "database", + "multi": false, + "name": "database", + "options": [], + "query": "SHOW TAG VALUES FROM \"Milliseconds\" WITH KEY = \"db\"", + "refresh": 1, + "regex": ".*", + "skipUrlSync": false, + "sort": 1, + "tagValuesQuery": "", + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": "", + "current": { + "selected": false, + "text": [ + "nuoadmin-2.nuodb.internal" + ], + "value": [ + "nuoadmin-2.nuodb.internal" + ] + }, + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "definition": "select distinct(\"host\") from (select first(raw) from \"Milliseconds\" where $timeFilter AND db =~ /$database$/ AND nodetype = 'Transaction' GROUP BY \"host\")", + "hide": 0, + "includeAll": true, + "label": "host", + "multi": true, + "name": "host", + "options": [], + "query": "select distinct(\"host\") from (select first(raw) from \"Milliseconds\" where $timeFilter AND db =~ /$database$/ AND nodetype = 'Transaction' GROUP BY \"host\")", + "refresh": 2, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + } + ] + }, + "time": { + "from": "now-15m", + "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" + ] + }, + "timezone": "utc", + "title": "NuoDB SQL Overview", + "uid": "cul4kM9Vz", + "version": 4, + "weekStart": "" +} diff --git a/conf/provisioning/dashboards/nuodb_client/nuodb-sql-statements.json b/conf/provisioning/dashboards/nuodb_client/nuodb-sql-statements.json new file mode 100644 index 0000000..6d30106 --- /dev/null +++ b/conf/provisioning/dashboards/nuodb_client/nuodb-sql-statements.json @@ -0,0 +1,5732 @@ +{ + "annotations": { + "list": [ + { + "$$hashKey": "object:65", + "builtIn": 1, + "datasource": { + "type": "datasource", + "uid": "grafana" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + }, + { + "$$hashKey": "object:2934", + "datasource": { + "type": "datasource", + "uid": "grafana" + }, + "enable": false, + "hide": false, + "iconColor": "rgba(255, 96, 96, 1)", + "limit": 100, + "name": "db annotations", + "showIn": 0, + "tags": [ + "$database" + ], + "type": "tags" + } + ] + }, + "description": "NuoDB Summary", + "editable": false, + "fiscalYearStartMonth": 0, + "graphTooltip": 1, + "id": 20, + "links": [ + { + "asDropdown": true, + "icon": "external link", + "includeVars": true, + "keepTime": true, + "tags": [ + "overview" + ], + "title": "top views", + "type": "dashboards" + }, + { + "asDropdown": true, + "icon": "external link", + "includeVars": true, + "keepTime": true, + "tags": [ + "nuodb" + ], + "title": "nuodb", + "type": "dashboards" + } + ], + "liveNow": false, + "panels": [ + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 28, + "panels": [ + { + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "links": [ + { + "title": "", + "url": "/d/df0d2b01-89ff-4108-bace-32f436204209/nuodb-sql-statements?var-id=${__data.fields.id}&${interval:queryparam}&${database:queryparam}&${host:queryparam}&${__url_time_range}" + } + ], + "mappings": [], + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "id" + }, + "properties": [ + { + "id": "unit", + "value": "string" + } + ] + } + ] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 0, + "y": 1 + }, + "id": 27, + "interval": "30s", + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "pieType": "pie", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "limit": 10, + "values": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "alias": "$tag_id", + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "id::tag" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "nuodb_statements", + "orderByTime": "ASC", + "policy": "autogen", + "query": "select top(\"value\",10) as numexecutes, id from (SELECT mean(\"numexecutes\") as value FROM \"autogen\".\"nuodb_statements\" WHERE (\"host\"::tag =~ /^$host$/) AND $timeFilter GROUP BY \"id\"::tag fill(null))", + "rawQuery": true, + "refId": "A", + "resultFormat": "table", + "select": [ + [ + { + "params": [ + "numexecutes" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + }, + { + "params": [ + " / 30" + ], + "type": "math" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + } + ] + } + ], + "title": "Executes", + "transformations": [ + { + "id": "convertFieldType", + "options": { + "conversions": [ + { + "destinationType": "string", + "targetField": "id" + } + ], + "fields": {} + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true + }, + "indexByName": {}, + "renameByName": {} + } + } + ], + "type": "piechart" + }, + { + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "links": [ + { + "title": "", + "url": "/d/df0d2b01-89ff-4108-bace-32f436204209/nuodb-sql-statements?var-id=${__data.fields.id}&${interval:queryparam}&${database:queryparam}&${host:queryparam}&${__url_time_range}" + } + ], + "mappings": [], + "unit": "µs" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "id" + }, + "properties": [ + { + "id": "unit", + "value": "string" + } + ] + } + ] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 3, + "y": 1 + }, + "id": 26, + "interval": "30s", + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "pieType": "pie", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "limit": 10, + "values": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "alias": "$tag_id", + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "id::tag" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "nuodb_statements", + "orderByTime": "ASC", + "policy": "autogen", + "query": "select top(\"value\",10) as value, id from (SELECT mean(\"exectime\") as value FROM \"autogen\".\"nuodb_statements\" WHERE (\"host\"::tag =~ /^$host$/) AND $timeFilter GROUP BY \"id\"::tag fill(null))", + "rawQuery": true, + "refId": "A", + "resultFormat": "table", + "select": [ + [ + { + "params": [ + "numexecutes" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + }, + { + "params": [ + " / 30" + ], + "type": "math" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + } + ] + } + ], + "title": "Execute Time", + "transformations": [ + { + "id": "convertFieldType", + "options": { + "conversions": [ + { + "destinationType": "string", + "targetField": "id" + } + ], + "fields": {} + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true + }, + "indexByName": {}, + "renameByName": {} + } + } + ], + "type": "piechart" + }, + { + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "links": [ + { + "title": "", + "url": "/d/df0d2b01-89ff-4108-bace-32f436204209/nuodb-sql-statements?var-id=${__data.fields.id}&${interval:queryparam}&${database:queryparam}&${host:queryparam}&${__url_time_range}" + } + ], + "mappings": [], + "unit": "µs" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "id" + }, + "properties": [ + { + "id": "unit", + "value": "string" + } + ] + } + ] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 6, + "y": 1 + }, + "id": 33, + "interval": "30s", + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "pieType": "pie", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "limit": 10, + "values": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "alias": "$tag_id", + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "id::tag" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "nuodb_statements", + "orderByTime": "ASC", + "policy": "autogen", + "query": "select top(\"value\",10) as value, id from (SELECT mean(\"compiletime\") as value FROM \"autogen\".\"nuodb_statements\" WHERE (\"host\"::tag =~ /^$host$/) AND $timeFilter GROUP BY \"id\"::tag fill(null))", + "rawQuery": true, + "refId": "A", + "resultFormat": "table", + "select": [ + [ + { + "params": [ + "numexecutes" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + }, + { + "params": [ + " / 30" + ], + "type": "math" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + } + ] + } + ], + "title": "Compile Time", + "transformations": [ + { + "id": "convertFieldType", + "options": { + "conversions": [ + { + "destinationType": "string", + "targetField": "id" + } + ], + "fields": {} + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true + }, + "indexByName": {}, + "renameByName": {} + } + } + ], + "type": "piechart" + }, + { + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "links": [ + { + "title": "", + "url": "/d/df0d2b01-89ff-4108-bace-32f436204209/nuodb-sql-statements?var-id=${__data.fields.id}&${interval:queryparam}&${database:queryparam}&${host:queryparam}&${__url_time_range}" + } + ], + "mappings": [], + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "id" + }, + "properties": [ + { + "id": "unit", + "value": "string" + } + ] + } + ] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 9, + "y": 1 + }, + "id": 29, + "interval": "30s", + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "pieType": "pie", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "limit": 10, + "values": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "alias": "$tag_id", + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "id::tag" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "nuodb_statements", + "orderByTime": "ASC", + "policy": "autogen", + "query": "select top(\"value\",10) as value, id from (SELECT mean(\"recordsreturned\") as value FROM \"autogen\".\"nuodb_statements\" WHERE (\"host\"::tag =~ /^$host$/) AND $timeFilter GROUP BY \"id\"::tag fill(null))", + "rawQuery": true, + "refId": "A", + "resultFormat": "table", + "select": [ + [ + { + "params": [ + "numexecutes" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + }, + { + "params": [ + " / 30" + ], + "type": "math" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + } + ] + } + ], + "title": "Selects", + "transformations": [ + { + "id": "convertFieldType", + "options": { + "conversions": [ + { + "destinationType": "string", + "targetField": "id" + } + ], + "fields": {} + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true + }, + "indexByName": {}, + "renameByName": {} + } + } + ], + "type": "piechart" + }, + { + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "links": [ + { + "title": "", + "url": "/d/df0d2b01-89ff-4108-bace-32f436204209/nuodb-sql-statements?var-id=${__data.fields.id}&${interval:queryparam}&${database:queryparam}&${host:queryparam}&${__url_time_range}" + } + ], + "mappings": [], + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "id" + }, + "properties": [ + { + "id": "unit", + "value": "string" + } + ] + } + ] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 12, + "y": 1 + }, + "id": 32, + "interval": "30s", + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "pieType": "pie", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "limit": 10, + "values": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "alias": "$tag_id", + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "id::tag" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "nuodb_statements", + "orderByTime": "ASC", + "policy": "autogen", + "query": "select top(\"value\",10) as value, id from (SELECT mean(\"inserts\") as value FROM \"autogen\".\"nuodb_statements\" WHERE (\"host\"::tag =~ /^$host$/) AND $timeFilter GROUP BY \"id\"::tag fill(null))", + "rawQuery": true, + "refId": "A", + "resultFormat": "table", + "select": [ + [ + { + "params": [ + "numexecutes" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + }, + { + "params": [ + " / 30" + ], + "type": "math" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + } + ] + } + ], + "title": "Inserts", + "transformations": [ + { + "id": "convertFieldType", + "options": { + "conversions": [ + { + "destinationType": "string", + "targetField": "id" + } + ], + "fields": {} + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true + }, + "indexByName": {}, + "renameByName": {} + } + } + ], + "type": "piechart" + }, + { + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "links": [ + { + "title": "", + "url": "/d/df0d2b01-89ff-4108-bace-32f436204209/nuodb-sql-statements?var-id=${__data.fields.id}&${interval:queryparam}&${database:queryparam}&${host:queryparam}&${__url_time_range}" + } + ], + "mappings": [], + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "id" + }, + "properties": [ + { + "id": "unit", + "value": "string" + } + ] + } + ] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 15, + "y": 1 + }, + "id": 30, + "interval": "30s", + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "pieType": "pie", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "limit": 10, + "values": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "alias": "$tag_id", + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "id::tag" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "nuodb_statements", + "orderByTime": "ASC", + "policy": "autogen", + "query": "select top(\"value\",10) as value, id from (SELECT sum(\"updates\") as value FROM \"autogen\".\"nuodb_statements\" WHERE (\"host\"::tag =~ /^$host$/) AND $timeFilter GROUP BY \"id\"::tag fill(null))", + "rawQuery": true, + "refId": "A", + "resultFormat": "table", + "select": [ + [ + { + "params": [ + "numexecutes" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + }, + { + "params": [ + " / 30" + ], + "type": "math" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + } + ] + } + ], + "title": "Updates", + "transformations": [ + { + "id": "convertFieldType", + "options": { + "conversions": [ + { + "destinationType": "string", + "targetField": "id" + } + ], + "fields": {} + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true + }, + "indexByName": {}, + "renameByName": {} + } + } + ], + "type": "piechart" + }, + { + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "links": [ + { + "title": "", + "url": "/d/df0d2b01-89ff-4108-bace-32f436204209/nuodb-sql-statements?var-id=${__data.fields.id}&${interval:queryparam}&${database:queryparam}&${host:queryparam}&${__url_time_range}" + } + ], + "mappings": [], + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "id" + }, + "properties": [ + { + "id": "unit", + "value": "string" + } + ] + } + ] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 18, + "y": 1 + }, + "id": 31, + "interval": "30s", + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "pieType": "pie", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "limit": 10, + "values": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "alias": "$tag_id", + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "id::tag" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "nuodb_statements", + "orderByTime": "ASC", + "policy": "autogen", + "query": "select top(\"value\",10) as value, id from (SELECT mean(\"deletions\") as value FROM \"autogen\".\"nuodb_statements\" WHERE (\"host\"::tag =~ /^$host$/) AND $timeFilter GROUP BY \"id\"::tag fill(null))", + "rawQuery": true, + "refId": "A", + "resultFormat": "table", + "select": [ + [ + { + "params": [ + "numexecutes" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + }, + { + "params": [ + " / 30" + ], + "type": "math" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + } + ] + } + ], + "title": "Deletes", + "transformations": [ + { + "id": "convertFieldType", + "options": { + "conversions": [ + { + "destinationType": "string", + "targetField": "id" + } + ], + "fields": {} + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true + }, + "indexByName": {}, + "renameByName": {} + } + } + ], + "type": "piechart" + }, + { + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "links": [ + { + "title": "", + "url": "/d/df0d2b01-89ff-4108-bace-32f436204209/nuodb-sql-statements?var-id=${__data.fields.id}&${interval:queryparam}&${database:queryparam}&${host:queryparam}&${__url_time_range}" + } + ], + "mappings": [], + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "id" + }, + "properties": [ + { + "id": "unit", + "value": "string" + } + ] + } + ] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 21, + "y": 1 + }, + "id": 39, + "interval": "30s", + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "pieType": "pie", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "limit": 10, + "values": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "alias": "$tag_id", + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "id::tag" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "nuodb_statements", + "orderByTime": "ASC", + "policy": "autogen", + "query": "select top(\"value\",10) as value, id from (SELECT mean(\"replaces\") as value FROM \"autogen\".\"nuodb_statements\" WHERE (\"host\"::tag =~ /^$host$/) AND $timeFilter GROUP BY \"id\"::tag fill(null))", + "rawQuery": true, + "refId": "A", + "resultFormat": "table", + "select": [ + [ + { + "params": [ + "numexecutes" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + }, + { + "params": [ + " / 30" + ], + "type": "math" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + } + ] + } + ], + "title": "Replaces", + "transformations": [ + { + "id": "convertFieldType", + "options": { + "conversions": [ + { + "destinationType": "string", + "targetField": "id" + } + ], + "fields": {} + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true + }, + "indexByName": {}, + "renameByName": {} + } + } + ], + "type": "piechart" + }, + { + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "links": [ + { + "title": "", + "url": "/d/df0d2b01-89ff-4108-bace-32f436204209/nuodb-sql-statements?var-id=${__data.fields.id}&${interval:queryparam}&${database:queryparam}&${host:queryparam}&${__url_time_range}" + } + ], + "mappings": [], + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "id" + }, + "properties": [ + { + "id": "unit", + "value": "string" + } + ] + } + ] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 0, + "y": 6 + }, + "id": 41, + "interval": "30s", + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "pieType": "pie", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "limit": 10, + "values": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "alias": "$tag_id", + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "id::tag" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "nuodb_statements", + "orderByTime": "ASC", + "policy": "autogen", + "query": "select top(\"value\",10) as value, id from (SELECT mean(\"recordsfetched\") as value FROM \"autogen\".\"nuodb_statements\" WHERE (\"host\"::tag =~ /^$host$/) AND $timeFilter GROUP BY \"id\"::tag fill(null))", + "rawQuery": true, + "refId": "A", + "resultFormat": "table", + "select": [ + [ + { + "params": [ + "numexecutes" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + }, + { + "params": [ + " / 30" + ], + "type": "math" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + } + ] + } + ], + "title": "Record Fetched", + "transformations": [ + { + "id": "convertFieldType", + "options": { + "conversions": [ + { + "destinationType": "string", + "targetField": "id" + } + ], + "fields": {} + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true + }, + "indexByName": {}, + "renameByName": {} + } + } + ], + "type": "piechart" + }, + { + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "auto" + }, + "filterable": true, + "inspect": false + }, + "displayName": "Select SQL String to Display", + "links": [ + { + "title": "Select SQL Statement", + "url": "/d/df0d2b01-89ff-4108-bace-32f436204209/nuodb-sql-statements?var-id=${__data.fields.id}&${interval:queryparam}&${database:queryparam}&${host:queryparam}&${__url_time_range}" + } + ], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "sqlstring" + }, + "properties": [ + { + "id": "custom.inspect", + "value": true + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "id" + }, + "properties": [ + { + "id": "custom.hidden", + "value": true + }, + { + "id": "unit", + "value": "string" + } + ] + } + ] + }, + "gridPos": { + "h": 20, + "w": 18, + "x": 3, + "y": 6 + }, + "id": 13, + "maxDataPoints": 1, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": true + }, + "showHeader": true, + "sortBy": [ + { + "desc": true, + "displayName": "Select SQL String to Display" + } + ] + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "groupBy": [], + "hide": false, + "measurement": "nuodb_statements", + "orderByTime": "ASC", + "policy": "autogen", + "query": "select \"id\",\"sqlstring\" FROM (SELECT \"id\",\"sqlstring\",last(\"exectime\") FROM \"autogen\".\"nuodb_statements\" WHERE $timeFilter GROUP BY \"id\", \"sqlstring\")", + "rawQuery": true, + "refId": "B", + "resultFormat": "table", + "select": [ + [ + { + "params": [ + "exectime" + ], + "type": "field" + } + ] + ], + "tags": [] + } + ], + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true + }, + "indexByName": {}, + "renameByName": {} + } + }, + { + "id": "convertFieldType", + "options": { + "conversions": [ + { + "destinationType": "string", + "targetField": "id" + } + ], + "fields": {} + } + } + ], + "type": "table" + }, + { + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "links": [ + { + "title": "", + "url": "/d/df0d2b01-89ff-4108-bace-32f436204209/nuodb-sql-statements?var-id=${__data.fields.id}&${interval:queryparam}&${database:queryparam}&${host:queryparam}&${__url_time_range}" + } + ], + "mappings": [], + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "id" + }, + "properties": [ + { + "id": "unit", + "value": "string" + } + ] + } + ] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 21, + "y": 6 + }, + "id": 35, + "interval": "30s", + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "pieType": "pie", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "limit": 10, + "values": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "alias": "$tag_id", + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "id::tag" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "nuodb_statements", + "orderByTime": "ASC", + "policy": "autogen", + "query": "select top(\"value\",10) as value, id from (SELECT mean(\"indexhits\") as value FROM \"autogen\".\"nuodb_statements\" WHERE (\"host\"::tag =~ /^$host$/) AND $timeFilter GROUP BY \"id\"::tag fill(null))", + "rawQuery": true, + "refId": "A", + "resultFormat": "table", + "select": [ + [ + { + "params": [ + "numexecutes" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + }, + { + "params": [ + " / 30" + ], + "type": "math" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + } + ] + } + ], + "title": "IndexHits", + "transformations": [ + { + "id": "convertFieldType", + "options": { + "conversions": [ + { + "destinationType": "string", + "targetField": "id" + } + ], + "fields": {} + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true + }, + "indexByName": {}, + "renameByName": {} + } + } + ], + "type": "piechart" + }, + { + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "links": [ + { + "title": "", + "url": "/d/df0d2b01-89ff-4108-bace-32f436204209/nuodb-sql-statements?var-id=${__data.fields.id}&${interval:queryparam}&${database:queryparam}&${host:queryparam}&${__url_time_range}" + } + ], + "mappings": [], + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "id" + }, + "properties": [ + { + "id": "unit", + "value": "string" + } + ] + } + ] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 0, + "y": 11 + }, + "id": 42, + "interval": "30s", + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "pieType": "pie", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "limit": 10, + "values": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "alias": "$tag_id", + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "id::tag" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "nuodb_statements", + "orderByTime": "ASC", + "policy": "autogen", + "query": "select top(\"value\",10) as value, id from (SELECT mean(\"locked\") as value FROM \"autogen\".\"nuodb_statements\" WHERE (\"host\"::tag =~ /^$host$/) AND $timeFilter GROUP BY \"id\"::tag fill(null))", + "rawQuery": true, + "refId": "A", + "resultFormat": "table", + "select": [ + [ + { + "params": [ + "numexecutes" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + }, + { + "params": [ + " / 30" + ], + "type": "math" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + } + ] + } + ], + "title": "Record Locked", + "transformations": [ + { + "id": "convertFieldType", + "options": { + "conversions": [ + { + "destinationType": "string", + "targetField": "id" + } + ], + "fields": {} + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true + }, + "indexByName": {}, + "renameByName": {} + } + } + ], + "type": "piechart" + }, + { + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "links": [ + { + "title": "", + "url": "/d/df0d2b01-89ff-4108-bace-32f436204209/nuodb-sql-statements?var-id=${__data.fields.id}&${interval:queryparam}&${database:queryparam}&${host:queryparam}&${__url_time_range}" + } + ], + "mappings": [], + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "id" + }, + "properties": [ + { + "id": "unit", + "value": "string" + } + ] + } + ] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 21, + "y": 11 + }, + "id": 36, + "interval": "30s", + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "pieType": "pie", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "limit": 10, + "values": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "alias": "$tag_id", + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "id::tag" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "nuodb_statements", + "orderByTime": "ASC", + "policy": "autogen", + "query": "select top(\"value\",10) as value, id from (SELECT mean(\"rejectedhits\") as value FROM \"autogen\".\"nuodb_statements\" WHERE (\"host\"::tag =~ /^$host$/) AND $timeFilter GROUP BY \"id\"::tag fill(null))", + "rawQuery": true, + "refId": "A", + "resultFormat": "table", + "select": [ + [ + { + "params": [ + "numexecutes" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + }, + { + "params": [ + " / 30" + ], + "type": "math" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + } + ] + } + ], + "title": "RejectedIndexHits", + "transformations": [ + { + "id": "convertFieldType", + "options": { + "conversions": [ + { + "destinationType": "string", + "targetField": "id" + } + ], + "fields": {} + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true + }, + "indexByName": {}, + "renameByName": {} + } + } + ], + "type": "piechart" + }, + { + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "links": [ + { + "title": "", + "url": "/d/df0d2b01-89ff-4108-bace-32f436204209/nuodb-sql-statements?var-id=${__data.fields.id}&${interval:queryparam}&${database:queryparam}&${host:queryparam}&${__url_time_range}" + } + ], + "mappings": [], + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "id" + }, + "properties": [ + { + "id": "unit", + "value": "string" + } + ] + } + ] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 0, + "y": 16 + }, + "id": 43, + "interval": "30s", + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "pieType": "pie", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "limit": 10, + "values": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "alias": "$tag_id", + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "id::tag" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "nuodb_statements", + "orderByTime": "ASC", + "policy": "autogen", + "query": "select top(\"value\",10) as value, id from (SELECT mean(\"sorted\") as value FROM \"autogen\".\"nuodb_statements\" WHERE (\"host\"::tag =~ /^$host$/) AND $timeFilter GROUP BY \"id\"::tag fill(null))", + "rawQuery": true, + "refId": "A", + "resultFormat": "table", + "select": [ + [ + { + "params": [ + "numexecutes" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + }, + { + "params": [ + " / 30" + ], + "type": "math" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + } + ] + } + ], + "title": "Record Sorted", + "transformations": [ + { + "id": "convertFieldType", + "options": { + "conversions": [ + { + "destinationType": "string", + "targetField": "id" + } + ], + "fields": {} + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true + }, + "indexByName": {}, + "renameByName": {} + } + } + ], + "type": "piechart" + }, + { + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "links": [ + { + "title": "", + "url": "/d/df0d2b01-89ff-4108-bace-32f436204209/nuodb-sql-statements?var-id=${__data.fields.id}&${interval:queryparam}&${database:queryparam}&${host:queryparam}&${__url_time_range}" + } + ], + "mappings": [], + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "id" + }, + "properties": [ + { + "id": "unit", + "value": "string" + } + ] + } + ] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 21, + "y": 16 + }, + "id": 38, + "interval": "30s", + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "pieType": "pie", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "limit": 10, + "values": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "alias": "$tag_id", + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "id::tag" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "nuodb_statements", + "orderByTime": "ASC", + "policy": "autogen", + "query": "select top(\"value\",10) as value, id from (SELECT mean(\"indexfetches\") as value FROM \"autogen\".\"nuodb_statements\" WHERE (\"host\"::tag =~ /^$host$/) AND $timeFilter GROUP BY \"id\"::tag fill(null))", + "rawQuery": true, + "refId": "A", + "resultFormat": "table", + "select": [ + [ + { + "params": [ + "numexecutes" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + }, + { + "params": [ + " / 30" + ], + "type": "math" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + } + ] + } + ], + "title": "IndexFetches", + "transformations": [ + { + "id": "convertFieldType", + "options": { + "conversions": [ + { + "destinationType": "string", + "targetField": "id" + } + ], + "fields": {} + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true + }, + "indexByName": {}, + "renameByName": {} + } + } + ], + "type": "piechart" + }, + { + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "links": [ + { + "title": "", + "url": "/d/df0d2b01-89ff-4108-bace-32f436204209/nuodb-sql-statements?var-id=${__data.fields.id}&${interval:queryparam}&${database:queryparam}&${host:queryparam}&${__url_time_range}" + } + ], + "mappings": [], + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "id" + }, + "properties": [ + { + "id": "unit", + "value": "string" + } + ] + } + ] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 0, + "y": 21 + }, + "id": 44, + "interval": "30s", + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "pieType": "pie", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "limit": 10, + "values": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "alias": "$tag_id", + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "id::tag" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "nuodb_statements", + "orderByTime": "ASC", + "policy": "autogen", + "query": "select top(\"value\",10) as value, id from (SELECT mean(\"evicted\") as value FROM \"autogen\".\"nuodb_statements\" WHERE (\"host\"::tag =~ /^$host$/) AND $timeFilter GROUP BY \"id\"::tag fill(null))", + "rawQuery": true, + "refId": "A", + "resultFormat": "table", + "select": [ + [ + { + "params": [ + "numexecutes" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + }, + { + "params": [ + " / 30" + ], + "type": "math" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + } + ] + } + ], + "title": "Record Evicted", + "transformations": [ + { + "id": "convertFieldType", + "options": { + "conversions": [ + { + "destinationType": "string", + "targetField": "id" + } + ], + "fields": {} + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true + }, + "indexByName": {}, + "renameByName": {} + } + } + ], + "type": "piechart" + }, + { + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "links": [ + { + "title": "", + "url": "/d/df0d2b01-89ff-4108-bace-32f436204209/nuodb-sql-statements?var-id=${__data.fields.id}&${interval:queryparam}&${database:queryparam}&${host:queryparam}&${__url_time_range}" + } + ], + "mappings": [], + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "id" + }, + "properties": [ + { + "id": "unit", + "value": "string" + } + ] + } + ] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 21, + "y": 21 + }, + "id": 40, + "interval": "30s", + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "pieType": "pie", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "limit": 10, + "values": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "alias": "$tag_id", + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "id::tag" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "nuodb_statements", + "orderByTime": "ASC", + "policy": "autogen", + "query": "select top(\"value\",10) as value, id from (SELECT mean(\"tablefetches\") as value FROM \"autogen\".\"nuodb_statements\" WHERE (\"host\"::tag =~ /^$host$/) AND $timeFilter GROUP BY \"id\"::tag fill(null))", + "rawQuery": true, + "refId": "A", + "resultFormat": "table", + "select": [ + [ + { + "params": [ + "numexecutes" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + }, + { + "params": [ + " / 30" + ], + "type": "math" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + } + ] + } + ], + "title": "TableFetches", + "transformations": [ + { + "id": "convertFieldType", + "options": { + "conversions": [ + { + "destinationType": "string", + "targetField": "id" + } + ], + "fields": {} + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true + }, + "indexByName": {}, + "renameByName": {} + } + } + ], + "type": "piechart" + } + ], + "title": "Selectors", + "type": "row" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 1 + }, + "id": 34, + "panels": [], + "title": "Selected SQL", + "type": "row" + }, + { + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "auto" + }, + "inspect": true + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "string" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 24, + "x": 0, + "y": 2 + }, + "id": 37, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": false + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "groupBy": [ + { + "params": [ + "sqlstring::tag" + ], + "type": "tag" + } + ], + "measurement": "nuodb_statements", + "orderByTime": "ASC", + "policy": "autogen", + "refId": "A", + "resultFormat": "table", + "select": [ + [ + { + "params": [ + "numexecutes" + ], + "type": "field" + }, + { + "params": [], + "type": "first" + } + ] + ], + "tags": [ + { + "key": "id::tag", + "operator": "=~", + "value": "/^$id$/" + } + ] + } + ], + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "first": true + }, + "indexByName": {}, + "renameByName": {} + } + } + ], + "type": "table" + }, + { + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "super-light-yellow", + "mode": "fixed" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "axisSoftMin": 0, + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 0, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "super-light-blue", + "value": null + } + ] + }, + "unit": "µs" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 4, + "x": 0, + "y": 4 + }, + "hideTimeOverride": true, + "id": 46, + "interval": "$collection", + "links": [ + { + "title": "Execute Breakdown", + "url": "/d/Qi5TDej4z/sql-statement-cache?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "legend": { + "calcs": [ + "lastNotNull" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "alias": "exectime", + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "nuodb_statements", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"SqlStatementExecTime\" WHERE (\"db\" =~ /^$database$/) AND (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY startid, time($__interval) fill(null)) group BY time($__interval)", + "rawQuery": false, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "exectime" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + }, + { + "params": [ + " / $collection" + ], + "type": "math" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + } + ] + }, + { + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": true, + "measurement": "SqlStatementExecTime", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"SqlStatementExecTime\" WHERE (\"db\" =~ /^$database$/) AND (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY startid, time($__interval) fill(null)) group BY time($__interval)", + "rawQuery": true, + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + } + ], + "timeShift": "10s", + "title": "Total Exec Time", + "type": "timeseries" + }, + { + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "super-light-blue", + "mode": "fixed" + }, + "mappings": [], + "noValue": "0", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "super-light-blue", + "value": null + } + ] + }, + "unit": "µs" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "exectime" + }, + "properties": [ + { + "id": "displayName" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "compiletime" + }, + "properties": [ + { + "id": "displayName", + "value": "Compile Time" + } + ] + } + ] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 4, + "y": 4 + }, + "hideTimeOverride": true, + "id": 48, + "interval": "$collection", + "links": [ + { + "targetBlank": true, + "title": "Execute Breakdown", + "url": "/d/c9081118-5230-478d-b6e8-d76614395704/sql-logs?${__all_variables}&${__url_time_range}&var-statement=${id:value}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "center", + "orientation": "vertical", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "value" + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "alias": "exectime", + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "nuodb_statements", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"SqlStatementExecTime\" WHERE (\"db\" =~ /^$database$/) AND (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY startid, time($__interval) fill(null)) group BY time($__interval)", + "rawQuery": false, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "exectime" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + }, + { + "params": [ + " / $collection" + ], + "type": "math" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + }, + { + "condition": "AND", + "key": "id::tag", + "operator": "=~", + "value": "/^$id$/" + } + ] + }, + { + "alias": "compiletime", + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": true, + "measurement": "nuodb_statements", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"SqlStatementExecTime\" WHERE (\"db\" =~ /^$database$/) AND (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY startid, time($__interval) fill(null)) group BY time($__interval)", + "rawQuery": false, + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "compiletime" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + }, + { + "params": [ + " / $collection" + ], + "type": "math" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + }, + { + "condition": "AND", + "key": "id::tag", + "operator": "=~", + "value": "/^$id$/" + } + ] + } + ], + "timeShift": "10s", + "title": "Execution Time", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "super-light-blue", + "mode": "fixed" + }, + "mappings": [], + "noValue": "0", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "super-light-blue", + "value": null + } + ] + }, + "unit": "µs" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "exectime" + }, + "properties": [ + { + "id": "displayName" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "compiletime" + }, + "properties": [ + { + "id": "displayName", + "value": "Compile Time" + } + ] + } + ] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 7, + "y": 4 + }, + "hideTimeOverride": true, + "id": 49, + "interval": "$collection", + "links": [ + { + "title": "Execute Breakdown", + "url": "/d/c9081118-5230-478d-b6e8-d76614395704/sql-logs?${__all_variables}&${__url_time_range}&var-statement=${id:value}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "center", + "orientation": "vertical", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "alias": "compiletime", + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "nuodb_statements", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"SqlStatementExecTime\" WHERE (\"db\" =~ /^$database$/) AND (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY startid, time($__interval) fill(null)) group BY time($__interval)", + "rawQuery": false, + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "compiletime" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + }, + { + "params": [ + " / $collection" + ], + "type": "math" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + }, + { + "condition": "AND", + "key": "id::tag", + "operator": "=~", + "value": "/^$id$/" + } + ] + } + ], + "timeShift": "10s", + "title": "Compile Time", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "super-light-yellow", + "mode": "fixed" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "axisSoftMin": 0, + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 0, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "super-light-blue", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 5, + "x": 10, + "y": 4 + }, + "hideTimeOverride": true, + "id": 51, + "interval": "$collection", + "links": [ + { + "title": "Execute Breakdown", + "url": "/d/Qi5TDej4z/sql-statement-cache?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "legend": { + "calcs": [ + "lastNotNull" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "alias": "numexecutes", + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "nuodb_statements", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"SqlStatementExecTime\" WHERE (\"db\" =~ /^$database$/) AND (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY startid, time($__interval) fill(null)) group BY time($__interval)", + "rawQuery": false, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "numexecutes" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + }, + { + "params": [ + " / $collection" + ], + "type": "math" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + } + ] + } + ], + "timeShift": "10s", + "title": "Total Number Executes", + "type": "timeseries" + }, + { + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "super-light-blue", + "mode": "fixed" + }, + "mappings": [], + "noValue": "0", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "super-light-blue", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "exectime" + }, + "properties": [ + { + "id": "displayName" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "compiletime" + }, + "properties": [ + { + "id": "displayName", + "value": "Compile Time" + } + ] + } + ] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 15, + "y": 4 + }, + "hideTimeOverride": true, + "id": 50, + "interval": "$collection", + "links": [ + { + "title": "Execute Breakdown", + "url": "/d/c9081118-5230-478d-b6e8-d76614395704/sql-logs?${__all_variables}&${__url_time_range}&var-statement=${id:value}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "center", + "orientation": "vertical", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "alias": "value", + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "nuodb_statements", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"SqlStatementExecTime\" WHERE (\"db\" =~ /^$database$/) AND (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY startid, time($__interval) fill(null)) group BY time($__interval)", + "rawQuery": false, + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "numexecutes" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + }, + { + "params": [ + " / $collection" + ], + "type": "math" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + }, + { + "condition": "AND", + "key": "id::tag", + "operator": "=~", + "value": "/^$id$/" + } + ] + } + ], + "timeShift": "10s", + "title": "Num Executed", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "super-light-blue", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "exectime" + }, + "properties": [ + { + "id": "displayName" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "compiletime" + }, + "properties": [ + { + "id": "displayName", + "value": "Compile Time" + } + ] + } + ] + }, + "gridPos": { + "h": 5, + "w": 6, + "x": 18, + "y": 4 + }, + "hideTimeOverride": true, + "id": 52, + "interval": "$collection", + "links": [ + { + "title": "Execute Breakdown", + "url": "/d/c9081118-5230-478d-b6e8-d76614395704/sql-logs?${__all_variables}&${__url_time_range}&var-statement=${id:value}" + } + ], + "options": { + "displayMode": "gradient", + "minVizHeight": 10, + "minVizWidth": 0, + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showUnfilled": false, + "valueMode": "color" + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "alias": "Selects", + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "nuodb_statements", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"SqlStatementExecTime\" WHERE (\"db\" =~ /^$database$/) AND (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY startid, time($__interval) fill(null)) group BY time($__interval)", + "rawQuery": false, + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "recordsreturned" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + }, + { + "params": [ + " / $collection" + ], + "type": "math" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + }, + { + "condition": "AND", + "key": "id::tag", + "operator": "=~", + "value": "/^$id$/" + } + ] + }, + { + "alias": "Inserts", + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "nuodb_statements", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"SqlStatementExecTime\" WHERE (\"db\" =~ /^$database$/) AND (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY startid, time($__interval) fill(null)) group BY time($__interval)", + "rawQuery": false, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "inserts" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + }, + { + "params": [ + " / $collection" + ], + "type": "math" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + }, + { + "condition": "AND", + "key": "id::tag", + "operator": "=~", + "value": "/^$id$/" + } + ] + }, + { + "alias": "Updates", + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "nuodb_statements", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"SqlStatementExecTime\" WHERE (\"db\" =~ /^$database$/) AND (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY startid, time($__interval) fill(null)) group BY time($__interval)", + "rawQuery": false, + "refId": "C", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "updates" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + }, + { + "params": [ + " / $collection" + ], + "type": "math" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + }, + { + "condition": "AND", + "key": "id::tag", + "operator": "=~", + "value": "/^$id$/" + } + ] + }, + { + "alias": "Deletes", + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "nuodb_statements", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"SqlStatementExecTime\" WHERE (\"db\" =~ /^$database$/) AND (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY startid, time($__interval) fill(null)) group BY time($__interval)", + "rawQuery": false, + "refId": "D", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "deletions" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + }, + { + "params": [ + " / $collection" + ], + "type": "math" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + }, + { + "condition": "AND", + "key": "id::tag", + "operator": "=~", + "value": "/^$id$/" + } + ] + } + ], + "timeShift": "10s", + "title": "SQL Rows ", + "type": "bargauge" + }, + { + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "light-green", + "mode": "fixed" + }, + "mappings": [], + "noValue": "0", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "super-light-blue", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "exectime" + }, + "properties": [ + { + "id": "displayName" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "compiletime" + }, + "properties": [ + { + "id": "displayName", + "value": "Compile Time" + } + ] + } + ] + }, + "gridPos": { + "h": 4, + "w": 4, + "x": 0, + "y": 9 + }, + "hideTimeOverride": true, + "id": 53, + "interval": "$collection", + "links": [ + { + "title": "", + "url": "/d/c9081118-5230-478d-b6e8-d76614395704/sql-logs?${__all_variables}&${__url_time_range}&var-statement=${id:value}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "center", + "orientation": "vertical", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "alias": "indexhits", + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "nuodb_statements", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"SqlStatementExecTime\" WHERE (\"db\" =~ /^$database$/) AND (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY startid, time($__interval) fill(null)) group BY time($__interval)", + "rawQuery": false, + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "indexhits" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + }, + { + "params": [ + " / $collection" + ], + "type": "math" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + }, + { + "condition": "AND", + "key": "id::tag", + "operator": "=~", + "value": "/^$id$/" + } + ] + } + ], + "timeShift": "10s", + "title": "Index Hits", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "light-red", + "mode": "fixed" + }, + "mappings": [], + "noValue": "0", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "super-light-blue", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "exectime" + }, + "properties": [ + { + "id": "displayName" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "compiletime" + }, + "properties": [ + { + "id": "displayName", + "value": "Compile Time" + } + ] + } + ] + }, + "gridPos": { + "h": 4, + "w": 4, + "x": 4, + "y": 9 + }, + "hideTimeOverride": true, + "id": 54, + "interval": "$collection", + "links": [ + { + "title": "", + "url": "/d/c9081118-5230-478d-b6e8-d76614395704/sql-logs?${__all_variables}&${__url_time_range}&var-statement=${id:value}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "center", + "orientation": "vertical", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "alias": "rejectedindexhits", + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "nuodb_statements", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"SqlStatementExecTime\" WHERE (\"db\" =~ /^$database$/) AND (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY startid, time($__interval) fill(null)) group BY time($__interval)", + "rawQuery": false, + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rejectedindexhits" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + }, + { + "params": [ + " / $collection" + ], + "type": "math" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + }, + { + "condition": "AND", + "key": "id::tag", + "operator": "=~", + "value": "/^$id$/" + } + ] + } + ], + "timeShift": "10s", + "title": "Rejected Index Hits", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "light-green", + "mode": "fixed" + }, + "mappings": [], + "noValue": "0", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "super-light-blue", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "exectime" + }, + "properties": [ + { + "id": "displayName" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "compiletime" + }, + "properties": [ + { + "id": "displayName", + "value": "Compile Time" + } + ] + } + ] + }, + "gridPos": { + "h": 4, + "w": 4, + "x": 8, + "y": 9 + }, + "hideTimeOverride": true, + "id": 55, + "interval": "$collection", + "links": [ + { + "title": "", + "url": "/d/c9081118-5230-478d-b6e8-d76614395704/sql-logs?${__all_variables}&${__url_time_range}&var-statement=${id:value}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "center", + "orientation": "vertical", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "alias": "indexfetches", + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "nuodb_statements", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"SqlStatementExecTime\" WHERE (\"db\" =~ /^$database$/) AND (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY startid, time($__interval) fill(null)) group BY time($__interval)", + "rawQuery": false, + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "indexfetches" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + }, + { + "params": [ + " / $collection" + ], + "type": "math" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + }, + { + "condition": "AND", + "key": "id::tag", + "operator": "=~", + "value": "/^$id$/" + } + ] + } + ], + "timeShift": "10s", + "title": "Index Scan Fetches", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "light-red", + "mode": "fixed" + }, + "mappings": [], + "noValue": "0", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "super-light-blue", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "exectime" + }, + "properties": [ + { + "id": "displayName" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "compiletime" + }, + "properties": [ + { + "id": "displayName", + "value": "Compile Time" + } + ] + } + ] + }, + "gridPos": { + "h": 4, + "w": 4, + "x": 12, + "y": 9 + }, + "hideTimeOverride": true, + "id": 57, + "interval": "$collection", + "links": [ + { + "title": "", + "url": "/d/c9081118-5230-478d-b6e8-d76614395704/sql-logs?${__all_variables}&${__url_time_range}&var-statement=${id:value}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "center", + "orientation": "vertical", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "alias": "exhautivefetches", + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "nuodb_statements", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"SqlStatementExecTime\" WHERE (\"db\" =~ /^$database$/) AND (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY startid, time($__interval) fill(null)) group BY time($__interval)", + "rawQuery": false, + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "exhaustivefetches" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + }, + { + "params": [ + " / $collection" + ], + "type": "math" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + }, + { + "condition": "AND", + "key": "id::tag", + "operator": "=~", + "value": "/^$id$/" + } + ] + } + ], + "timeShift": "10s", + "title": "Table Scan Fetches", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "light-green", + "mode": "fixed" + }, + "mappings": [], + "noValue": "0", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "super-light-blue", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "exectime" + }, + "properties": [ + { + "id": "displayName" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "compiletime" + }, + "properties": [ + { + "id": "displayName", + "value": "Compile Time" + } + ] + } + ] + }, + "gridPos": { + "h": 4, + "w": 4, + "x": 16, + "y": 9 + }, + "hideTimeOverride": true, + "id": 56, + "interval": "$collection", + "links": [ + { + "title": "", + "url": "/d/c9081118-5230-478d-b6e8-d76614395704/sql-logs?${__all_variables}&${__url_time_range}&var-statement=${id:value}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "center", + "orientation": "vertical", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "alias": "indexbatchfetches", + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "nuodb_statements", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"SqlStatementExecTime\" WHERE (\"db\" =~ /^$database$/) AND (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY startid, time($__interval) fill(null)) group BY time($__interval)", + "rawQuery": false, + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "indexbatchfetches" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + }, + { + "params": [ + " / $collection" + ], + "type": "math" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + }, + { + "condition": "AND", + "key": "id::tag", + "operator": "=~", + "value": "/^$id$/" + } + ] + } + ], + "timeShift": "10s", + "title": "# Index Scans", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "light-red", + "mode": "fixed" + }, + "mappings": [], + "noValue": "0", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "super-light-blue", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "exectime" + }, + "properties": [ + { + "id": "displayName" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "compiletime" + }, + "properties": [ + { + "id": "displayName", + "value": "Compile Time" + } + ] + } + ] + }, + "gridPos": { + "h": 4, + "w": 4, + "x": 20, + "y": 9 + }, + "hideTimeOverride": true, + "id": 58, + "interval": "$collection", + "links": [ + { + "title": "Execute Breakdown", + "url": "/d/c9081118-5230-478d-b6e8-d76614395704/sql-logs?${__all_variables}&${__url_time_range}&var-statement=${id:value}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "center", + "orientation": "vertical", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "alias": "exhautivebatchfetches", + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "nuodb_statements", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"SqlStatementExecTime\" WHERE (\"db\" =~ /^$database$/) AND (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY startid, time($__interval) fill(null)) group BY time($__interval)", + "rawQuery": false, + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "exhaustivebatchfetches" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + }, + { + "params": [ + " / $collection" + ], + "type": "math" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + }, + { + "condition": "AND", + "key": "id::tag", + "operator": "=~", + "value": "/^$id$/" + } + ] + } + ], + "timeShift": "10s", + "title": "# Table Scans", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "light-green", + "mode": "fixed" + }, + "mappings": [], + "noValue": "0", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "super-light-blue", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 6, + "x": 0, + "y": 13 + }, + "hideTimeOverride": true, + "id": 59, + "interval": "$collection", + "links": [ + { + "title": "", + "url": "/d/c9081118-5230-478d-b6e8-d76614395704/sql-logs?${__all_variables}&${__url_time_range}&var-statement=${id:value}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "center", + "orientation": "vertical", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "alias": "recordsfetched", + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "nuodb_statements", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"SqlStatementExecTime\" WHERE (\"db\" =~ /^$database$/) AND (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY startid, time($__interval) fill(null)) group BY time($__interval)", + "rawQuery": false, + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "recordsfetched" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + }, + { + "params": [ + " / $collection" + ], + "type": "math" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + }, + { + "condition": "AND", + "key": "id::tag", + "operator": "=~", + "value": "/^$id$/" + } + ] + } + ], + "timeShift": "10s", + "title": "Records Fetched", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "light-green", + "mode": "fixed" + }, + "mappings": [], + "noValue": "0", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "super-light-blue", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 6, + "x": 6, + "y": 13 + }, + "hideTimeOverride": true, + "id": 60, + "interval": "$collection", + "links": [ + { + "title": "", + "url": "/d/c9081118-5230-478d-b6e8-d76614395704/sql-logs?${__all_variables}&${__url_time_range}&var-statement=${id:value}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "center", + "orientation": "vertical", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "alias": "locked", + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "nuodb_statements", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"SqlStatementExecTime\" WHERE (\"db\" =~ /^$database$/) AND (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY startid, time($__interval) fill(null)) group BY time($__interval)", + "rawQuery": false, + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "locked" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + }, + { + "params": [ + " / $collection" + ], + "type": "math" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + }, + { + "condition": "AND", + "key": "id::tag", + "operator": "=~", + "value": "/^$id$/" + } + ] + } + ], + "timeShift": "10s", + "title": "Records Locked", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "light-green", + "mode": "fixed" + }, + "mappings": [], + "noValue": "0", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "super-light-blue", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 6, + "x": 12, + "y": 13 + }, + "hideTimeOverride": true, + "id": 61, + "interval": "$collection", + "links": [ + { + "title": "", + "url": "/d/c9081118-5230-478d-b6e8-d76614395704/sql-logs?${__all_variables}&${__url_time_range}&var-statement=${id:value}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "center", + "orientation": "vertical", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "alias": "recordssorted", + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "nuodb_statements", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"SqlStatementExecTime\" WHERE (\"db\" =~ /^$database$/) AND (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY startid, time($__interval) fill(null)) group BY time($__interval)", + "rawQuery": false, + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "recordssorted" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + }, + { + "params": [ + " / $collection" + ], + "type": "math" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + }, + { + "condition": "AND", + "key": "id::tag", + "operator": "=~", + "value": "/^$id$/" + } + ] + } + ], + "timeShift": "10s", + "title": "Records Sorted", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "light-green", + "mode": "fixed" + }, + "mappings": [], + "noValue": "0", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "super-light-blue", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 6, + "x": 18, + "y": 13 + }, + "hideTimeOverride": true, + "id": 62, + "interval": "$collection", + "links": [ + { + "title": "", + "url": "/d/c9081118-5230-478d-b6e8-d76614395704/sql-logs?${__all_variables}&${__url_time_range}&var-statement=${id:value}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "center", + "orientation": "vertical", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "alias": "recordsevicted", + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "nuodb_statements", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"SqlStatementExecTime\" WHERE (\"db\" =~ /^$database$/) AND (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY startid, time($__interval) fill(null)) group BY time($__interval)", + "rawQuery": false, + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "evicted" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + }, + { + "params": [ + " / $collection" + ], + "type": "math" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + }, + { + "condition": "AND", + "key": "id::tag", + "operator": "=~", + "value": "/^$id$/" + } + ] + } + ], + "timeShift": "10s", + "title": "Records Evicted", + "type": "stat" + } + ], + "refresh": "10s", + "schemaVersion": 38, + "style": "dark", + "tags": [ + "overview" + ], + "templating": { + "list": [ + { + "auto": true, + "auto_count": "50", + "auto_min": "10s", + "current": { + "selected": true, + "text": "auto", + "value": "$__auto_interval_interval" + }, + "hide": 0, + "label": "interval", + "name": "interval", + "options": [ + { + "selected": false, + "text": "auto", + "value": "$__auto_interval_interval" + }, + { + "selected": false, + "text": "10s", + "value": "10s" + }, + { + "selected": true, + "text": "30s", + "value": "30s" + }, + { + "selected": false, + "text": "1m", + "value": "1m" + }, + { + "selected": false, + "text": "5m", + "value": "5m" + }, + { + "selected": false, + "text": "10m", + "value": "10m" + }, + { + "selected": false, + "text": "15m", + "value": "15m" + }, + { + "selected": false, + "text": "30m", + "value": "30m" + }, + { + "selected": false, + "text": "1h", + "value": "1h" + }, + { + "selected": false, + "text": "6h", + "value": "6h" + }, + { + "selected": false, + "text": "12h", + "value": "12h" + }, + { + "selected": false, + "text": "1d", + "value": "1d" + }, + { + "selected": false, + "text": "7d", + "value": "7d" + }, + { + "selected": false, + "text": "14d", + "value": "14d" + }, + { + "selected": false, + "text": "30d", + "value": "30d" + } + ], + "query": "10s,30s,1m,5m,10m,15m,30m,1h,6h,12h,1d,7d,14d,30d", + "queryValue": "", + "refresh": 2, + "skipUrlSync": false, + "type": "interval" + }, + { + "allValue": ".*", + "current": { + "selected": false, + "text": "test", + "value": "test" + }, + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "definition": "", + "hide": 0, + "includeAll": false, + "label": "Database", + "multi": false, + "name": "database", + "options": [], + "query": "select distinct(\"db\") from (select first(raw) from \"Milliseconds\" where $timeFilter GROUP BY \"db\")\n", + "refresh": 2, + "regex": ".*", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": ".*", + "current": { + "selected": false, + "text": [ + "All" + ], + "value": [ + "$__all" + ] + }, + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "definition": "", + "hide": 0, + "includeAll": true, + "label": "Host", + "multi": true, + "name": "host", + "options": [], + "query": "select distinct(\"host\") from (select first(raw) from \"Milliseconds\" where $timeFilter AND db =~ /$database$/ AND nodetype = 'Transaction' GROUP BY \"host\")\n", + "refresh": 2, + "regex": ".*", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "current": { + "selected": false, + "text": "10432982178702295000", + "value": "10432982178702295000" + }, + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "definition": "select distinct(\"id\") from (select first(numexecutes) from \"nuodb_statements\" where $timeFilter GROUP BY \"id\")", + "hide": 0, + "includeAll": false, + "label": "id", + "multi": false, + "name": "id", + "options": [], + "query": "select distinct(\"id\") from (select first(numexecutes) from \"nuodb_statements\" where $timeFilter GROUP BY \"id\")", + "refresh": 2, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "hide": 2, + "name": "collection", + "query": "10", + "skipUrlSync": false, + "type": "constant" + } + ] + }, + "time": { + "from": "now-30m", + "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" + ] + }, + "timezone": "", + "title": "NuoDB SQL Statements", + "uid": "df0d2b01-89ff-4108-bace-32f436204209", + "version": 1, + "weekStart": "" +} diff --git a/conf/provisioning/dashboards/nuodb_client/sql-client-messages.json b/conf/provisioning/dashboards/nuodb_client/sql-client-messages.json new file mode 100644 index 0000000..415762f --- /dev/null +++ b/conf/provisioning/dashboards/nuodb_client/sql-client-messages.json @@ -0,0 +1,1035 @@ +{ + "annotations": { + "list": [ + { + "$$hashKey": "object:65", + "builtIn": 1, + "datasource": { + "type": "datasource", + "uid": "grafana" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, + "type": "dashboard" + }, + { + "$$hashKey": "object:2934", + "datasource": { + "type": "datasource", + "uid": "grafana" + }, + "enable": true, + "hide": false, + "iconColor": "rgba(255, 96, 96, 1)", + "limit": 100, + "name": "db annotations", + "showIn": 0, + "tags": [ + "$database" + ], + "target": { + "limit": 100, + "matchAny": false, + "tags": [ + "$database" + ], + "type": "tags" + }, + "type": "tags" + } + ] + }, + "description": "Look at time spent in each sql client API for given time range", + "editable": false, + "fiscalYearStartMonth": 0, + "graphTooltip": 1, + "id": 24, + "links": [ + { + "asDropdown": true, + "icon": "external link", + "includeVars": true, + "keepTime": true, + "tags": [ + "overview" + ], + "title": "top views", + "type": "dashboards" + }, + { + "asDropdown": true, + "icon": "external link", + "includeVars": true, + "keepTime": true, + "tags": [ + "nuodb" + ], + "title": "nuodb", + "type": "dashboards" + }, + { + "asDropdown": true, + "icon": "external link", + "includeVars": true, + "keepTime": true, + "tags": [ + "sql" + ], + "targetBlank": false, + "title": "sql", + "tooltip": "", + "type": "dashboards", + "url": "" + } + ], + "liveNow": false, + "panels": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisGridShow": false, + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "µs" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 24, + "x": 0, + "y": 0 + }, + "hideTimeOverride": true, + "id": 1, + "links": [ + { + "title": "message chart", + "url": "/d/f499edfc-76ed-4d7a-843d-e73e4b6a2ef4/sql-client-messages?${__url_time_range}&${__all_variables}&groups=All" + } + ], + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "alias": "Execute", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "SqlClientExecute", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT SUM(R) FROM (SELECT mean(\"rate\") AS R FROM \"SqlClientExecuteTime\" WHERE (\"nodetype\" = 'Transaction' AND \"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/ AND 'execute' =~ /^$msggroup$/ ) AND $timeFilter GROUP BY time($__interval) , startid fill(null)) GROUP BY time($__interval)", + "rawQuery": true, + "refId": "E", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "Prepare", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "SqlClientConnectionTime", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT SUM(R) FROM (SELECT mean(\"rate\") AS R FROM \"SqlClientPrepareTime\" WHERE (\"nodetype\" = 'Transaction' AND \"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/ AND 'prepare' =~ /^$msggroup$/ ) AND $timeFilter GROUP BY time($__interval) , startid fill(null)) GROUP BY time($__interval)", + "rawQuery": true, + "refId": "D", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "PrepareAndExecute", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "SqlClientConnectionTime", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT SUM(R) FROM (SELECT mean(\"rate\") AS R FROM \"SqlClientPrepareExecuteTime\" WHERE (\"nodetype\" = 'Transaction' AND \"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/ AND 'prepareandexecute' =~ /^$msggroup$/ ) AND $timeFilter GROUP BY time($__interval) , startid fill(null)) GROUP BY time($__interval)", + "rawQuery": true, + "refId": "G", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "ResultSet", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "SqlClientConnectionTime", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT SUM(R) FROM (SELECT mean(\"rate\") AS R FROM \"SqlClientResultSetTime\" WHERE (\"nodetype\" = 'Transaction' AND \"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/ AND 'resultset' =~ /^$msggroup$/) AND $timeFilter GROUP BY time($__interval) , startid fill(null)) GROUP BY time($__interval)", + "rawQuery": true, + "refId": "C", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "Transaction", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "SqlClientConnectionTime", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT SUM(R) FROM (SELECT mean(\"rate\") AS R FROM \"SqlClientTransactionTime\" WHERE (\"nodetype\" = 'Transaction' AND \"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/ AND 'transaction' =~ /^$msggroup$/) AND $timeFilter GROUP BY time($__interval) , startid fill(null)) GROUP BY time($__interval)", + "rawQuery": true, + "refId": "F", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "Connection", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "SqlClientConnectionTime", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT SUM(R) FROM (SELECT mean(\"rate\") AS R FROM \"SqlClientConnectionTime\" WHERE (\"nodetype\" = 'Transaction' AND \"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/ AND 'connection' =~ /^$msggroup$/) AND $timeFilter GROUP BY time($__interval) , startid fill(null)) GROUP BY time($__interval)", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "Database", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "SqlClientConnectionTime", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT SUM(R) FROM (SELECT mean(\"rate\") AS R FROM \"SqlClientDatabaseTime\" WHERE (\"nodetype\" = 'Transaction' AND \"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/ AND 'database' =~ /^$msggroup$/) AND $timeFilter GROUP BY time($__interval) , startid fill(null)) GROUP BY time($__interval)", + "rawQuery": true, + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "rate" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + } + ], + "timeShift": "10s", + "title": "Duration", + "transformations": [], + "type": "timeseries" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P948FE603F61DC036" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "auto" + }, + "inspect": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Duration" + }, + "properties": [ + { + "id": "unit", + "value": "µs" + }, + { + "id": "custom.width", + "value": 248 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Duration / Count" + }, + "properties": [ + { + "id": "unit", + "value": "µs" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "MsgGroup" + }, + "properties": [ + { + "id": "custom.width", + "value": 118 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Count" + }, + "properties": [ + { + "id": "custom.width", + "value": 139 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "MsgType" + }, + "properties": [ + { + "id": "custom.width", + "value": 633 + } + ] + } + ] + }, + "gridPos": { + "h": 17, + "w": 24, + "x": 0, + "y": 6 + }, + "id": 2, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "enablePagination": true, + "fields": [ + "sum_count" + ], + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true, + "sortBy": [ + { + "desc": true, + "displayName": "Duration" + } + ] + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P948FE603F61DC036" + }, + "groupBy": [ + { + "params": [ + "group::tag" + ], + "type": "tag" + }, + { + "params": [ + "type::tag" + ], + "type": "tag" + } + ], + "measurement": "nuodb_messages", + "orderByTime": "ASC", + "policy": "autogen", + "query": "SELECT sum(*) FROM \"autogen\".\"nuodb_messages\" WHERE (\"host\"::tag =~ /^$host$/ AND \"db_name\"::tag =~ /^$database$/ AND \"group\"::tag =~ /^$msggroup$/ AND \"count\"::field !=0) AND $timeFilter GROUP BY \"group\"::tag, \"type\"::tag", + "rawQuery": true, + "refId": "A", + "resultFormat": "table", + "select": [ + [ + { + "params": [ + "count" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + }, + { + "condition": "AND", + "key": "db_name::tag", + "operator": "=~", + "value": "/^$database$/" + }, + { + "condition": "AND", + "key": "count::field", + "operator": "!=", + "value": "0" + } + ] + } + ], + "title": "Panel Title", + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "sum_count_rate": true, + "sum_duration_rate": true + }, + "indexByName": { + "Time": 0, + "group": 2, + "sum_count": 3, + "sum_count_rate": 4, + "sum_duration": 5, + "sum_duration_rate": 6, + "type": 1 + }, + "renameByName": { + "group": "MsgGroup", + "sum_count": "Count", + "sum_duration": "Duration", + "type": "MsgType" + } + } + }, + { + "id": "calculateField", + "options": { + "binary": { + "left": "Duration", + "operator": "/", + "reducer": "sum", + "right": "Count" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + } + ], + "type": "table" + } + ], + "refresh": "30s", + "schemaVersion": 38, + "style": "dark", + "tags": [ + "sql" + ], + "templating": { + "list": [ + { + "auto": true, + "auto_count": "50", + "auto_min": "10s", + "current": { + "selected": false, + "text": "10s", + "value": "10s" + }, + "hide": 0, + "label": "interval", + "name": "interval", + "options": [ + { + "selected": false, + "text": "auto", + "value": "$__auto_interval_interval" + }, + { + "selected": true, + "text": "10s", + "value": "10s" + }, + { + "selected": false, + "text": "30s", + "value": "30s" + }, + { + "selected": false, + "text": "1m", + "value": "1m" + }, + { + "selected": false, + "text": "5m", + "value": "5m" + }, + { + "selected": false, + "text": "10m", + "value": "10m" + }, + { + "selected": false, + "text": "15m", + "value": "15m" + }, + { + "selected": false, + "text": "30m", + "value": "30m" + }, + { + "selected": false, + "text": "1h", + "value": "1h" + }, + { + "selected": false, + "text": "6h", + "value": "6h" + }, + { + "selected": false, + "text": "12h", + "value": "12h" + }, + { + "selected": false, + "text": "1d", + "value": "1d" + }, + { + "selected": false, + "text": "7d", + "value": "7d" + }, + { + "selected": false, + "text": "14d", + "value": "14d" + }, + { + "selected": false, + "text": "30d", + "value": "30d" + } + ], + "query": "10s,30s,1m,5m,10m,15m,30m,1h,6h,12h,1d,7d,14d,30d", + "queryValue": "", + "refresh": 2, + "skipUrlSync": false, + "type": "interval" + }, + { + "allValue": ".*", + "current": { + "selected": false, + "text": "test", + "value": "test" + }, + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "definition": "", + "hide": 0, + "includeAll": false, + "label": "Database", + "multi": false, + "name": "database", + "options": [], + "query": "select distinct(\"db\") from (select first(raw) from \"Milliseconds\" where $timeFilter GROUP BY \"db\")\n", + "refresh": 2, + "regex": ".*", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": ".*", + "current": { + "selected": true, + "text": [ + "All" + ], + "value": [ + "$__all" + ] + }, + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "definition": "", + "hide": 0, + "includeAll": true, + "label": "Host", + "multi": true, + "name": "host", + "options": [], + "query": "select distinct(\"host\") from (select first(raw) from \"Milliseconds\" where $timeFilter AND db =~ /$database$/ AND nodetype = 'Transaction' GROUP BY \"host\")\n", + "refresh": 2, + "regex": ".*", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "current": { + "selected": true, + "text": [], + "value": [] + }, + "datasource": { + "type": "influxdb", + "uid": "P948FE603F61DC036" + }, + "definition": "show tag values with key = \"group\"", + "hide": 0, + "includeAll": true, + "label": "MsgGroup", + "multi": true, + "name": "msggroup", + "options": [], + "query": "show tag values with key = \"group\"", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + } + ] + }, + "time": { + "from": "now-30m", + "to": "now" + }, + "timepicker": { + "hidden": false, + "refresh_intervals": [ + "5s", + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ], + "time_options": [ + "5m", + "15m", + "1h", + "6h", + "12h", + "24h", + "2d", + "7d", + "30d" + ] + }, + "timezone": "", + "title": "SQL Client Messages", + "uid": "f499edfc-76ed-4d7a-843d-e73e4b6a2ef4", + "version": 2, + "weekStart": "" +} diff --git a/conf/provisioning/dashboards/nuodb_client/sql-execution-logs.json b/conf/provisioning/dashboards/nuodb_client/sql-execution-logs.json new file mode 100644 index 0000000..94c4f15 --- /dev/null +++ b/conf/provisioning/dashboards/nuodb_client/sql-execution-logs.json @@ -0,0 +1,693 @@ +{ + "annotations": { + "list": [ + { + "$$hashKey": "object:65", + "builtIn": 1, + "datasource": { + "type": "datasource", + "uid": "grafana" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + }, + { + "$$hashKey": "object:2934", + "datasource": { + "type": "datasource", + "uid": "grafana" + }, + "enable": true, + "hide": false, + "iconColor": "rgba(255, 96, 96, 1)", + "limit": 100, + "name": "db annotations", + "showIn": 0, + "tags": [ + "$database" + ], + "type": "tags" + } + ] + }, + "description": "Log of each statement execution", + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 1, + "id": 22, + "links": [ + { + "asDropdown": true, + "icon": "external link", + "includeVars": true, + "keepTime": true, + "tags": [ + "overview" + ], + "title": "top views", + "type": "dashboards" + }, + { + "asDropdown": true, + "icon": "external link", + "includeVars": true, + "keepTime": true, + "tags": [ + "nuodb" + ], + "title": "nuodb", + "type": "dashboards" + }, + { + "asDropdown": true, + "icon": "external link", + "includeVars": true, + "keepTime": true, + "tags": [], + "targetBlank": false, + "title": "sql", + "tooltip": "", + "type": "dashboards", + "url": "" + } + ], + "liveNow": false, + "panels": [ + { + "collapsed": false, + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 8, + "panels": [], + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "refId": "A" + } + ], + "title": "Summary", + "type": "row" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P948FE603F61DC036" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 2, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "stepBefore", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 1, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "µs" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 24, + "x": 0, + "y": 1 + }, + "id": 12, + "interval": "$interval", + "links": [], + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "right", + "showLegend": false + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "alias": "ExecTime", + "datasource": { + "type": "influxdb", + "uid": "P948FE603F61DC036" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "nuodb_statements", + "orderByTime": "ASC", + "policy": "autogen", + "query": "SELECT max(avgexectime) FROM \"autogen\".\"nuodb_statements\" WHERE (\"db_name\"::tag =~ /^$database$/ AND \"host\"::tag =~ /^$host$/) AND \"id\"::tag =~ /^$statement$/ AND $timeFilter GROUP BY time($__interval),sqlstring fill(0) ", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "exectime" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "db_name::tag", + "operator": "=~", + "value": "/^$database$/" + }, + { + "condition": "AND", + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + } + ] + } + ], + "title": "SQL Execute Time - ${__interval} interval", + "transformations": [], + "type": "timeseries" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 5 + }, + "id": 9, + "panels": [], + "title": "Log", + "type": "row" + }, + { + "datasource": { + "type": "loki", + "uid": "P8E80F9AEF21F6940" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "continuous-GrYlRd" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": -1, + "drawStyle": "bars", + "fillOpacity": 90, + "gradientMode": "scheme", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "displayName": "Count", + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 24, + "x": 0, + "y": 6 + }, + "id": 10, + "interval": "$loginterval", + "maxDataPoints": 500, + "options": { + "legend": { + "calcs": [ + "sum" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "loki", + "uid": "P8E80F9AEF21F6940" + }, + "editorMode": "builder", + "expr": "sum by(source) (count_over_time({source=\"executions\", statement=~\"$statement\", explainplan=~\"$execution\", db=\"$database\", hostname=~\"$host\"} |~ `$filter` | logfmt [$__interval]))", + "queryType": "range", + "refId": "A" + } + ], + "title": "Statement Execution Counts", + "type": "timeseries" + }, + { + "datasource": { + "type": "loki", + "uid": "P8E80F9AEF21F6940" + }, + "description": "Output is limited to 2000 lines", + "gridPos": { + "h": 20, + "w": 24, + "x": 0, + "y": 9 + }, + "id": 11, + "interval": "1s", + "options": { + "dedupStrategy": "none", + "enableLogDetails": true, + "prettifyLogMessage": false, + "showCommonLabels": false, + "showLabels": false, + "showTime": true, + "sortOrder": "Descending", + "wrapLogMessage": false + }, + "targets": [ + { + "datasource": { + "type": "loki", + "uid": "P8E80F9AEF21F6940" + }, + "editorMode": "builder", + "expr": "{source=\"executions\", statement=~\"$statement\", explainplan=~\"$execution\", db=\"$database\", hostname=~\"$host\"} |~ `$filter` | logfmt", + "maxLines": 2000, + "queryType": "range", + "refId": "A" + } + ], + "title": "Statement Execution Logs", + "transformations": [], + "type": "logs" + } + ], + "refresh": "", + "schemaVersion": 38, + "style": "dark", + "tags": [ + "sql", + "overview" + ], + "templating": { + "list": [ + { + "auto": true, + "auto_count": 100, + "auto_min": "1s", + "current": { + "selected": false, + "text": "1s", + "value": "1s" + }, + "hide": 0, + "label": "loginterval", + "name": "loginterval", + "options": [], + "query": "", + "queryValue": "", + "refresh": 2, + "skipUrlSync": false, + "type": "interval" + }, + { + "auto": true, + "auto_count": "50", + "auto_min": "10s", + "current": { + "selected": false, + "text": "auto", + "value": "$__auto_interval_interval" + }, + "hide": 0, + "label": "interval", + "name": "interval", + "options": [ + { + "selected": true, + "text": "auto", + "value": "$__auto_interval_interval" + }, + { + "selected": false, + "text": "10s", + "value": "10s" + }, + { + "selected": false, + "text": "30s", + "value": "30s" + }, + { + "selected": false, + "text": "1m", + "value": "1m" + }, + { + "selected": false, + "text": "5m", + "value": "5m" + }, + { + "selected": false, + "text": "10m", + "value": "10m" + }, + { + "selected": false, + "text": "15m", + "value": "15m" + }, + { + "selected": false, + "text": "30m", + "value": "30m" + }, + { + "selected": false, + "text": "1h", + "value": "1h" + }, + { + "selected": false, + "text": "6h", + "value": "6h" + }, + { + "selected": false, + "text": "12h", + "value": "12h" + }, + { + "selected": false, + "text": "1d", + "value": "1d" + }, + { + "selected": false, + "text": "7d", + "value": "7d" + }, + { + "selected": false, + "text": "14d", + "value": "14d" + }, + { + "selected": false, + "text": "30d", + "value": "30d" + } + ], + "query": "10s,30s,1m,5m,10m,15m,30m,1h,6h,12h,1d,7d,14d,30d", + "queryValue": "", + "refresh": 2, + "skipUrlSync": false, + "type": "interval" + }, + { + "allValue": ".*", + "current": { + "selected": false, + "text": "test", + "value": "test" + }, + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "definition": "", + "hide": 0, + "includeAll": false, + "label": "Database", + "multi": false, + "name": "database", + "options": [], + "query": "select distinct(\"db\") from (select first(raw) from \"Milliseconds\" where $timeFilter GROUP BY \"db\")\n", + "refresh": 2, + "regex": ".*", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": ".*", + "current": { + "selected": true, + "text": [ + "All" + ], + "value": [ + "$__all" + ] + }, + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "definition": "", + "hide": 0, + "includeAll": true, + "label": "Host", + "multi": true, + "name": "host", + "options": [], + "query": "select distinct(\"host\") from (select first(raw) from \"Milliseconds\" where $timeFilter AND db =~ /$database$/ AND nodetype = 'Transaction' GROUP BY \"host\")\n", + "refresh": 2, + "regex": ".*", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "current": { + "selected": false, + "text": "undefined", + "value": "undefined" + }, + "hide": 0, + "label": "statement", + "name": "statement", + "options": [ + { + "selected": false, + "text": "undefined", + "value": "undefined" + } + ], + "query": "undefined", + "skipUrlSync": false, + "type": "textbox" + }, + { + "current": { + "selected": false, + "text": ".+", + "value": ".+" + }, + "hide": 0, + "label": "execution", + "name": "execution", + "options": [ + { + "selected": true, + "text": ".+", + "value": ".+" + } + ], + "query": ".+", + "skipUrlSync": false, + "type": "textbox" + }, + { + "current": { + "selected": false, + "text": "", + "value": "" + }, + "description": "regex filter for each line, use to limit results before logfmt", + "hide": 0, + "label": "", + "name": "filter", + "options": [ + { + "selected": true, + "text": "", + "value": "" + } + ], + "query": "", + "skipUrlSync": false, + "type": "textbox" + }, + { + "datasource": { + "type": "loki", + "uid": "P8E80F9AEF21F6940" + }, + "filters": [], + "hide": 0, + "label": "query", + "name": "query", + "skipUrlSync": false, + "type": "adhoc" + } + ] + }, + "time": { + "from": "2023-07-29T04:05:47.002Z", + "to": "2023-07-29T04:11:18.190Z" + }, + "timepicker": { + "refresh_intervals": [ + "5s", + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ], + "time_options": [ + "5m", + "15m", + "1h", + "6h", + "12h", + "24h", + "2d", + "7d", + "30d" + ] + }, + "timezone": "", + "title": "SQL Execution Logs", + "uid": "c9081118-5230-478d-b6e8-d76614395704", + "version": 9, + "weekStart": "" +} diff --git a/conf/provisioning/dashboards/nuodb_client/sql-statement-details.json b/conf/provisioning/dashboards/nuodb_client/sql-statement-details.json new file mode 100644 index 0000000..0319ba8 --- /dev/null +++ b/conf/provisioning/dashboards/nuodb_client/sql-statement-details.json @@ -0,0 +1,339 @@ +{ + "annotations": { + "list": [ + { + "$$hashKey": "object:65", + "builtIn": 1, + "datasource": { + "type": "datasource", + "uid": "grafana" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, + "type": "dashboard" + }, + { + "$$hashKey": "object:2934", + "datasource": { + "type": "datasource", + "uid": "grafana" + }, + "enable": true, + "hide": false, + "iconColor": "rgba(255, 96, 96, 1)", + "limit": 100, + "name": "db annotations", + "showIn": 0, + "tags": [ + "$database" + ], + "target": { + "limit": 100, + "matchAny": false, + "tags": [ + "$database" + ], + "type": "tags" + }, + "type": "tags" + } + ] + }, + "description": "NuoDB Summary", + "editable": false, + "fiscalYearStartMonth": 0, + "graphTooltip": 1, + "id": 21, + "links": [ + { + "asDropdown": true, + "icon": "external link", + "includeVars": true, + "keepTime": true, + "tags": [ + "overview" + ], + "title": "top views", + "type": "dashboards" + }, + { + "asDropdown": true, + "icon": "external link", + "includeVars": true, + "keepTime": true, + "tags": [ + "nuodb" + ], + "title": "nuodb", + "type": "dashboards" + }, + { + "asDropdown": true, + "icon": "external link", + "includeVars": false, + "keepTime": false, + "tags": [ + "sql" + ], + "targetBlank": false, + "title": "sql", + "tooltip": "", + "type": "dashboards", + "url": "" + } + ], + "liveNow": false, + "panels": [ + { + "datasource": { + "type": "marcusolsson-json-datasource", + "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "text", + "mode": "fixed" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "color-text" + }, + "inspect": false + }, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "string" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Values" + }, + "properties": [ + { + "id": "custom.inspect", + "value": true + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Field" + }, + "properties": [ + { + "id": "custom.width", + "value": 265 + } + ] + } + ] + }, + "gridPos": { + "h": 27, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 10, + "maxPerRow": 2, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "frameIndex": 1, + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "10.0.3", + "repeat": "host", + "repeatDirection": "h", + "targets": [ + { + "body": "select * from system.localstatementcache where ID='$id'\n", + "cacheDurationSeconds": 0, + "datasource": { + "type": "marcusolsson-json-datasource", + "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" + }, + "fields": [ + { + "jsonPath": "$.columns[*].text", + "name": "Field", + "type": "string" + }, + { + "jsonPath": "$.rows[0][*]", + "language": "jsonpath", + "name": "Values", + "type": "string" + } + ], + "method": "POST", + "params": [ + [ + "dbname", + "$database" + ], + [ + "hostname", + "$host" + ] + ], + "queryParams": "", + "refId": "A", + "urlPath": "/query" + } + ], + "title": "Statement Details ($host)", + "type": "table" + } + ], + "refresh": "30s", + "schemaVersion": 38, + "style": "dark", + "tags": [], + "templating": { + "list": [ + { + "allValue": ".*", + "current": { + "selected": false, + "text": "test", + "value": "test" + }, + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "definition": "", + "hide": 0, + "includeAll": false, + "label": "Database", + "multi": false, + "name": "database", + "options": [], + "query": "select distinct(\"db\") from (select first(raw) from \"Milliseconds\" where $timeFilter GROUP BY \"db\")\n", + "refresh": 2, + "regex": ".*", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": ".*", + "current": { + "selected": true, + "text": [ + "nuoadmin-3.nuodb.internal", + "nuoadmin-2.nuodb.internal" + ], + "value": [ + "nuoadmin-3.nuodb.internal", + "nuoadmin-2.nuodb.internal" + ] + }, + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "definition": "", + "hide": 0, + "includeAll": true, + "label": "Host", + "multi": true, + "name": "host", + "options": [], + "query": "select distinct(\"host\") from (select first(raw) from \"Milliseconds\" where $timeFilter AND db =~ /$database$/ AND nodetype = 'Transaction' GROUP BY \"host\")\n", + "refresh": 2, + "regex": ".*", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "current": {}, + "hide": 2, + "label": "id", + "name": "id", + "options": [ + { + "selected": false, + "text": "0", + "value": "0" + } + ], + "query": "0", + "skipUrlSync": false, + "type": "textbox" + } + ] + }, + "time": { + "from": "now-30m", + "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" + ] + }, + "timezone": "", + "title": "Sql Statement Details", + "uid": "f13dbb76-dc2a-42b9-af72-88700f6857b8", + "version": 1, + "weekStart": "" +} diff --git a/conf/provisioning/dashboards/nuodb_client/sql-statement-executions.json b/conf/provisioning/dashboards/nuodb_client/sql-statement-executions.json new file mode 100644 index 0000000..f345327 --- /dev/null +++ b/conf/provisioning/dashboards/nuodb_client/sql-statement-executions.json @@ -0,0 +1,787 @@ +{ + "annotations": { + "list": [ + { + "$$hashKey": "object:65", + "builtIn": 1, + "datasource": { + "type": "datasource", + "uid": "grafana" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, + "type": "dashboard" + }, + { + "$$hashKey": "object:2934", + "datasource": { + "type": "datasource", + "uid": "grafana" + }, + "enable": true, + "hide": false, + "iconColor": "rgba(255, 96, 96, 1)", + "limit": 100, + "name": "db annotations", + "showIn": 0, + "tags": [ + "$database" + ], + "target": { + "limit": 100, + "matchAny": false, + "tags": [ + "$database" + ], + "type": "tags" + }, + "type": "tags" + } + ] + }, + "description": "NuoDB Summary", + "editable": false, + "fiscalYearStartMonth": 0, + "graphTooltip": 1, + "id": 16, + "links": [ + { + "asDropdown": true, + "icon": "external link", + "includeVars": true, + "keepTime": true, + "tags": [ + "overview" + ], + "title": "top views", + "type": "dashboards" + }, + { + "asDropdown": true, + "icon": "external link", + "includeVars": true, + "keepTime": true, + "tags": [ + "nuodb" + ], + "title": "nuodb", + "type": "dashboards" + }, + { + "asDropdown": true, + "icon": "external link", + "includeVars": true, + "keepTime": true, + "tags": [ + "sql" + ], + "targetBlank": false, + "title": "sql", + "tooltip": "", + "type": "dashboards", + "url": "" + } + ], + "liveNow": false, + "panels": [ + { + "datasource": { + "type": "influxdb", + "uid": "P948FE603F61DC036" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 2, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 1, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "total_statements.sum_deletions" + }, + "properties": [ + { + "id": "displayName", + "value": "Deletes" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "total_statements.sum_inserts" + }, + "properties": [ + { + "id": "displayName", + "value": "Inserts" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "total_statements.sum_updates" + }, + "properties": [ + { + "id": "displayName", + "value": "Updates" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "total_statements.sum_recordsreturned" + }, + "properties": [ + { + "id": "displayName", + "value": "Selects" + } + ] + } + ] + }, + "gridPos": { + "h": 5, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 2, + "interval": "$interval", + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P948FE603F61DC036" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "total_statements", + "orderByTime": "ASC", + "policy": "autogen", + "query": "SELECT sum(/(updates|inserts|deletions|recordsreturned)/) FROM \"autogen\".\"total_statements\" WHERE (\"db_name\"::tag =~ /^$database$/ AND \"host\"::tag =~ /^$host$/) AND $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "updates" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + } + ] + ], + "tags": [ + { + "key": "db_name::tag", + "operator": "=~", + "value": "/^$database$/" + }, + { + "condition": "AND", + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + } + ] + } + ], + "title": "Sql Records Affected", + "transformations": [ + { + "id": "organize", + "options": {} + } + ], + "type": "timeseries" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P948FE603F61DC036" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "auto" + }, + "inspect": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "sqlstring" + }, + "properties": [ + { + "id": "custom.inspect", + "value": true + }, + { + "id": "custom.filterable", + "value": true + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Last Executed" + }, + "properties": [ + { + "id": "custom.width", + "value": 126 + }, + { + "id": "unit", + "value": "dateTimeAsIsoNoDateIfToday" + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "/.*Time/" + }, + "properties": [ + { + "id": "unit", + "value": "µs" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Number Executes" + }, + "properties": [ + { + "id": "custom.width", + "value": 142 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "CompileTime" + }, + "properties": [ + { + "id": "custom.width", + "value": 104 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "ExecuteTime" + }, + "properties": [ + { + "id": "custom.width", + "value": 126 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "AvgExecuteTime" + }, + "properties": [ + { + "id": "custom.width", + "value": 135 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "SQL String" + }, + "properties": [] + } + ] + }, + "gridPos": { + "h": 20, + "w": 24, + "x": 0, + "y": 5 + }, + "id": 1, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "frameIndex": 6, + "showHeader": true, + "sortBy": [ + { + "desc": true, + "displayName": "Number Executes" + } + ] + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P948FE603F61DC036" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "nuodb_statements", + "orderByTime": "ASC", + "policy": "autogen", + "query": "SELECT last(lastexecuted),sum(/(numexecutes|exectime|compiletime)/) FROM \"autogen\".\"nuodb_statements\" WHERE $timeFilter AND db_name =~ /^$database$/ and host =~ /^$host$/ GROUP BY sqlstring", + "rawQuery": true, + "refId": "A", + "resultFormat": "table", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [] + } + ], + "title": "SQL Statement Execute Times", + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "sum_collection_interval": true, + "sum_deletions": true, + "sum_evicted": true, + "sum_exhaustivebatchfetches": true, + "sum_exhaustivefetches": true, + "sum_indexbatchfetches": true, + "sum_indexfetches": true, + "sum_indexhits": true, + "sum_inserts": true, + "sum_locked": true, + "sum_numexecutes": false, + "sum_recordsfetched": true, + "sum_recordsreturned": true, + "sum_recordssorted": true, + "sum_rejectedindexhits": true, + "sum_replaces": true, + "sum_updatecount": true, + "sum_updates": true + }, + "indexByName": { + "Time": 0, + "last": 1, + "sqlstring": 5, + "sum_compiletime": 3, + "sum_exectime": 4, + "sum_numexecutes": 2 + }, + "renameByName": { + "last": "Last Executed", + "sqlstring": "SQL String", + "sum_compiletime": "CompileTime", + "sum_exectime": "ExecuteTime", + "sum_exhaustivebatchfetches": "", + "sum_numexecutes": "Number Executes" + } + } + }, + { + "id": "convertFieldType", + "options": { + "conversions": [ + { + "dateFormat": "YYYYMMDDTHHmmss", + "destinationType": "time", + "targetField": "Last Executed" + } + ], + "fields": {} + } + }, + { + "id": "calculateField", + "options": { + "alias": "AvgExecuteTime", + "binary": { + "left": "ExecuteTime", + "operator": "/", + "reducer": "sum", + "right": "Number Executes" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": {}, + "indexByName": { + "AvgExecuteTime": 4, + "CompileTime": 2, + "ExecuteTime": 3, + "Last Executed": 0, + "Number Executes": 1, + "SQL String": 5 + }, + "renameByName": {} + } + } + ], + "type": "table" + } + ], + "refresh": false, + "schemaVersion": 38, + "style": "dark", + "tags": [ + "sql" + ], + "templating": { + "list": [ + { + "auto": true, + "auto_count": "50", + "auto_min": "10s", + "current": { + "selected": false, + "text": "auto", + "value": "$__auto_interval_interval" + }, + "hide": 0, + "label": "interval", + "name": "interval", + "options": [ + { + "selected": true, + "text": "auto", + "value": "$__auto_interval_interval" + }, + { + "selected": false, + "text": "10s", + "value": "10s" + }, + { + "selected": false, + "text": "30s", + "value": "30s" + }, + { + "selected": false, + "text": "1m", + "value": "1m" + }, + { + "selected": false, + "text": "5m", + "value": "5m" + }, + { + "selected": false, + "text": "10m", + "value": "10m" + }, + { + "selected": false, + "text": "15m", + "value": "15m" + }, + { + "selected": false, + "text": "30m", + "value": "30m" + }, + { + "selected": false, + "text": "1h", + "value": "1h" + }, + { + "selected": false, + "text": "6h", + "value": "6h" + }, + { + "selected": false, + "text": "12h", + "value": "12h" + }, + { + "selected": false, + "text": "1d", + "value": "1d" + }, + { + "selected": false, + "text": "7d", + "value": "7d" + }, + { + "selected": false, + "text": "14d", + "value": "14d" + }, + { + "selected": false, + "text": "30d", + "value": "30d" + } + ], + "query": "10s,30s,1m,5m,10m,15m,30m,1h,6h,12h,1d,7d,14d,30d", + "queryValue": "", + "refresh": 2, + "skipUrlSync": false, + "type": "interval" + }, + { + "allValue": ".*", + "current": { + "selected": false, + "text": "test", + "value": "test" + }, + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "definition": "", + "hide": 0, + "includeAll": false, + "label": "Database", + "multi": false, + "name": "database", + "options": [], + "query": "select distinct(\"db\") from (select first(raw) from \"Milliseconds\" where $timeFilter GROUP BY \"db\")\n", + "refresh": 2, + "regex": ".*", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": ".*", + "current": { + "selected": true, + "text": [ + "nuoadmin-2.nuodb.internal", + "nuoadmin-3.nuodb.internal" + ], + "value": [ + "nuoadmin-2.nuodb.internal", + "nuoadmin-3.nuodb.internal" + ] + }, + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "definition": "", + "hide": 0, + "includeAll": true, + "label": "Host", + "multi": true, + "name": "host", + "options": [], + "query": "select distinct(\"host\") from (select first(raw) from \"Milliseconds\" where $timeFilter AND db =~ /$database$/ AND nodetype = 'Transaction' GROUP BY \"host\")\n", + "refresh": 2, + "regex": ".*", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tagsQuery": "", + "type": "query", + "useTags": false + } + ] + }, + "time": { + "from": "now-30m", + "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" + ] + }, + "timezone": "", + "title": "Sql Statement Executions", + "uid": "Qi5TDej4z", + "version": 1, + "weekStart": "" +} diff --git a/conf/provisioning/dashboards/nuodb_client/sql-statement-indexes.json b/conf/provisioning/dashboards/nuodb_client/sql-statement-indexes.json new file mode 100644 index 0000000..dc91a4c --- /dev/null +++ b/conf/provisioning/dashboards/nuodb_client/sql-statement-indexes.json @@ -0,0 +1,999 @@ +{ + "annotations": { + "list": [ + { + "$$hashKey": "object:65", + "builtIn": 1, + "datasource": { + "type": "datasource", + "uid": "grafana" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, + "type": "dashboard" + }, + { + "$$hashKey": "object:2934", + "datasource": { + "type": "datasource", + "uid": "grafana" + }, + "enable": true, + "hide": false, + "iconColor": "rgba(255, 96, 96, 1)", + "limit": 100, + "name": "db annotations", + "showIn": 0, + "tags": [ + "$database" + ], + "target": { + "limit": 100, + "matchAny": false, + "tags": [ + "$database" + ], + "type": "tags" + }, + "type": "tags" + } + ] + }, + "description": "NuoDB Records Affected", + "editable": false, + "fiscalYearStartMonth": 0, + "graphTooltip": 1, + "id": 17, + "links": [ + { + "asDropdown": true, + "icon": "external link", + "includeVars": true, + "keepTime": true, + "tags": [ + "overview" + ], + "title": "top views", + "type": "dashboards" + }, + { + "asDropdown": true, + "icon": "external link", + "includeVars": true, + "keepTime": true, + "tags": [ + "nuodb" + ], + "title": "nuodb", + "type": "dashboards" + }, + { + "asDropdown": true, + "icon": "external link", + "includeVars": true, + "keepTime": true, + "tags": [ + "sql" + ], + "targetBlank": false, + "title": "sql", + "tooltip": "", + "type": "dashboards", + "url": "" + } + ], + "liveNow": false, + "panels": [ + { + "datasource": { + "type": "influxdb", + "uid": "P948FE603F61DC036" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 2, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 1, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "total_statements.sum_deletions" + }, + "properties": [ + { + "id": "displayName", + "value": "Deletes" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "total_statements.sum_inserts" + }, + "properties": [ + { + "id": "displayName", + "value": "Inserts" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "total_statements.sum_updates" + }, + "properties": [ + { + "id": "displayName", + "value": "Updates" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "total_statements.sum_recordsreturned" + }, + "properties": [ + { + "id": "displayName", + "value": "Selects" + } + ] + } + ] + }, + "gridPos": { + "h": 4, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 2, + "interval": "$interval", + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P948FE603F61DC036" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "total_statements", + "orderByTime": "ASC", + "policy": "autogen", + "query": "SELECT sum(/(updates|inserts|deletions|recordsreturned)/) FROM \"autogen\".\"total_statements\" WHERE (\"db_name\"::tag =~ /^$database$/ AND \"host\"::tag =~ /^$host$/) AND $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "updates" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + } + ] + ], + "tags": [ + { + "key": "db_name::tag", + "operator": "=~", + "value": "/^$database$/" + }, + { + "condition": "AND", + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + } + ] + } + ], + "title": "Sql Rows Affected", + "transformations": [ + { + "id": "organize", + "options": {} + } + ], + "type": "timeseries" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P948FE603F61DC036" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "auto" + }, + "inspect": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "sqlstring" + }, + "properties": [ + { + "id": "custom.inspect", + "value": true + }, + { + "id": "custom.filterable", + "value": true + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Last Executed" + }, + "properties": [ + { + "id": "custom.width", + "value": 143 + }, + { + "id": "unit", + "value": "dateTimeAsIsoNoDateIfToday" + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "/.*Time/" + }, + "properties": [ + { + "id": "unit", + "value": "µs" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Number Executes" + }, + "properties": [ + { + "id": "custom.width", + "value": 142 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "ExecuteTime" + }, + "properties": [ + { + "id": "custom.width", + "value": 104 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "AvgTime" + }, + "properties": [ + { + "id": "custom.width", + "value": 135 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "SQL String" + }, + "properties": [ + { + "id": "custom.width", + "value": 866 + }, + { + "id": "custom.inspect", + "value": true + }, + { + "id": "links", + "value": [ + { + "title": "", + "url": "d/a63c439d-870f-4674-b7c8-a62ce59b101f/sql-statement-viewer?${__url_time_range}&${__all_variables}&var-filter=id%7C%3D%7C${__data.fields.ID}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Fetched" + }, + "properties": [ + { + "id": "custom.width", + "value": 110 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Sorted" + }, + "properties": [ + { + "id": "custom.width", + "value": 100 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Locked" + }, + "properties": [ + { + "id": "custom.width", + "value": 100 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Evicted" + }, + "properties": [ + { + "id": "custom.width", + "value": 103 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Count" + }, + "properties": [ + { + "id": "custom.width", + "value": 98 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "TotalTime" + }, + "properties": [ + { + "id": "custom.width", + "value": 110 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "AvgExecTime" + }, + "properties": [ + { + "id": "custom.width", + "value": 117 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "IndexHits" + }, + "properties": [ + { + "id": "custom.width", + "value": 93 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "RejectedHits" + }, + "properties": [ + { + "id": "custom.width", + "value": 113 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "IndexScans" + }, + "properties": [ + { + "id": "custom.width", + "value": 103 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "TableScans" + }, + "properties": [ + { + "id": "custom.width", + "value": 97 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "# IndexScans" + }, + "properties": [ + { + "id": "custom.width", + "value": 116 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "# TableScans" + }, + "properties": [ + { + "id": "custom.width", + "value": 109 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "#IndexScans" + }, + "properties": [ + { + "id": "custom.width", + "value": 125 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "ID" + }, + "properties": [ + { + "id": "custom.hidden", + "value": true + } + ] + } + ] + }, + "gridPos": { + "h": 20, + "w": 24, + "x": 0, + "y": 4 + }, + "id": 1, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "frameIndex": 6, + "showHeader": true, + "sortBy": [ + { + "desc": true, + "displayName": "ExecuteTime" + } + ] + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P948FE603F61DC036" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "nuodb_statements", + "orderByTime": "ASC", + "policy": "autogen", + "query": "SELECT last(lastexecuted),sum(/(numexecutes|exectime|index|exhaustive)/) FROM \"autogen\".\"nuodb_statements\" WHERE $timeFilter GROUP BY sqlstring,id", + "rawQuery": true, + "refId": "A", + "resultFormat": "table", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [] + } + ], + "title": "SQL Statement Records", + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "last_1": false, + "sum_collection_interval": true, + "sum_deletions": true, + "sum_evicted": true, + "sum_exhaustivebatchfetches": false, + "sum_exhaustivefetches": false, + "sum_indexbatchfetches": false, + "sum_indexfetches": false, + "sum_indexhits": false, + "sum_inserts": true, + "sum_locked": true, + "sum_numexecutes": false, + "sum_recordsfetched": false, + "sum_recordsreturned": true, + "sum_recordssorted": true, + "sum_rejectedindexhits": false, + "sum_replaces": true, + "sum_updatecount": true, + "sum_updates": true + }, + "indexByName": { + "Time": 0, + "last": 1, + "last_1": 4, + "sqlstring": 11, + "sum_exectime": 3, + "sum_exhaustivebatchfetches": 10, + "sum_exhaustivefetches": 9, + "sum_indexbatchfetches": 8, + "sum_indexfetches": 7, + "sum_indexhits": 5, + "sum_numexecutes": 2, + "sum_rejectedindexhits": 6 + }, + "renameByName": { + "last": "Last Executed", + "last_1": "ID", + "sqlstring": "SQL String", + "sum_compiletime": "CompileTime", + "sum_evicted": "Evicted", + "sum_exectime": "ExecuteTime", + "sum_exhaustivebatchfetches": "# TableScans", + "sum_exhaustivefetches": "TableScans", + "sum_indexbatchfetches": "#IndexScans", + "sum_indexfetches": "IndexScans", + "sum_indexhits": "IndexHits", + "sum_locked": "Locked", + "sum_numexecutes": "Count", + "sum_recordsfetched": "Fetched", + "sum_recordssorted": "Sorted", + "sum_rejectedindexhits": "RejectedHits" + } + } + }, + { + "id": "convertFieldType", + "options": { + "conversions": [ + { + "dateFormat": "YYYYMMDDTHHmmss", + "destinationType": "time", + "targetField": "Last Executed" + } + ], + "fields": {} + } + }, + { + "id": "calculateField", + "options": { + "alias": "AvgExecTime", + "binary": { + "left": "ExecuteTime", + "operator": "/", + "reducer": "sum", + "right": "Count" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "AvgExecTime": true, + "ID": false + }, + "indexByName": { + "# TableScans": 10, + "#IndexScans": 9, + "AvgExecTime": 4, + "Count": 2, + "ExecuteTime": 3, + "ID": 0, + "IndexHits": 5, + "IndexScans": 7, + "Last Executed": 1, + "RejectedHits": 6, + "SQL String": 11, + "TableScans": 8 + }, + "renameByName": { + "id": "ID" + } + } + } + ], + "type": "table" + } + ], + "refresh": "", + "schemaVersion": 38, + "style": "dark", + "tags": [ + "sql" + ], + "templating": { + "list": [ + { + "auto": true, + "auto_count": "50", + "auto_min": "10s", + "current": { + "selected": false, + "text": "auto", + "value": "$__auto_interval_interval" + }, + "hide": 0, + "label": "interval", + "name": "interval", + "options": [ + { + "selected": false, + "text": "auto", + "value": "$__auto_interval_interval" + }, + { + "selected": true, + "text": "10s", + "value": "10s" + }, + { + "selected": false, + "text": "30s", + "value": "30s" + }, + { + "selected": false, + "text": "1m", + "value": "1m" + }, + { + "selected": false, + "text": "5m", + "value": "5m" + }, + { + "selected": false, + "text": "10m", + "value": "10m" + }, + { + "selected": false, + "text": "15m", + "value": "15m" + }, + { + "selected": false, + "text": "30m", + "value": "30m" + }, + { + "selected": false, + "text": "1h", + "value": "1h" + }, + { + "selected": false, + "text": "6h", + "value": "6h" + }, + { + "selected": false, + "text": "12h", + "value": "12h" + }, + { + "selected": false, + "text": "1d", + "value": "1d" + }, + { + "selected": false, + "text": "7d", + "value": "7d" + }, + { + "selected": false, + "text": "14d", + "value": "14d" + }, + { + "selected": false, + "text": "30d", + "value": "30d" + } + ], + "query": "10s,30s,1m,5m,10m,15m,30m,1h,6h,12h,1d,7d,14d,30d", + "queryValue": "", + "refresh": 2, + "skipUrlSync": false, + "type": "interval" + }, + { + "allValue": ".*", + "current": { + "selected": false, + "text": "test", + "value": "test" + }, + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "definition": "", + "hide": 0, + "includeAll": false, + "label": "Database", + "multi": false, + "name": "database", + "options": [], + "query": "select distinct(\"db\") from (select first(raw) from \"Milliseconds\" where $timeFilter GROUP BY \"db\")\n", + "refresh": 2, + "regex": ".*", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": ".*", + "current": { + "selected": true, + "text": [ + "nuoadmin-2.nuodb.internal" + ], + "value": [ + "nuoadmin-2.nuodb.internal" + ] + }, + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "definition": "", + "hide": 0, + "includeAll": true, + "label": "Host", + "multi": true, + "name": "host", + "options": [], + "query": "select distinct(\"host\") from (select first(raw) from \"Milliseconds\" where $timeFilter AND db =~ /$database$/ AND nodetype = 'Transaction' GROUP BY \"host\")\n", + "refresh": 2, + "regex": ".*", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tagsQuery": "", + "type": "query", + "useTags": false + } + ] + }, + "time": { + "from": "2023-10-09T13:47:14.002Z", + "to": "2023-10-09T14:59:04.459Z" + }, + "timepicker": { + "refresh_intervals": [ + "5s", + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ], + "time_options": [ + "5m", + "15m", + "1h", + "6h", + "12h", + "24h", + "2d", + "7d", + "30d" + ] + }, + "timezone": "", + "title": "Sql Statement Indexes", + "uid": "e047494e-25c5-4efe-8572-fa1551034ce4", + "version": 9, + "weekStart": "" +} diff --git a/conf/provisioning/dashboards/nuodb_client/sql-statement-operations.json b/conf/provisioning/dashboards/nuodb_client/sql-statement-operations.json new file mode 100644 index 0000000..01dcf0a --- /dev/null +++ b/conf/provisioning/dashboards/nuodb_client/sql-statement-operations.json @@ -0,0 +1,931 @@ +{ + "annotations": { + "list": [ + { + "$$hashKey": "object:65", + "builtIn": 1, + "datasource": { + "type": "datasource", + "uid": "grafana" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, + "type": "dashboard" + }, + { + "$$hashKey": "object:2934", + "datasource": { + "type": "datasource", + "uid": "grafana" + }, + "enable": true, + "hide": false, + "iconColor": "rgba(255, 96, 96, 1)", + "limit": 100, + "name": "db annotations", + "showIn": 0, + "tags": [ + "$database" + ], + "target": { + "limit": 100, + "matchAny": false, + "tags": [ + "$database" + ], + "type": "tags" + }, + "type": "tags" + } + ] + }, + "description": "NuoDB Summary", + "editable": false, + "fiscalYearStartMonth": 0, + "graphTooltip": 1, + "id": 18, + "links": [ + { + "asDropdown": true, + "icon": "external link", + "includeVars": true, + "keepTime": true, + "tags": [ + "overview" + ], + "title": "top views", + "type": "dashboards" + }, + { + "asDropdown": true, + "icon": "external link", + "includeVars": true, + "keepTime": true, + "tags": [ + "nuodb" + ], + "title": "nuodb", + "type": "dashboards" + }, + { + "asDropdown": true, + "icon": "external link", + "includeVars": true, + "keepTime": true, + "tags": [ + "sql" + ], + "targetBlank": false, + "title": "sql", + "tooltip": "", + "type": "dashboards", + "url": "" + } + ], + "liveNow": false, + "panels": [ + { + "datasource": { + "type": "influxdb", + "uid": "P948FE603F61DC036" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 2, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "stepBefore", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 1, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "total_statements.sum_deletions" + }, + "properties": [ + { + "id": "displayName", + "value": "Deletes" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "total_statements.sum_inserts" + }, + "properties": [ + { + "id": "displayName", + "value": "Inserts" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "total_statements.sum_updates" + }, + "properties": [ + { + "id": "displayName", + "value": "Updates" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "total_statements.sum_recordsreturned" + }, + "properties": [ + { + "id": "displayName", + "value": "Selects" + } + ] + } + ] + }, + "gridPos": { + "h": 5, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 2, + "interval": "$interval", + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P948FE603F61DC036" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "total_statements", + "orderByTime": "ASC", + "policy": "autogen", + "query": "SELECT sum(/(updates|inserts|deletions|recordsreturned)/) FROM \"autogen\".\"total_statements\" WHERE (\"db_name\"::tag =~ /^$database$/ AND \"host\"::tag =~ /^$host$/) AND $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "updates" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + } + ] + ], + "tags": [ + { + "key": "db_name::tag", + "operator": "=~", + "value": "/^$database$/" + }, + { + "condition": "AND", + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + } + ] + } + ], + "title": "Sql Records Affected", + "transformations": [ + { + "id": "organize", + "options": {} + } + ], + "type": "timeseries" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P948FE603F61DC036" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "auto" + }, + "inspect": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "sqlstring" + }, + "properties": [ + { + "id": "custom.inspect", + "value": true + }, + { + "id": "custom.filterable", + "value": true + }, + { + "id": "links", + "value": [ + { + "targetBlank": false, + "title": "", + "url": "d/a63c439d-870f-4674-b7c8-a62ce59b101f/sql-statement-viewer?${__url_time_range}&${__all_variables}&var-filter=id%7C%3D%7C${__data.fields.ID}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Last Executed" + }, + "properties": [ + { + "id": "custom.width", + "value": 129 + }, + { + "id": "unit", + "value": "dateTimeAsIsoNoDateIfToday" + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "/.*Time/" + }, + "properties": [ + { + "id": "unit", + "value": "µs" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Number Executes" + }, + "properties": [ + { + "id": "custom.width", + "value": 142 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "ExecuteTime" + }, + "properties": [ + { + "id": "custom.width", + "value": 126 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "AvgTime" + }, + "properties": [ + { + "id": "custom.width", + "value": 91 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Fetched" + }, + "properties": [ + { + "id": "custom.width", + "value": 110 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Sorted" + }, + "properties": [ + { + "id": "custom.width", + "value": 100 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Locked" + }, + "properties": [ + { + "id": "custom.width", + "value": 100 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Evicted" + }, + "properties": [ + { + "id": "custom.width", + "value": 103 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Count" + }, + "properties": [ + { + "id": "custom.width", + "value": 98 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "TotalTime" + }, + "properties": [ + { + "id": "custom.width", + "value": 96 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Selects" + }, + "properties": [ + { + "id": "custom.width", + "value": 107 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Inserts" + }, + "properties": [ + { + "id": "custom.width", + "value": 102 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Updates" + }, + "properties": [ + { + "id": "custom.width", + "value": 94 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Deletes" + }, + "properties": [ + { + "id": "custom.width", + "value": 100 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "ID" + }, + "properties": [ + { + "id": "custom.hidden", + "value": true + } + ] + } + ] + }, + "gridPos": { + "h": 20, + "w": 24, + "x": 0, + "y": 5 + }, + "id": 1, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "frameIndex": 6, + "showHeader": true, + "sortBy": [ + { + "desc": false, + "displayName": "AvgTime" + } + ] + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P948FE603F61DC036" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "nuodb_statements", + "orderByTime": "ASC", + "policy": "autogen", + "query": "SELECT last(lastexecuted),last(id),sum(/(numexecutes|exectime|recordsreturned|inserts|updates|deletions|replaces)/) FROM \"autogen\".\"nuodb_statements\" WHERE $timeFilter AND db_name =~ /^$database$/ and host =~ /^$host$/ GROUP BY sqlstring,id", + "rawQuery": true, + "refId": "A", + "resultFormat": "table", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [] + } + ], + "title": "SQL Statement Operations", + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "last_1": true, + "sum_collection_interval": true, + "sum_deletions": false, + "sum_evicted": false, + "sum_exhaustivebatchfetches": true, + "sum_exhaustivefetches": true, + "sum_indexbatchfetches": true, + "sum_indexfetches": true, + "sum_indexhits": true, + "sum_inserts": false, + "sum_locked": false, + "sum_numexecutes": false, + "sum_recordsfetched": false, + "sum_recordsreturned": false, + "sum_recordssorted": false, + "sum_rejectedindexhits": true, + "sum_replaces": true, + "sum_updatecount": true, + "sum_updates": false + }, + "indexByName": { + "Time": 0, + "last": 1, + "last_1": 7, + "sqlstring": 8, + "sum_deletions": 5, + "sum_inserts": 3, + "sum_recordsreturned": 2, + "sum_replaces": 6, + "sum_updates": 4 + }, + "renameByName": { + "id": "ID", + "last": "Last Executed", + "last_1": "", + "sqlstring": "SQL String", + "sum_compiletime": "CompileTime", + "sum_deletions": "Deletes", + "sum_evicted": "Evicted", + "sum_exectime": "ExecuteTime", + "sum_exhaustivebatchfetches": "", + "sum_inserts": "Inserts", + "sum_locked": "Locked", + "sum_numexecutes": "Count", + "sum_recordsfetched": "Fetched", + "sum_recordsreturned": "Selects", + "sum_recordssorted": "Sorted", + "sum_replaces": "", + "sum_updates": "Updates" + } + } + }, + { + "id": "convertFieldType", + "options": { + "conversions": [ + { + "dateFormat": "YYYYMMDDTHHmmss", + "destinationType": "time", + "targetField": "Last Executed" + } + ], + "fields": {} + } + }, + { + "id": "calculateField", + "options": { + "alias": "AvgExecTime", + "binary": { + "left": "ExecuteTime", + "operator": "/", + "reducer": "sum", + "right": "Count" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": {}, + "indexByName": { + "AvgExecTime": 3, + "Count": 1, + "Deletes": 7, + "ExecuteTime": 2, + "Inserts": 5, + "Last Executed": 0, + "SQL String": 8, + "Selects": 4, + "Updates": 6 + }, + "renameByName": { + "AvgExecTime": "AvgTime", + "ExecuteTime": "TotalTime", + "Fetched": "", + "Id": "ID" + } + } + } + ], + "type": "table" + } + ], + "refresh": false, + "schemaVersion": 38, + "style": "dark", + "tags": [ + "sql" + ], + "templating": { + "list": [ + { + "auto": true, + "auto_count": "50", + "auto_min": "10s", + "current": { + "selected": false, + "text": "10s", + "value": "10s" + }, + "hide": 0, + "label": "interval", + "name": "interval", + "options": [ + { + "selected": false, + "text": "auto", + "value": "$__auto_interval_interval" + }, + { + "selected": true, + "text": "10s", + "value": "10s" + }, + { + "selected": false, + "text": "30s", + "value": "30s" + }, + { + "selected": false, + "text": "1m", + "value": "1m" + }, + { + "selected": false, + "text": "5m", + "value": "5m" + }, + { + "selected": false, + "text": "10m", + "value": "10m" + }, + { + "selected": false, + "text": "15m", + "value": "15m" + }, + { + "selected": false, + "text": "30m", + "value": "30m" + }, + { + "selected": false, + "text": "1h", + "value": "1h" + }, + { + "selected": false, + "text": "6h", + "value": "6h" + }, + { + "selected": false, + "text": "12h", + "value": "12h" + }, + { + "selected": false, + "text": "1d", + "value": "1d" + }, + { + "selected": false, + "text": "7d", + "value": "7d" + }, + { + "selected": false, + "text": "14d", + "value": "14d" + }, + { + "selected": false, + "text": "30d", + "value": "30d" + } + ], + "query": "10s,30s,1m,5m,10m,15m,30m,1h,6h,12h,1d,7d,14d,30d", + "queryValue": "", + "refresh": 2, + "skipUrlSync": false, + "type": "interval" + }, + { + "allValue": ".*", + "current": { + "selected": false, + "text": "test", + "value": "test" + }, + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "definition": "", + "hide": 0, + "includeAll": false, + "label": "Database", + "multi": false, + "name": "database", + "options": [], + "query": "select distinct(\"db\") from (select first(raw) from \"Milliseconds\" where $timeFilter GROUP BY \"db\")\n", + "refresh": 2, + "regex": ".*", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": ".*", + "current": { + "selected": true, + "text": [ + "nuoadmin-2.nuodb.internal" + ], + "value": [ + "nuoadmin-2.nuodb.internal" + ] + }, + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "definition": "", + "hide": 0, + "includeAll": true, + "label": "Host", + "multi": true, + "name": "host", + "options": [], + "query": "select distinct(\"host\") from (select first(raw) from \"Milliseconds\" where $timeFilter AND db =~ /$database$/ AND nodetype = 'Transaction' GROUP BY \"host\")\n", + "refresh": 2, + "regex": ".*", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tagsQuery": "", + "type": "query", + "useTags": false + } + ] + }, + "time": { + "from": "2023-10-11T19:10:03.982Z", + "to": "2023-10-11T19:25:34.247Z" + }, + "timepicker": { + "refresh_intervals": [ + "5s", + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ], + "time_options": [ + "5m", + "15m", + "1h", + "6h", + "12h", + "24h", + "2d", + "7d", + "30d" + ] + }, + "timezone": "", + "title": "Sql Statement Operations", + "uid": "ac1c1ab9-0112-43ec-8f23-78c625345906", + "version": 15, + "weekStart": "" +} diff --git a/conf/provisioning/dashboards/nuodb_client/sql-statement-records.json b/conf/provisioning/dashboards/nuodb_client/sql-statement-records.json new file mode 100644 index 0000000..ef89fc3 --- /dev/null +++ b/conf/provisioning/dashboards/nuodb_client/sql-statement-records.json @@ -0,0 +1,879 @@ +{ + "annotations": { + "list": [ + { + "$$hashKey": "object:65", + "builtIn": 1, + "datasource": { + "type": "datasource", + "uid": "grafana" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, + "type": "dashboard" + }, + { + "$$hashKey": "object:2934", + "datasource": { + "type": "datasource", + "uid": "grafana" + }, + "enable": true, + "hide": false, + "iconColor": "rgba(255, 96, 96, 1)", + "limit": 100, + "name": "db annotations", + "showIn": 0, + "tags": [ + "$database" + ], + "target": { + "limit": 100, + "matchAny": false, + "tags": [ + "$database" + ], + "type": "tags" + }, + "type": "tags" + } + ] + }, + "description": "NuoDB Records Affected", + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 1, + "id": 23, + "links": [ + { + "asDropdown": true, + "icon": "external link", + "includeVars": true, + "keepTime": true, + "tags": [ + "overview" + ], + "title": "top views", + "type": "dashboards" + }, + { + "asDropdown": true, + "icon": "external link", + "includeVars": true, + "keepTime": true, + "tags": [ + "nuodb" + ], + "title": "nuodb", + "type": "dashboards" + }, + { + "asDropdown": true, + "icon": "external link", + "includeVars": true, + "keepTime": true, + "tags": [ + "sql" + ], + "targetBlank": false, + "title": "sql", + "tooltip": "", + "type": "dashboards", + "url": "" + } + ], + "liveNow": false, + "panels": [ + { + "datasource": { + "type": "influxdb", + "uid": "P948FE603F61DC036" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 2, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 1, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "total_statements.sum_deletions" + }, + "properties": [ + { + "id": "displayName", + "value": "Deletes" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "total_statements.sum_inserts" + }, + "properties": [ + { + "id": "displayName", + "value": "Inserts" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "total_statements.sum_updates" + }, + "properties": [ + { + "id": "displayName", + "value": "Updates" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "total_statements.sum_recordsreturned" + }, + "properties": [ + { + "id": "displayName", + "value": "Selects" + } + ] + } + ] + }, + "gridPos": { + "h": 5, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 2, + "interval": "$interval", + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P948FE603F61DC036" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "total_statements", + "orderByTime": "ASC", + "policy": "autogen", + "query": "SELECT sum(/(updates|inserts|deletions|recordsreturned)/) FROM \"autogen\".\"total_statements\" WHERE (\"db_name\"::tag =~ /^$database$/ AND \"host\"::tag =~ /^$host$/) AND $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "updates" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + } + ] + ], + "tags": [ + { + "key": "db_name::tag", + "operator": "=~", + "value": "/^$database$/" + }, + { + "condition": "AND", + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + } + ] + } + ], + "title": "Sql Rows Affected", + "transformations": [ + { + "id": "organize", + "options": {} + } + ], + "type": "timeseries" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P948FE603F61DC036" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "auto" + }, + "inspect": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "sqlstring" + }, + "properties": [ + { + "id": "custom.inspect", + "value": true + }, + { + "id": "custom.filterable", + "value": true + }, + { + "id": "links", + "value": [ + { + "title": "", + "url": "d/a63c439d-870f-4674-b7c8-a62ce59b101f/sql-statement-viewer?${__url_time_range}&${__all_variables}&var-filter=id%7C%3D%7C${__data.fields.ID}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Last Executed" + }, + "properties": [ + { + "id": "custom.width", + "value": 163 + }, + { + "id": "unit", + "value": "dateTimeAsIsoNoDateIfToday" + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "/.*Time/" + }, + "properties": [ + { + "id": "unit", + "value": "µs" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Number Executes" + }, + "properties": [ + { + "id": "custom.width", + "value": 142 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "ExecuteTime" + }, + "properties": [ + { + "id": "custom.width", + "value": 126 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "AvgTime" + }, + "properties": [ + { + "id": "custom.width", + "value": 135 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Fetched" + }, + "properties": [ + { + "id": "custom.width", + "value": 110 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Sorted" + }, + "properties": [ + { + "id": "custom.width", + "value": 100 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Locked" + }, + "properties": [ + { + "id": "custom.width", + "value": 100 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Evicted" + }, + "properties": [ + { + "id": "custom.width", + "value": 103 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Count" + }, + "properties": [ + { + "id": "custom.width", + "value": 98 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "ID" + }, + "properties": [ + { + "id": "custom.hidden", + "value": true + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "TotalTime" + }, + "properties": [ + { + "id": "custom.width", + "value": 98 + } + ] + } + ] + }, + "gridPos": { + "h": 20, + "w": 24, + "x": 0, + "y": 5 + }, + "id": 1, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "frameIndex": 6, + "showHeader": true, + "sortBy": [ + { + "desc": true, + "displayName": "Last Executed" + } + ] + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P948FE603F61DC036" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "nuodb_statements", + "orderByTime": "ASC", + "policy": "autogen", + "query": "SELECT last(lastexecuted),sum(/(numexecutes|exectime|recordsfetched|locked|recordssorted|evicted)/) FROM \"autogen\".\"nuodb_statements\" WHERE $timeFilter GROUP BY sqlstring,id", + "rawQuery": true, + "refId": "A", + "resultFormat": "table", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [] + } + ], + "title": "SQL Statement Records", + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": { + "ID": false, + "Time": true, + "last_1": true, + "sum_collection_interval": true, + "sum_deletions": true, + "sum_evicted": false, + "sum_exhaustivebatchfetches": true, + "sum_exhaustivefetches": true, + "sum_indexbatchfetches": true, + "sum_indexfetches": true, + "sum_indexhits": true, + "sum_inserts": true, + "sum_locked": false, + "sum_numexecutes": false, + "sum_recordsfetched": false, + "sum_recordsreturned": true, + "sum_recordssorted": false, + "sum_rejectedindexhits": true, + "sum_replaces": true, + "sum_updatecount": true, + "sum_updates": true + }, + "indexByName": { + "Time": 0, + "last": 1, + "last_1": 4, + "sqlstring": 9, + "sum_evicted": 8, + "sum_exectime": 3, + "sum_locked": 7, + "sum_numexecutes": 2, + "sum_recordsfetched": 5, + "sum_recordssorted": 6 + }, + "renameByName": { + "ID": "", + "id": "ID", + "last": "Last Executed", + "last_1": "", + "sqlstring": "SQL String", + "sum_compiletime": "CompileTime", + "sum_evicted": "Evicted", + "sum_exectime": "ExecuteTime", + "sum_exhaustivebatchfetches": "", + "sum_locked": "Locked", + "sum_numexecutes": "Count", + "sum_recordsfetched": "Fetched", + "sum_recordssorted": "Sorted" + } + } + }, + { + "id": "convertFieldType", + "options": { + "conversions": [ + { + "dateFormat": "YYYYMMDDTHHmmss", + "destinationType": "time", + "targetField": "Last Executed" + } + ], + "fields": {} + } + }, + { + "id": "calculateField", + "options": { + "alias": "AvgExecTime", + "binary": { + "left": "ExecuteTime", + "operator": "/", + "reducer": "sum", + "right": "Count" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": {}, + "indexByName": { + "AvgExecTime": 2, + "Count": 1, + "Evicted": 7, + "ExecuteTime": 3, + "Fetched": 4, + "Last Executed": 0, + "Locked": 6, + "SQL String": 8, + "Sorted": 5 + }, + "renameByName": { + "AvgExecTime": "AvgTime", + "ExecuteTime": "TotalTime", + "Fetched": "" + } + } + } + ], + "type": "table" + } + ], + "refresh": false, + "schemaVersion": 38, + "style": "dark", + "tags": [ + "sql" + ], + "templating": { + "list": [ + { + "auto": true, + "auto_count": "50", + "auto_min": "10s", + "current": { + "selected": false, + "text": "auto", + "value": "$__auto_interval_interval" + }, + "hide": 0, + "label": "interval", + "name": "interval", + "options": [ + { + "selected": false, + "text": "auto", + "value": "$__auto_interval_interval" + }, + { + "selected": true, + "text": "10s", + "value": "10s" + }, + { + "selected": false, + "text": "30s", + "value": "30s" + }, + { + "selected": false, + "text": "1m", + "value": "1m" + }, + { + "selected": false, + "text": "5m", + "value": "5m" + }, + { + "selected": false, + "text": "10m", + "value": "10m" + }, + { + "selected": false, + "text": "15m", + "value": "15m" + }, + { + "selected": false, + "text": "30m", + "value": "30m" + }, + { + "selected": false, + "text": "1h", + "value": "1h" + }, + { + "selected": false, + "text": "6h", + "value": "6h" + }, + { + "selected": false, + "text": "12h", + "value": "12h" + }, + { + "selected": false, + "text": "1d", + "value": "1d" + }, + { + "selected": false, + "text": "7d", + "value": "7d" + }, + { + "selected": false, + "text": "14d", + "value": "14d" + }, + { + "selected": false, + "text": "30d", + "value": "30d" + } + ], + "query": "10s,30s,1m,5m,10m,15m,30m,1h,6h,12h,1d,7d,14d,30d", + "queryValue": "", + "refresh": 2, + "skipUrlSync": false, + "type": "interval" + }, + { + "allValue": ".*", + "current": { + "selected": false, + "text": "test", + "value": "test" + }, + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "definition": "", + "hide": 0, + "includeAll": false, + "label": "Database", + "multi": false, + "name": "database", + "options": [], + "query": "select distinct(\"db\") from (select first(raw) from \"Milliseconds\" where $timeFilter GROUP BY \"db\")\n", + "refresh": 2, + "regex": ".*", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": ".*", + "current": { + "selected": true, + "text": [ + "nuoadmin-2.nuodb.internal" + ], + "value": [ + "nuoadmin-2.nuodb.internal" + ] + }, + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "definition": "", + "hide": 0, + "includeAll": true, + "label": "Host", + "multi": true, + "name": "host", + "options": [], + "query": "select distinct(\"host\") from (select first(raw) from \"Milliseconds\" where $timeFilter AND db =~ /$database$/ AND nodetype = 'Transaction' GROUP BY \"host\")\n", + "refresh": 2, + "regex": ".*", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tagsQuery": "", + "type": "query", + "useTags": false + } + ] + }, + "time": { + "from": "2023-10-09T13:47:14.002Z", + "to": "2023-10-09T14:59:04.459Z" + }, + "timepicker": { + "refresh_intervals": [ + "5s", + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ], + "time_options": [ + "5m", + "15m", + "1h", + "6h", + "12h", + "24h", + "2d", + "7d", + "30d" + ] + }, + "timezone": "", + "title": "Sql Statement Records", + "uid": "bceeb9dd-e8d6-474d-8b56-934d4f8e2f25", + "version": 4, + "weekStart": "" +} diff --git a/conf/provisioning/dashboards/nuodb_client/sql-statement-viewer.json b/conf/provisioning/dashboards/nuodb_client/sql-statement-viewer.json new file mode 100644 index 0000000..3badd0f --- /dev/null +++ b/conf/provisioning/dashboards/nuodb_client/sql-statement-viewer.json @@ -0,0 +1,1296 @@ +{ + "annotations": { + "list": [ + { + "$$hashKey": "object:65", + "builtIn": 1, + "datasource": { + "type": "datasource", + "uid": "grafana" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, + "type": "dashboard" + }, + { + "$$hashKey": "object:2934", + "datasource": { + "type": "datasource", + "uid": "grafana" + }, + "enable": true, + "hide": false, + "iconColor": "rgba(255, 96, 96, 1)", + "limit": 100, + "name": "db annotations", + "showIn": 0, + "tags": [ + "$database" + ], + "target": { + "limit": 100, + "matchAny": false, + "tags": [ + "$database" + ], + "type": "tags" + }, + "type": "tags" + } + ] + }, + "description": "NuoDB Summary", + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 1, + "id": 26, + "links": [ + { + "asDropdown": true, + "icon": "external link", + "includeVars": true, + "keepTime": true, + "tags": [ + "overview" + ], + "title": "top views", + "type": "dashboards" + }, + { + "asDropdown": true, + "icon": "external link", + "includeVars": true, + "keepTime": true, + "tags": [ + "nuodb" + ], + "title": "nuodb", + "type": "dashboards" + }, + { + "asDropdown": true, + "icon": "external link", + "includeVars": true, + "keepTime": true, + "tags": [ + "sql" + ], + "targetBlank": false, + "title": "sql", + "tooltip": "", + "type": "dashboards", + "url": "" + } + ], + "liveNow": false, + "panels": [ + { + "datasource": { + "type": "influxdb", + "uid": "P948FE603F61DC036" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 2, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 1, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "/.*time/" + }, + "properties": [ + { + "id": "unit", + "value": "µs" + } + ] + } + ] + }, + "gridPos": { + "h": 4, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 2, + "interval": "10s", + "links": [], + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "alias": "$field", + "datasource": { + "type": "influxdb", + "uid": "P948FE603F61DC036" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "nuodb_statements", + "orderByTime": "ASC", + "policy": "autogen", + "query": "SELECT sum($field)/sum(numexecutes) FROM \"autogen\".\"nuodb_statements\" WHERE (\"db_name\"::tag =~ /^$database$/ AND \"host\"::tag =~ /^$host$/) AND $timeFilter AND ${field:singlequote} != 'avgexectime' GROUP BY time($__interval) fill(0)", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "exectime" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "db_name::tag", + "operator": "=~", + "value": "/^$database$/" + }, + { + "condition": "AND", + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + } + ] + }, + { + "alias": "$field", + "datasource": { + "type": "influxdb", + "uid": "P948FE603F61DC036" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "nuodb_statements", + "orderByTime": "ASC", + "policy": "autogen", + "query": "SELECT max($field) FROM \"autogen\".\"nuodb_statements\" WHERE (\"db_name\"::tag =~ /^$database$/ AND \"host\"::tag =~ /^$host$/) AND $timeFilter AND ${field:singlequote} = 'avgexectime' GROUP BY time($__interval) fill(0)", + "rawQuery": true, + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "exectime" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "db_name::tag", + "operator": "=~", + "value": "/^$database$/" + }, + { + "condition": "AND", + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + } + ] + } + ], + "title": "Average", + "transformations": [], + "type": "timeseries" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P948FE603F61DC036" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "auto" + }, + "inspect": true + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "ID" + }, + "properties": [ + { + "id": "custom.hidden", + "value": true + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "sqlstring" + }, + "properties": [ + { + "id": "links", + "value": [ + { + "targetBlank": true, + "title": "", + "url": "/d/c9081118-5230-478d-b6e8-d76614395704/sql-execution-logs?${__url_time_range}&${database:queryparam}&${host:queryparam}&var-statement=${__data.fields.ID}" + } + ] + } + ] + } + ] + }, + "gridPos": { + "h": 2, + "w": 24, + "x": 0, + "y": 4 + }, + "id": 3, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": false + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P948FE603F61DC036" + }, + "groupBy": [ + { + "params": [ + "sqlstring::tag" + ], + "type": "tag" + }, + { + "params": [ + "id::tag" + ], + "type": "tag" + } + ], + "measurement": "nuodb_statements", + "orderByTime": "ASC", + "policy": "autogen", + "refId": "A", + "resultFormat": "table", + "select": [ + [ + { + "params": [ + "avgexectime" + ], + "type": "field" + }, + { + "params": [], + "type": "last" + } + ] + ], + "tags": [ + { + "key": "db_name::tag", + "operator": "=~", + "value": "/^$database$/" + }, + { + "condition": "AND", + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + } + ] + } + ], + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "last": true + }, + "indexByName": {}, + "renameByName": { + "id": "ID" + } + } + } + ], + "type": "table" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P948FE603F61DC036" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "auto" + }, + "inspect": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "sqlstring" + }, + "properties": [ + { + "id": "custom.inspect", + "value": true + }, + { + "id": "custom.filterable", + "value": true + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Last Executed" + }, + "properties": [ + { + "id": "custom.width", + "value": 129 + }, + { + "id": "unit", + "value": "dateTimeAsIsoNoDateIfToday" + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "/.*Time/" + }, + "properties": [ + { + "id": "unit", + "value": "µs" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Number Executes" + }, + "properties": [ + { + "id": "custom.width", + "value": 142 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "ExecuteTime" + }, + "properties": [ + { + "id": "custom.width", + "value": 126 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "AvgTime" + }, + "properties": [ + { + "id": "custom.width", + "value": 91 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Fetched" + }, + "properties": [ + { + "id": "custom.width", + "value": 96 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Sorted" + }, + "properties": [ + { + "id": "custom.width", + "value": 100 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Locked" + }, + "properties": [ + { + "id": "custom.width", + "value": 80 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Evicted" + }, + "properties": [ + { + "id": "custom.width", + "value": 103 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Count" + }, + "properties": [ + { + "id": "custom.width", + "value": 82 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "TotalTime" + }, + "properties": [ + { + "id": "custom.width", + "value": 84 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Selects" + }, + "properties": [ + { + "id": "custom.width", + "value": 82 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Inserts" + }, + "properties": [ + { + "id": "custom.width", + "value": 76 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Updates" + }, + "properties": [ + { + "id": "custom.width", + "value": 83 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Deletes" + }, + "properties": [ + { + "id": "custom.width", + "value": 80 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Time" + }, + "properties": [ + { + "id": "custom.width", + "value": 166 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "CompileTime" + }, + "properties": [ + { + "id": "custom.width", + "value": 112 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "IndexHits" + }, + "properties": [ + { + "id": "custom.width", + "value": 92 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Rejected" + }, + "properties": [ + { + "id": "custom.width", + "value": 81 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "IndexScans" + }, + "properties": [ + { + "id": "custom.width", + "value": 96 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "TableScans" + }, + "properties": [ + { + "id": "custom.width", + "value": 103 + } + ] + } + ] + }, + "gridPos": { + "h": 20, + "w": 24, + "x": 0, + "y": 6 + }, + "id": 1, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "frameIndex": 6, + "showHeader": true, + "sortBy": [ + { + "desc": true, + "displayName": "AvgTime" + } + ] + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P948FE603F61DC036" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "nuodb_statements", + "orderByTime": "ASC", + "policy": "autogen", + "query": "SELECT last(lastexecuted),sum(*) FROM \"autogen\".\"nuodb_statements\" WHERE $timeFilter AND db_name =~ /^$database$/ and host =~ /^$host$/ GROUP BY sqlstring,time(10s)", + "rawQuery": true, + "refId": "A", + "resultFormat": "table", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [] + } + ], + "title": "SQL Statement Operations", + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": { + "Time": false, + "last_1": true, + "sqlstring": true, + "sum_avgexectime": true, + "sum_collection_interval": true, + "sum_deletions": false, + "sum_evicted": false, + "sum_exhaustivebatchfetches": false, + "sum_exhaustivefetches": false, + "sum_indexbatchfetches": false, + "sum_indexfetches": false, + "sum_indexhits": false, + "sum_inserts": false, + "sum_locked": false, + "sum_numexecutes": false, + "sum_recordsfetched": false, + "sum_recordsreturned": false, + "sum_recordssorted": false, + "sum_rejectedindexhits": false, + "sum_replaces": true, + "sum_updatecount": true, + "sum_updates": false + }, + "indexByName": { + "Time": 0, + "last": 1, + "last_1": 7, + "sqlstring": 8, + "sum_deletions": 5, + "sum_inserts": 3, + "sum_recordsreturned": 2, + "sum_replaces": 6, + "sum_updates": 4 + }, + "renameByName": { + "last": "Last Executed", + "last_1": "Id", + "sqlstring": "SQL String", + "sum_avgexectime": "", + "sum_compiletime": "CompileTime", + "sum_deletions": "Deletes", + "sum_evicted": "Evicted", + "sum_exectime": "ExecuteTime", + "sum_exhaustivebatchfetches": "#TableScans", + "sum_exhaustivefetches": "TableScans", + "sum_indexbatchfetches": "#IndexScans", + "sum_indexfetches": "IndexScans", + "sum_indexhits": "IndexHits", + "sum_inserts": "Inserts", + "sum_locked": "Locked", + "sum_numexecutes": "Count", + "sum_recordsfetched": "Fetched", + "sum_recordsreturned": "Selects", + "sum_recordssorted": "Sorted", + "sum_rejectedindexhits": "Rejected", + "sum_replaces": "", + "sum_updates": "Updates" + } + } + }, + { + "id": "convertFieldType", + "options": { + "conversions": [ + { + "dateFormat": "YYYYMMDDTHHmmss", + "destinationType": "time", + "targetField": "Last Executed" + } + ], + "fields": {} + } + }, + { + "id": "calculateField", + "options": { + "alias": "AvgExecTime", + "binary": { + "left": "ExecuteTime", + "operator": "/", + "reducer": "sum", + "right": "Count" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "#IndexScans": true, + "#TableScans": true + }, + "indexByName": { + "#IndexScans": 15, + "#TableScans": 13, + "AvgExecTime": 5, + "CompileTime": 3, + "Count": 2, + "Deletes": 9, + "Evicted": 19, + "ExecuteTime": 4, + "Fetched": 16, + "IndexHits": 10, + "IndexScans": 12, + "Inserts": 7, + "Last Executed": 1, + "Locked": 17, + "Rejected": 11, + "Selects": 6, + "Sorted": 18, + "TableScans": 14, + "Time": 0, + "Updates": 8 + }, + "renameByName": { + "AvgExecTime": "AvgTime", + "CompileTime": "", + "ExecuteTime": "TotalTime", + "Fetched": "" + } + } + }, + { + "id": "filterByValue", + "options": { + "filters": [ + { + "config": { + "id": "isNull", + "options": {} + }, + "fieldName": "Last Executed" + } + ], + "match": "any", + "type": "exclude" + } + } + ], + "type": "table" + } + ], + "refresh": false, + "schemaVersion": 38, + "style": "dark", + "tags": [ + "sql" + ], + "templating": { + "list": [ + { + "auto": true, + "auto_count": "50", + "auto_min": "10s", + "current": { + "selected": false, + "text": "10s", + "value": "10s" + }, + "hide": 2, + "label": "interval", + "name": "interval", + "options": [ + { + "selected": true, + "text": "auto", + "value": "$__auto_interval_interval" + }, + { + "selected": false, + "text": "10s", + "value": "10s" + }, + { + "selected": false, + "text": "30s", + "value": "30s" + }, + { + "selected": false, + "text": "1m", + "value": "1m" + }, + { + "selected": false, + "text": "5m", + "value": "5m" + }, + { + "selected": false, + "text": "10m", + "value": "10m" + }, + { + "selected": false, + "text": "15m", + "value": "15m" + }, + { + "selected": false, + "text": "30m", + "value": "30m" + }, + { + "selected": false, + "text": "1h", + "value": "1h" + }, + { + "selected": false, + "text": "6h", + "value": "6h" + }, + { + "selected": false, + "text": "12h", + "value": "12h" + }, + { + "selected": false, + "text": "1d", + "value": "1d" + }, + { + "selected": false, + "text": "7d", + "value": "7d" + }, + { + "selected": false, + "text": "14d", + "value": "14d" + }, + { + "selected": false, + "text": "30d", + "value": "30d" + } + ], + "query": "10s,30s,1m,5m,10m,15m,30m,1h,6h,12h,1d,7d,14d,30d", + "queryValue": "", + "refresh": 2, + "skipUrlSync": false, + "type": "interval" + }, + { + "allValue": ".*", + "current": { + "selected": false, + "text": "test", + "value": "test" + }, + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "definition": "", + "hide": 0, + "includeAll": false, + "label": "Database", + "multi": false, + "name": "database", + "options": [], + "query": "select distinct(\"db\") from (select first(raw) from \"Milliseconds\" where $timeFilter GROUP BY \"db\")\n", + "refresh": 2, + "regex": ".*", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": ".*", + "current": { + "selected": false, + "text": [ + "All" + ], + "value": [ + "$__all" + ] + }, + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "definition": "", + "hide": 0, + "includeAll": true, + "label": "Host", + "multi": true, + "name": "host", + "options": [], + "query": "select distinct(\"host\") from (select first(raw) from \"Milliseconds\" where $timeFilter AND db =~ /$database$/ AND nodetype = 'Transaction' GROUP BY \"host\")\n", + "refresh": 2, + "regex": ".*", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "datasource": { + "type": "influxdb", + "uid": "P948FE603F61DC036" + }, + "filters": [], + "hide": 1, + "name": "filter", + "skipUrlSync": false, + "type": "adhoc" + }, + { + "current": { + "selected": true, + "text": "AvgTime", + "value": "exectime" + }, + "hide": 1, + "includeAll": false, + "label": "Display", + "multi": false, + "name": "field", + "options": [ + { + "selected": false, + "text": "CompileTime", + "value": "compiletime" + }, + { + "selected": false, + "text": "ExecTime", + "value": "exectime" + }, + { + "selected": true, + "text": "MaxAvgTime", + "value": "avgexectime" + }, + { + "selected": false, + "text": "Selects", + "value": "recordsreturned" + }, + { + "selected": false, + "text": "Inserts", + "value": "inserts" + }, + { + "selected": false, + "text": "Updates", + "value": "updates" + }, + { + "selected": false, + "text": "Deletes", + "value": "deletions" + }, + { + "selected": false, + "text": "IndexHits", + "value": "indexhits" + }, + { + "selected": false, + "text": "Rejected", + "value": "rejectedindexhits" + }, + { + "selected": false, + "text": "IndexScans", + "value": "indexfetches" + }, + { + "selected": false, + "text": "TableScans", + "value": "exhaustivefetches" + }, + { + "selected": false, + "text": "Fetched", + "value": "recordsfetched" + }, + { + "selected": false, + "text": "Locked", + "value": "locks" + }, + { + "selected": false, + "text": "Sorted", + "value": "recordssorted" + }, + { + "selected": false, + "text": "Evicts", + "value": "evicted" + } + ], + "query": "CompileTime : compiletime, ExecTime : exectime, MaxAvgTime : avgexectime , Selects : recordsreturned , Inserts : inserts , Updates : updates , Deletes : deletions , IndexHits : indexhits , Rejected : rejectedindexhits , IndexScans : indexfetches , TableScans : exhaustivefetches , Fetched : recordsfetched , Locked : locks , Sorted : recordssorted , Evicts : evicted", + "queryValue": "", + "skipUrlSync": false, + "type": "custom" + } + ] + }, + "time": { + "from": "2023-10-10T23:06:04.812Z", + "to": "2023-10-10T23:07:11.150Z" + }, + "timepicker": { + "refresh_intervals": [ + "5s", + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ], + "time_options": [ + "5m", + "15m", + "1h", + "6h", + "12h", + "24h", + "2d", + "7d", + "30d" + ] + }, + "timezone": "", + "title": "Sql Statement Viewer", + "uid": "a63c439d-870f-4674-b7c8-a62ce59b101f", + "version": 27, + "weekStart": "" +} diff --git a/conf/provisioning/dashboards/nuodb_ext/message-trace.json b/conf/provisioning/dashboards/nuodb_ext/message-trace.json new file mode 100644 index 0000000..58567b5 --- /dev/null +++ b/conf/provisioning/dashboards/nuodb_ext/message-trace.json @@ -0,0 +1,844 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": "-- Grafana --", + "enable": false, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "editable": true, + "gnetId": null, + "graphTooltip": 0, + "id": 11, + "iteration": 1613151534833, + "links": [ + { + "$$hashKey": "object:3968", + "asDropdown": true, + "icon": "external link", + "includeVars": true, + "keepTime": true, + "tags": [ + "overview" + ], + "title": "top views", + "type": "dashboards" + }, + { + "$$hashKey": "object:3987", + "asDropdown": true, + "icon": "external link", + "includeVars": true, + "keepTime": true, + "tags": [ + "nuodb" + ], + "title": "nuodb", + "type": "dashboards" + } + ], + "panels": [ + { + "collapsed": false, + "datasource": "nuodb_internal", + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 11, + "panels": [], + "title": "Total Listener Time", + "type": "row" + }, + { + "aliasColors": {}, + "bars": true, + "dashLength": 10, + "dashes": false, + "datasource": "nuodb_internal", + "description": "Wall clock time spent process messages from other nodes in the database chorus. metrics are collected every 30 seconds, so max bar size should be 30 sec.", + "fieldConfig": { + "defaults": { + "custom": {}, + "links": [] + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 1 + }, + "hiddenSeries": false, + "id": 9, + "interval": "$interval", + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": false, + "total": false, + "values": false + }, + "lines": false, + "linewidth": 1, + "maxPerRow": 3, + "nullPointMode": "null as zero", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "7.3.2", + "pointradius": 2, + "points": false, + "renderer": "flot", + "repeat": "listeners", + "repeatDirection": "h", + "seriesOverrides": [], + "spaceLength": 10, + "stack": true, + "steppedLine": false, + "targets": [ + { + "alias": "$tag_msg_trace_metric", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "msg_trace_metric" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "nuodb_msgtrace", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT LAST(M) FROM (SELECT time,mean(\"totalTimeStalls\") AS M, mean(\"totalSumStalls\") AS S FROM \"nuodb_msgtrace\" WHERE (\"msg_trace_metric\" =~ /^$metric$/ AND \"id\" =~ /^$listeners$/ AND \"dbname\" =~ /^$database$/ ) AND $timeFilter GROUP BY time($__interval), \"msg_trace_metric\" fill(null)) WHERE M/S > $percent AND $timeFilter GROUP BY time($__interval),\"msg_trace_metric\" fill(null)", + "rawQuery": true, + "refId": "C", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "totalTimeStalls" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "id", + "operator": "=~", + "value": "/^$listeners$/" + }, + { + "condition": "AND", + "key": "totalTimeStalls", + "operator": ">", + "value": "1000*$ms" + } + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Node $listeners Listener", + "tooltip": { + "shared": true, + "sort": 2, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:156", + "format": "µs", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "$$hashKey": "object:157", + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "collapsed": false, + "datasource": "nuodb_internal", + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 9 + }, + "id": 7, + "panels": [], + "title": "Average Listener Times", + "type": "row" + }, + { + "aliasColors": {}, + "bars": true, + "dashLength": 10, + "dashes": false, + "datasource": "nuodb_internal", + "description": "Average time to process a message from the other node.", + "fieldConfig": { + "defaults": { + "custom": {}, + "links": [] + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 10 + }, + "hiddenSeries": false, + "id": 4, + "interval": "$interval", + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": false, + "total": false, + "values": false + }, + "lines": false, + "linewidth": 1, + "maxPerRow": 3, + "nullPointMode": "null as zero", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "7.3.2", + "pointradius": 2, + "points": false, + "renderer": "flot", + "repeat": "listeners", + "repeatDirection": "h", + "seriesOverrides": [], + "spaceLength": 10, + "stack": true, + "steppedLine": false, + "targets": [ + { + "alias": "$tag_msg_trace_metric", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "name" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "nuodb_msgtrace", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT LAST(M)/LAST(N) FROM (SELECT time,mean(\"totalTimeStalls\") AS M, mean(\"numStalls\") AS N,mean(\"totalSumStalls\") AS S FROM \"nuodb_msgtrace\" WHERE (\"msg_trace_metric\" =~ /^$metric$/ AND \"dbname\" =~ /^$database$/ AND \"id\" =~ /^$listeners$/) AND $timeFilter GROUP BY time($__interval), \"msg_trace_metric\" fill(null)) WHERE M/S > $percent AND $timeFilter GROUP BY time($__interval),\"msg_trace_metric\" fill(null)", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "totalTimeStalls" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "id", + "operator": "=~", + "value": "/^$listeners$/" + } + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Node $listeners Listener", + "tooltip": { + "shared": true, + "sort": 2, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:156", + "format": "µs", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "$$hashKey": "object:157", + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "collapsed": false, + "datasource": "nuodb_internal", + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 18 + }, + "id": 15, + "panels": [], + "repeat": null, + "title": "Number of Messages", + "type": "row" + }, + { + "aliasColors": {}, + "bars": true, + "dashLength": 10, + "dashes": false, + "datasource": "nuodb_internal", + "description": "Number of messages processed from other node in database chorus.", + "fieldConfig": { + "defaults": { + "custom": {}, + "links": [] + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 19 + }, + "hiddenSeries": false, + "id": 18, + "interval": "$interval", + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": false, + "total": false, + "values": false + }, + "lines": false, + "linewidth": 1, + "maxPerRow": 3, + "nullPointMode": "null as zero", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "7.3.2", + "pointradius": 2, + "points": false, + "renderer": "flot", + "repeat": "listeners", + "repeatDirection": "h", + "seriesOverrides": [], + "spaceLength": 10, + "stack": true, + "steppedLine": false, + "targets": [ + { + "alias": "$tag_msg_trace_metric", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "name" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "nuodb_msgtrace", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT LAST(N) FROM (SELECT time,mean(\"totalTimeStalls\") AS M, mean(\"numStalls\") AS N,mean(\"totalSumStalls\") AS S FROM \"nuodb_msgtrace\" WHERE (\"msg_trace_metric\" =~ /^$metric$/ AND \"dbname\" =~ /^$database$/ AND \"id\" =~ /^$listeners$/) AND $timeFilter GROUP BY time($__interval), \"msg_trace_metric\" fill(null)) WHERE M/S > $percent AND $timeFilter GROUP BY time($__interval),\"msg_trace_metric\" fill(null)", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "totalTimeStalls" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "id", + "operator": "=~", + "value": "/^$listeners$/" + } + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Node $listeners Listener", + "tooltip": { + "shared": true, + "sort": 2, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:156", + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "$$hashKey": "object:157", + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + } + ], + "refresh": "30s", + "schemaVersion": 26, + "style": "dark", + "tags": [ + "nuodb" + ], + "templating": { + "list": [ + { + "auto": true, + "auto_count": "50", + "auto_min": "30s", + "current": { + "selected": false, + "text": "auto", + "value": "$__auto_interval_interval" + }, + "error": null, + "hide": 0, + "label": "interval", + "name": "interval", + "options": [ + { + "selected": true, + "text": "auto", + "value": "$__auto_interval_interval" + }, + { + "selected": false, + "text": "10s", + "value": "10s" + }, + { + "selected": false, + "text": "30s", + "value": "30s" + }, + { + "selected": false, + "text": "1m", + "value": "1m" + }, + { + "selected": false, + "text": "5m", + "value": "5m" + }, + { + "selected": false, + "text": "10m", + "value": "10m" + }, + { + "selected": false, + "text": "30m", + "value": "30m" + }, + { + "selected": false, + "text": "1h", + "value": "1h" + }, + { + "selected": false, + "text": "6h", + "value": "6h" + }, + { + "selected": false, + "text": "12h", + "value": "12h" + }, + { + "selected": false, + "text": "1d", + "value": "1d" + }, + { + "selected": false, + "text": "7d", + "value": "7d" + }, + { + "selected": false, + "text": "14d", + "value": "14d" + }, + { + "selected": false, + "text": "30d", + "value": "30d" + } + ], + "query": "10s,30s,1m,5m,10m,30m,1h,6h,12h,1d,7d,14d,30d", + "queryValue": "", + "refresh": 2, + "skipUrlSync": false, + "type": "interval" + }, + { + "allValue": null, + "current": { + "selected": false, + "text": "", + "value": "" + }, + "datasource": "nuodb_internal", + "error": null, + "hide": 0, + "includeAll": false, + "label": "db", + "multi": false, + "name": "database", + "options": [], + "query": "select distinct(\"dbname\") from (select first(numStalls) from \"nuodb_msgtrace\" where $timeFilter GROUP BY \"dbname\")", + "refresh": 2, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": null, + "current": { + "selected": false, + "text": "All", + "value": "$__all" + }, + "datasource": "nuodb_internal", + "error": null, + "hide": 0, + "includeAll": true, + "label": "host", + "multi": true, + "name": "host", + "options": [], + "query": "select distinct(\"host\") from (select first(numStalls) from \"nuodb_msgtrace\" where $timeFilter AND \"dbname\" =~ /^$database$/ GROUP BY \"host\")", + "refresh": 2, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": ".*", + "current": { + "selected": true, + "tags": [], + "text": [], + "value": [] + }, + "datasource": "nuodb_internal", + "definition": "", + "error": null, + "hide": 0, + "includeAll": true, + "label": "listeners", + "multi": true, + "name": "listeners", + "options": [], + "query": "select distinct(\"id\") from (select first(numStalls) from \"nuodb_msgtrace\" where $timeFilter AND \"dbname\" =~ /^$database$/ AND \"host\" =~ /^$host$/ GROUP BY \"id\")", + "refresh": 2, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": ".*", + "current": { + "selected": true, + "text": [ + "All" + ], + "value": [ + "$__all" + ] + }, + "datasource": "nuodb_internal", + "error": null, + "hide": 0, + "includeAll": true, + "label": "metrics", + "multi": true, + "name": "metric", + "options": [], + "query": "SHOW TAG VALUES FROM \"nuodb_msgtrace\" WITH KEY = \"msg_trace_metric\" WHERE \"dbname\" = '$database'", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": null, + "current": { + "selected": true, + "text": "0", + "value": "0" + }, + "error": null, + "hide": 0, + "includeAll": false, + "label": "percentage greater than", + "multi": false, + "name": "percent", + "options": [ + { + "selected": true, + "text": "0", + "value": "0" + }, + { + "selected": false, + "text": ".01", + "value": ".01" + }, + { + "selected": false, + "text": ".05", + "value": ".05" + }, + { + "selected": false, + "text": ".10", + "value": ".10" + }, + { + "selected": false, + "text": ".125", + "value": ".125" + }, + { + "selected": false, + "text": ".20", + "value": ".20" + }, + { + "selected": false, + "text": ".30", + "value": ".30" + }, + { + "selected": false, + "text": ".40", + "value": ".40" + }, + { + "selected": false, + "text": ".50", + "value": ".50" + } + ], + "query": "0,.01,.05,.10,.125,.20,.30,.40,.50", + "queryValue": "", + "skipUrlSync": false, + "type": "custom" + } + ] + }, + "time": { + "from": "now-30m", + "to": "now" + }, + "timepicker": { + "refresh_intervals": [ + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ] + }, + "timezone": "", + "title": "Message Trace", + "uid": "dca22be2-1ee0-4531-916e-4729b03e5103", + "version": 1 +} diff --git a/conf/provisioning/dashboards/nuodb_ext/sync-trace.json b/conf/provisioning/dashboards/nuodb_ext/sync-trace.json new file mode 100644 index 0000000..d715581 --- /dev/null +++ b/conf/provisioning/dashboards/nuodb_ext/sync-trace.json @@ -0,0 +1,826 @@ +{ + "annotations": { + "list": [ + { + "$$hashKey": "object:94", + "builtIn": 1, + "datasource": "-- Grafana --", + "enable": false, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "limit": 100, + "name": "Annotations & Alerts", + "showIn": 0, + "type": "dashboard" + }, + { + "datasource": "-- Grafana --", + "enable": true, + "hide": false, + "iconColor": "rgba(255, 96, 96, 1)", + "limit": 100, + "matchAny": false, + "name": "db annotations", + "showIn": 0, + "tags": [ + "$database" + ], + "type": "tags" + } + ] + }, + "editable": true, + "gnetId": null, + "graphTooltip": 1, + "id": 12, + "iteration": 1613153584729, + "links": [ + { + "$$hashKey": "object:4599", + "asDropdown": true, + "icon": "external link", + "includeVars": true, + "keepTime": true, + "tags": [ + "overview" + ], + "title": "top views", + "type": "dashboards" + }, + { + "$$hashKey": "object:4618", + "asDropdown": true, + "icon": "external link", + "includeVars": true, + "keepTime": true, + "tags": [ + "nuodb" + ], + "title": "nuodb", + "type": "dashboards" + } + ], + "panels": [ + { + "collapsed": false, + "datasource": "nuodb_internal", + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 11, + "panels": [], + "repeat": "nodes", + "title": "Node $nodes", + "type": "row" + }, + { + "aliasColors": {}, + "bars": true, + "dashLength": 10, + "dashes": false, + "datasource": "nuodb_internal", + "fieldConfig": { + "defaults": { + "custom": {}, + "links": [] + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 8, + "w": 8, + "x": 0, + "y": 1 + }, + "hiddenSeries": false, + "id": 9, + "interval": "$interval", + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": false, + "total": false, + "values": false + }, + "lines": false, + "linewidth": 1, + "maxPerRow": 3, + "nullPointMode": "null as zero", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "7.3.2", + "pointradius": 2, + "points": false, + "renderer": "flot", + "repeat": "listeners", + "repeatDirection": "h", + "seriesOverrides": [], + "spaceLength": 10, + "stack": true, + "steppedLine": false, + "targets": [ + { + "alias": "$tag_sync_trace_metric", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "sync_trace_metric" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "nuodb_synctrace", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT LAST(M) FROM (SELECT mean(\"totalTimeStalls\") AS M, mean(\"totalSumStalls\") AS S FROM \"nuodb_synctrace\" WHERE (\"sync_trace_metric\" =~ /^$metric$/ AND \"id\" =~ /^$nodes$/ AND \"host\" =~ /^$host$/ AND \"dbname\" =~ /^$database$/ ) AND $timeFilter GROUP BY time($__interval), \"sync_trace_metric\" fill(null)) WHERE $timeFilter AND M/S > $percent GROUP BY time($__interval),\"sync_trace_metric\" fill(null)", + "rawQuery": true, + "refId": "C", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "totalTimeStalls" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "id", + "operator": "=~", + "value": "/^$nodes$/" + } + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Total Stall Time", + "tooltip": { + "shared": true, + "sort": 2, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:156", + "format": "µs", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "$$hashKey": "object:157", + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": true, + "dashLength": 10, + "dashes": false, + "datasource": "nuodb_internal", + "fieldConfig": { + "defaults": { + "custom": {}, + "links": [] + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 8, + "w": 8, + "x": 8, + "y": 1 + }, + "hiddenSeries": false, + "id": 18, + "interval": "$interval", + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": false, + "total": false, + "values": false + }, + "lines": false, + "linewidth": 1, + "maxPerRow": 3, + "nullPointMode": "null as zero", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "7.3.2", + "pointradius": 2, + "points": false, + "renderer": "flot", + "repeatDirection": "h", + "seriesOverrides": [], + "spaceLength": 10, + "stack": true, + "steppedLine": false, + "targets": [ + { + "alias": "$tag_sync_trace_metric", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "sync_trace_metric" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "nuodb_synctrace", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT LAST(N) FROM (SELECT mean(\"totalTimeStalls\") AS M, mean(\"numStalls\") AS N, mean(\"totalSumStalls\") AS S FROM \"nuodb_synctrace\" WHERE (\"sync_trace_metric\" =~ /^$metric$/ AND \"host\" =~ /^$host$/ AND \"id\" =~ /^$nodes$/ AND \"dbname\" =~ /^$database$/ ) AND $timeFilter GROUP BY time($__interval), \"sync_trace_metric\" fill(null)) WHERE $timeFilter AND M/S > $percent GROUP BY time($__interval),\"sync_trace_metric\" fill(null)", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "totalTimeStalls" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "id", + "operator": "=~", + "value": "/^$nodes$/" + } + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Number of Stalls", + "tooltip": { + "shared": true, + "sort": 2, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:156", + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "$$hashKey": "object:157", + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": true, + "dashLength": 10, + "dashes": false, + "datasource": "nuodb_internal", + "fieldConfig": { + "defaults": { + "custom": {}, + "links": [] + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 8, + "w": 8, + "x": 16, + "y": 1 + }, + "hiddenSeries": false, + "id": 22, + "interval": "$interval", + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": false, + "total": false, + "values": false + }, + "lines": false, + "linewidth": 1, + "maxPerRow": 3, + "nullPointMode": "null as zero", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "7.3.2", + "pointradius": 2, + "points": false, + "renderer": "flot", + "repeatDirection": "h", + "seriesOverrides": [], + "spaceLength": 10, + "stack": true, + "steppedLine": false, + "targets": [ + { + "alias": "$tag_sync_trace_metric", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "sync_trace_metric" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "nuodb_synctrace", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT LAST(M)/LAST(N) FROM (SELECT mean(\"totalTimeStalls\") AS M, mean(\"numStalls\") AS N, mean(\"totalSumStalls\") AS S FROM \"nuodb_synctrace\" WHERE (\"sync_trace_metric\" =~ /^$metric$/ AND \"id\" =~ /^$nodes$/ AND \"host\" =~ /^$host$/ AND \"dbname\" =~ /^$database$/ ) AND $timeFilter GROUP BY time($__interval), \"sync_trace_metric\" fill(null)) WHERE $timeFilter AND M/S > $percent GROUP BY time($__interval),\"sync_trace_metric\" fill(null)", + "rawQuery": true, + "refId": "C", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "totalTimeStalls" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "id", + "operator": "=~", + "value": "/^$nodes$/" + } + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Average Stall Time", + "tooltip": { + "shared": true, + "sort": 2, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:156", + "format": "µs", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "$$hashKey": "object:157", + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + } + ], + "refresh": "30s", + "schemaVersion": 26, + "style": "dark", + "tags": [ + "nuodb" + ], + "templating": { + "list": [ + { + "auto": true, + "auto_count": "50", + "auto_min": "30s", + "current": { + "selected": false, + "text": "auto", + "value": "$__auto_interval_interval" + }, + "error": null, + "hide": 0, + "label": "interval", + "name": "interval", + "options": [ + { + "selected": true, + "text": "auto", + "value": "$__auto_interval_interval" + }, + { + "selected": false, + "text": "30s", + "value": "30s" + }, + { + "selected": false, + "text": "1m", + "value": "1m" + }, + { + "selected": false, + "text": "5m", + "value": "5m" + }, + { + "selected": false, + "text": "10m", + "value": "10m" + }, + { + "selected": false, + "text": "30m", + "value": "30m" + }, + { + "selected": false, + "text": "1h", + "value": "1h" + }, + { + "selected": false, + "text": "6h", + "value": "6h" + }, + { + "selected": false, + "text": "12h", + "value": "12h" + }, + { + "selected": false, + "text": "1d", + "value": "1d" + }, + { + "selected": false, + "text": "7d", + "value": "7d" + }, + { + "selected": false, + "text": "14d", + "value": "14d" + }, + { + "selected": false, + "text": "30d", + "value": "30d" + } + ], + "query": "30s,1m,5m,10m,30m,1h,6h,12h,1d,7d,14d,30d", + "queryValue": "", + "refresh": 2, + "skipUrlSync": false, + "type": "interval" + }, + { + "allValue": null, + "current": { + "selected": false, + "text": "", + "value": "" + }, + "datasource": "nuodb_internal", + "definition": "", + "error": null, + "hide": 0, + "includeAll": false, + "label": "db", + "multi": false, + "name": "database", + "options": [], + "query": "select distinct(\"dbname\") from (select first(numStalls) from \"nuodb_synctrace\" where $timeFilter GROUP BY \"dbname\")", + "refresh": 2, + "regex": ".*", + "skipUrlSync": false, + "sort": 2, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": null, + "current": { + "selected": true, + "tags": [], + "text": [], + "value": [] + }, + "datasource": "nuodb_internal", + "definition": "", + "error": null, + "hide": 0, + "includeAll": true, + "label": "host", + "multi": true, + "name": "host", + "options": [], + "query": "select distinct(\"host\") from (select first(numStalls) from \"nuodb_synctrace\" where $timeFilter AND dbname =~ /^$database$/ GROUP BY \"host\")", + "refresh": 2, + "regex": ".*", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": null, + "current": { + "selected": false, + "text": "All", + "value": "$__all" + }, + "datasource": "nuodb_internal", + "definition": "", + "error": null, + "hide": 0, + "includeAll": true, + "label": "node", + "multi": true, + "name": "nodes", + "options": [], + "query": "select distinct(\"id\") from (select first(numStalls) from \"nuodb_synctrace\" where $timeFilter AND \"host\" =~ /^$host$/ AND \"dbname\" =~ /^$database$/ GROUP BY \"id\")", + "refresh": 2, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": ".*", + "current": { + "selected": false, + "text": "All", + "value": "$__all" + }, + "datasource": "nuodb_internal", + "definition": "SHOW TAG VALUES FROM \"nuodb_synctrace\" WITH KEY = \"sync_trace_metric\" WHERE \"dbname\" =~ /^$database$/", + "error": null, + "hide": 0, + "includeAll": true, + "label": "metrics", + "multi": true, + "name": "metric", + "options": [], + "query": "SHOW TAG VALUES FROM \"nuodb_synctrace\" WITH KEY = \"sync_trace_metric\" WHERE \"dbname\" =~ /^$database$/", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 1, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": null, + "current": { + "selected": false, + "text": "0", + "value": "0" + }, + "error": null, + "hide": 0, + "includeAll": false, + "label": "percentage greater than", + "multi": false, + "name": "percent", + "options": [ + { + "$$hashKey": "object:1302", + "selected": true, + "text": "0", + "value": "0" + }, + { + "$$hashKey": "object:1303", + "selected": false, + "text": "0.01", + "value": "0.01" + }, + { + "$$hashKey": "object:1304", + "selected": false, + "text": "0.05", + "value": "0.05" + }, + { + "$$hashKey": "object:1305", + "selected": false, + "text": ".1", + "value": ".1" + }, + { + "$$hashKey": "object:1306", + "selected": false, + "text": ".2", + "value": ".2" + }, + { + "$$hashKey": "object:1307", + "selected": false, + "text": ".25", + "value": ".25" + }, + { + "$$hashKey": "object:1308", + "selected": false, + "text": ".3", + "value": ".3" + }, + { + "$$hashKey": "object:1309", + "selected": false, + "text": ".4", + "value": ".4" + }, + { + "$$hashKey": "object:1310", + "selected": false, + "text": ".5", + "value": ".5" + } + ], + "query": "0,0.01,0.05,.1,.2,.25,.3,.4,.5", + "skipUrlSync": false, + "type": "custom" + } + ] + }, + "time": { + "from": "now-30m", + "to": "now" + }, + "timepicker": { + "refresh_intervals": [ + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ] + }, + "timezone": "", + "title": "Sync Trace", + "uid": "d55b7d05-7405-4133-a574-f02f34df038f", + "version": 1 +} diff --git a/conf/provisioning/dashboards/nuodb_ext/thread-usage.json b/conf/provisioning/dashboards/nuodb_ext/thread-usage.json new file mode 100644 index 0000000..9be2782 --- /dev/null +++ b/conf/provisioning/dashboards/nuodb_ext/thread-usage.json @@ -0,0 +1,1011 @@ +{ + "annotations": { + "list": [ + { + "$$hashKey": "object:94", + "builtIn": 1, + "datasource": "-- Grafana --", + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "editable": true, + "gnetId": null, + "graphTooltip": 0, + "id": 13, + "iteration": 1607088228128, + "links": [ + { + "$$hashKey": "object:1885", + "asDropdown": true, + "icon": "external link", + "includeVars": true, + "keepTime": true, + "tags": [ + "overview" + ], + "title": "top views", + "type": "dashboards" + }, + { + "$$hashKey": "object:1904", + "asDropdown": true, + "icon": "external link", + "includeVars": true, + "keepTime": true, + "tags": [ + "nuodb" + ], + "title": "nuodb", + "type": "dashboards" + } + ], + "panels": [ + { + "aliasColors": {}, + "bars": true, + "dashLength": 10, + "dashes": false, + "datasource": "nuodb_internal", + "fieldConfig": { + "defaults": { + "custom": {}, + "links": [] + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 9, + "w": 24, + "x": 0, + "y": 0 + }, + "hiddenSeries": false, + "id": 4, + "interval": "$interval", + "legend": { + "avg": false, + "current": false, + "hideEmpty": true, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false + }, + "lines": false, + "linewidth": 1, + "nullPointMode": "null as zero", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "7.3.2", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": true, + "steppedLine": false, + "targets": [ + { + "alias": "$tag_host:$tag_exe", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "threadid" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "limit": "", + "measurement": "nuodb_thread", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"ttime\") FROM \"nuodb_thread\" WHERE (\"ttime\" > $min) AND $timeFilter GROUP BY time($__interval), \"threadid\", \"exe\",\"host\" fill(null)", + "rawQuery": true, + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "ttime" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "slimit": "", + "tags": [ + { + "key": "ttime", + "operator": "=", + "value": "$min" + } + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Threads over $min % CPU usage ", + "tooltip": { + "shared": true, + "sort": 2, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:2381", + "decimals": 2, + "format": "percent", + "label": null, + "logBase": 1, + "max": null, + "min": "0", + "show": true + }, + { + "$$hashKey": "object:2382", + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": true, + "dashLength": 10, + "dashes": false, + "datasource": "nuodb_internal", + "fieldConfig": { + "defaults": { + "custom": {}, + "links": [] + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 9, + "w": 24, + "x": 0, + "y": 9 + }, + "hiddenSeries": false, + "id": 5, + "interval": "$interval", + "legend": { + "avg": false, + "current": false, + "hideEmpty": true, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false + }, + "lines": false, + "linewidth": 1, + "nullPointMode": "null as zero", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "7.3.2", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": true, + "steppedLine": false, + "targets": [ + { + "alias": "$tag_host:$tag_exe", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "threadid" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "limit": "", + "measurement": "nuodb_thread", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(\"atime\") FROM (SELECT mean(\"ttime\") AS atime FROM \"nuodb_thread\" WHERE (\"ttime\" > $min) AND $timeFilter GROUP BY time($__interval), \"threadid\", \"exe\",\"host\" fill(null)) WHERE $timeFilter GROUP BY time($__interval), \"exe\", \"host\"", + "rawQuery": true, + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "ttime" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "slimit": "", + "tags": [ + { + "key": "ttime", + "operator": "=", + "value": "$min" + } + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "CPU usage by thread type", + "tooltip": { + "shared": true, + "sort": 2, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:2381", + "decimals": 2, + "format": "percent", + "label": null, + "logBase": 1, + "max": null, + "min": "0", + "show": true + }, + { + "$$hashKey": "object:2382", + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": true, + "dashLength": 10, + "dashes": false, + "datasource": "nuodb_internal", + "fieldConfig": { + "defaults": { + "custom": {}, + "links": [] + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 8, + "w": 8, + "x": 0, + "y": 18 + }, + "hiddenSeries": false, + "id": 7, + "interval": "$interval", + "legend": { + "avg": false, + "current": false, + "hideEmpty": true, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false + }, + "lines": false, + "linewidth": 1, + "nullPointMode": "null as zero", + "options": { + "alertThreshold": true + }, + "percentage": true, + "pluginVersion": "7.3.2", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": true, + "steppedLine": false, + "targets": [ + { + "alias": "$tag_host:$tag_exe", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "threadid" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "limit": "", + "measurement": "nuodb_thread", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(\"atime\") FROM (SELECT mean(\"ttime\") AS atime FROM \"nuodb_thread\" WHERE (\"ttime\" > $min) AND $timeFilter GROUP BY time($__interval), \"threadid\", \"exe\",\"host\" fill(null)) WHERE $timeFilter GROUP BY time($__interval), \"exe\", \"host\"", + "rawQuery": true, + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "ttime" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "slimit": "", + "tags": [ + { + "key": "ttime", + "operator": "=", + "value": "$min" + } + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "percentage of CPU by thread type", + "tooltip": { + "shared": true, + "sort": 2, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:2381", + "decimals": 2, + "format": "percent", + "label": null, + "logBase": 1, + "max": null, + "min": "0", + "show": true + }, + { + "$$hashKey": "object:2382", + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": true, + "dashLength": 10, + "dashes": false, + "datasource": "nuodb_internal", + "fieldConfig": { + "defaults": { + "custom": {}, + "links": [] + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 8, + "w": 8, + "x": 8, + "y": 18 + }, + "hiddenSeries": false, + "id": 8, + "interval": "$interval", + "legend": { + "avg": false, + "current": false, + "hideEmpty": true, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false + }, + "lines": false, + "linewidth": 1, + "nullPointMode": "null as zero", + "options": { + "alertThreshold": true + }, + "percentage": true, + "pluginVersion": "7.3.2", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": true, + "steppedLine": false, + "targets": [ + { + "alias": "$tag_host:$tag_exe", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "threadid" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "limit": "", + "measurement": "nuodb_thread", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(\"atime\") FROM (SELECT mean(\"utime\") AS atime FROM \"nuodb_thread\" WHERE (\"ttime\" > $min) AND $timeFilter GROUP BY time($__interval), \"threadid\", \"exe\",\"host\" fill(null)) WHERE $timeFilter GROUP BY time($__interval), \"exe\", \"host\"", + "rawQuery": true, + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "ttime" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "slimit": "", + "tags": [ + { + "key": "ttime", + "operator": "=", + "value": "$min" + } + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "percentage of user CPU by thread type", + "tooltip": { + "shared": true, + "sort": 2, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:2381", + "decimals": 2, + "format": "percent", + "label": null, + "logBase": 1, + "max": null, + "min": "0", + "show": true + }, + { + "$$hashKey": "object:2382", + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": true, + "dashLength": 10, + "dashes": false, + "datasource": "nuodb_internal", + "fieldConfig": { + "defaults": { + "custom": {}, + "links": [] + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 8, + "w": 8, + "x": 16, + "y": 18 + }, + "hiddenSeries": false, + "id": 6, + "interval": "$interval", + "legend": { + "avg": false, + "current": false, + "hideEmpty": true, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false + }, + "lines": false, + "linewidth": 1, + "nullPointMode": "null as zero", + "options": { + "alertThreshold": true + }, + "percentage": true, + "pluginVersion": "7.3.2", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": true, + "steppedLine": false, + "targets": [ + { + "alias": "$tag_host:$tag_exe", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "threadid" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "limit": "", + "measurement": "nuodb_thread", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(\"atime\") FROM (SELECT mean(\"stime\") AS atime FROM \"nuodb_thread\" WHERE (\"ttime\" > $min) AND $timeFilter GROUP BY time($__interval), \"threadid\", \"exe\",\"host\" fill(null)) WHERE $timeFilter GROUP BY time($__interval), \"exe\", \"host\"", + "rawQuery": true, + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "ttime" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "slimit": "", + "tags": [ + { + "key": "ttime", + "operator": "=", + "value": "$min" + } + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "percentage of system CPU by thread type", + "tooltip": { + "shared": true, + "sort": 2, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:2381", + "decimals": 2, + "format": "percent", + "label": null, + "logBase": 1, + "max": null, + "min": "0", + "show": true + }, + { + "$$hashKey": "object:2382", + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + } + ], + "refresh": "10s", + "schemaVersion": 26, + "style": "dark", + "tags": [ + "nuodb" + ], + "templating": { + "list": [ + { + "auto": true, + "auto_count": "50", + "auto_min": "10s", + "current": { + "selected": false, + "text": "auto", + "value": "$__auto_interval_interval" + }, + "error": null, + "hide": 0, + "label": "interval", + "name": "interval", + "options": [ + { + "selected": true, + "text": "auto", + "value": "$__auto_interval_interval" + }, + { + "selected": false, + "text": "10s", + "value": "10s" + }, + { + "selected": false, + "text": "15s", + "value": "15s" + }, + { + "selected": false, + "text": "30s", + "value": "30s" + }, + { + "selected": false, + "text": "1m", + "value": "1m" + }, + { + "selected": false, + "text": "5m", + "value": "5m" + }, + { + "selected": false, + "text": "10m", + "value": "10m" + }, + { + "selected": false, + "text": "30m", + "value": "30m" + }, + { + "selected": false, + "text": "1h", + "value": "1h" + }, + { + "selected": false, + "text": "6h", + "value": "6h" + }, + { + "selected": false, + "text": "12h", + "value": "12h" + }, + { + "selected": false, + "text": "1d", + "value": "1d" + }, + { + "selected": false, + "text": "7d", + "value": "7d" + }, + { + "selected": false, + "text": "14d", + "value": "14d" + }, + { + "selected": false, + "text": "30d", + "value": "30d" + } + ], + "query": "10s,15s,30s,1m,5m,10m,30m,1h,6h,12h,1d,7d,14d,30d", + "queryValue": "", + "refresh": 2, + "skipUrlSync": false, + "type": "interval" + }, + { + "datasource": "nuodb_internal", + "error": null, + "filters": [], + "hide": 0, + "label": "Filter", + "name": "filter", + "skipUrlSync": false, + "type": "adhoc" + }, + { + "allValue": null, + "current": { + "selected": false, + "tags": [], + "text": "0", + "value": "0" + }, + "error": null, + "hide": 0, + "includeAll": false, + "label": "cpu", + "multi": false, + "name": "min", + "options": [ + { + "$$hashKey": "object:2488", + "selected": true, + "text": "0", + "value": "0" + }, + { + "$$hashKey": "object:2489", + "selected": false, + "text": "10", + "value": "10" + }, + { + "$$hashKey": "object:2490", + "selected": false, + "text": "20", + "value": "20" + }, + { + "$$hashKey": "object:2491", + "selected": false, + "text": "25", + "value": "25" + }, + { + "$$hashKey": "object:2492", + "selected": false, + "text": "30", + "value": "30" + }, + { + "$$hashKey": "object:2493", + "selected": false, + "text": "50", + "value": "50" + }, + { + "$$hashKey": "object:2494", + "selected": false, + "text": "75", + "value": "75" + }, + { + "$$hashKey": "object:2495", + "selected": false, + "text": "80", + "value": "80" + }, + { + "$$hashKey": "object:2496", + "selected": false, + "text": "90", + "value": "90" + }, + { + "$$hashKey": "object:2497", + "selected": false, + "text": "95", + "value": "95" + } + ], + "query": "0,10,20,25,30,50,75,80,90,95", + "skipUrlSync": false, + "type": "custom" + } + ] + }, + "time": { + "from": "now-15m", + "to": "now" + }, + "timepicker": { + "refresh_intervals": [ + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ] + }, + "timezone": "", + "title": "Thread Usage", + "uid": "f5578273-7092-4271-a2e8-a8ecfb943195", + "version": 1 +} diff --git a/conf/provisioning/datasources/nuodb.yaml b/conf/provisioning/datasources/nuodb.yaml index 0f7d9e3..ac3c0eb 100644 --- a/conf/provisioning/datasources/nuodb.yaml +++ b/conf/provisioning/datasources/nuodb.yaml @@ -18,7 +18,7 @@ datasources: url: http://${INFLUX_HOST}:8086 user: '' withCredentials: false -- name: nuodb_internal +- name: nuodb_internal access: proxy basicAuth: false basicAuthPassword: '' @@ -34,4 +34,46 @@ datasources: url: http://${INFLUX_HOST}:8086 user: '' withCredentials: false +- orgId: 1 + name: client + type: influxdb + typeName: InfluxDB + typeLogoUrl: public/app/plugins/datasource/influxdb/img/influxdb_logo.svg + access: proxy + url: http://${INFLUX_HOST}:8086 + user: "" + database: "" + basicAuth: false + isDefault: false + jsonData: + dbName: client + readOnly: false +- orgId: 1 + name: SQL + type: marcusolsson-json-datasource + typeName: JSON API + typeLogoUrl: public/plugins/marcusolsson-json-datasource/img/logo.svg + access: proxy + url: http://${DBPROXY_HOST}:3003 + user: "" + database: "" + basicAuth: false + isDefault: false + jsonData: {} + readOnly: false +- orgId: 1 + name: Loki + type: loki + typeName: Loki + typeLogoUrl: public/app/plugins/datasource/loki/img/loki_icon.svg + access: proxy + url: http://${LOKI_HOST}:3100 + user: "" + database: "" + basicAuth: false + isDefault: false + jsonData: + manageAlerts: false + readOnly: false + diff --git a/stable/insights/templates/nuocd-config.yaml b/stable/insights/templates/nuocd-config.yaml index 04053ce..866c7c1 100644 --- a/stable/insights/templates/nuocd-config.yaml +++ b/stable/insights/templates/nuocd-config.yaml @@ -31,6 +31,20 @@ data: ## If not provided, will default to 5s. 0s means no timeout (not recommended). timeout = "5s" {{- end }} + +{{- if .Values.insights.nuocollector.extensions }} +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: nuocollector-{{ $.Release.Name }}-extensions + namespace: {{ $.Release.Namespace }} + labels: + "nuodb.com/nuocollector-plugin": "insights" +data: + {{- toYaml .Values.insights.nuocollector.extensions | nindent 2 }} +{{- end }} + {{ end }} {{ end }} {{- end }} diff --git a/stable/insights/values.yaml b/stable/insights/values.yaml index c3dec16..cf6c3aa 100644 --- a/stable/insights/values.yaml +++ b/stable/insights/values.yaml @@ -53,3 +53,4 @@ insights: # enabled: false - will not setup NuoDB Collector configuration; set to false when starting grafana and insights # only - say in a different namespace. enabled: true + extensions: {} \ No newline at end of file