From f7bb77f8be110b139605d2abbf7a1c3339d7e779 Mon Sep 17 00:00:00 2001 From: Dirk Butson Date: Wed, 29 Jun 2022 09:15:31 -0400 Subject: [PATCH 01/14] add ability to add additional nuocollector scripts. --- stable/insights/templates/nuocd-config.yaml | 14 ++++++++++++++ stable/insights/values.yaml | 1 + 2 files changed, 15 insertions(+) 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 From bad7807de57920bf83499787ffbd7951177471db Mon Sep 17 00:00:00 2001 From: Dirk Butson Date: Wed, 26 Jul 2023 16:51:40 -0400 Subject: [PATCH 02/14] added nuodb_client --- conf/provisioning/dashboards/nuodb.yaml | 11 + .../dashboards/nuodb_client/client-msgs.json | 450 ++ .../nuodb_client/sql-statement-details.json | 332 + .../sql-statement-executions.json | 557 ++ .../nuodb_client/sql-statement-indexes.json | 638 ++ .../sql-statement-operations.json | 556 ++ .../nuodb_client/sql-statement-records.json | 587 ++ .../nuodb_client/sql-statements.json | 5540 +++++++++++++++++ 8 files changed, 8671 insertions(+) create mode 100644 conf/provisioning/dashboards/nuodb_client/client-msgs.json create mode 100644 conf/provisioning/dashboards/nuodb_client/sql-statement-details.json create mode 100644 conf/provisioning/dashboards/nuodb_client/sql-statement-executions.json create mode 100644 conf/provisioning/dashboards/nuodb_client/sql-statement-indexes.json create mode 100644 conf/provisioning/dashboards/nuodb_client/sql-statement-operations.json create mode 100644 conf/provisioning/dashboards/nuodb_client/sql-statement-records.json create mode 100644 conf/provisioning/dashboards/nuodb_client/sql-statements.json 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_client/client-msgs.json b/conf/provisioning/dashboards/nuodb_client/client-msgs.json new file mode 100644 index 0000000..5b8fdbf --- /dev/null +++ b/conf/provisioning/dashboards/nuodb_client/client-msgs.json @@ -0,0 +1,450 @@ +{ + "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": 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": "marcusolsson-json-datasource", + "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "super-light-blue", + "mode": "fixed" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "color-text" + }, + "inspect": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "TypeGroup" + }, + "properties": [ + { + "id": "custom.width", + "value": 131 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "MsgType" + }, + "properties": [ + { + "id": "custom.width", + "value": 253 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Count" + }, + "properties": [ + { + "id": "custom.width", + "value": 118 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Duration" + }, + "properties": [ + { + "id": "unit", + "value": "µs" + } + ] + } + ] + }, + "gridPos": { + "h": 24, + "w": 12, + "x": 0, + "y": 0 + }, + "id": 10, + "maxPerRow": 2, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": true + }, + "frameIndex": 1, + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "10.0.2", + "repeat": "host", + "repeatDirection": "h", + "targets": [ + { + "body": "\"select TYPE,\\\"GROUP\\\",COUNT,DURATION from system.localclientmessages order by DURATION desc\"", + "cacheDurationSeconds": 0, + "datasource": { + "type": "marcusolsson-json-datasource", + "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" + }, + "fields": [ + { + "jsonPath": "$.rows[*][0]", + "name": "MsgType", + "type": "string" + }, + { + "jsonPath": "$.rows[*][1]", + "language": "jsonpath", + "name": "TypeGroup" + }, + { + "jsonPath": "$.rows[*][2]", + "language": "jsonpath", + "name": "Count" + }, + { + "jsonPath": "$.rows[*][3]", + "language": "jsonpath", + "name": "Duration" + } + ], + "method": "POST", + "params": [ + [ + "dbname", + "$database" + ], + [ + "hostname", + "$host" + ] + ], + "queryParams": "", + "refId": "A", + "urlPath": "/query" + } + ], + "title": "Client Messages ($host)", + "type": "table" + } + ], + "refresh": "30s", + "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": [ + "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 + } + ] + }, + "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": "Client Messages", + "uid": "z35SM6j4z", + "version": 16, + "weekStart": "" +} \ No newline at end of file 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..4c547f4 --- /dev/null +++ b/conf/provisioning/dashboards/nuodb_client/sql-statement-details.json @@ -0,0 +1,332 @@ +{ + "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": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Values" + }, + "properties": [ + { + "id": "custom.inspect", + "value": true + } + ] + } + ] + }, + "gridPos": { + "h": 13, + "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": [ + { + "desc": true, + "displayName": "A" + } + ] + }, + "pluginVersion": "10.0.2", + "repeat": "host", + "repeatDirection": "v", + "targets": [ + { + "body": "select * from system.localstatementcache where ID='$id'", + "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": true, + "text": "", + "value": "" + } + ], + "query": "", + "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": 11, + "weekStart": "" +} \ No newline at end of file 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..e11f0c4 --- /dev/null +++ b/conf/provisioning/dashboards/nuodb_client/sql-statement-executions.json @@ -0,0 +1,557 @@ +{ + "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": "marcusolsson-json-datasource", + "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "super-light-blue", + "mode": "fixed" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "color-text" + }, + "filterable": false, + "inspect": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "µs" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "ID" + }, + "properties": [ + { + "id": "custom.hidden", + "value": true + }, + { + "id": "unit", + "value": "string" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "NumExecutes" + }, + "properties": [ + { + "id": "unit", + "value": "none" + }, + { + "id": "custom.width", + "value": 118 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "ExecTime" + }, + "properties": [ + { + "id": "custom.width", + "value": 101 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "CompileTime" + }, + "properties": [ + { + "id": "custom.width", + "value": 107 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "MinExecTime" + }, + "properties": [ + { + "id": "custom.width", + "value": 106 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "AvgExecTime" + }, + "properties": [ + { + "id": "custom.width", + "value": 108 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "MaxExecTime" + }, + "properties": [ + { + "id": "custom.width", + "value": 115 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "LastExecuted" + }, + "properties": [ + { + "id": "custom.width", + "value": 175 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "SqlString" + }, + "properties": [ + { + "id": "links", + "value": [ + { + "title": "Detals", + "url": "/d/f13dbb76-dc2a-42b9-af72-88700f6857b8/sql-statement-details?var-id=${__data.fields.ID}&${host:queryparam}" + } + ] + } + ] + } + ] + }, + "gridPos": { + "h": 12, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 10, + "interval": "$interval", + "maxPerRow": 2, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "enablePagination": false, + "fields": [ + "EXECTIME", + "COMPILETIME" + ], + "reducer": [ + "sum" + ], + "show": false + }, + "frameIndex": 1, + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "10.0.2", + "repeat": "host", + "repeatDirection": "v", + "targets": [ + { + "body": "select LASTEXECUTED\n ,NUMEXECUTES\n ,EXECTIME\n ,COMPILETIME\n ,MINEXECTIME\n ,EXECTIME/NUMEXECUTES AS AVGEXECTIME\n ,MAXEXECTIME\n ,ID\n ,SQLSTRING\n from system.LOCALSTATEMENTCACHE\nwhere LASTEXECUTED > DATE_SUB(NOW(), INTERVAL $__interval_ms/1000 second)", + "cacheDurationSeconds": 0, + "datasource": { + "type": "marcusolsson-json-datasource", + "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" + }, + "fields": [ + { + "jsonPath": "$.rows[*][0]", + "name": "LastExecuted", + "type": "time" + }, + { + "jsonPath": "$.rows[*][1]", + "language": "jsonpath", + "name": "NumExecutes" + }, + { + "jsonPath": "$.rows[*][2]", + "language": "jsonpath", + "name": "ExecTime" + }, + { + "jsonPath": "$.rows[*][3]", + "language": "jsonpath", + "name": "CompileTime" + }, + { + "jsonPath": "$.rows[*][4]", + "language": "jsonpath", + "name": "MinExecTime" + }, + { + "jsonPath": "$.rows[*][5]", + "language": "jsonpath", + "name": "AvgExecTime" + }, + { + "jsonPath": "$.rows[*][6]", + "language": "jsonpath", + "name": "MaxExecTime" + }, + { + "jsonPath": "$.rows[*][7]", + "language": "jsonpath", + "name": "ID", + "type": "string" + }, + { + "jsonPath": "$.rows[*][8]", + "language": "jsonpath", + "name": "SqlString" + } + ], + "method": "POST", + "params": [ + [ + "dbname", + "$database" + ], + [ + "hostname", + "$host" + ] + ], + "queryParams": "", + "refId": "A", + "urlPath": "/query" + } + ], + "title": "Statement Executions ($host)", + "type": "table" + } + ], + "refresh": "30s", + "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": 22, + "weekStart": "" +} \ No newline at end of file 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..4d6fb8a --- /dev/null +++ b/conf/provisioning/dashboards/nuodb_client/sql-statement-indexes.json @@ -0,0 +1,638 @@ +{ + "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": 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": [ + "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": "#C0D8FF", + "mode": "fixed" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "color-text" + }, + "inspect": false + }, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "ID" + }, + "properties": [ + { + "id": "custom.hidden", + "value": true + }, + { + "id": "unit", + "value": "string" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "INDEXHITS" + }, + "properties": [ + { + "id": "custom.width", + "value": 97 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "INDEXFETCHES" + }, + "properties": [ + { + "id": "custom.width", + "value": 128 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "EXHAUSTIVEFETCHES" + }, + "properties": [ + { + "id": "custom.width", + "value": 169 + }, + { + "id": "displayName", + "value": "TABLEFETCHES" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "INDEXBATCHFETCHES" + }, + "properties": [ + { + "id": "custom.width", + "value": 203 + }, + { + "id": "displayName", + "value": "#INDEXSCANS" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "#INDEXSCANS" + }, + "properties": [ + { + "id": "custom.width", + "value": 120 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "TABLEFETCHES" + }, + "properties": [ + { + "id": "custom.width", + "value": 128 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "NUMEXECUTES" + }, + "properties": [ + { + "id": "custom.width", + "value": 129 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "LASTEXECUTED" + }, + "properties": [ + { + "id": "custom.width", + "value": 176 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "EXHAUSTIVEBATCHFETCHES" + }, + "properties": [ + { + "id": "custom.width", + "value": 120 + }, + { + "id": "displayName", + "value": "#TABLESCANS" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "SQLSTRING" + }, + "properties": [ + { + "id": "custom.inspect", + "value": true + }, + { + "id": "links", + "value": [ + { + "title": "Statement Details", + "url": "/d/f13dbb76-dc2a-42b9-af72-88700f6857b8/sql-statement-details?var-id=${__data.fields.ID}&${host:queryparam}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "EXECTIME" + }, + "properties": [ + { + "id": "custom.width", + "value": 97 + }, + { + "id": "custom.hidden" + }, + { + "id": "unit", + "value": "µs" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "REJECTEDINDEXHITS" + }, + "properties": [ + { + "id": "custom.width", + "value": 88 + }, + { + "id": "displayName", + "value": "REJECTED" + } + ] + } + ] + }, + "gridPos": { + "h": 12, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 10, + "interval": "$interval", + "maxPerRow": 2, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": true + }, + "frameIndex": 1, + "showHeader": true, + "sortBy": [ + { + "desc": true, + "displayName": "NUMEXECUTES" + } + ] + }, + "pluginVersion": "10.0.2", + "repeat": "host", + "repeatDirection": "v", + "targets": [ + { + "body": "select LASTEXECUTED,\n NUMEXECUTES,\n EXECTIME,\n INDEXHITS,\n REJECTEDINDEXHITS,\n INDEXFETCHES,\n EXHAUSTIVEFETCHES,\n INDEXBATCHFETCHES,\n EXHAUSTIVEBATCHFETCHES,\n SQLSTRING,\n ID\n from system.LOCALSTATEMENTCACHE\n where LASTEXECUTED > DATE_SUB(now(), INTERVAL $__interval_ms/1000 second)", + "cacheDurationSeconds": 0, + "datasource": { + "type": "marcusolsson-json-datasource", + "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" + }, + "fields": [ + { + "jsonPath": "$.rows[*][0]", + "name": "LASTEXECUTED", + "type": "time" + }, + { + "jsonPath": "$.rows[*][1]", + "language": "jsonpath", + "name": "NUMEXECUTES" + }, + { + "jsonPath": "$.rows[*][2]", + "language": "jsonpath", + "name": "EXECTIME" + }, + { + "jsonPath": "$.rows[*][3]", + "language": "jsonpath", + "name": "INDEXHITS" + }, + { + "jsonPath": "$.rows[*][4]", + "language": "jsonpath", + "name": "REJECTEDINDEXHITS" + }, + { + "jsonPath": "$.rows[*][5]", + "language": "jsonpath", + "name": "INDEXFETCHES" + }, + { + "jsonPath": "$.rows[*][6]", + "language": "jsonpath", + "name": "EXHAUSTIVEFETCHES" + }, + { + "jsonPath": "$.rows[*][7]", + "language": "jsonpath", + "name": "INDEXBATCHFETCHES" + }, + { + "jsonPath": "$.rows[*][8]", + "language": "jsonpath", + "name": "EXHAUSTIVEBATCHFETCHES" + }, + { + "jsonPath": "$.rows[*][9]", + "language": "jsonpath", + "name": "SQLSTRING", + "type": "string" + }, + { + "jsonPath": "$.rows[*][10]", + "language": "jsonpath", + "name": "ID", + "type": "string" + } + ], + "method": "POST", + "params": [ + [ + "dbname", + "$database" + ], + [ + "hostname", + "$host" + ] + ], + "queryParams": "", + "refId": "A", + "urlPath": "/query" + } + ], + "title": "Number Rows Returned/Updated ($host)", + "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 + } + ] + }, + "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 Indexes", + "uid": "c5af0e56-adeb-4e24-aab3-427e225c0559", + "version": 10, + "weekStart": "" +} \ No newline at end of file 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..e02a1ea --- /dev/null +++ b/conf/provisioning/dashboards/nuodb_client/sql-statement-operations.json @@ -0,0 +1,556 @@ +{ + "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": 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": true, + "keepTime": true, + "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": "super-light-blue", + "mode": "fixed" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "color-text" + }, + "inspect": false + }, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "ID" + }, + "properties": [ + { + "id": "custom.hidden", + "value": true + }, + { + "id": "unit", + "value": "string" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "INSERTS" + }, + "properties": [ + { + "id": "custom.width", + "value": 107 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "RECORDSRETURNED" + }, + "properties": [ + { + "id": "custom.width", + "value": 163 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "UPDATES" + }, + "properties": [ + { + "id": "custom.width", + "value": 99 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "DELETIONS" + }, + "properties": [ + { + "id": "custom.width", + "value": 100 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "REPLACES" + }, + "properties": [ + { + "id": "custom.width", + "value": 95 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "SQLSTRING" + }, + "properties": [ + { + "id": "custom.cellOptions", + "value": { + "type": "color-text" + } + }, + { + "id": "links", + "value": [ + { + "targetBlank": false, + "title": "show details", + "url": "/d/f13dbb76-dc2a-42b9-af72-88700f6857b8/sql-statement-details?var-id=${__data.fields.ID}&${host:queryparam}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "NUMEXECUTES" + }, + "properties": [ + { + "id": "custom.width", + "value": 127 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "LASTEXECUTED" + }, + "properties": [ + { + "id": "custom.width", + "value": 172 + } + ] + } + ] + }, + "gridPos": { + "h": 12, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 10, + "interval": "$interval", + "maxPerRow": 2, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": true + }, + "frameIndex": 1, + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "10.0.2", + "repeat": "host", + "repeatDirection": "v", + "targets": [ + { + "body": "select LASTEXECUTED\n ,NUMEXECUTES\n ,RECORDSRETURNED\n ,INSERTS\n ,UPDATES\n ,DELETIONS\n ,REPLACES\n ,SQLSTRING\n ,ID\n from system.LOCALSTATEMENTCACHE\n where LASTEXECUTED > DATE_SUB(now(), INTERVAL $__interval_ms/1000 second)\n", + "cacheDurationSeconds": 0, + "datasource": { + "type": "marcusolsson-json-datasource", + "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" + }, + "fields": [ + { + "jsonPath": "$.rows[*][0]", + "name": "LASTEXECUTED", + "type": "time" + }, + { + "jsonPath": "$.rows[*][1]", + "language": "jsonpath", + "name": "NUMEXECUTES" + }, + { + "jsonPath": "$.rows[*][2]", + "language": "jsonpath", + "name": "RECORDSRETURNED" + }, + { + "jsonPath": "$.rows[*][3]", + "language": "jsonpath", + "name": "INSERTS" + }, + { + "jsonPath": "$.rows[*][4]", + "language": "jsonpath", + "name": "UPDATES" + }, + { + "jsonPath": "$.rows[*][5]", + "language": "jsonpath", + "name": "DELETIONS" + }, + { + "jsonPath": "$.rows[*][6]", + "language": "jsonpath", + "name": "REPLACES" + }, + { + "jsonPath": "$.rows[*][7]", + "language": "jsonpath", + "name": "SQLSTRING" + }, + { + "jsonPath": "$.rows[*][8]", + "language": "jsonpath", + "name": "ID", + "type": "string" + } + ], + "method": "POST", + "params": [ + [ + "dbname", + "$database" + ], + [ + "hostname", + "$host" + ] + ], + "queryParams": "", + "refId": "A", + "urlPath": "/query" + } + ], + "title": "Number Rows Returned/Updated ($host)", + "type": "table" + } + ], + "refresh": "30s", + "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 Operations", + "uid": "Cp_9O6C4k", + "version": 19, + "weekStart": "" +} \ No newline at end of file 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..377a8ef --- /dev/null +++ b/conf/provisioning/dashboards/nuodb_client/sql-statement-records.json @@ -0,0 +1,587 @@ +{ + "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": 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": "marcusolsson-json-datasource", + "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "#C0D8FF", + "mode": "fixed" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "color-text" + }, + "inspect": false + }, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "ID" + }, + "properties": [ + { + "id": "custom.hidden", + "value": true + }, + { + "id": "unit", + "value": "string" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "LOCKED" + }, + "properties": [ + { + "id": "custom.width", + "value": 115 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "RECORDSFETCHED" + }, + "properties": [ + { + "id": "custom.width", + "value": 137 + }, + { + "id": "displayName", + "value": "FETCHED" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "RECORDSSORTED" + }, + "properties": [ + { + "id": "custom.width", + "value": 169 + }, + { + "id": "displayName", + "value": "SORTED" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "EVICTED" + }, + "properties": [ + { + "id": "custom.width", + "value": 119 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "NUMEXECUTES" + }, + "properties": [ + { + "id": "custom.width", + "value": 129 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "LASTEXECUTED" + }, + "properties": [ + { + "id": "custom.width", + "value": 160 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "SQLSTRING" + }, + "properties": [ + { + "id": "custom.inspect", + "value": true + }, + { + "id": "links", + "value": [ + { + "title": "Statement Details", + "url": "/d/f13dbb76-dc2a-42b9-af72-88700f6857b8/sql-statement-details?var-id=${__data.fields.ID}&${host:queryparam}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "EXECTIME" + }, + "properties": [ + { + "id": "custom.width", + "value": 113 + }, + { + "id": "unit", + "value": "µs" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "SORTED" + }, + "properties": [ + { + "id": "custom.width", + "value": 99 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "RECORDSFETCHED" + }, + "properties": [ + { + "id": "custom.width", + "value": 121 + } + ] + } + ] + }, + "gridPos": { + "h": 12, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 10, + "interval": "$interval", + "maxPerRow": 2, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": true + }, + "frameIndex": 1, + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "10.0.2", + "repeat": "host", + "repeatDirection": "v", + "targets": [ + { + "body": "select LASTEXECUTED\n ,NUMEXECUTES\n ,EXECTIME\n ,RECORDSFETCHED\n ,LOCKED\n ,RECORDSSORTED\n ,EVICTED\n ,SQLSTRING\n ,ID\n from system.LOCALSTATEMENTCACHE\nwhere LASTEXECUTED > DATE_SUB(now(), INTERVAL $__interval_ms / 1000 second)\n\n", + "cacheDurationSeconds": 0, + "datasource": { + "type": "marcusolsson-json-datasource", + "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" + }, + "fields": [ + { + "jsonPath": "$.rows[*][0]", + "name": "LASTEXECUTED", + "type": "time" + }, + { + "jsonPath": "$.rows[*][1]", + "language": "jsonpath", + "name": "NUMEXECUTES" + }, + { + "jsonPath": "$.rows[*][2]", + "language": "jsonpath", + "name": "EXECTIME" + }, + { + "jsonPath": "$.rows[*][3]", + "language": "jsonpath", + "name": "RECORDSFETCHED" + }, + { + "jsonPath": "$.rows[*][4]", + "language": "jsonpath", + "name": "LOCKED" + }, + { + "jsonPath": "$.rows[*][5]", + "language": "jsonpath", + "name": "RECORDSSORTED" + }, + { + "jsonPath": "$.rows[*][6]", + "language": "jsonpath", + "name": "EVICTED" + }, + { + "jsonPath": "$.rows[*][7]", + "language": "jsonpath", + "name": "SQLSTRING" + }, + { + "jsonPath": "$.rows[*][8]", + "language": "jsonpath", + "name": "ID", + "type": "string" + } + ], + "method": "POST", + "params": [ + [ + "dbname", + "$database" + ], + [ + "hostname", + "$host" + ] + ], + "queryParams": "", + "refId": "A", + "urlPath": "/query" + } + ], + "title": "Records ($host)", + "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 + } + ] + }, + "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 Records", + "uid": "f1af96f4-c6b6-4813-9cab-39bda6df0650", + "version": 8, + "weekStart": "" +} \ No newline at end of file diff --git a/conf/provisioning/dashboards/nuodb_client/sql-statements.json b/conf/provisioning/dashboards/nuodb_client/sql-statements.json new file mode 100644 index 0000000..bfea316 --- /dev/null +++ b/conf/provisioning/dashboards/nuodb_client/sql-statements.json @@ -0,0 +1,5540 @@ +{ + "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": "red", + "name": "db annotations", + "target": { + "limit": 100, + "matchAny": true, + "tags": [ + "$database" + ], + "type": "tags" + } + } + ] + }, + "editable": false, + "fiscalYearStartMonth": 0, + "graphTooltip": 1, + "id": 14, + "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": { + "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" + } + }, + "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": { + "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" + } + }, + "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": 9, + "x": 0, + "y": 2 + }, + "hideTimeOverride": true, + "id": 45, + "links": [ + { + "title": "", + "url": "/d/z35SM6j4z/client-messages?${__all_variables}" + } + ], + "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": "palette-classic" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "links": [ + { + "targetBlank": false, + "title": "Details", + "url": "/d/z35SM6j4z/client-messages" + } + ], + "mappings": [], + "unit": "µs" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 9, + "y": 2 + }, + "hideTimeOverride": true, + "id": 52, + "links": [ + { + "targetBlank": false, + "title": "client messages expanded", + "url": "/d/z35SM6j4z/client-messages?${__all_variables}" + } + ], + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "pieType": "pie", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": 12, + "y": 2 + }, + "hideTimeOverride": true, + "id": 54, + "links": [ + { + "title": "Details", + "url": "/d/z35SM6j4z/client-messages?${__all_variables}" + } + ], + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "pieType": "pie", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": 9, + "x": 15, + "y": 2 + }, + "hideTimeOverride": true, + "id": 44, + "links": [ + { + "title": "Details", + "url": "/d/z35SM6j4z/client-messages?${__all_variables}" + } + ], + "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": "Platform", + "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}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "10.0.2", + "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}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "10.0.2", + "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 + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 6, + "y": 8 + }, + "id": 26, + "links": [ + { + "title": "Overview", + "url": "/d/AeBZNz9Vk/nuodb-overview?${__all_variables}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "10.0.2", + "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" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "light-blue", + "value": null + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 9, + "y": 8 + }, + "hideTimeOverride": true, + "id": 27, + "links": [ + { + "title": "Overview", + "url": "/d/AeBZNz9Vk/nuodb-overview?${__all_variables}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "10.0.2", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "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": { + "fixedColor": "semi-dark-yellow", + "mode": "fixed" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "light-blue", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 12, + "y": 8 + }, + "hideTimeOverride": true, + "id": 46, + "links": [ + { + "title": "SQL Dashboard", + "url": "/d/J9fZNkr4z/sql?${__all_variables}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "10.0.2", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "SqlListenerSqlProcTime", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT SUM(R) FROM (SELECT mean(\"rate\") AS R FROM \"Commits\" 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": "Commits", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "light-blue", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 15, + "y": 8 + }, + "hideTimeOverride": true, + "id": 33, + "links": [ + { + "title": "SQL Dashboard", + "url": "/d/J9fZNkr4z/sql?${__all_variables}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "10.0.2", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "Inserts", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"Inserts\" 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": "Inserts", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "light-blue", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 18, + "y": 8 + }, + "hideTimeOverride": true, + "id": 35, + "links": [ + { + "title": "SQL Dashboard", + "url": "/d/J9fZNkr4z/sql?${__all_variables}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "10.0.2", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "Updates", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"Updates\" 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": "Updates", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "light-blue", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 21, + "y": 8 + }, + "hideTimeOverride": true, + "id": 34, + "links": [ + { + "title": "SQL Dashboard", + "url": "/d/J9fZNkr4z/sql?${__all_variables}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "10.0.2", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "Deletes", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"Deletes\" 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": "Deletes", + "type": "stat" + }, + { + "collapsed": false, + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 12 + }, + "id": 23, + "panels": [], + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "refId": "A" + } + ], + "title": "Rows", + "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" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "light-blue", + "value": null + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 6, + "x": 0, + "y": 13 + }, + "hideTimeOverride": true, + "id": 2, + "links": [ + { + "title": "Details by Statement", + "url": "/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}" + } + ], + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "8.3.0", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "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" + } + ] + } + ], + "timeShift": "10s", + "title": "Statements Executed", + "type": "timeseries" + }, + { + "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": 13 + }, + "hideTimeOverride": true, + "id": 38, + "links": [ + { + "title": "Details by Statement", + "url": "/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.2", + "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": 13 + }, + "hideTimeOverride": true, + "id": 29, + "links": [ + { + "title": "Details by Statement", + "url": "/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}" + } + ], + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "pieType": "pie", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": 13 + }, + "hideTimeOverride": true, + "id": 37, + "links": [ + { + "title": "Details by Statement ", + "url": "/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}" + } + ], + "options": { + "displayMode": "basic", + "minVizHeight": 10, + "minVizWidth": 0, + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showUnfilled": false, + "valueMode": "color" + }, + "pluginVersion": "10.0.2", + "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": "bargauge" + }, + { + "collapsed": false, + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 17 + }, + "id": 17, + "panels": [], + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "refId": "A" + } + ], + "title": "Indexes", + "type": "row" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 4, + "x": 0, + "y": 18 + }, + "hideTimeOverride": true, + "id": 10, + "links": [ + { + "title": "Details by Statement", + "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.2", + "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" + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 4, + "x": 4, + "y": 18 + }, + "hideTimeOverride": true, + "id": 12, + "links": [ + { + "title": "Details by Statement", + "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.2", + "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" + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 4, + "x": 8, + "y": 18 + }, + "hideTimeOverride": true, + "id": 15, + "links": [ + { + "title": "Details by Statement", + "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.2", + "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" + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 4, + "x": 12, + "y": 18 + }, + "hideTimeOverride": true, + "id": 13, + "links": [ + { + "title": "Details by Statement", + "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.2", + "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" + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 4, + "x": 16, + "y": 18 + }, + "hideTimeOverride": true, + "id": 11, + "links": [ + { + "title": "Details by Statement", + "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.2", + "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" + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 4, + "x": 20, + "y": 18 + }, + "hideTimeOverride": true, + "id": 14, + "links": [ + { + "title": "Details by Statement", + "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.2", + "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": 22 + }, + "id": 4, + "panels": [], + "repeat": "SQLStatementStats", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "refId": "A" + } + ], + "title": "Records", + "type": "row" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 6, + "x": 0, + "y": 23 + }, + "hideTimeOverride": true, + "id": 20, + "links": [ + { + "title": "Details by Statement", + "url": "/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.2", + "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" + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 6, + "x": 6, + "y": 23 + }, + "hideTimeOverride": true, + "id": 18, + "links": [ + { + "title": "Details by Statement", + "url": "/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.2", + "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" + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 6, + "x": 12, + "y": 23 + }, + "hideTimeOverride": true, + "id": 21, + "links": [ + { + "title": "Details by Statement", + "url": "/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.2", + "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" + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 6, + "x": 18, + "y": 23 + }, + "hideTimeOverride": true, + "id": 36, + "links": [ + { + "title": "Details by Statement", + "url": "/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.2", + "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": "30s", + "schemaVersion": 38, + "style": "dark", + "tags": [ + "overview" + ], + "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": "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": true, + "text": [ + "All" + ], + "value": [ + "$__all" + ] + }, + "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": "SQL Statements", + "uid": "cul4kM9Vz", + "version": 63, + "weekStart": "" +} \ No newline at end of file From b9e2b47368c0b43ab0b2540c6f56fbb9948113e0 Mon Sep 17 00:00:00 2001 From: Dirk Butson Date: Fri, 28 Jul 2023 14:48:37 -0400 Subject: [PATCH 03/14] updated nuodb_client --- .../dashboards/nuodb_client/client-msgs.json | 451 +- .../nuodb_client/log-sql-execute.json | 1 + .../dashboards/nuodb_client/sql-log.json | 1 + .../nuodb_client/sql-statement-details.json | 333 +- .../sql-statement-executions.json | 558 +- .../nuodb_client/sql-statement-indexes.json | 639 +- .../sql-statement-operations.json | 557 +- .../nuodb_client/sql-statement-records.json | 588 +- .../nuodb_client/sql-statements.json | 5541 +---------------- 9 files changed, 9 insertions(+), 8660 deletions(-) create mode 100644 conf/provisioning/dashboards/nuodb_client/log-sql-execute.json create mode 100644 conf/provisioning/dashboards/nuodb_client/sql-log.json diff --git a/conf/provisioning/dashboards/nuodb_client/client-msgs.json b/conf/provisioning/dashboards/nuodb_client/client-msgs.json index 5b8fdbf..ac0147f 100644 --- a/conf/provisioning/dashboards/nuodb_client/client-msgs.json +++ b/conf/provisioning/dashboards/nuodb_client/client-msgs.json @@ -1,450 +1 @@ -{ - "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": 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": "marcusolsson-json-datasource", - "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "super-light-blue", - "mode": "fixed" - }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "color-text" - }, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "none" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "TypeGroup" - }, - "properties": [ - { - "id": "custom.width", - "value": 131 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "MsgType" - }, - "properties": [ - { - "id": "custom.width", - "value": 253 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Count" - }, - "properties": [ - { - "id": "custom.width", - "value": 118 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Duration" - }, - "properties": [ - { - "id": "unit", - "value": "µs" - } - ] - } - ] - }, - "gridPos": { - "h": 24, - "w": 12, - "x": 0, - "y": 0 - }, - "id": 10, - "maxPerRow": 2, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": [ - "sum" - ], - "show": true - }, - "frameIndex": 1, - "showHeader": true, - "sortBy": [] - }, - "pluginVersion": "10.0.2", - "repeat": "host", - "repeatDirection": "h", - "targets": [ - { - "body": "\"select TYPE,\\\"GROUP\\\",COUNT,DURATION from system.localclientmessages order by DURATION desc\"", - "cacheDurationSeconds": 0, - "datasource": { - "type": "marcusolsson-json-datasource", - "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" - }, - "fields": [ - { - "jsonPath": "$.rows[*][0]", - "name": "MsgType", - "type": "string" - }, - { - "jsonPath": "$.rows[*][1]", - "language": "jsonpath", - "name": "TypeGroup" - }, - { - "jsonPath": "$.rows[*][2]", - "language": "jsonpath", - "name": "Count" - }, - { - "jsonPath": "$.rows[*][3]", - "language": "jsonpath", - "name": "Duration" - } - ], - "method": "POST", - "params": [ - [ - "dbname", - "$database" - ], - [ - "hostname", - "$host" - ] - ], - "queryParams": "", - "refId": "A", - "urlPath": "/query" - } - ], - "title": "Client Messages ($host)", - "type": "table" - } - ], - "refresh": "30s", - "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": [ - "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 - } - ] - }, - "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": "Client Messages", - "uid": "z35SM6j4z", - "version": 16, - "weekStart": "" -} \ No newline at end of file +{"meta":{"type":"db","canSave":true,"canEdit":true,"canAdmin":true,"canStar":true,"canDelete":true,"slug":"client-messages","url":"/d/z35SM6j4z/client-messages","expires":"0001-01-01T00:00:00Z","created":"2023-07-21T13:59:27Z","updated":"2023-07-26T20:55:41Z","updatedBy":"Anonymous","createdBy":"admin","version":18,"hasAcl":false,"isFolder":false,"folderId":20,"folderUid":"b7c2a563-48a3-426d-be2b-0f9fffbd8a85","folderTitle":"nuodb_client","folderUrl":"/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client","provisioned":false,"provisionedExternalId":"client-msgs.json","annotationsPermissions":{"dashboard":{"canAdd":true,"canEdit":true,"canDelete":true},"organization":{"canAdd":true,"canEdit":true,"canDelete":true}},"publicDashboardAccessToken":"","publicDashboardUid":"","publicDashboardEnabled":false},"dashboard":{"annotations":{"list":[{"$$hashKey":"object:65","builtIn":1,"datasource":{"type":"datasource","uid":"grafana"},"enable":true,"hide":true,"iconColor":"rgba(0, 211, 255, 1)","name":"Annotations \u0026 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":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":"marcusolsson-json-datasource","uid":"fb12902f-919a-4aa9-89de-398bdfce52df"},"fieldConfig":{"defaults":{"color":{"fixedColor":"super-light-blue","mode":"fixed"},"custom":{"align":"auto","cellOptions":{"type":"color-text"},"inspect":false},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"green","value":null}]},"unit":"none"},"overrides":[{"matcher":{"id":"byName","options":"TypeGroup"},"properties":[{"id":"custom.width","value":131}]},{"matcher":{"id":"byName","options":"MsgType"},"properties":[{"id":"custom.width","value":253}]},{"matcher":{"id":"byName","options":"Count"},"properties":[{"id":"custom.width","value":118}]},{"matcher":{"id":"byName","options":"Duration"},"properties":[{"id":"unit","value":"µs"}]}]},"gridPos":{"h":24,"w":12,"x":0,"y":0},"id":10,"maxPerRow":2,"options":{"cellHeight":"sm","footer":{"countRows":false,"fields":"","reducer":["sum"],"show":true},"frameIndex":1,"showHeader":true,"sortBy":[]},"pluginVersion":"10.0.2","repeat":"host","repeatDirection":"h","targets":[{"body":"\"select TYPE,\\\"GROUP\\\",COUNT,DURATION from system.localclientmessages order by DURATION desc\"","cacheDurationSeconds":0,"datasource":{"type":"marcusolsson-json-datasource","uid":"fb12902f-919a-4aa9-89de-398bdfce52df"},"fields":[{"jsonPath":"$.rows[*][0]","name":"MsgType","type":"string"},{"jsonPath":"$.rows[*][1]","language":"jsonpath","name":"TypeGroup"},{"jsonPath":"$.rows[*][2]","language":"jsonpath","name":"Count"},{"jsonPath":"$.rows[*][3]","language":"jsonpath","name":"Duration"}],"method":"POST","params":[["dbname","$database"],["hostname","$host"]],"queryParams":"","refId":"A","urlPath":"/query"}],"title":"Client Messages ($host)","type":"table"}],"refresh":"30s","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":["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}]},"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":"Client Messages","uid":"z35SM6j4z","version":18,"weekStart":""}} \ No newline at end of file diff --git a/conf/provisioning/dashboards/nuodb_client/log-sql-execute.json b/conf/provisioning/dashboards/nuodb_client/log-sql-execute.json new file mode 100644 index 0000000..86c628c --- /dev/null +++ b/conf/provisioning/dashboards/nuodb_client/log-sql-execute.json @@ -0,0 +1 @@ +{"meta":{"type":"db","canSave":true,"canEdit":true,"canAdmin":true,"canStar":true,"canDelete":true,"slug":"log-sql-execute","url":"/d/f75f6aed-e2e1-4612-9e7a-5412150dca5d/log-sql-execute","expires":"0001-01-01T00:00:00Z","created":"2023-07-27T16:59:17Z","updated":"2023-07-27T18:10:27Z","updatedBy":"admin","createdBy":"admin","version":8,"hasAcl":false,"isFolder":false,"folderId":20,"folderUid":"b7c2a563-48a3-426d-be2b-0f9fffbd8a85","folderTitle":"nuodb_client","folderUrl":"/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client","provisioned":false,"provisionedExternalId":"","annotationsPermissions":{"dashboard":{"canAdd":true,"canEdit":true,"canDelete":true},"organization":{"canAdd":true,"canEdit":true,"canDelete":true}},"publicDashboardAccessToken":"","publicDashboardUid":"","publicDashboardEnabled":false},"dashboard":{"annotations":{"list":[{"$$hashKey":"object:65","builtIn":1,"datasource":{"type":"datasource","uid":"grafana"},"enable":true,"hide":true,"iconColor":"rgba(0, 211, 255, 1)","name":"Annotations \u0026 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":30,"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":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"fieldConfig":{"defaults":{"color":{"mode":"palette-classic"},"custom":{"axisCenteredZero":false,"axisColorMode":"text","axisLabel":"","axisPlacement":"auto","barAlignment":0,"drawStyle":"bars","fillOpacity":0,"gradientMode":"none","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"}},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"green","value":null},{"color":"red","value":80}]}},"overrides":[]},"gridPos":{"h":6,"w":24,"x":0,"y":0},"id":1,"options":{"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"mode":"single","sort":"none"}},"pluginVersion":"10.0.3","targets":[{"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"editorMode":"builder","expr":"{job=\"execution\", stmthash=\"$stmthash\"} | logfmt","key":"Q-603dd6c0-b9ea-47d9-87fa-aa99ec261e9a-0","queryType":"range","refId":"A"}],"title":"Statement $stmthash","transformations":[{"id":"extractFields","options":{"format":"json","jsonPaths":[{"path":"exectime"}],"keepTime":true,"replace":true,"source":"labels"}},{"id":"convertFieldType","options":{"conversions":[{"destinationType":"number","targetField":"exectime"}],"fields":{}}}],"type":"timeseries"},{"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"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":"time"},"properties":[{"id":"custom.hidden","value":true}]},{"matcher":{"id":"byName","options":"Time"},"properties":[{"id":"custom.width","value":176}]},{"matcher":{"id":"byName","options":"sqlhash"},"properties":[{"id":"custom.width","value":88},{"id":"custom.hidden","value":true}]}]},"gridPos":{"h":20,"w":24,"x":0,"y":6},"id":2,"options":{"cellHeight":"sm","footer":{"countRows":false,"fields":"","reducer":["sum"],"show":false},"showHeader":true,"sortBy":[]},"pluginVersion":"10.0.3","targets":[{"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"editorMode":"code","expr":"{job=\"execution\", stmthash=\"$stmthash\"}","key":"Q-603dd6c0-b9ea-47d9-87fa-aa99ec261e9a-0","queryType":"range","refId":"A"}],"title":"Statement $stmthash","transformations":[{"id":"extractFields","options":{"keepTime":true,"replace":true,"source":"Line"}}],"type":"table"}],"refresh":"5m","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":false,"text":"10008029380792074498","value":"10008029380792074498"},"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"definition":"","hide":2,"includeAll":false,"multi":false,"name":"stmthash","options":[],"query":{"label":"stmthash","refId":"LokiVariableQueryEditor-VariableQuery","stream":"","type":1},"refresh":2,"regex":"","skipUrlSync":false,"sort":0,"type":"query"},{"current":{"isNone":true,"selected":false,"text":"None","value":""},"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"definition":"","hide":0,"includeAll":false,"multi":false,"name":"sql","options":[],"query":{"label":"sql","refId":"LokiVariableQueryEditor-VariableQuery","stream":"","type":1},"refresh":2,"regex":"","skipUrlSync":false,"sort":0,"type":"query"}]},"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":"Log Sql Execute","uid":"f75f6aed-e2e1-4612-9e7a-5412150dca5d","version":8,"weekStart":""}} \ No newline at end of file diff --git a/conf/provisioning/dashboards/nuodb_client/sql-log.json b/conf/provisioning/dashboards/nuodb_client/sql-log.json new file mode 100644 index 0000000..9ddd255 --- /dev/null +++ b/conf/provisioning/dashboards/nuodb_client/sql-log.json @@ -0,0 +1 @@ +{"meta":{"type":"db","canSave":true,"canEdit":true,"canAdmin":true,"canStar":true,"canDelete":true,"slug":"sql-log","url":"/d/f91c18e0-f71c-46eb-a3a8-2d0f63407d5b/sql-log","expires":"0001-01-01T00:00:00Z","created":"2023-07-28T13:06:30Z","updated":"2023-07-28T17:02:33Z","updatedBy":"admin","createdBy":"admin","version":8,"hasAcl":false,"isFolder":false,"folderId":20,"folderUid":"b7c2a563-48a3-426d-be2b-0f9fffbd8a85","folderTitle":"nuodb_client","folderUrl":"/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client","provisioned":false,"provisionedExternalId":"","annotationsPermissions":{"dashboard":{"canAdd":true,"canEdit":true,"canDelete":true},"organization":{"canAdd":true,"canEdit":true,"canDelete":true}},"publicDashboardAccessToken":"","publicDashboardUid":"","publicDashboardEnabled":false},"dashboard":{"annotations":{"list":[{"builtIn":1,"datasource":{"type":"grafana","uid":"-- Grafana --"},"enable":true,"hide":true,"iconColor":"rgba(0, 211, 255, 1)","name":"Annotations \u0026 Alerts","type":"dashboard"}]},"editable":true,"fiscalYearStartMonth":0,"graphTooltip":0,"id":31,"links":[],"liveNow":false,"panels":[{"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"fieldConfig":{"defaults":{"color":{"mode":"palette-classic"},"custom":{"hideFrom":{"legend":false,"tooltip":false,"viz":false}},"links":[{"title":"","url":"d/f91c18e0-f71c-46eb-a3a8-2d0f63407d5b/sql-log?${__all_variables}\u0026${__url_time_range}\u0026var-xplan=${__data.fields[\"Explain Plan\"]}"}],"mappings":[]},"overrides":[{"__systemRef":"hideSeriesFrom","matcher":{"id":"byNames","options":{"mode":"exclude","names":["Value #A","4571773242669381676","5576481376483995567","0"],"prefix":"All except:","readOnly":true}},"properties":[{"id":"custom.hideFrom","value":{"legend":false,"tooltip":false,"viz":true}}]}]},"gridPos":{"h":8,"w":6,"x":0,"y":0},"id":3,"links":[{"title":"","url":"d/f91c18e0-f71c-46eb-a3a8-2d0f63407d5b/sql-log?${${__all_variables}\u0026${__url_time_range}"}],"options":{"legend":{"displayMode":"list","placement":"right","showLegend":true},"pieType":"pie","reduceOptions":{"calcs":["lastNotNull"],"fields":"","values":true},"tooltip":{"mode":"single","sort":"none"}},"pluginVersion":"10.0.3","targets":[{"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"editorMode":"builder","expr":"sum by(xplanhash) (count_over_time({job=\"execution\", stmthash=~\"$statement\"} |~ `$filter` |= `$xplan` | logfmt [$__range]))","key":"Q-750d1062-cf8f-4219-b251-cca241a74556-0","legendFormat":"","queryType":"instant","refId":"A"}],"title":"Explain Plan Distribution","transformations":[{"id":"organize","options":{"excludeByName":{"Time":true,"Value #A":false},"indexByName":{},"renameByName":{"Value #A":"","xplanhash":"Explain Plan"}}}],"type":"piechart"},{"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"fieldConfig":{"defaults":{"color":{"mode":"palette-classic"},"custom":{"hideFrom":{"legend":false,"tooltip":false,"viz":false}},"mappings":[]},"overrides":[{"__systemRef":"hideSeriesFrom","matcher":{"id":"byNames","options":{"mode":"exclude","names":["Value #A"],"prefix":"All except:","readOnly":true}},"properties":[{"id":"custom.hideFrom","value":{"legend":false,"tooltip":false,"viz":true}}]}]},"gridPos":{"h":8,"w":6,"x":6,"y":0},"id":4,"options":{"legend":{"displayMode":"list","placement":"right","showLegend":true},"pieType":"pie","reduceOptions":{"calcs":["lastNotNull"],"fields":"","limit":10,"values":true},"tooltip":{"mode":"single","sort":"none"}},"pluginVersion":"10.0.3","targets":[{"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"editorMode":"builder","expr":"sum by(stmthash) (count_over_time({job=\"execution\", stmthash=~\"$statement\"} |~ `$filter` |= `$xplan` [$__range]))","key":"Q-750d1062-cf8f-4219-b251-cca241a74556-0","legendFormat":"","queryType":"instant","refId":"A"}],"title":"Statements","transformations":[{"id":"organize","options":{"excludeByName":{"Time":true,"Value #A":false},"indexByName":{},"renameByName":{"Value #A":"","xplanhash":"Explain Plan"}}}],"type":"piechart"},{"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"description":"Note the calculation is down in browser and the query is limited to 5000 lines returned from loki.","fieldConfig":{"defaults":{"color":{"mode":"palette-classic"},"custom":{"hideFrom":{"legend":false,"tooltip":false,"viz":false}},"links":[{"title":"Statement Filter","url":"/d/f91c18e0-f71c-46eb-a3a8-2d0f63407d5b/sql-log?var-statement=${__data.fields.stmthash}\u0026${filter:queryparam}\u0026${filters:queryparam}\u0026${__url_time_range}"}],"mappings":[],"unit":"µs"},"overrides":[{"matcher":{"id":"byName","options":"stmthash"},"properties":[{"id":"unit","value":"string"}]}]},"gridPos":{"h":8,"w":6,"x":12,"y":0},"id":5,"options":{"legend":{"displayMode":"table","placement":"right","showLegend":true},"pieType":"pie","reduceOptions":{"calcs":["lastNotNull"],"fields":"","values":true},"tooltip":{"mode":"single","sort":"none"}},"pluginVersion":"10.0.3","targets":[{"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"editorMode":"builder","expr":"{job=\"execution\", stmthash=~\"$statement\"} |~ `$filter` |= `$xplan` | logfmt","maxLines":5000,"queryType":"range","refId":"A","resolution":1}],"title":"Top 10 ExecTime for first 5000 execution in time window","transformations":[{"id":"extractFields","options":{"format":"auto","keepTime":true,"replace":true,"source":"labels"}},{"id":"organize","options":{"excludeByName":{"Time":true,"compiletime":true,"connid":true,"ddlop":true,"deletions":true,"diskspill":true,"dmlop":true,"evicted":true,"execcount":true,"filename":true,"hostname":true,"indexfetches":true,"indexhits":true,"inserts":true,"job":true,"locked":true,"numindexfetch":true,"numtablefetch":true,"peakmemusage":true,"recordsfetched":true,"recordsreturned":true,"rejectindexhits":true,"replaces":true,"sorted":true,"sqlhash":true,"tablefetches":true,"time":true,"transid":true,"updates":true,"xplanhash":true},"indexByName":{},"renameByName":{}}},{"id":"convertFieldType","options":{"conversions":[{"destinationType":"number","targetField":"exectime"}],"fields":{}}},{"id":"groupBy","options":{"fields":{"exectime":{"aggregations":["sum"],"operation":"aggregate"},"stmthash":{"aggregations":[],"operation":"groupby"}}}}],"type":"piechart"},{"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"gridPos":{"h":19,"w":24,"x":0,"y":8},"id":2,"options":{"dedupStrategy":"none","enableLogDetails":true,"prettifyLogMessage":false,"showCommonLabels":false,"showLabels":false,"showTime":true,"sortOrder":"Descending","wrapLogMessage":false},"targets":[{"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"editorMode":"builder","expr":"{job=\"execution\", stmthash=~\"$statement\"} |~ `$filter` |= `$xplan` | logfmt","key":"Q-750d1062-cf8f-4219-b251-cca241a74556-0","queryType":"range","refId":"A"}],"title":"New Panel","transformations":[{"id":"extractFields","options":{"format":"auto","keepTime":false,"replace":false,"source":"labels"}},{"id":"organize","options":{"excludeByName":{"Line":false,"compiletime":true,"connid":true,"ddlop":true,"deletions":true,"diskspill":true,"dmlop":true,"evicted":true,"execcount":true,"filename":true,"hostname":true,"id":true,"indexfetches":true,"indexhits":true,"inserts":true,"job":true,"labels":false,"locked":true,"numindexfetch":true,"numtablefetch":true,"peakmemusage":true,"recordsfetched":true,"recordsreturned":true,"rejectindexhits":true,"replaces":true,"sorted":true,"sqlhash":true,"stmthash":true,"tablefetches":true,"time":true,"transid":true,"tsNs":true,"updates":true,"xplanhash":true},"indexByName":{"Line":0,"Time":1,"compiletime":6,"connid":7,"ddlop":8,"deletions":9,"diskspill":10,"dmlop":11,"evicted":12,"execcount":13,"exectime":2,"filename":14,"hostname":15,"id":5,"indexfetches":16,"indexhits":17,"inserts":18,"job":19,"labels":3,"locked":20,"numindexfetch":21,"numtablefetch":22,"peakmemusage":23,"recordsfetched":24,"recordsreturned":25,"rejectindexhits":26,"replaces":27,"sorted":28,"sqlhash":29,"stmthash":30,"tablefetches":31,"time":32,"transid":33,"tsNs":4,"updates":34,"xplanhash":35},"renameByName":{}}}],"type":"logs"}],"refresh":false,"schemaVersion":38,"style":"dark","tags":[],"templating":{"list":[{"current":{"selected":true,"text":["All"],"value":["$__all"]},"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"definition":"","hide":0,"includeAll":true,"label":"statement","multi":true,"name":"statement","options":[],"query":{"label":"stmthash","refId":"LokiVariableQueryEditor-VariableQuery","stream":"","type":1},"refresh":1,"regex":"","skipUrlSync":false,"sort":0,"type":"query"},{"current":{"selected":false,"text":"xplanhash=0","value":"xplanhash=0"},"hide":0,"name":"filter","options":[{"selected":false,"text":"xplanhash=0","value":"xplanhash=0"}],"query":"xplanhash=0","skipUrlSync":false,"type":"textbox"},{"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"filters":[{"condition":"","key":"xplanhash","operator":"!=","value":"0"}],"hide":0,"name":"filters","skipUrlSync":false,"type":"adhoc"},{"current":{"selected":false,"text":"xplanhash=","value":"xplanhash="},"hide":0,"label":"explainplan","name":"xplan","options":[{"selected":false,"text":"107543700268292789","value":"107543700268292789"}],"query":"107543700268292789","skipUrlSync":false,"type":"textbox"}]},"time":{"from":"2023-07-27T20:17:00.000Z","to":"2023-07-27T20:27:00.000Z"},"timepicker":{},"timezone":"","title":"SQL Log","uid":"f91c18e0-f71c-46eb-a3a8-2d0f63407d5b","version":8,"weekStart":""}} \ No newline at end of file diff --git a/conf/provisioning/dashboards/nuodb_client/sql-statement-details.json b/conf/provisioning/dashboards/nuodb_client/sql-statement-details.json index 4c547f4..f64f369 100644 --- a/conf/provisioning/dashboards/nuodb_client/sql-statement-details.json +++ b/conf/provisioning/dashboards/nuodb_client/sql-statement-details.json @@ -1,332 +1 @@ -{ - "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": "none" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Values" - }, - "properties": [ - { - "id": "custom.inspect", - "value": true - } - ] - } - ] - }, - "gridPos": { - "h": 13, - "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": [ - { - "desc": true, - "displayName": "A" - } - ] - }, - "pluginVersion": "10.0.2", - "repeat": "host", - "repeatDirection": "v", - "targets": [ - { - "body": "select * from system.localstatementcache where ID='$id'", - "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": true, - "text": "", - "value": "" - } - ], - "query": "", - "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": 11, - "weekStart": "" -} \ No newline at end of file +{"meta":{"type":"db","canSave":true,"canEdit":true,"canAdmin":true,"canStar":true,"canDelete":true,"slug":"sql-statement-details","url":"/d/f13dbb76-dc2a-42b9-af72-88700f6857b8/sql-statement-details","expires":"0001-01-01T00:00:00Z","created":"2023-07-21T19:49:29Z","updated":"2023-07-26T22:53:17Z","updatedBy":"admin","createdBy":"admin","version":14,"hasAcl":false,"isFolder":false,"folderId":20,"folderUid":"b7c2a563-48a3-426d-be2b-0f9fffbd8a85","folderTitle":"nuodb_client","folderUrl":"/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client","provisioned":false,"provisionedExternalId":"sql-statement-details.json","annotationsPermissions":{"dashboard":{"canAdd":true,"canEdit":true,"canDelete":true},"organization":{"canAdd":true,"canEdit":true,"canDelete":true}},"publicDashboardAccessToken":"","publicDashboardUid":"","publicDashboardEnabled":false},"dashboard":{"annotations":{"list":[{"$$hashKey":"object:65","builtIn":1,"datasource":{"type":"datasource","uid":"grafana"},"enable":true,"hide":true,"iconColor":"rgba(0, 211, 255, 1)","name":"Annotations \u0026 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}]}]},"gridPos":{"h":13,"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":[{"desc":true,"displayName":"A"}]},"pluginVersion":"10.0.3","repeat":"host","repeatDirection":"v","targets":[{"body":"select * from system.localstatementcache where ID='$id'","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":"","value":""}],"query":"","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":14,"weekStart":""}} \ No newline at end of file diff --git a/conf/provisioning/dashboards/nuodb_client/sql-statement-executions.json b/conf/provisioning/dashboards/nuodb_client/sql-statement-executions.json index e11f0c4..d9b0897 100644 --- a/conf/provisioning/dashboards/nuodb_client/sql-statement-executions.json +++ b/conf/provisioning/dashboards/nuodb_client/sql-statement-executions.json @@ -1,557 +1 @@ -{ - "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": "marcusolsson-json-datasource", - "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "super-light-blue", - "mode": "fixed" - }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "color-text" - }, - "filterable": false, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "µs" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "ID" - }, - "properties": [ - { - "id": "custom.hidden", - "value": true - }, - { - "id": "unit", - "value": "string" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "NumExecutes" - }, - "properties": [ - { - "id": "unit", - "value": "none" - }, - { - "id": "custom.width", - "value": 118 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "ExecTime" - }, - "properties": [ - { - "id": "custom.width", - "value": 101 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "CompileTime" - }, - "properties": [ - { - "id": "custom.width", - "value": 107 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "MinExecTime" - }, - "properties": [ - { - "id": "custom.width", - "value": 106 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "AvgExecTime" - }, - "properties": [ - { - "id": "custom.width", - "value": 108 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "MaxExecTime" - }, - "properties": [ - { - "id": "custom.width", - "value": 115 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "LastExecuted" - }, - "properties": [ - { - "id": "custom.width", - "value": 175 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "SqlString" - }, - "properties": [ - { - "id": "links", - "value": [ - { - "title": "Detals", - "url": "/d/f13dbb76-dc2a-42b9-af72-88700f6857b8/sql-statement-details?var-id=${__data.fields.ID}&${host:queryparam}" - } - ] - } - ] - } - ] - }, - "gridPos": { - "h": 12, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 10, - "interval": "$interval", - "maxPerRow": 2, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "enablePagination": false, - "fields": [ - "EXECTIME", - "COMPILETIME" - ], - "reducer": [ - "sum" - ], - "show": false - }, - "frameIndex": 1, - "showHeader": true, - "sortBy": [] - }, - "pluginVersion": "10.0.2", - "repeat": "host", - "repeatDirection": "v", - "targets": [ - { - "body": "select LASTEXECUTED\n ,NUMEXECUTES\n ,EXECTIME\n ,COMPILETIME\n ,MINEXECTIME\n ,EXECTIME/NUMEXECUTES AS AVGEXECTIME\n ,MAXEXECTIME\n ,ID\n ,SQLSTRING\n from system.LOCALSTATEMENTCACHE\nwhere LASTEXECUTED > DATE_SUB(NOW(), INTERVAL $__interval_ms/1000 second)", - "cacheDurationSeconds": 0, - "datasource": { - "type": "marcusolsson-json-datasource", - "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" - }, - "fields": [ - { - "jsonPath": "$.rows[*][0]", - "name": "LastExecuted", - "type": "time" - }, - { - "jsonPath": "$.rows[*][1]", - "language": "jsonpath", - "name": "NumExecutes" - }, - { - "jsonPath": "$.rows[*][2]", - "language": "jsonpath", - "name": "ExecTime" - }, - { - "jsonPath": "$.rows[*][3]", - "language": "jsonpath", - "name": "CompileTime" - }, - { - "jsonPath": "$.rows[*][4]", - "language": "jsonpath", - "name": "MinExecTime" - }, - { - "jsonPath": "$.rows[*][5]", - "language": "jsonpath", - "name": "AvgExecTime" - }, - { - "jsonPath": "$.rows[*][6]", - "language": "jsonpath", - "name": "MaxExecTime" - }, - { - "jsonPath": "$.rows[*][7]", - "language": "jsonpath", - "name": "ID", - "type": "string" - }, - { - "jsonPath": "$.rows[*][8]", - "language": "jsonpath", - "name": "SqlString" - } - ], - "method": "POST", - "params": [ - [ - "dbname", - "$database" - ], - [ - "hostname", - "$host" - ] - ], - "queryParams": "", - "refId": "A", - "urlPath": "/query" - } - ], - "title": "Statement Executions ($host)", - "type": "table" - } - ], - "refresh": "30s", - "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": 22, - "weekStart": "" -} \ No newline at end of file +{"meta":{"type":"db","canSave":true,"canEdit":true,"canAdmin":true,"canStar":true,"canDelete":true,"slug":"sql-statement-executions","url":"/d/Qi5TDej4z/sql-statement-executions","expires":"0001-01-01T00:00:00Z","created":"2023-07-21T15:31:11Z","updated":"2023-07-26T20:55:41Z","updatedBy":"Anonymous","createdBy":"admin","version":28,"hasAcl":false,"isFolder":false,"folderId":20,"folderUid":"b7c2a563-48a3-426d-be2b-0f9fffbd8a85","folderTitle":"nuodb_client","folderUrl":"/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client","provisioned":false,"provisionedExternalId":"sql-statement-executions.json","annotationsPermissions":{"dashboard":{"canAdd":true,"canEdit":true,"canDelete":true},"organization":{"canAdd":true,"canEdit":true,"canDelete":true}},"publicDashboardAccessToken":"","publicDashboardUid":"","publicDashboardEnabled":false},"dashboard":{"annotations":{"list":[{"$$hashKey":"object:65","builtIn":1,"datasource":{"type":"datasource","uid":"grafana"},"enable":true,"hide":true,"iconColor":"rgba(0, 211, 255, 1)","name":"Annotations \u0026 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":"marcusolsson-json-datasource","uid":"fb12902f-919a-4aa9-89de-398bdfce52df"},"fieldConfig":{"defaults":{"color":{"fixedColor":"super-light-blue","mode":"fixed"},"custom":{"align":"auto","cellOptions":{"type":"color-text"},"filterable":false,"inspect":false},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"green","value":null}]},"unit":"µs"},"overrides":[{"matcher":{"id":"byName","options":"ID"},"properties":[{"id":"custom.hidden","value":true},{"id":"unit","value":"string"}]},{"matcher":{"id":"byName","options":"NumExecutes"},"properties":[{"id":"unit","value":"none"},{"id":"custom.width","value":118}]},{"matcher":{"id":"byName","options":"ExecTime"},"properties":[{"id":"custom.width","value":101}]},{"matcher":{"id":"byName","options":"CompileTime"},"properties":[{"id":"custom.width","value":107}]},{"matcher":{"id":"byName","options":"MinExecTime"},"properties":[{"id":"custom.width","value":106}]},{"matcher":{"id":"byName","options":"AvgExecTime"},"properties":[{"id":"custom.width","value":108}]},{"matcher":{"id":"byName","options":"MaxExecTime"},"properties":[{"id":"custom.width","value":115}]},{"matcher":{"id":"byName","options":"LastExecuted"},"properties":[{"id":"custom.width","value":175}]},{"matcher":{"id":"byName","options":"SqlString"},"properties":[{"id":"links","value":[{"title":"Detals","url":"/d/f13dbb76-dc2a-42b9-af72-88700f6857b8/sql-statement-details?var-id=${__data.fields.ID}\u0026${host:queryparam}"}]}]}]},"gridPos":{"h":12,"w":24,"x":0,"y":0},"id":10,"interval":"$interval","maxPerRow":2,"options":{"cellHeight":"sm","footer":{"countRows":false,"enablePagination":false,"fields":["EXECTIME","COMPILETIME"],"reducer":["sum"],"show":false},"frameIndex":1,"showHeader":true,"sortBy":[]},"pluginVersion":"10.0.2","repeat":"host","repeatDirection":"v","targets":[{"body":"select LASTEXECUTED\n ,NUMEXECUTES\n ,EXECTIME\n ,COMPILETIME\n ,MINEXECTIME\n ,EXECTIME/NUMEXECUTES AS AVGEXECTIME\n ,MAXEXECTIME\n ,ID\n ,SQLSTRING\n from system.LOCALSTATEMENTCACHE\nwhere LASTEXECUTED \u003e DATE_SUB(NOW(), INTERVAL $__interval_ms/1000 second)","cacheDurationSeconds":0,"datasource":{"type":"marcusolsson-json-datasource","uid":"fb12902f-919a-4aa9-89de-398bdfce52df"},"fields":[{"jsonPath":"$.rows[*][0]","name":"LastExecuted","type":"time"},{"jsonPath":"$.rows[*][1]","language":"jsonpath","name":"NumExecutes"},{"jsonPath":"$.rows[*][2]","language":"jsonpath","name":"ExecTime"},{"jsonPath":"$.rows[*][3]","language":"jsonpath","name":"CompileTime"},{"jsonPath":"$.rows[*][4]","language":"jsonpath","name":"MinExecTime"},{"jsonPath":"$.rows[*][5]","language":"jsonpath","name":"AvgExecTime"},{"jsonPath":"$.rows[*][6]","language":"jsonpath","name":"MaxExecTime"},{"jsonPath":"$.rows[*][7]","language":"jsonpath","name":"ID","type":"string"},{"jsonPath":"$.rows[*][8]","language":"jsonpath","name":"SqlString"}],"method":"POST","params":[["dbname","$database"],["hostname","$host"]],"queryParams":"","refId":"A","urlPath":"/query"}],"title":"Statement Executions ($host)","type":"table"}],"refresh":"30s","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":28,"weekStart":""}} \ No newline at end of file diff --git a/conf/provisioning/dashboards/nuodb_client/sql-statement-indexes.json b/conf/provisioning/dashboards/nuodb_client/sql-statement-indexes.json index 4d6fb8a..55b74b1 100644 --- a/conf/provisioning/dashboards/nuodb_client/sql-statement-indexes.json +++ b/conf/provisioning/dashboards/nuodb_client/sql-statement-indexes.json @@ -1,638 +1 @@ -{ - "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": 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": [ - "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": "#C0D8FF", - "mode": "fixed" - }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "color-text" - }, - "inspect": false - }, - "links": [], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "none" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "ID" - }, - "properties": [ - { - "id": "custom.hidden", - "value": true - }, - { - "id": "unit", - "value": "string" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "INDEXHITS" - }, - "properties": [ - { - "id": "custom.width", - "value": 97 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "INDEXFETCHES" - }, - "properties": [ - { - "id": "custom.width", - "value": 128 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "EXHAUSTIVEFETCHES" - }, - "properties": [ - { - "id": "custom.width", - "value": 169 - }, - { - "id": "displayName", - "value": "TABLEFETCHES" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "INDEXBATCHFETCHES" - }, - "properties": [ - { - "id": "custom.width", - "value": 203 - }, - { - "id": "displayName", - "value": "#INDEXSCANS" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "#INDEXSCANS" - }, - "properties": [ - { - "id": "custom.width", - "value": 120 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "TABLEFETCHES" - }, - "properties": [ - { - "id": "custom.width", - "value": 128 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "NUMEXECUTES" - }, - "properties": [ - { - "id": "custom.width", - "value": 129 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "LASTEXECUTED" - }, - "properties": [ - { - "id": "custom.width", - "value": 176 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "EXHAUSTIVEBATCHFETCHES" - }, - "properties": [ - { - "id": "custom.width", - "value": 120 - }, - { - "id": "displayName", - "value": "#TABLESCANS" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "SQLSTRING" - }, - "properties": [ - { - "id": "custom.inspect", - "value": true - }, - { - "id": "links", - "value": [ - { - "title": "Statement Details", - "url": "/d/f13dbb76-dc2a-42b9-af72-88700f6857b8/sql-statement-details?var-id=${__data.fields.ID}&${host:queryparam}" - } - ] - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "EXECTIME" - }, - "properties": [ - { - "id": "custom.width", - "value": 97 - }, - { - "id": "custom.hidden" - }, - { - "id": "unit", - "value": "µs" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "REJECTEDINDEXHITS" - }, - "properties": [ - { - "id": "custom.width", - "value": 88 - }, - { - "id": "displayName", - "value": "REJECTED" - } - ] - } - ] - }, - "gridPos": { - "h": 12, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 10, - "interval": "$interval", - "maxPerRow": 2, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": [ - "sum" - ], - "show": true - }, - "frameIndex": 1, - "showHeader": true, - "sortBy": [ - { - "desc": true, - "displayName": "NUMEXECUTES" - } - ] - }, - "pluginVersion": "10.0.2", - "repeat": "host", - "repeatDirection": "v", - "targets": [ - { - "body": "select LASTEXECUTED,\n NUMEXECUTES,\n EXECTIME,\n INDEXHITS,\n REJECTEDINDEXHITS,\n INDEXFETCHES,\n EXHAUSTIVEFETCHES,\n INDEXBATCHFETCHES,\n EXHAUSTIVEBATCHFETCHES,\n SQLSTRING,\n ID\n from system.LOCALSTATEMENTCACHE\n where LASTEXECUTED > DATE_SUB(now(), INTERVAL $__interval_ms/1000 second)", - "cacheDurationSeconds": 0, - "datasource": { - "type": "marcusolsson-json-datasource", - "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" - }, - "fields": [ - { - "jsonPath": "$.rows[*][0]", - "name": "LASTEXECUTED", - "type": "time" - }, - { - "jsonPath": "$.rows[*][1]", - "language": "jsonpath", - "name": "NUMEXECUTES" - }, - { - "jsonPath": "$.rows[*][2]", - "language": "jsonpath", - "name": "EXECTIME" - }, - { - "jsonPath": "$.rows[*][3]", - "language": "jsonpath", - "name": "INDEXHITS" - }, - { - "jsonPath": "$.rows[*][4]", - "language": "jsonpath", - "name": "REJECTEDINDEXHITS" - }, - { - "jsonPath": "$.rows[*][5]", - "language": "jsonpath", - "name": "INDEXFETCHES" - }, - { - "jsonPath": "$.rows[*][6]", - "language": "jsonpath", - "name": "EXHAUSTIVEFETCHES" - }, - { - "jsonPath": "$.rows[*][7]", - "language": "jsonpath", - "name": "INDEXBATCHFETCHES" - }, - { - "jsonPath": "$.rows[*][8]", - "language": "jsonpath", - "name": "EXHAUSTIVEBATCHFETCHES" - }, - { - "jsonPath": "$.rows[*][9]", - "language": "jsonpath", - "name": "SQLSTRING", - "type": "string" - }, - { - "jsonPath": "$.rows[*][10]", - "language": "jsonpath", - "name": "ID", - "type": "string" - } - ], - "method": "POST", - "params": [ - [ - "dbname", - "$database" - ], - [ - "hostname", - "$host" - ] - ], - "queryParams": "", - "refId": "A", - "urlPath": "/query" - } - ], - "title": "Number Rows Returned/Updated ($host)", - "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 - } - ] - }, - "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 Indexes", - "uid": "c5af0e56-adeb-4e24-aab3-427e225c0559", - "version": 10, - "weekStart": "" -} \ No newline at end of file +{"meta":{"type":"db","canSave":true,"canEdit":true,"canAdmin":true,"canStar":true,"canDelete":true,"slug":"sql-statement-indexes","url":"/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes","expires":"0001-01-01T00:00:00Z","created":"2023-07-21T21:53:27Z","updated":"2023-07-26T20:55:41Z","updatedBy":"Anonymous","createdBy":"admin","version":12,"hasAcl":false,"isFolder":false,"folderId":20,"folderUid":"b7c2a563-48a3-426d-be2b-0f9fffbd8a85","folderTitle":"nuodb_client","folderUrl":"/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client","provisioned":false,"provisionedExternalId":"sql-statement-indexes.json","annotationsPermissions":{"dashboard":{"canAdd":true,"canEdit":true,"canDelete":true},"organization":{"canAdd":true,"canEdit":true,"canDelete":true}},"publicDashboardAccessToken":"","publicDashboardUid":"","publicDashboardEnabled":false},"dashboard":{"annotations":{"list":[{"$$hashKey":"object:65","builtIn":1,"datasource":{"type":"datasource","uid":"grafana"},"enable":true,"hide":true,"iconColor":"rgba(0, 211, 255, 1)","name":"Annotations \u0026 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":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":["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":"#C0D8FF","mode":"fixed"},"custom":{"align":"auto","cellOptions":{"type":"color-text"},"inspect":false},"links":[],"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"green","value":null}]},"unit":"none"},"overrides":[{"matcher":{"id":"byName","options":"ID"},"properties":[{"id":"custom.hidden","value":true},{"id":"unit","value":"string"}]},{"matcher":{"id":"byName","options":"INDEXHITS"},"properties":[{"id":"custom.width","value":97}]},{"matcher":{"id":"byName","options":"INDEXFETCHES"},"properties":[{"id":"custom.width","value":128}]},{"matcher":{"id":"byName","options":"EXHAUSTIVEFETCHES"},"properties":[{"id":"custom.width","value":169},{"id":"displayName","value":"TABLEFETCHES"}]},{"matcher":{"id":"byName","options":"INDEXBATCHFETCHES"},"properties":[{"id":"custom.width","value":203},{"id":"displayName","value":"#INDEXSCANS"}]},{"matcher":{"id":"byName","options":"#INDEXSCANS"},"properties":[{"id":"custom.width","value":120}]},{"matcher":{"id":"byName","options":"TABLEFETCHES"},"properties":[{"id":"custom.width","value":128}]},{"matcher":{"id":"byName","options":"NUMEXECUTES"},"properties":[{"id":"custom.width","value":129}]},{"matcher":{"id":"byName","options":"LASTEXECUTED"},"properties":[{"id":"custom.width","value":176}]},{"matcher":{"id":"byName","options":"EXHAUSTIVEBATCHFETCHES"},"properties":[{"id":"custom.width","value":120},{"id":"displayName","value":"#TABLESCANS"}]},{"matcher":{"id":"byName","options":"SQLSTRING"},"properties":[{"id":"custom.inspect","value":true},{"id":"links","value":[{"title":"Statement Details","url":"/d/f13dbb76-dc2a-42b9-af72-88700f6857b8/sql-statement-details?var-id=${__data.fields.ID}\u0026${host:queryparam}"}]}]},{"matcher":{"id":"byName","options":"EXECTIME"},"properties":[{"id":"custom.width","value":97},{"id":"custom.hidden"},{"id":"unit","value":"µs"}]},{"matcher":{"id":"byName","options":"REJECTEDINDEXHITS"},"properties":[{"id":"custom.width","value":88},{"id":"displayName","value":"REJECTED"}]}]},"gridPos":{"h":12,"w":24,"x":0,"y":0},"id":10,"interval":"$interval","maxPerRow":2,"options":{"cellHeight":"sm","footer":{"countRows":false,"fields":"","reducer":["sum"],"show":true},"frameIndex":1,"showHeader":true,"sortBy":[{"desc":true,"displayName":"NUMEXECUTES"}]},"pluginVersion":"10.0.2","repeat":"host","repeatDirection":"v","targets":[{"body":"select LASTEXECUTED,\n NUMEXECUTES,\n EXECTIME,\n INDEXHITS,\n REJECTEDINDEXHITS,\n INDEXFETCHES,\n EXHAUSTIVEFETCHES,\n INDEXBATCHFETCHES,\n EXHAUSTIVEBATCHFETCHES,\n SQLSTRING,\n ID\n from system.LOCALSTATEMENTCACHE\n where LASTEXECUTED \u003e DATE_SUB(now(), INTERVAL $__interval_ms/1000 second)","cacheDurationSeconds":0,"datasource":{"type":"marcusolsson-json-datasource","uid":"fb12902f-919a-4aa9-89de-398bdfce52df"},"fields":[{"jsonPath":"$.rows[*][0]","name":"LASTEXECUTED","type":"time"},{"jsonPath":"$.rows[*][1]","language":"jsonpath","name":"NUMEXECUTES"},{"jsonPath":"$.rows[*][2]","language":"jsonpath","name":"EXECTIME"},{"jsonPath":"$.rows[*][3]","language":"jsonpath","name":"INDEXHITS"},{"jsonPath":"$.rows[*][4]","language":"jsonpath","name":"REJECTEDINDEXHITS"},{"jsonPath":"$.rows[*][5]","language":"jsonpath","name":"INDEXFETCHES"},{"jsonPath":"$.rows[*][6]","language":"jsonpath","name":"EXHAUSTIVEFETCHES"},{"jsonPath":"$.rows[*][7]","language":"jsonpath","name":"INDEXBATCHFETCHES"},{"jsonPath":"$.rows[*][8]","language":"jsonpath","name":"EXHAUSTIVEBATCHFETCHES"},{"jsonPath":"$.rows[*][9]","language":"jsonpath","name":"SQLSTRING","type":"string"},{"jsonPath":"$.rows[*][10]","language":"jsonpath","name":"ID","type":"string"}],"method":"POST","params":[["dbname","$database"],["hostname","$host"]],"queryParams":"","refId":"A","urlPath":"/query"}],"title":"Number Rows Returned/Updated ($host)","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}]},"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 Indexes","uid":"c5af0e56-adeb-4e24-aab3-427e225c0559","version":12,"weekStart":""}} \ No newline at end of file diff --git a/conf/provisioning/dashboards/nuodb_client/sql-statement-operations.json b/conf/provisioning/dashboards/nuodb_client/sql-statement-operations.json index e02a1ea..f120652 100644 --- a/conf/provisioning/dashboards/nuodb_client/sql-statement-operations.json +++ b/conf/provisioning/dashboards/nuodb_client/sql-statement-operations.json @@ -1,556 +1 @@ -{ - "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": 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": true, - "keepTime": true, - "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": "super-light-blue", - "mode": "fixed" - }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "color-text" - }, - "inspect": false - }, - "links": [], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "none" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "ID" - }, - "properties": [ - { - "id": "custom.hidden", - "value": true - }, - { - "id": "unit", - "value": "string" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "INSERTS" - }, - "properties": [ - { - "id": "custom.width", - "value": 107 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "RECORDSRETURNED" - }, - "properties": [ - { - "id": "custom.width", - "value": 163 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "UPDATES" - }, - "properties": [ - { - "id": "custom.width", - "value": 99 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "DELETIONS" - }, - "properties": [ - { - "id": "custom.width", - "value": 100 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "REPLACES" - }, - "properties": [ - { - "id": "custom.width", - "value": 95 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "SQLSTRING" - }, - "properties": [ - { - "id": "custom.cellOptions", - "value": { - "type": "color-text" - } - }, - { - "id": "links", - "value": [ - { - "targetBlank": false, - "title": "show details", - "url": "/d/f13dbb76-dc2a-42b9-af72-88700f6857b8/sql-statement-details?var-id=${__data.fields.ID}&${host:queryparam}" - } - ] - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "NUMEXECUTES" - }, - "properties": [ - { - "id": "custom.width", - "value": 127 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "LASTEXECUTED" - }, - "properties": [ - { - "id": "custom.width", - "value": 172 - } - ] - } - ] - }, - "gridPos": { - "h": 12, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 10, - "interval": "$interval", - "maxPerRow": 2, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": [ - "sum" - ], - "show": true - }, - "frameIndex": 1, - "showHeader": true, - "sortBy": [] - }, - "pluginVersion": "10.0.2", - "repeat": "host", - "repeatDirection": "v", - "targets": [ - { - "body": "select LASTEXECUTED\n ,NUMEXECUTES\n ,RECORDSRETURNED\n ,INSERTS\n ,UPDATES\n ,DELETIONS\n ,REPLACES\n ,SQLSTRING\n ,ID\n from system.LOCALSTATEMENTCACHE\n where LASTEXECUTED > DATE_SUB(now(), INTERVAL $__interval_ms/1000 second)\n", - "cacheDurationSeconds": 0, - "datasource": { - "type": "marcusolsson-json-datasource", - "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" - }, - "fields": [ - { - "jsonPath": "$.rows[*][0]", - "name": "LASTEXECUTED", - "type": "time" - }, - { - "jsonPath": "$.rows[*][1]", - "language": "jsonpath", - "name": "NUMEXECUTES" - }, - { - "jsonPath": "$.rows[*][2]", - "language": "jsonpath", - "name": "RECORDSRETURNED" - }, - { - "jsonPath": "$.rows[*][3]", - "language": "jsonpath", - "name": "INSERTS" - }, - { - "jsonPath": "$.rows[*][4]", - "language": "jsonpath", - "name": "UPDATES" - }, - { - "jsonPath": "$.rows[*][5]", - "language": "jsonpath", - "name": "DELETIONS" - }, - { - "jsonPath": "$.rows[*][6]", - "language": "jsonpath", - "name": "REPLACES" - }, - { - "jsonPath": "$.rows[*][7]", - "language": "jsonpath", - "name": "SQLSTRING" - }, - { - "jsonPath": "$.rows[*][8]", - "language": "jsonpath", - "name": "ID", - "type": "string" - } - ], - "method": "POST", - "params": [ - [ - "dbname", - "$database" - ], - [ - "hostname", - "$host" - ] - ], - "queryParams": "", - "refId": "A", - "urlPath": "/query" - } - ], - "title": "Number Rows Returned/Updated ($host)", - "type": "table" - } - ], - "refresh": "30s", - "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 Operations", - "uid": "Cp_9O6C4k", - "version": 19, - "weekStart": "" -} \ No newline at end of file +{"meta":{"type":"db","canSave":true,"canEdit":true,"canAdmin":true,"canStar":true,"canDelete":true,"slug":"sql-statement-operations","url":"/d/Cp_9O6C4k/sql-statement-operations","expires":"0001-01-01T00:00:00Z","created":"2023-07-21T15:56:00Z","updated":"2023-07-27T18:14:41Z","updatedBy":"admin","createdBy":"admin","version":25,"hasAcl":false,"isFolder":false,"folderId":20,"folderUid":"b7c2a563-48a3-426d-be2b-0f9fffbd8a85","folderTitle":"nuodb_client","folderUrl":"/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client","provisioned":false,"provisionedExternalId":"sql-statement-operations.json","annotationsPermissions":{"dashboard":{"canAdd":true,"canEdit":true,"canDelete":true},"organization":{"canAdd":true,"canEdit":true,"canDelete":true}},"publicDashboardAccessToken":"","publicDashboardUid":"","publicDashboardEnabled":false},"dashboard":{"annotations":{"list":[{"$$hashKey":"object:65","builtIn":1,"datasource":{"type":"datasource","uid":"grafana"},"enable":true,"hide":true,"iconColor":"rgba(0, 211, 255, 1)","name":"Annotations \u0026 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":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":true,"keepTime":true,"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":"super-light-blue","mode":"fixed"},"custom":{"align":"auto","cellOptions":{"type":"color-text"},"inspect":false},"links":[],"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"green","value":null}]},"unit":"none"},"overrides":[{"matcher":{"id":"byName","options":"ID"},"properties":[{"id":"custom.hidden","value":true},{"id":"unit","value":"string"}]},{"matcher":{"id":"byName","options":"INSERTS"},"properties":[{"id":"custom.width","value":107}]},{"matcher":{"id":"byName","options":"RECORDSRETURNED"},"properties":[{"id":"custom.width","value":163}]},{"matcher":{"id":"byName","options":"UPDATES"},"properties":[{"id":"custom.width","value":99}]},{"matcher":{"id":"byName","options":"DELETIONS"},"properties":[{"id":"custom.width","value":100}]},{"matcher":{"id":"byName","options":"REPLACES"},"properties":[{"id":"custom.width","value":95}]},{"matcher":{"id":"byName","options":"SQLSTRING"},"properties":[{"id":"custom.cellOptions","value":{"type":"color-text"}},{"id":"links","value":[{"targetBlank":false,"title":"Details","url":"/d/f13dbb76-dc2a-42b9-af72-88700f6857b8/sql-statement-details?var-id=${__data.fields.ID}\u0026${host:queryparam}"},{"title":"Executes","url":"/d/f75f6aed-e2e1-4612-9e7a-5412150dca5d/log-sql-execute?${__all_variables}\u0026stmthash=${__data.fields.ID}\u0026sql=${__data.fields.SQLSTRING}\u0026${__url_time_range}"}]}]},{"matcher":{"id":"byName","options":"NUMEXECUTES"},"properties":[{"id":"custom.width","value":127}]},{"matcher":{"id":"byName","options":"LASTEXECUTED"},"properties":[{"id":"custom.width","value":172}]}]},"gridPos":{"h":12,"w":24,"x":0,"y":0},"id":10,"interval":"$interval","maxPerRow":2,"options":{"cellHeight":"sm","footer":{"countRows":false,"fields":"","reducer":["sum"],"show":true},"frameIndex":1,"showHeader":true,"sortBy":[]},"pluginVersion":"10.0.3","repeat":"host","repeatDirection":"v","targets":[{"body":"select LASTEXECUTED\n ,NUMEXECUTES\n ,RECORDSRETURNED\n ,INSERTS\n ,UPDATES\n ,DELETIONS\n ,REPLACES\n ,SQLSTRING\n ,ID\n from system.LOCALSTATEMENTCACHE\n where LASTEXECUTED \u003e DATE_SUB(now(), INTERVAL $__interval_ms/1000 second)\n","cacheDurationSeconds":0,"datasource":{"type":"marcusolsson-json-datasource","uid":"fb12902f-919a-4aa9-89de-398bdfce52df"},"fields":[{"jsonPath":"$.rows[*][0]","name":"LASTEXECUTED","type":"time"},{"jsonPath":"$.rows[*][1]","language":"jsonpath","name":"NUMEXECUTES"},{"jsonPath":"$.rows[*][2]","language":"jsonpath","name":"RECORDSRETURNED"},{"jsonPath":"$.rows[*][3]","language":"jsonpath","name":"INSERTS"},{"jsonPath":"$.rows[*][4]","language":"jsonpath","name":"UPDATES"},{"jsonPath":"$.rows[*][5]","language":"jsonpath","name":"DELETIONS"},{"jsonPath":"$.rows[*][6]","language":"jsonpath","name":"REPLACES"},{"jsonPath":"$.rows[*][7]","language":"jsonpath","name":"SQLSTRING"},{"jsonPath":"$.rows[*][8]","language":"jsonpath","name":"ID","type":"string"}],"method":"POST","params":[["dbname","$database"],["hostname","$host"]],"queryParams":"","refId":"A","urlPath":"/query"}],"title":"Number Rows Returned/Updated ($host)","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":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":true,"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 Operations","uid":"Cp_9O6C4k","version":25,"weekStart":""}} \ No newline at end of file diff --git a/conf/provisioning/dashboards/nuodb_client/sql-statement-records.json b/conf/provisioning/dashboards/nuodb_client/sql-statement-records.json index 377a8ef..0001c41 100644 --- a/conf/provisioning/dashboards/nuodb_client/sql-statement-records.json +++ b/conf/provisioning/dashboards/nuodb_client/sql-statement-records.json @@ -1,587 +1 @@ -{ - "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": 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": "marcusolsson-json-datasource", - "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#C0D8FF", - "mode": "fixed" - }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "color-text" - }, - "inspect": false - }, - "links": [], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "none" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "ID" - }, - "properties": [ - { - "id": "custom.hidden", - "value": true - }, - { - "id": "unit", - "value": "string" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "LOCKED" - }, - "properties": [ - { - "id": "custom.width", - "value": 115 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "RECORDSFETCHED" - }, - "properties": [ - { - "id": "custom.width", - "value": 137 - }, - { - "id": "displayName", - "value": "FETCHED" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "RECORDSSORTED" - }, - "properties": [ - { - "id": "custom.width", - "value": 169 - }, - { - "id": "displayName", - "value": "SORTED" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "EVICTED" - }, - "properties": [ - { - "id": "custom.width", - "value": 119 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "NUMEXECUTES" - }, - "properties": [ - { - "id": "custom.width", - "value": 129 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "LASTEXECUTED" - }, - "properties": [ - { - "id": "custom.width", - "value": 160 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "SQLSTRING" - }, - "properties": [ - { - "id": "custom.inspect", - "value": true - }, - { - "id": "links", - "value": [ - { - "title": "Statement Details", - "url": "/d/f13dbb76-dc2a-42b9-af72-88700f6857b8/sql-statement-details?var-id=${__data.fields.ID}&${host:queryparam}" - } - ] - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "EXECTIME" - }, - "properties": [ - { - "id": "custom.width", - "value": 113 - }, - { - "id": "unit", - "value": "µs" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "SORTED" - }, - "properties": [ - { - "id": "custom.width", - "value": 99 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "RECORDSFETCHED" - }, - "properties": [ - { - "id": "custom.width", - "value": 121 - } - ] - } - ] - }, - "gridPos": { - "h": 12, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 10, - "interval": "$interval", - "maxPerRow": 2, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": [ - "sum" - ], - "show": true - }, - "frameIndex": 1, - "showHeader": true, - "sortBy": [] - }, - "pluginVersion": "10.0.2", - "repeat": "host", - "repeatDirection": "v", - "targets": [ - { - "body": "select LASTEXECUTED\n ,NUMEXECUTES\n ,EXECTIME\n ,RECORDSFETCHED\n ,LOCKED\n ,RECORDSSORTED\n ,EVICTED\n ,SQLSTRING\n ,ID\n from system.LOCALSTATEMENTCACHE\nwhere LASTEXECUTED > DATE_SUB(now(), INTERVAL $__interval_ms / 1000 second)\n\n", - "cacheDurationSeconds": 0, - "datasource": { - "type": "marcusolsson-json-datasource", - "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" - }, - "fields": [ - { - "jsonPath": "$.rows[*][0]", - "name": "LASTEXECUTED", - "type": "time" - }, - { - "jsonPath": "$.rows[*][1]", - "language": "jsonpath", - "name": "NUMEXECUTES" - }, - { - "jsonPath": "$.rows[*][2]", - "language": "jsonpath", - "name": "EXECTIME" - }, - { - "jsonPath": "$.rows[*][3]", - "language": "jsonpath", - "name": "RECORDSFETCHED" - }, - { - "jsonPath": "$.rows[*][4]", - "language": "jsonpath", - "name": "LOCKED" - }, - { - "jsonPath": "$.rows[*][5]", - "language": "jsonpath", - "name": "RECORDSSORTED" - }, - { - "jsonPath": "$.rows[*][6]", - "language": "jsonpath", - "name": "EVICTED" - }, - { - "jsonPath": "$.rows[*][7]", - "language": "jsonpath", - "name": "SQLSTRING" - }, - { - "jsonPath": "$.rows[*][8]", - "language": "jsonpath", - "name": "ID", - "type": "string" - } - ], - "method": "POST", - "params": [ - [ - "dbname", - "$database" - ], - [ - "hostname", - "$host" - ] - ], - "queryParams": "", - "refId": "A", - "urlPath": "/query" - } - ], - "title": "Records ($host)", - "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 - } - ] - }, - "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 Records", - "uid": "f1af96f4-c6b6-4813-9cab-39bda6df0650", - "version": 8, - "weekStart": "" -} \ No newline at end of file +{"meta":{"type":"db","canSave":true,"canEdit":true,"canAdmin":true,"canStar":true,"canDelete":true,"slug":"sql-statement-records","url":"/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records","expires":"0001-01-01T00:00:00Z","created":"2023-07-21T22:33:55Z","updated":"2023-07-26T20:55:41Z","updatedBy":"Anonymous","createdBy":"admin","version":10,"hasAcl":false,"isFolder":false,"folderId":20,"folderUid":"b7c2a563-48a3-426d-be2b-0f9fffbd8a85","folderTitle":"nuodb_client","folderUrl":"/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client","provisioned":false,"provisionedExternalId":"sql-statement-records.json","annotationsPermissions":{"dashboard":{"canAdd":true,"canEdit":true,"canDelete":true},"organization":{"canAdd":true,"canEdit":true,"canDelete":true}},"publicDashboardAccessToken":"","publicDashboardUid":"","publicDashboardEnabled":false},"dashboard":{"annotations":{"list":[{"$$hashKey":"object:65","builtIn":1,"datasource":{"type":"datasource","uid":"grafana"},"enable":true,"hide":true,"iconColor":"rgba(0, 211, 255, 1)","name":"Annotations \u0026 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":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":"marcusolsson-json-datasource","uid":"fb12902f-919a-4aa9-89de-398bdfce52df"},"fieldConfig":{"defaults":{"color":{"fixedColor":"#C0D8FF","mode":"fixed"},"custom":{"align":"auto","cellOptions":{"type":"color-text"},"inspect":false},"links":[],"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"green","value":null}]},"unit":"none"},"overrides":[{"matcher":{"id":"byName","options":"ID"},"properties":[{"id":"custom.hidden","value":true},{"id":"unit","value":"string"}]},{"matcher":{"id":"byName","options":"LOCKED"},"properties":[{"id":"custom.width","value":115}]},{"matcher":{"id":"byName","options":"RECORDSFETCHED"},"properties":[{"id":"custom.width","value":137},{"id":"displayName","value":"FETCHED"}]},{"matcher":{"id":"byName","options":"RECORDSSORTED"},"properties":[{"id":"custom.width","value":169},{"id":"displayName","value":"SORTED"}]},{"matcher":{"id":"byName","options":"EVICTED"},"properties":[{"id":"custom.width","value":119}]},{"matcher":{"id":"byName","options":"NUMEXECUTES"},"properties":[{"id":"custom.width","value":129}]},{"matcher":{"id":"byName","options":"LASTEXECUTED"},"properties":[{"id":"custom.width","value":160}]},{"matcher":{"id":"byName","options":"SQLSTRING"},"properties":[{"id":"custom.inspect","value":true},{"id":"links","value":[{"title":"Statement Details","url":"/d/f13dbb76-dc2a-42b9-af72-88700f6857b8/sql-statement-details?var-id=${__data.fields.ID}\u0026${host:queryparam}"}]}]},{"matcher":{"id":"byName","options":"EXECTIME"},"properties":[{"id":"custom.width","value":113},{"id":"unit","value":"µs"}]},{"matcher":{"id":"byName","options":"SORTED"},"properties":[{"id":"custom.width","value":99}]},{"matcher":{"id":"byName","options":"RECORDSFETCHED"},"properties":[{"id":"custom.width","value":121}]}]},"gridPos":{"h":12,"w":24,"x":0,"y":0},"id":10,"interval":"$interval","maxPerRow":2,"options":{"cellHeight":"sm","footer":{"countRows":false,"fields":"","reducer":["sum"],"show":true},"frameIndex":1,"showHeader":true,"sortBy":[]},"pluginVersion":"10.0.2","repeat":"host","repeatDirection":"v","targets":[{"body":"select LASTEXECUTED\n ,NUMEXECUTES\n ,EXECTIME\n ,RECORDSFETCHED\n ,LOCKED\n ,RECORDSSORTED\n ,EVICTED\n ,SQLSTRING\n ,ID\n from system.LOCALSTATEMENTCACHE\nwhere LASTEXECUTED \u003e DATE_SUB(now(), INTERVAL $__interval_ms / 1000 second)\n\n","cacheDurationSeconds":0,"datasource":{"type":"marcusolsson-json-datasource","uid":"fb12902f-919a-4aa9-89de-398bdfce52df"},"fields":[{"jsonPath":"$.rows[*][0]","name":"LASTEXECUTED","type":"time"},{"jsonPath":"$.rows[*][1]","language":"jsonpath","name":"NUMEXECUTES"},{"jsonPath":"$.rows[*][2]","language":"jsonpath","name":"EXECTIME"},{"jsonPath":"$.rows[*][3]","language":"jsonpath","name":"RECORDSFETCHED"},{"jsonPath":"$.rows[*][4]","language":"jsonpath","name":"LOCKED"},{"jsonPath":"$.rows[*][5]","language":"jsonpath","name":"RECORDSSORTED"},{"jsonPath":"$.rows[*][6]","language":"jsonpath","name":"EVICTED"},{"jsonPath":"$.rows[*][7]","language":"jsonpath","name":"SQLSTRING"},{"jsonPath":"$.rows[*][8]","language":"jsonpath","name":"ID","type":"string"}],"method":"POST","params":[["dbname","$database"],["hostname","$host"]],"queryParams":"","refId":"A","urlPath":"/query"}],"title":"Records ($host)","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}]},"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 Records","uid":"f1af96f4-c6b6-4813-9cab-39bda6df0650","version":10,"weekStart":""}} \ No newline at end of file diff --git a/conf/provisioning/dashboards/nuodb_client/sql-statements.json b/conf/provisioning/dashboards/nuodb_client/sql-statements.json index bfea316..9cb3c7b 100644 --- a/conf/provisioning/dashboards/nuodb_client/sql-statements.json +++ b/conf/provisioning/dashboards/nuodb_client/sql-statements.json @@ -1,5540 +1 @@ -{ - "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": "red", - "name": "db annotations", - "target": { - "limit": 100, - "matchAny": true, - "tags": [ - "$database" - ], - "type": "tags" - } - } - ] - }, - "editable": false, - "fiscalYearStartMonth": 0, - "graphTooltip": 1, - "id": 14, - "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": { - "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" - } - }, - "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": { - "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" - } - }, - "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": 9, - "x": 0, - "y": 2 - }, - "hideTimeOverride": true, - "id": 45, - "links": [ - { - "title": "", - "url": "/d/z35SM6j4z/client-messages?${__all_variables}" - } - ], - "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": "palette-classic" - }, - "custom": { - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - } - }, - "links": [ - { - "targetBlank": false, - "title": "Details", - "url": "/d/z35SM6j4z/client-messages" - } - ], - "mappings": [], - "unit": "µs" - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 3, - "x": 9, - "y": 2 - }, - "hideTimeOverride": true, - "id": 52, - "links": [ - { - "targetBlank": false, - "title": "client messages expanded", - "url": "/d/z35SM6j4z/client-messages?${__all_variables}" - } - ], - "options": { - "legend": { - "displayMode": "list", - "placement": "bottom", - "showLegend": false - }, - "pieType": "pie", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "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": 12, - "y": 2 - }, - "hideTimeOverride": true, - "id": 54, - "links": [ - { - "title": "Details", - "url": "/d/z35SM6j4z/client-messages?${__all_variables}" - } - ], - "options": { - "legend": { - "displayMode": "list", - "placement": "bottom", - "showLegend": false - }, - "pieType": "pie", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "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": 9, - "x": 15, - "y": 2 - }, - "hideTimeOverride": true, - "id": 44, - "links": [ - { - "title": "Details", - "url": "/d/z35SM6j4z/client-messages?${__all_variables}" - } - ], - "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": "Platform", - "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}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "10.0.2", - "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}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "10.0.2", - "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 - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 6, - "y": 8 - }, - "id": 26, - "links": [ - { - "title": "Overview", - "url": "/d/AeBZNz9Vk/nuodb-overview?${__all_variables}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "10.0.2", - "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" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "light-blue", - "value": null - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 9, - "y": 8 - }, - "hideTimeOverride": true, - "id": 27, - "links": [ - { - "title": "Overview", - "url": "/d/AeBZNz9Vk/nuodb-overview?${__all_variables}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "10.0.2", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "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": { - "fixedColor": "semi-dark-yellow", - "mode": "fixed" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "light-blue", - "value": null - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 12, - "y": 8 - }, - "hideTimeOverride": true, - "id": 46, - "links": [ - { - "title": "SQL Dashboard", - "url": "/d/J9fZNkr4z/sql?${__all_variables}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "10.0.2", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "SqlListenerSqlProcTime", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(R) FROM (SELECT mean(\"rate\") AS R FROM \"Commits\" 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": "Commits", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "light-blue", - "value": null - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 15, - "y": 8 - }, - "hideTimeOverride": true, - "id": 33, - "links": [ - { - "title": "SQL Dashboard", - "url": "/d/J9fZNkr4z/sql?${__all_variables}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "10.0.2", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "Inserts", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"Inserts\" 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": "Inserts", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "light-blue", - "value": null - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 18, - "y": 8 - }, - "hideTimeOverride": true, - "id": 35, - "links": [ - { - "title": "SQL Dashboard", - "url": "/d/J9fZNkr4z/sql?${__all_variables}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "10.0.2", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "Updates", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"Updates\" 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": "Updates", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "light-blue", - "value": null - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 21, - "y": 8 - }, - "hideTimeOverride": true, - "id": 34, - "links": [ - { - "title": "SQL Dashboard", - "url": "/d/J9fZNkr4z/sql?${__all_variables}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "10.0.2", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "Deletes", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"Deletes\" 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": "Deletes", - "type": "stat" - }, - { - "collapsed": false, - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 12 - }, - "id": 23, - "panels": [], - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "refId": "A" - } - ], - "title": "Rows", - "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" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "light-blue", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 6, - "x": 0, - "y": 13 - }, - "hideTimeOverride": true, - "id": 2, - "links": [ - { - "title": "Details by Statement", - "url": "/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}" - } - ], - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.3.0", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "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" - } - ] - } - ], - "timeShift": "10s", - "title": "Statements Executed", - "type": "timeseries" - }, - { - "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": 13 - }, - "hideTimeOverride": true, - "id": 38, - "links": [ - { - "title": "Details by Statement", - "url": "/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "10.0.2", - "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": 13 - }, - "hideTimeOverride": true, - "id": 29, - "links": [ - { - "title": "Details by Statement", - "url": "/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}" - } - ], - "options": { - "legend": { - "displayMode": "list", - "placement": "bottom", - "showLegend": false - }, - "pieType": "pie", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "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": 13 - }, - "hideTimeOverride": true, - "id": 37, - "links": [ - { - "title": "Details by Statement ", - "url": "/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}" - } - ], - "options": { - "displayMode": "basic", - "minVizHeight": 10, - "minVizWidth": 0, - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showUnfilled": false, - "valueMode": "color" - }, - "pluginVersion": "10.0.2", - "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": "bargauge" - }, - { - "collapsed": false, - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 17 - }, - "id": 17, - "panels": [], - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "refId": "A" - } - ], - "title": "Indexes", - "type": "row" - }, - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 4, - "x": 0, - "y": 18 - }, - "hideTimeOverride": true, - "id": 10, - "links": [ - { - "title": "Details by Statement", - "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "10.0.2", - "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" - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 4, - "x": 4, - "y": 18 - }, - "hideTimeOverride": true, - "id": 12, - "links": [ - { - "title": "Details by Statement", - "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "10.0.2", - "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" - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 4, - "x": 8, - "y": 18 - }, - "hideTimeOverride": true, - "id": 15, - "links": [ - { - "title": "Details by Statement", - "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "10.0.2", - "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" - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 4, - "x": 12, - "y": 18 - }, - "hideTimeOverride": true, - "id": 13, - "links": [ - { - "title": "Details by Statement", - "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "10.0.2", - "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" - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 4, - "x": 16, - "y": 18 - }, - "hideTimeOverride": true, - "id": 11, - "links": [ - { - "title": "Details by Statement", - "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "10.0.2", - "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" - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 4, - "x": 20, - "y": 18 - }, - "hideTimeOverride": true, - "id": 14, - "links": [ - { - "title": "Details by Statement", - "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "10.0.2", - "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": 22 - }, - "id": 4, - "panels": [], - "repeat": "SQLStatementStats", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "refId": "A" - } - ], - "title": "Records", - "type": "row" - }, - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 6, - "x": 0, - "y": 23 - }, - "hideTimeOverride": true, - "id": 20, - "links": [ - { - "title": "Details by Statement", - "url": "/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "10.0.2", - "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" - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 6, - "x": 6, - "y": 23 - }, - "hideTimeOverride": true, - "id": 18, - "links": [ - { - "title": "Details by Statement", - "url": "/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "10.0.2", - "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" - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 6, - "x": 12, - "y": 23 - }, - "hideTimeOverride": true, - "id": 21, - "links": [ - { - "title": "Details by Statement", - "url": "/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "10.0.2", - "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" - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 6, - "x": 18, - "y": 23 - }, - "hideTimeOverride": true, - "id": 36, - "links": [ - { - "title": "Details by Statement", - "url": "/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "10.0.2", - "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": "30s", - "schemaVersion": 38, - "style": "dark", - "tags": [ - "overview" - ], - "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": "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": true, - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "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": "SQL Statements", - "uid": "cul4kM9Vz", - "version": 63, - "weekStart": "" -} \ No newline at end of file +{"meta":{"type":"db","canSave":true,"canEdit":true,"canAdmin":true,"canStar":true,"canDelete":true,"slug":"sql-statements","url":"/d/cul4kM9Vz/sql-statements","expires":"0001-01-01T00:00:00Z","created":"2023-06-28T15:11:31Z","updated":"2023-07-27T18:12:47Z","updatedBy":"admin","createdBy":"admin","version":65,"hasAcl":false,"isFolder":false,"folderId":20,"folderUid":"b7c2a563-48a3-426d-be2b-0f9fffbd8a85","folderTitle":"nuodb_client","folderUrl":"/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client","provisioned":false,"provisionedExternalId":"sql-statements.json","annotationsPermissions":{"dashboard":{"canAdd":true,"canEdit":true,"canDelete":true},"organization":{"canAdd":true,"canEdit":true,"canDelete":true}},"publicDashboardAccessToken":"","publicDashboardUid":"","publicDashboardEnabled":false},"dashboard":{"annotations":{"list":[{"builtIn":1,"datasource":{"type":"datasource","uid":"grafana"},"enable":true,"hide":true,"iconColor":"rgba(0, 211, 255, 1)","name":"Annotations \u0026 Alerts","target":{"limit":100,"matchAny":false,"tags":[],"type":"dashboard"},"type":"dashboard"},{"datasource":{"type":"datasource","uid":"grafana"},"enable":true,"iconColor":"red","name":"db annotations","target":{"limit":100,"matchAny":true,"tags":["$database"],"type":"tags"}}]},"editable":true,"fiscalYearStartMonth":0,"graphTooltip":1,"id":14,"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":{"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"}},"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":{"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"}},"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":9,"x":0,"y":2},"hideTimeOverride":true,"id":45,"links":[{"title":"","url":"/d/z35SM6j4z/client-messages?${__all_variables}"}],"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":"palette-classic"},"custom":{"hideFrom":{"legend":false,"tooltip":false,"viz":false}},"links":[{"targetBlank":false,"title":"Details","url":"/d/z35SM6j4z/client-messages"}],"mappings":[],"unit":"µs"},"overrides":[]},"gridPos":{"h":5,"w":3,"x":9,"y":2},"hideTimeOverride":true,"id":52,"links":[{"targetBlank":false,"title":"client messages expanded","url":"/d/z35SM6j4z/client-messages?${__all_variables}"}],"options":{"legend":{"displayMode":"list","placement":"bottom","showLegend":false},"pieType":"pie","reduceOptions":{"calcs":["lastNotNull"],"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":12,"y":2},"hideTimeOverride":true,"id":54,"links":[{"title":"Details","url":"/d/z35SM6j4z/client-messages?${__all_variables}"}],"options":{"legend":{"displayMode":"list","placement":"bottom","showLegend":false},"pieType":"pie","reduceOptions":{"calcs":["lastNotNull"],"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":9,"x":15,"y":2},"hideTimeOverride":true,"id":44,"links":[{"title":"Details","url":"/d/z35SM6j4z/client-messages?${__all_variables}"}],"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":"Platform","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}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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}]},"unit":"s"},"overrides":[]},"gridPos":{"h":4,"w":3,"x":6,"y":8},"id":26,"links":[{"title":"Overview","url":"/d/AeBZNz9Vk/nuodb-overview?${__all_variables}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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"},"fieldConfig":{"defaults":{"color":{"mode":"thresholds"},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"light-blue","value":null}]},"unit":"s"},"overrides":[]},"gridPos":{"h":4,"w":3,"x":9,"y":8},"hideTimeOverride":true,"id":27,"links":[{"title":"Overview","url":"/d/AeBZNz9Vk/nuodb-overview?${__all_variables}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":"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":{"fixedColor":"semi-dark-yellow","mode":"fixed"},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"light-blue","value":null}]},"unit":"none"},"overrides":[]},"gridPos":{"h":4,"w":3,"x":12,"y":8},"hideTimeOverride":true,"id":46,"links":[{"title":"SQL Dashboard","url":"/d/J9fZNkr4z/sql?${__all_variables}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":"SqlListenerSqlProcTime","orderByTime":"ASC","policy":"default","query":"SELECT SUM(R) FROM (SELECT mean(\"rate\") AS R FROM \"Commits\" 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":"Commits","type":"stat"},{"datasource":{"type":"influxdb","uid":"P7F1571328205BBA6"},"fieldConfig":{"defaults":{"color":{"mode":"thresholds"},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"light-blue","value":null}]},"unit":"none"},"overrides":[]},"gridPos":{"h":4,"w":3,"x":15,"y":8},"hideTimeOverride":true,"id":33,"links":[{"title":"SQL Dashboard","url":"/d/J9fZNkr4z/sql?${__all_variables}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":"Inserts","orderByTime":"ASC","policy":"default","query":"SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"Inserts\" 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":"Inserts","type":"stat"},{"datasource":{"type":"influxdb","uid":"P7F1571328205BBA6"},"fieldConfig":{"defaults":{"color":{"mode":"thresholds"},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"light-blue","value":null}]},"unit":"none"},"overrides":[]},"gridPos":{"h":4,"w":3,"x":18,"y":8},"hideTimeOverride":true,"id":35,"links":[{"title":"SQL Dashboard","url":"/d/J9fZNkr4z/sql?${__all_variables}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":"Updates","orderByTime":"ASC","policy":"default","query":"SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"Updates\" 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":"Updates","type":"stat"},{"datasource":{"type":"influxdb","uid":"P7F1571328205BBA6"},"fieldConfig":{"defaults":{"color":{"mode":"thresholds"},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"light-blue","value":null}]},"unit":"none"},"overrides":[]},"gridPos":{"h":4,"w":3,"x":21,"y":8},"hideTimeOverride":true,"id":34,"links":[{"title":"SQL Dashboard","url":"/d/J9fZNkr4z/sql?${__all_variables}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":"Deletes","orderByTime":"ASC","policy":"default","query":"SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"Deletes\" 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":"Deletes","type":"stat"},{"collapsed":false,"datasource":{"type":"influxdb","uid":"P7F1571328205BBA6"},"gridPos":{"h":1,"w":24,"x":0,"y":12},"id":23,"panels":[],"targets":[{"datasource":{"type":"influxdb","uid":"P7F1571328205BBA6"},"refId":"A"}],"title":"Rows","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"}},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"light-blue","value":null}]}},"overrides":[]},"gridPos":{"h":4,"w":6,"x":0,"y":13},"hideTimeOverride":true,"id":2,"links":[{"title":"Details by Statement","url":"/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}"}],"options":{"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"mode":"single","sort":"none"}},"pluginVersion":"8.3.0","targets":[{"datasource":{"type":"influxdb","uid":"P7F1571328205BBA6"},"groupBy":[{"params":["$__interval"],"type":"time"},{"params":["null"],"type":"fill"}],"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"}]}],"timeShift":"10s","title":"Statements Executed","type":"timeseries"},{"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":13},"hideTimeOverride":true,"id":38,"links":[{"title":"Details by Statement","url":"/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}\u0026${__url_time_range}"}],"options":{"colorMode":"value","graphMode":"none","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":13},"hideTimeOverride":true,"id":29,"links":[{"title":"Details by Statement","url":"/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}"}],"options":{"legend":{"displayMode":"list","placement":"bottom","showLegend":false},"pieType":"pie","reduceOptions":{"calcs":["lastNotNull"],"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":13},"hideTimeOverride":true,"id":37,"links":[{"title":"Details by Statement ","url":"/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}"}],"options":{"displayMode":"basic","minVizHeight":10,"minVizWidth":0,"orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"fields":"","values":false},"showUnfilled":false,"valueMode":"color"},"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":"bargauge"},{"collapsed":false,"datasource":{"type":"influxdb","uid":"P7F1571328205BBA6"},"gridPos":{"h":1,"w":24,"x":0,"y":17},"id":17,"panels":[],"targets":[{"datasource":{"type":"influxdb","uid":"P7F1571328205BBA6"},"refId":"A"}],"title":"Indexes","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":18},"hideTimeOverride":true,"id":10,"links":[{"title":"Details by Statement","url":"/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":18},"hideTimeOverride":true,"id":12,"links":[{"title":"Details by Statement","url":"/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":18},"hideTimeOverride":true,"id":15,"links":[{"title":"Details by Statement","url":"/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":18},"hideTimeOverride":true,"id":13,"links":[{"title":"Details by Statement","url":"/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":18},"hideTimeOverride":true,"id":11,"links":[{"title":"Details by Statement","url":"/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":18},"hideTimeOverride":true,"id":14,"links":[{"title":"Details by Statement","url":"/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":22},"id":4,"panels":[],"repeat":"SQLStatementStats","targets":[{"datasource":{"type":"influxdb","uid":"P7F1571328205BBA6"},"refId":"A"}],"title":"Records","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":23},"hideTimeOverride":true,"id":20,"links":[{"title":"Details by Statement","url":"/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":23},"hideTimeOverride":true,"id":18,"links":[{"title":"Details by Statement","url":"/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":23},"hideTimeOverride":true,"id":21,"links":[{"title":"Details by Statement","url":"/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":23},"hideTimeOverride":true,"id":36,"links":[{"title":"Details by Statement","url":"/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":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":"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":true,"text":["All"],"value":["$__all"]},"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":"SQL Statements","uid":"cul4kM9Vz","version":65,"weekStart":""}} \ No newline at end of file From 24a18afda3a950c2e0c8efbc797f9e4f8523bd34 Mon Sep 17 00:00:00 2001 From: Dirk Butson Date: Fri, 28 Jul 2023 17:12:59 -0400 Subject: [PATCH 04/14] time range --- .../dashboards/nuodb_client/client-msgs.json | 451 +- .../nuodb_client/sql-statements.json | 5557 ++++++++++++++++- 2 files changed, 6006 insertions(+), 2 deletions(-) diff --git a/conf/provisioning/dashboards/nuodb_client/client-msgs.json b/conf/provisioning/dashboards/nuodb_client/client-msgs.json index ac0147f..a018540 100644 --- a/conf/provisioning/dashboards/nuodb_client/client-msgs.json +++ b/conf/provisioning/dashboards/nuodb_client/client-msgs.json @@ -1 +1,450 @@ -{"meta":{"type":"db","canSave":true,"canEdit":true,"canAdmin":true,"canStar":true,"canDelete":true,"slug":"client-messages","url":"/d/z35SM6j4z/client-messages","expires":"0001-01-01T00:00:00Z","created":"2023-07-21T13:59:27Z","updated":"2023-07-26T20:55:41Z","updatedBy":"Anonymous","createdBy":"admin","version":18,"hasAcl":false,"isFolder":false,"folderId":20,"folderUid":"b7c2a563-48a3-426d-be2b-0f9fffbd8a85","folderTitle":"nuodb_client","folderUrl":"/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client","provisioned":false,"provisionedExternalId":"client-msgs.json","annotationsPermissions":{"dashboard":{"canAdd":true,"canEdit":true,"canDelete":true},"organization":{"canAdd":true,"canEdit":true,"canDelete":true}},"publicDashboardAccessToken":"","publicDashboardUid":"","publicDashboardEnabled":false},"dashboard":{"annotations":{"list":[{"$$hashKey":"object:65","builtIn":1,"datasource":{"type":"datasource","uid":"grafana"},"enable":true,"hide":true,"iconColor":"rgba(0, 211, 255, 1)","name":"Annotations \u0026 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":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":"marcusolsson-json-datasource","uid":"fb12902f-919a-4aa9-89de-398bdfce52df"},"fieldConfig":{"defaults":{"color":{"fixedColor":"super-light-blue","mode":"fixed"},"custom":{"align":"auto","cellOptions":{"type":"color-text"},"inspect":false},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"green","value":null}]},"unit":"none"},"overrides":[{"matcher":{"id":"byName","options":"TypeGroup"},"properties":[{"id":"custom.width","value":131}]},{"matcher":{"id":"byName","options":"MsgType"},"properties":[{"id":"custom.width","value":253}]},{"matcher":{"id":"byName","options":"Count"},"properties":[{"id":"custom.width","value":118}]},{"matcher":{"id":"byName","options":"Duration"},"properties":[{"id":"unit","value":"µs"}]}]},"gridPos":{"h":24,"w":12,"x":0,"y":0},"id":10,"maxPerRow":2,"options":{"cellHeight":"sm","footer":{"countRows":false,"fields":"","reducer":["sum"],"show":true},"frameIndex":1,"showHeader":true,"sortBy":[]},"pluginVersion":"10.0.2","repeat":"host","repeatDirection":"h","targets":[{"body":"\"select TYPE,\\\"GROUP\\\",COUNT,DURATION from system.localclientmessages order by DURATION desc\"","cacheDurationSeconds":0,"datasource":{"type":"marcusolsson-json-datasource","uid":"fb12902f-919a-4aa9-89de-398bdfce52df"},"fields":[{"jsonPath":"$.rows[*][0]","name":"MsgType","type":"string"},{"jsonPath":"$.rows[*][1]","language":"jsonpath","name":"TypeGroup"},{"jsonPath":"$.rows[*][2]","language":"jsonpath","name":"Count"},{"jsonPath":"$.rows[*][3]","language":"jsonpath","name":"Duration"}],"method":"POST","params":[["dbname","$database"],["hostname","$host"]],"queryParams":"","refId":"A","urlPath":"/query"}],"title":"Client Messages ($host)","type":"table"}],"refresh":"30s","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":["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}]},"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":"Client Messages","uid":"z35SM6j4z","version":18,"weekStart":""}} \ No newline at end of file +{ + "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": 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": "marcusolsson-json-datasource", + "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "super-light-blue", + "mode": "fixed" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "color-text" + }, + "inspect": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "TypeGroup" + }, + "properties": [ + { + "id": "custom.width", + "value": 131 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "MsgType" + }, + "properties": [ + { + "id": "custom.width", + "value": 253 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Count" + }, + "properties": [ + { + "id": "custom.width", + "value": 118 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Duration" + }, + "properties": [ + { + "id": "unit", + "value": "µs" + } + ] + } + ] + }, + "gridPos": { + "h": 24, + "w": 12, + "x": 0, + "y": 0 + }, + "id": 10, + "maxPerRow": 2, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": true + }, + "frameIndex": 1, + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "10.0.3", + "repeat": "host", + "repeatDirection": "h", + "targets": [ + { + "body": "select TYPE,\"GROUP\",COUNT,DURATION from system.localclientmessages order by DURATION desc", + "cacheDurationSeconds": 0, + "datasource": { + "type": "marcusolsson-json-datasource", + "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" + }, + "fields": [ + { + "jsonPath": "$.rows[*][0]", + "name": "MsgType", + "type": "string" + }, + { + "jsonPath": "$.rows[*][1]", + "language": "jsonpath", + "name": "TypeGroup" + }, + { + "jsonPath": "$.rows[*][2]", + "language": "jsonpath", + "name": "Count" + }, + { + "jsonPath": "$.rows[*][3]", + "language": "jsonpath", + "name": "Duration" + } + ], + "method": "POST", + "params": [ + [ + "dbname", + "$database" + ], + [ + "hostname", + "$host" + ] + ], + "queryParams": "", + "refId": "A", + "urlPath": "/query" + } + ], + "title": "Client Messages ($host)", + "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 + } + ] + }, + "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": "Client Messages", + "uid": "z35SM6j4z", + "version": 19, + "weekStart": "" +} \ No newline at end of file diff --git a/conf/provisioning/dashboards/nuodb_client/sql-statements.json b/conf/provisioning/dashboards/nuodb_client/sql-statements.json index 9cb3c7b..71f8ece 100644 --- a/conf/provisioning/dashboards/nuodb_client/sql-statements.json +++ b/conf/provisioning/dashboards/nuodb_client/sql-statements.json @@ -1 +1,5556 @@ -{"meta":{"type":"db","canSave":true,"canEdit":true,"canAdmin":true,"canStar":true,"canDelete":true,"slug":"sql-statements","url":"/d/cul4kM9Vz/sql-statements","expires":"0001-01-01T00:00:00Z","created":"2023-06-28T15:11:31Z","updated":"2023-07-27T18:12:47Z","updatedBy":"admin","createdBy":"admin","version":65,"hasAcl":false,"isFolder":false,"folderId":20,"folderUid":"b7c2a563-48a3-426d-be2b-0f9fffbd8a85","folderTitle":"nuodb_client","folderUrl":"/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client","provisioned":false,"provisionedExternalId":"sql-statements.json","annotationsPermissions":{"dashboard":{"canAdd":true,"canEdit":true,"canDelete":true},"organization":{"canAdd":true,"canEdit":true,"canDelete":true}},"publicDashboardAccessToken":"","publicDashboardUid":"","publicDashboardEnabled":false},"dashboard":{"annotations":{"list":[{"builtIn":1,"datasource":{"type":"datasource","uid":"grafana"},"enable":true,"hide":true,"iconColor":"rgba(0, 211, 255, 1)","name":"Annotations \u0026 Alerts","target":{"limit":100,"matchAny":false,"tags":[],"type":"dashboard"},"type":"dashboard"},{"datasource":{"type":"datasource","uid":"grafana"},"enable":true,"iconColor":"red","name":"db annotations","target":{"limit":100,"matchAny":true,"tags":["$database"],"type":"tags"}}]},"editable":true,"fiscalYearStartMonth":0,"graphTooltip":1,"id":14,"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":{"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"}},"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":{"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"}},"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":9,"x":0,"y":2},"hideTimeOverride":true,"id":45,"links":[{"title":"","url":"/d/z35SM6j4z/client-messages?${__all_variables}"}],"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":"palette-classic"},"custom":{"hideFrom":{"legend":false,"tooltip":false,"viz":false}},"links":[{"targetBlank":false,"title":"Details","url":"/d/z35SM6j4z/client-messages"}],"mappings":[],"unit":"µs"},"overrides":[]},"gridPos":{"h":5,"w":3,"x":9,"y":2},"hideTimeOverride":true,"id":52,"links":[{"targetBlank":false,"title":"client messages expanded","url":"/d/z35SM6j4z/client-messages?${__all_variables}"}],"options":{"legend":{"displayMode":"list","placement":"bottom","showLegend":false},"pieType":"pie","reduceOptions":{"calcs":["lastNotNull"],"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":12,"y":2},"hideTimeOverride":true,"id":54,"links":[{"title":"Details","url":"/d/z35SM6j4z/client-messages?${__all_variables}"}],"options":{"legend":{"displayMode":"list","placement":"bottom","showLegend":false},"pieType":"pie","reduceOptions":{"calcs":["lastNotNull"],"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":9,"x":15,"y":2},"hideTimeOverride":true,"id":44,"links":[{"title":"Details","url":"/d/z35SM6j4z/client-messages?${__all_variables}"}],"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":"Platform","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}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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}]},"unit":"s"},"overrides":[]},"gridPos":{"h":4,"w":3,"x":6,"y":8},"id":26,"links":[{"title":"Overview","url":"/d/AeBZNz9Vk/nuodb-overview?${__all_variables}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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"},"fieldConfig":{"defaults":{"color":{"mode":"thresholds"},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"light-blue","value":null}]},"unit":"s"},"overrides":[]},"gridPos":{"h":4,"w":3,"x":9,"y":8},"hideTimeOverride":true,"id":27,"links":[{"title":"Overview","url":"/d/AeBZNz9Vk/nuodb-overview?${__all_variables}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":"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":{"fixedColor":"semi-dark-yellow","mode":"fixed"},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"light-blue","value":null}]},"unit":"none"},"overrides":[]},"gridPos":{"h":4,"w":3,"x":12,"y":8},"hideTimeOverride":true,"id":46,"links":[{"title":"SQL Dashboard","url":"/d/J9fZNkr4z/sql?${__all_variables}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":"SqlListenerSqlProcTime","orderByTime":"ASC","policy":"default","query":"SELECT SUM(R) FROM (SELECT mean(\"rate\") AS R FROM \"Commits\" 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":"Commits","type":"stat"},{"datasource":{"type":"influxdb","uid":"P7F1571328205BBA6"},"fieldConfig":{"defaults":{"color":{"mode":"thresholds"},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"light-blue","value":null}]},"unit":"none"},"overrides":[]},"gridPos":{"h":4,"w":3,"x":15,"y":8},"hideTimeOverride":true,"id":33,"links":[{"title":"SQL Dashboard","url":"/d/J9fZNkr4z/sql?${__all_variables}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":"Inserts","orderByTime":"ASC","policy":"default","query":"SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"Inserts\" 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":"Inserts","type":"stat"},{"datasource":{"type":"influxdb","uid":"P7F1571328205BBA6"},"fieldConfig":{"defaults":{"color":{"mode":"thresholds"},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"light-blue","value":null}]},"unit":"none"},"overrides":[]},"gridPos":{"h":4,"w":3,"x":18,"y":8},"hideTimeOverride":true,"id":35,"links":[{"title":"SQL Dashboard","url":"/d/J9fZNkr4z/sql?${__all_variables}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":"Updates","orderByTime":"ASC","policy":"default","query":"SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"Updates\" 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":"Updates","type":"stat"},{"datasource":{"type":"influxdb","uid":"P7F1571328205BBA6"},"fieldConfig":{"defaults":{"color":{"mode":"thresholds"},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"light-blue","value":null}]},"unit":"none"},"overrides":[]},"gridPos":{"h":4,"w":3,"x":21,"y":8},"hideTimeOverride":true,"id":34,"links":[{"title":"SQL Dashboard","url":"/d/J9fZNkr4z/sql?${__all_variables}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":"Deletes","orderByTime":"ASC","policy":"default","query":"SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"Deletes\" 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":"Deletes","type":"stat"},{"collapsed":false,"datasource":{"type":"influxdb","uid":"P7F1571328205BBA6"},"gridPos":{"h":1,"w":24,"x":0,"y":12},"id":23,"panels":[],"targets":[{"datasource":{"type":"influxdb","uid":"P7F1571328205BBA6"},"refId":"A"}],"title":"Rows","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"}},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"light-blue","value":null}]}},"overrides":[]},"gridPos":{"h":4,"w":6,"x":0,"y":13},"hideTimeOverride":true,"id":2,"links":[{"title":"Details by Statement","url":"/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}"}],"options":{"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"mode":"single","sort":"none"}},"pluginVersion":"8.3.0","targets":[{"datasource":{"type":"influxdb","uid":"P7F1571328205BBA6"},"groupBy":[{"params":["$__interval"],"type":"time"},{"params":["null"],"type":"fill"}],"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"}]}],"timeShift":"10s","title":"Statements Executed","type":"timeseries"},{"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":13},"hideTimeOverride":true,"id":38,"links":[{"title":"Details by Statement","url":"/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}\u0026${__url_time_range}"}],"options":{"colorMode":"value","graphMode":"none","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":13},"hideTimeOverride":true,"id":29,"links":[{"title":"Details by Statement","url":"/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}"}],"options":{"legend":{"displayMode":"list","placement":"bottom","showLegend":false},"pieType":"pie","reduceOptions":{"calcs":["lastNotNull"],"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":13},"hideTimeOverride":true,"id":37,"links":[{"title":"Details by Statement ","url":"/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}"}],"options":{"displayMode":"basic","minVizHeight":10,"minVizWidth":0,"orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"fields":"","values":false},"showUnfilled":false,"valueMode":"color"},"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":"bargauge"},{"collapsed":false,"datasource":{"type":"influxdb","uid":"P7F1571328205BBA6"},"gridPos":{"h":1,"w":24,"x":0,"y":17},"id":17,"panels":[],"targets":[{"datasource":{"type":"influxdb","uid":"P7F1571328205BBA6"},"refId":"A"}],"title":"Indexes","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":18},"hideTimeOverride":true,"id":10,"links":[{"title":"Details by Statement","url":"/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":18},"hideTimeOverride":true,"id":12,"links":[{"title":"Details by Statement","url":"/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":18},"hideTimeOverride":true,"id":15,"links":[{"title":"Details by Statement","url":"/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":18},"hideTimeOverride":true,"id":13,"links":[{"title":"Details by Statement","url":"/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":18},"hideTimeOverride":true,"id":11,"links":[{"title":"Details by Statement","url":"/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":18},"hideTimeOverride":true,"id":14,"links":[{"title":"Details by Statement","url":"/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":22},"id":4,"panels":[],"repeat":"SQLStatementStats","targets":[{"datasource":{"type":"influxdb","uid":"P7F1571328205BBA6"},"refId":"A"}],"title":"Records","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":23},"hideTimeOverride":true,"id":20,"links":[{"title":"Details by Statement","url":"/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":23},"hideTimeOverride":true,"id":18,"links":[{"title":"Details by Statement","url":"/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":23},"hideTimeOverride":true,"id":21,"links":[{"title":"Details by Statement","url":"/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":23},"hideTimeOverride":true,"id":36,"links":[{"title":"Details by Statement","url":"/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":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":"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":true,"text":["All"],"value":["$__all"]},"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":"SQL Statements","uid":"cul4kM9Vz","version":65,"weekStart":""}} \ No newline at end of file +{ + "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": "red", + "name": "db annotations", + "target": { + "limit": 100, + "matchAny": true, + "tags": [ + "$database" + ], + "type": "tags" + } + } + ] + }, + "editable": false, + "fiscalYearStartMonth": 0, + "graphTooltip": 1, + "id": 14, + "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": 9, + "x": 0, + "y": 2 + }, + "hideTimeOverride": true, + "id": 45, + "links": [ + { + "title": "", + "url": "/d/z35SM6j4z/client-messages?${__all_variables}&${__url_time_range}" + } + ], + "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": "palette-classic" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "links": [ + { + "targetBlank": false, + "title": "Details", + "url": "/d/z35SM6j4z/client-messages" + } + ], + "mappings": [], + "unit": "µs" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 9, + "y": 2 + }, + "hideTimeOverride": true, + "id": 52, + "links": [ + { + "targetBlank": false, + "title": "", + "url": "/d/z35SM6j4z/client-messages?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "pieType": "pie", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": 12, + "y": 2 + }, + "hideTimeOverride": true, + "id": 54, + "links": [ + { + "title": "Details", + "url": "/d/z35SM6j4z/client-messages?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "pieType": "pie", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": 9, + "x": 15, + "y": 2 + }, + "hideTimeOverride": true, + "id": 44, + "links": [ + { + "title": "Details", + "url": "/d/z35SM6j4z/client-messages?${__all_variables}&${__url_time_range}" + } + ], + "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": "Platform", + "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": [ + "lastNotNull" + ], + "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": [ + "lastNotNull" + ], + "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 + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 6, + "y": 8 + }, + "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": [ + "lastNotNull" + ], + "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" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "light-blue", + "value": null + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 9, + "y": 8 + }, + "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": [ + "lastNotNull" + ], + "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": "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": { + "fixedColor": "semi-dark-yellow", + "mode": "fixed" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "light-blue", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 12, + "y": 8 + }, + "hideTimeOverride": true, + "id": 46, + "links": [ + { + "title": "SQL Dashboard", + "url": "/d/J9fZNkr4z/sql?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": "SqlListenerSqlProcTime", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT SUM(R) FROM (SELECT mean(\"rate\") AS R FROM \"Commits\" 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": "Commits", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "light-blue", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 15, + "y": 8 + }, + "hideTimeOverride": true, + "id": 33, + "links": [ + { + "title": "SQL Dashboard", + "url": "/d/J9fZNkr4z/sql?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": "Inserts", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"Inserts\" 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": "Inserts", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "light-blue", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 18, + "y": 8 + }, + "hideTimeOverride": true, + "id": 35, + "links": [ + { + "title": "SQL Dashboard", + "url": "/d/J9fZNkr4z/sql?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": "Updates", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"Updates\" 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": "Updates", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "light-blue", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 21, + "y": 8 + }, + "hideTimeOverride": true, + "id": 34, + "links": [ + { + "title": "SQL Dashboard", + "url": "/d/J9fZNkr4z/sql?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": "Deletes", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"Deletes\" 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": "Deletes", + "type": "stat" + }, + { + "collapsed": false, + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 12 + }, + "id": 23, + "panels": [], + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "refId": "A" + } + ], + "title": "Rows", + "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" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "light-blue", + "value": null + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 6, + "x": 0, + "y": 13 + }, + "hideTimeOverride": true, + "id": 2, + "links": [ + { + "title": "Details by Statement", + "url": "/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "8.3.0", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "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" + } + ] + } + ], + "timeShift": "10s", + "title": "Statements Executed", + "type": "timeseries" + }, + { + "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": 13 + }, + "hideTimeOverride": true, + "id": 38, + "links": [ + { + "title": "Details by Statement", + "url": "/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": 13 + }, + "hideTimeOverride": true, + "id": 29, + "links": [ + { + "title": "Details by Statement", + "url": "/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "pieType": "pie", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": 13 + }, + "hideTimeOverride": true, + "id": 37, + "links": [ + { + "title": "Details by Statement ", + "url": "/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "displayMode": "basic", + "minVizHeight": 10, + "minVizWidth": 0, + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showUnfilled": false, + "valueMode": "color" + }, + "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": "bargauge" + }, + { + "collapsed": false, + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 17 + }, + "id": 17, + "panels": [], + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "refId": "A" + } + ], + "title": "Indexes", + "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": 18 + }, + "hideTimeOverride": true, + "id": 10, + "links": [ + { + "title": "Details by Statement", + "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": 18 + }, + "hideTimeOverride": true, + "id": 12, + "links": [ + { + "title": "Details by Statement", + "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": 18 + }, + "hideTimeOverride": true, + "id": 15, + "links": [ + { + "title": "Details by Statement", + "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": 18 + }, + "hideTimeOverride": true, + "id": 13, + "links": [ + { + "title": "Details by Statement", + "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": 18 + }, + "hideTimeOverride": true, + "id": 11, + "links": [ + { + "title": "Details by Statement", + "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": 18 + }, + "hideTimeOverride": true, + "id": 14, + "links": [ + { + "title": "Details by Statement", + "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": 22 + }, + "id": 4, + "panels": [], + "repeat": "SQLStatementStats", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "refId": "A" + } + ], + "title": "Records", + "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": 23 + }, + "hideTimeOverride": true, + "id": 20, + "links": [ + { + "title": "Details by Statement", + "url": "/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": 23 + }, + "hideTimeOverride": true, + "id": 18, + "links": [ + { + "title": "Details by Statement", + "url": "/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": 23 + }, + "hideTimeOverride": true, + "id": 21, + "links": [ + { + "title": "Details by Statement", + "url": "/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": 23 + }, + "hideTimeOverride": true, + "id": 36, + "links": [ + { + "title": "Details by Statement", + "url": "/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": "", + "schemaVersion": 38, + "style": "dark", + "tags": [ + "overview" + ], + "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": "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": [ + "All" + ], + "value": [ + "$__all" + ] + }, + "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-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": "utc", + "title": "SQL Statements", + "uid": "cul4kM9Vz", + "version": 69, + "weekStart": "" +} \ No newline at end of file From 79c43628c4b88d8228aef0a47fa6d8fcfcb20e10 Mon Sep 17 00:00:00 2001 From: Dirk Butson Date: Mon, 31 Jul 2023 11:20:46 -0400 Subject: [PATCH 05/14] nuodb_client refresh --- .../nuodb_client/client-messages.json | 1 + .../nuodb_client/log-sql-execute.json | 2 +- .../nuodb_client/nuodb-sql-statements.json | 1 + .../dashboards/nuodb_client/sql-log.json | 2 +- .../dashboards/nuodb_client/sql-logs.json | 1 + .../nuodb_client/sql-statement-details.json | 2 +- .../sql-statement-executions.json | 2 +- .../sql-statement-operations.json | 2 +- .../nuodb_client/sql-statements.json | 5557 +---------------- 9 files changed, 9 insertions(+), 5561 deletions(-) create mode 100644 conf/provisioning/dashboards/nuodb_client/client-messages.json create mode 100644 conf/provisioning/dashboards/nuodb_client/nuodb-sql-statements.json create mode 100644 conf/provisioning/dashboards/nuodb_client/sql-logs.json diff --git a/conf/provisioning/dashboards/nuodb_client/client-messages.json b/conf/provisioning/dashboards/nuodb_client/client-messages.json new file mode 100644 index 0000000..b23382a --- /dev/null +++ b/conf/provisioning/dashboards/nuodb_client/client-messages.json @@ -0,0 +1 @@ +{"meta":{"type":"db","canSave":true,"canEdit":true,"canAdmin":true,"canStar":true,"canDelete":true,"slug":"client-messages","url":"/d/z35SM6j4z/client-messages","expires":"0001-01-01T00:00:00Z","created":"2023-07-21T13:59:27Z","updated":"2023-07-28T20:00:45Z","updatedBy":"admin","createdBy":"admin","version":20,"hasAcl":false,"isFolder":false,"folderId":20,"folderUid":"b7c2a563-48a3-426d-be2b-0f9fffbd8a85","folderTitle":"nuodb_client","folderUrl":"/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client","provisioned":false,"provisionedExternalId":"client-msgs.json","annotationsPermissions":{"dashboard":{"canAdd":true,"canEdit":true,"canDelete":true},"organization":{"canAdd":true,"canEdit":true,"canDelete":true}},"publicDashboardAccessToken":"","publicDashboardUid":"","publicDashboardEnabled":false},"dashboard":{"annotations":{"list":[{"$$hashKey":"object:65","builtIn":1,"datasource":{"type":"datasource","uid":"grafana"},"enable":true,"hide":true,"iconColor":"rgba(0, 211, 255, 1)","name":"Annotations \u0026 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":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":"marcusolsson-json-datasource","uid":"fb12902f-919a-4aa9-89de-398bdfce52df"},"fieldConfig":{"defaults":{"color":{"fixedColor":"super-light-blue","mode":"fixed"},"custom":{"align":"auto","cellOptions":{"type":"color-text"},"inspect":false},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"green","value":null}]},"unit":"none"},"overrides":[{"matcher":{"id":"byName","options":"TypeGroup"},"properties":[{"id":"custom.width","value":131}]},{"matcher":{"id":"byName","options":"MsgType"},"properties":[{"id":"custom.width","value":253}]},{"matcher":{"id":"byName","options":"Count"},"properties":[{"id":"custom.width","value":118}]},{"matcher":{"id":"byName","options":"Duration"},"properties":[{"id":"unit","value":"µs"}]}]},"gridPos":{"h":24,"w":12,"x":0,"y":0},"id":10,"maxPerRow":2,"options":{"cellHeight":"sm","footer":{"countRows":false,"fields":"","reducer":["sum"],"show":true},"frameIndex":1,"showHeader":true,"sortBy":[]},"pluginVersion":"10.0.3","repeat":"host","repeatDirection":"h","targets":[{"body":"select TYPE,\"GROUP\",COUNT,DURATION from system.localclientmessages order by DURATION desc","cacheDurationSeconds":0,"datasource":{"type":"marcusolsson-json-datasource","uid":"fb12902f-919a-4aa9-89de-398bdfce52df"},"fields":[{"jsonPath":"$.rows[*][0]","name":"MsgType","type":"string"},{"jsonPath":"$.rows[*][1]","language":"jsonpath","name":"TypeGroup"},{"jsonPath":"$.rows[*][2]","language":"jsonpath","name":"Count"},{"jsonPath":"$.rows[*][3]","language":"jsonpath","name":"Duration"}],"method":"POST","params":[["dbname","$database"],["hostname","$host"]],"queryParams":"","refId":"A","urlPath":"/query"}],"title":"Client Messages ($host)","type":"table"}],"refresh":"30s","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":["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}]},"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":"Client Messages","uid":"z35SM6j4z","version":20,"weekStart":""}} \ No newline at end of file diff --git a/conf/provisioning/dashboards/nuodb_client/log-sql-execute.json b/conf/provisioning/dashboards/nuodb_client/log-sql-execute.json index 86c628c..529ef7c 100644 --- a/conf/provisioning/dashboards/nuodb_client/log-sql-execute.json +++ b/conf/provisioning/dashboards/nuodb_client/log-sql-execute.json @@ -1 +1 @@ -{"meta":{"type":"db","canSave":true,"canEdit":true,"canAdmin":true,"canStar":true,"canDelete":true,"slug":"log-sql-execute","url":"/d/f75f6aed-e2e1-4612-9e7a-5412150dca5d/log-sql-execute","expires":"0001-01-01T00:00:00Z","created":"2023-07-27T16:59:17Z","updated":"2023-07-27T18:10:27Z","updatedBy":"admin","createdBy":"admin","version":8,"hasAcl":false,"isFolder":false,"folderId":20,"folderUid":"b7c2a563-48a3-426d-be2b-0f9fffbd8a85","folderTitle":"nuodb_client","folderUrl":"/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client","provisioned":false,"provisionedExternalId":"","annotationsPermissions":{"dashboard":{"canAdd":true,"canEdit":true,"canDelete":true},"organization":{"canAdd":true,"canEdit":true,"canDelete":true}},"publicDashboardAccessToken":"","publicDashboardUid":"","publicDashboardEnabled":false},"dashboard":{"annotations":{"list":[{"$$hashKey":"object:65","builtIn":1,"datasource":{"type":"datasource","uid":"grafana"},"enable":true,"hide":true,"iconColor":"rgba(0, 211, 255, 1)","name":"Annotations \u0026 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":30,"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":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"fieldConfig":{"defaults":{"color":{"mode":"palette-classic"},"custom":{"axisCenteredZero":false,"axisColorMode":"text","axisLabel":"","axisPlacement":"auto","barAlignment":0,"drawStyle":"bars","fillOpacity":0,"gradientMode":"none","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"}},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"green","value":null},{"color":"red","value":80}]}},"overrides":[]},"gridPos":{"h":6,"w":24,"x":0,"y":0},"id":1,"options":{"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"mode":"single","sort":"none"}},"pluginVersion":"10.0.3","targets":[{"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"editorMode":"builder","expr":"{job=\"execution\", stmthash=\"$stmthash\"} | logfmt","key":"Q-603dd6c0-b9ea-47d9-87fa-aa99ec261e9a-0","queryType":"range","refId":"A"}],"title":"Statement $stmthash","transformations":[{"id":"extractFields","options":{"format":"json","jsonPaths":[{"path":"exectime"}],"keepTime":true,"replace":true,"source":"labels"}},{"id":"convertFieldType","options":{"conversions":[{"destinationType":"number","targetField":"exectime"}],"fields":{}}}],"type":"timeseries"},{"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"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":"time"},"properties":[{"id":"custom.hidden","value":true}]},{"matcher":{"id":"byName","options":"Time"},"properties":[{"id":"custom.width","value":176}]},{"matcher":{"id":"byName","options":"sqlhash"},"properties":[{"id":"custom.width","value":88},{"id":"custom.hidden","value":true}]}]},"gridPos":{"h":20,"w":24,"x":0,"y":6},"id":2,"options":{"cellHeight":"sm","footer":{"countRows":false,"fields":"","reducer":["sum"],"show":false},"showHeader":true,"sortBy":[]},"pluginVersion":"10.0.3","targets":[{"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"editorMode":"code","expr":"{job=\"execution\", stmthash=\"$stmthash\"}","key":"Q-603dd6c0-b9ea-47d9-87fa-aa99ec261e9a-0","queryType":"range","refId":"A"}],"title":"Statement $stmthash","transformations":[{"id":"extractFields","options":{"keepTime":true,"replace":true,"source":"Line"}}],"type":"table"}],"refresh":"5m","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":false,"text":"10008029380792074498","value":"10008029380792074498"},"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"definition":"","hide":2,"includeAll":false,"multi":false,"name":"stmthash","options":[],"query":{"label":"stmthash","refId":"LokiVariableQueryEditor-VariableQuery","stream":"","type":1},"refresh":2,"regex":"","skipUrlSync":false,"sort":0,"type":"query"},{"current":{"isNone":true,"selected":false,"text":"None","value":""},"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"definition":"","hide":0,"includeAll":false,"multi":false,"name":"sql","options":[],"query":{"label":"sql","refId":"LokiVariableQueryEditor-VariableQuery","stream":"","type":1},"refresh":2,"regex":"","skipUrlSync":false,"sort":0,"type":"query"}]},"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":"Log Sql Execute","uid":"f75f6aed-e2e1-4612-9e7a-5412150dca5d","version":8,"weekStart":""}} \ No newline at end of file +{"meta":{"type":"db","canSave":true,"canEdit":true,"canAdmin":true,"canStar":true,"canDelete":true,"slug":"log-sql-execute","url":"/d/f75f6aed-e2e1-4612-9e7a-5412150dca5d/log-sql-execute","expires":"0001-01-01T00:00:00Z","created":"2023-07-27T16:59:17Z","updated":"2023-07-28T20:39:13Z","updatedBy":"admin","createdBy":"admin","version":9,"hasAcl":false,"isFolder":false,"folderId":20,"folderUid":"b7c2a563-48a3-426d-be2b-0f9fffbd8a85","folderTitle":"nuodb_client","folderUrl":"/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client","provisioned":false,"provisionedExternalId":"","annotationsPermissions":{"dashboard":{"canAdd":true,"canEdit":true,"canDelete":true},"organization":{"canAdd":true,"canEdit":true,"canDelete":true}},"publicDashboardAccessToken":"","publicDashboardUid":"","publicDashboardEnabled":false},"dashboard":{"annotations":{"list":[{"$$hashKey":"object:65","builtIn":1,"datasource":{"type":"datasource","uid":"grafana"},"enable":true,"hide":true,"iconColor":"rgba(0, 211, 255, 1)","name":"Annotations \u0026 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":30,"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":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"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":"time"},"properties":[{"id":"custom.hidden","value":true}]},{"matcher":{"id":"byName","options":"Time"},"properties":[{"id":"custom.width","value":176}]},{"matcher":{"id":"byName","options":"sqlhash"},"properties":[{"id":"custom.width","value":88},{"id":"custom.hidden","value":true}]}]},"gridPos":{"h":20,"w":24,"x":0,"y":0},"id":2,"options":{"cellHeight":"sm","footer":{"countRows":false,"fields":"","reducer":["sum"],"show":false},"showHeader":true,"sortBy":[]},"pluginVersion":"10.0.3","targets":[{"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"editorMode":"code","expr":"{job=\"execution\", stmthash=\"$stmthash\"}","key":"Q-603dd6c0-b9ea-47d9-87fa-aa99ec261e9a-0","queryType":"range","refId":"A"}],"title":"Statement $stmthash","transformations":[{"id":"extractFields","options":{"keepTime":true,"replace":true,"source":"Line"}}],"type":"table"}],"refresh":"5m","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":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":true,"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":"10008029380792074498","value":"10008029380792074498"},"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"definition":"","hide":2,"includeAll":false,"multi":false,"name":"stmthash","options":[],"query":{"label":"stmthash","refId":"LokiVariableQueryEditor-VariableQuery","stream":"","type":1},"refresh":2,"regex":"","skipUrlSync":false,"sort":0,"type":"query"},{"current":{"isNone":true,"selected":false,"text":"None","value":""},"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"definition":"","hide":0,"includeAll":false,"multi":false,"name":"sql","options":[],"query":{"label":"sql","refId":"LokiVariableQueryEditor-VariableQuery","stream":"{source=\"statements\"}","type":1},"refresh":2,"regex":"","skipUrlSync":false,"sort":0,"type":"query"}]},"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":"Log Sql Execute","uid":"f75f6aed-e2e1-4612-9e7a-5412150dca5d","version":9,"weekStart":""}} \ No newline at end of file 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..23f3b25 --- /dev/null +++ b/conf/provisioning/dashboards/nuodb_client/nuodb-sql-statements.json @@ -0,0 +1 @@ +{"meta":{"type":"db","canSave":true,"canEdit":true,"canAdmin":true,"canStar":true,"canDelete":true,"slug":"nuodb-sql-statements","url":"/d/df0d2b01-89ff-4108-bace-32f436204209/nuodb-sql-statements","expires":"0001-01-01T00:00:00Z","created":"2023-07-30T18:45:18Z","updated":"2023-07-31T04:51:59Z","updatedBy":"admin","createdBy":"admin","version":41,"hasAcl":false,"isFolder":false,"folderId":20,"folderUid":"b7c2a563-48a3-426d-be2b-0f9fffbd8a85","folderTitle":"nuodb_client","folderUrl":"/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client","provisioned":false,"provisionedExternalId":"","annotationsPermissions":{"dashboard":{"canAdd":true,"canEdit":true,"canDelete":true},"organization":{"canAdd":true,"canEdit":true,"canDelete":true}},"publicDashboardAccessToken":"","publicDashboardUid":"","publicDashboardEnabled":false},"dashboard":{"annotations":{"list":[{"$$hashKey":"object:65","builtIn":1,"datasource":{"type":"datasource","uid":"grafana"},"enable":true,"hide":true,"iconColor":"rgba(0, 211, 255, 1)","name":"Annotations \u0026 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":true,"fiscalYearStartMonth":0,"graphTooltip":1,"id":35,"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":false,"gridPos":{"h":1,"w":24,"x":0,"y":0},"id":28,"panels":[],"title":"Selectors","type":"row"},{"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}\u0026${interval:queryparam}\u0026${database:queryparam}\u0026${host:queryparam}\u0026${__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 value, 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}\u0026${interval:queryparam}\u0026${database:queryparam}\u0026${host:queryparam}\u0026${__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}\u0026${interval:queryparam}\u0026${database:queryparam}\u0026${host:queryparam}\u0026${__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}\u0026${interval:queryparam}\u0026${database:queryparam}\u0026${host:queryparam}\u0026${__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}\u0026${interval:queryparam}\u0026${database:queryparam}\u0026${host:queryparam}\u0026${__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}\u0026${interval:queryparam}\u0026${database:queryparam}\u0026${host:queryparam}\u0026${__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 mean(\"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}\u0026${interval:queryparam}\u0026${database:queryparam}\u0026${host:queryparam}\u0026${__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}\u0026${interval:queryparam}\u0026${database:queryparam}\u0026${host:queryparam}\u0026${__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}\u0026${interval:queryparam}\u0026${database:queryparam}\u0026${host:queryparam}\u0026${__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}\u0026${interval:queryparam}\u0026${database:queryparam}\u0026${host:queryparam}\u0026${__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}\u0026${interval:queryparam}\u0026${database:queryparam}\u0026${host:queryparam}\u0026${__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}\u0026${interval:queryparam}\u0026${database:queryparam}\u0026${host:queryparam}\u0026${__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}\u0026${interval:queryparam}\u0026${database:queryparam}\u0026${host:queryparam}\u0026${__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}\u0026${interval:queryparam}\u0026${database:queryparam}\u0026${host:queryparam}\u0026${__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}\u0026${interval:queryparam}\u0026${database:queryparam}\u0026${host:queryparam}\u0026${__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}\u0026${interval:queryparam}\u0026${database:queryparam}\u0026${host:queryparam}\u0026${__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}\u0026${interval:queryparam}\u0026${database:queryparam}\u0026${host:queryparam}\u0026${__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"},{"collapsed":false,"gridPos":{"h":1,"w":24,"x":0,"y":26},"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":27},"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":{"mode":"thresholds"},"links":[{"title":"","url":"/d/df0d2b01-89ff-4108-bace-32f436204209/nuodb-sql-statements?var-id=${__data.fields.id}\u0026${interval:queryparam}\u0026${database:queryparam}\u0026${host:queryparam}\u0026${__url_time_range}"}],"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"green","value":null},{"color":"red","value":80}]},"unit":"none"},"overrides":[{"matcher":{"id":"byName","options":"id"},"properties":[{"id":"unit","value":"string"}]}]},"gridPos":{"h":5,"w":5,"x":0,"y":29},"id":45,"interval":"30s","options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","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":"autogen","refId":"A","resultFormat":"time_series","select":[[{"params":["numexecutes"],"type":"field"},{"params":[],"type":"sum"},{"params":[" / 30"],"type":"math"}]],"tags":[{"key":"host::tag","operator":"=~","value":"/^$host$/"},{"condition":"AND","key":"id::tag","operator":"=~","value":"/^$id$/"}]}],"title":"Executes","transformations":[{"id":"organize","options":{"excludeByName":{"Time":false,"nuodb_statements.sum {sqlstring: update STOCK set S_QUANTITY = ? , S_YTD = S_YTD + ?, S_ORDER_CNT = S_ORDER_CNT + 1, S_REMOTE_CNT = S_REMOTE_CNT + ? where S_I_ID = ? and S_W_ID = ?}":false},"indexByName":{},"renameByName":{"nuodb_statements.sum {sqlstring: update STOCK set S_QUANTITY = ? , S_YTD = S_YTD + ?, S_ORDER_CNT = S_ORDER_CNT + 1, S_REMOTE_CNT = S_REMOTE_CNT + ? where S_I_ID = ? and S_W_ID = ?}":""}}}],"type":"stat"}],"refresh":false,"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":false,"text":"30s","value":"30s"},{"selected":true,"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"},{"current":{"selected":false,"text":"update ORDER_LINE set OL_DELIVERY_D = ? where OL_O_ID = ? and OL_D_ID = ? and OL_W_ID = ?","value":"update ORDER_LINE set OL_DELIVERY_D = ? where OL_O_ID = ? and OL_D_ID = ? and OL_W_ID = ?"},"datasource":{"type":"influxdb","uid":"cdb0a5c8-a25e-4ddc-a047-9d8658d5249a"},"definition":"select \"sqlstring\" from (select \"id\",\"sqlstring\",first(\"numexecutes\") from nuodb_statements where \"id\" = '$id')","hide":2,"includeAll":false,"label":"sql","multi":false,"name":"sql","options":[],"query":"select \"sqlstring\" from (select \"id\",\"sqlstring\",first(\"numexecutes\") from nuodb_statements where \"id\" = '$id')","refresh":1,"regex":"","skipUrlSync":false,"sort":0,"type":"query"}]},"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":41,"weekStart":""}} \ No newline at end of file diff --git a/conf/provisioning/dashboards/nuodb_client/sql-log.json b/conf/provisioning/dashboards/nuodb_client/sql-log.json index 9ddd255..5bea71e 100644 --- a/conf/provisioning/dashboards/nuodb_client/sql-log.json +++ b/conf/provisioning/dashboards/nuodb_client/sql-log.json @@ -1 +1 @@ -{"meta":{"type":"db","canSave":true,"canEdit":true,"canAdmin":true,"canStar":true,"canDelete":true,"slug":"sql-log","url":"/d/f91c18e0-f71c-46eb-a3a8-2d0f63407d5b/sql-log","expires":"0001-01-01T00:00:00Z","created":"2023-07-28T13:06:30Z","updated":"2023-07-28T17:02:33Z","updatedBy":"admin","createdBy":"admin","version":8,"hasAcl":false,"isFolder":false,"folderId":20,"folderUid":"b7c2a563-48a3-426d-be2b-0f9fffbd8a85","folderTitle":"nuodb_client","folderUrl":"/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client","provisioned":false,"provisionedExternalId":"","annotationsPermissions":{"dashboard":{"canAdd":true,"canEdit":true,"canDelete":true},"organization":{"canAdd":true,"canEdit":true,"canDelete":true}},"publicDashboardAccessToken":"","publicDashboardUid":"","publicDashboardEnabled":false},"dashboard":{"annotations":{"list":[{"builtIn":1,"datasource":{"type":"grafana","uid":"-- Grafana --"},"enable":true,"hide":true,"iconColor":"rgba(0, 211, 255, 1)","name":"Annotations \u0026 Alerts","type":"dashboard"}]},"editable":true,"fiscalYearStartMonth":0,"graphTooltip":0,"id":31,"links":[],"liveNow":false,"panels":[{"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"fieldConfig":{"defaults":{"color":{"mode":"palette-classic"},"custom":{"hideFrom":{"legend":false,"tooltip":false,"viz":false}},"links":[{"title":"","url":"d/f91c18e0-f71c-46eb-a3a8-2d0f63407d5b/sql-log?${__all_variables}\u0026${__url_time_range}\u0026var-xplan=${__data.fields[\"Explain Plan\"]}"}],"mappings":[]},"overrides":[{"__systemRef":"hideSeriesFrom","matcher":{"id":"byNames","options":{"mode":"exclude","names":["Value #A","4571773242669381676","5576481376483995567","0"],"prefix":"All except:","readOnly":true}},"properties":[{"id":"custom.hideFrom","value":{"legend":false,"tooltip":false,"viz":true}}]}]},"gridPos":{"h":8,"w":6,"x":0,"y":0},"id":3,"links":[{"title":"","url":"d/f91c18e0-f71c-46eb-a3a8-2d0f63407d5b/sql-log?${${__all_variables}\u0026${__url_time_range}"}],"options":{"legend":{"displayMode":"list","placement":"right","showLegend":true},"pieType":"pie","reduceOptions":{"calcs":["lastNotNull"],"fields":"","values":true},"tooltip":{"mode":"single","sort":"none"}},"pluginVersion":"10.0.3","targets":[{"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"editorMode":"builder","expr":"sum by(xplanhash) (count_over_time({job=\"execution\", stmthash=~\"$statement\"} |~ `$filter` |= `$xplan` | logfmt [$__range]))","key":"Q-750d1062-cf8f-4219-b251-cca241a74556-0","legendFormat":"","queryType":"instant","refId":"A"}],"title":"Explain Plan Distribution","transformations":[{"id":"organize","options":{"excludeByName":{"Time":true,"Value #A":false},"indexByName":{},"renameByName":{"Value #A":"","xplanhash":"Explain Plan"}}}],"type":"piechart"},{"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"fieldConfig":{"defaults":{"color":{"mode":"palette-classic"},"custom":{"hideFrom":{"legend":false,"tooltip":false,"viz":false}},"mappings":[]},"overrides":[{"__systemRef":"hideSeriesFrom","matcher":{"id":"byNames","options":{"mode":"exclude","names":["Value #A"],"prefix":"All except:","readOnly":true}},"properties":[{"id":"custom.hideFrom","value":{"legend":false,"tooltip":false,"viz":true}}]}]},"gridPos":{"h":8,"w":6,"x":6,"y":0},"id":4,"options":{"legend":{"displayMode":"list","placement":"right","showLegend":true},"pieType":"pie","reduceOptions":{"calcs":["lastNotNull"],"fields":"","limit":10,"values":true},"tooltip":{"mode":"single","sort":"none"}},"pluginVersion":"10.0.3","targets":[{"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"editorMode":"builder","expr":"sum by(stmthash) (count_over_time({job=\"execution\", stmthash=~\"$statement\"} |~ `$filter` |= `$xplan` [$__range]))","key":"Q-750d1062-cf8f-4219-b251-cca241a74556-0","legendFormat":"","queryType":"instant","refId":"A"}],"title":"Statements","transformations":[{"id":"organize","options":{"excludeByName":{"Time":true,"Value #A":false},"indexByName":{},"renameByName":{"Value #A":"","xplanhash":"Explain Plan"}}}],"type":"piechart"},{"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"description":"Note the calculation is down in browser and the query is limited to 5000 lines returned from loki.","fieldConfig":{"defaults":{"color":{"mode":"palette-classic"},"custom":{"hideFrom":{"legend":false,"tooltip":false,"viz":false}},"links":[{"title":"Statement Filter","url":"/d/f91c18e0-f71c-46eb-a3a8-2d0f63407d5b/sql-log?var-statement=${__data.fields.stmthash}\u0026${filter:queryparam}\u0026${filters:queryparam}\u0026${__url_time_range}"}],"mappings":[],"unit":"µs"},"overrides":[{"matcher":{"id":"byName","options":"stmthash"},"properties":[{"id":"unit","value":"string"}]}]},"gridPos":{"h":8,"w":6,"x":12,"y":0},"id":5,"options":{"legend":{"displayMode":"table","placement":"right","showLegend":true},"pieType":"pie","reduceOptions":{"calcs":["lastNotNull"],"fields":"","values":true},"tooltip":{"mode":"single","sort":"none"}},"pluginVersion":"10.0.3","targets":[{"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"editorMode":"builder","expr":"{job=\"execution\", stmthash=~\"$statement\"} |~ `$filter` |= `$xplan` | logfmt","maxLines":5000,"queryType":"range","refId":"A","resolution":1}],"title":"Top 10 ExecTime for first 5000 execution in time window","transformations":[{"id":"extractFields","options":{"format":"auto","keepTime":true,"replace":true,"source":"labels"}},{"id":"organize","options":{"excludeByName":{"Time":true,"compiletime":true,"connid":true,"ddlop":true,"deletions":true,"diskspill":true,"dmlop":true,"evicted":true,"execcount":true,"filename":true,"hostname":true,"indexfetches":true,"indexhits":true,"inserts":true,"job":true,"locked":true,"numindexfetch":true,"numtablefetch":true,"peakmemusage":true,"recordsfetched":true,"recordsreturned":true,"rejectindexhits":true,"replaces":true,"sorted":true,"sqlhash":true,"tablefetches":true,"time":true,"transid":true,"updates":true,"xplanhash":true},"indexByName":{},"renameByName":{}}},{"id":"convertFieldType","options":{"conversions":[{"destinationType":"number","targetField":"exectime"}],"fields":{}}},{"id":"groupBy","options":{"fields":{"exectime":{"aggregations":["sum"],"operation":"aggregate"},"stmthash":{"aggregations":[],"operation":"groupby"}}}}],"type":"piechart"},{"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"gridPos":{"h":19,"w":24,"x":0,"y":8},"id":2,"options":{"dedupStrategy":"none","enableLogDetails":true,"prettifyLogMessage":false,"showCommonLabels":false,"showLabels":false,"showTime":true,"sortOrder":"Descending","wrapLogMessage":false},"targets":[{"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"editorMode":"builder","expr":"{job=\"execution\", stmthash=~\"$statement\"} |~ `$filter` |= `$xplan` | logfmt","key":"Q-750d1062-cf8f-4219-b251-cca241a74556-0","queryType":"range","refId":"A"}],"title":"New Panel","transformations":[{"id":"extractFields","options":{"format":"auto","keepTime":false,"replace":false,"source":"labels"}},{"id":"organize","options":{"excludeByName":{"Line":false,"compiletime":true,"connid":true,"ddlop":true,"deletions":true,"diskspill":true,"dmlop":true,"evicted":true,"execcount":true,"filename":true,"hostname":true,"id":true,"indexfetches":true,"indexhits":true,"inserts":true,"job":true,"labels":false,"locked":true,"numindexfetch":true,"numtablefetch":true,"peakmemusage":true,"recordsfetched":true,"recordsreturned":true,"rejectindexhits":true,"replaces":true,"sorted":true,"sqlhash":true,"stmthash":true,"tablefetches":true,"time":true,"transid":true,"tsNs":true,"updates":true,"xplanhash":true},"indexByName":{"Line":0,"Time":1,"compiletime":6,"connid":7,"ddlop":8,"deletions":9,"diskspill":10,"dmlop":11,"evicted":12,"execcount":13,"exectime":2,"filename":14,"hostname":15,"id":5,"indexfetches":16,"indexhits":17,"inserts":18,"job":19,"labels":3,"locked":20,"numindexfetch":21,"numtablefetch":22,"peakmemusage":23,"recordsfetched":24,"recordsreturned":25,"rejectindexhits":26,"replaces":27,"sorted":28,"sqlhash":29,"stmthash":30,"tablefetches":31,"time":32,"transid":33,"tsNs":4,"updates":34,"xplanhash":35},"renameByName":{}}}],"type":"logs"}],"refresh":false,"schemaVersion":38,"style":"dark","tags":[],"templating":{"list":[{"current":{"selected":true,"text":["All"],"value":["$__all"]},"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"definition":"","hide":0,"includeAll":true,"label":"statement","multi":true,"name":"statement","options":[],"query":{"label":"stmthash","refId":"LokiVariableQueryEditor-VariableQuery","stream":"","type":1},"refresh":1,"regex":"","skipUrlSync":false,"sort":0,"type":"query"},{"current":{"selected":false,"text":"xplanhash=0","value":"xplanhash=0"},"hide":0,"name":"filter","options":[{"selected":false,"text":"xplanhash=0","value":"xplanhash=0"}],"query":"xplanhash=0","skipUrlSync":false,"type":"textbox"},{"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"filters":[{"condition":"","key":"xplanhash","operator":"!=","value":"0"}],"hide":0,"name":"filters","skipUrlSync":false,"type":"adhoc"},{"current":{"selected":false,"text":"xplanhash=","value":"xplanhash="},"hide":0,"label":"explainplan","name":"xplan","options":[{"selected":false,"text":"107543700268292789","value":"107543700268292789"}],"query":"107543700268292789","skipUrlSync":false,"type":"textbox"}]},"time":{"from":"2023-07-27T20:17:00.000Z","to":"2023-07-27T20:27:00.000Z"},"timepicker":{},"timezone":"","title":"SQL Log","uid":"f91c18e0-f71c-46eb-a3a8-2d0f63407d5b","version":8,"weekStart":""}} \ No newline at end of file +{"meta":{"type":"db","canSave":true,"canEdit":true,"canAdmin":true,"canStar":true,"canDelete":true,"slug":"sql-log","url":"/d/f91c18e0-f71c-46eb-a3a8-2d0f63407d5b/sql-log","expires":"0001-01-01T00:00:00Z","created":"2023-07-28T13:06:30Z","updated":"2023-07-29T00:53:29Z","updatedBy":"admin","createdBy":"admin","version":13,"hasAcl":false,"isFolder":false,"folderId":20,"folderUid":"b7c2a563-48a3-426d-be2b-0f9fffbd8a85","folderTitle":"nuodb_client","folderUrl":"/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client","provisioned":false,"provisionedExternalId":"","annotationsPermissions":{"dashboard":{"canAdd":true,"canEdit":true,"canDelete":true},"organization":{"canAdd":true,"canEdit":true,"canDelete":true}},"publicDashboardAccessToken":"","publicDashboardUid":"","publicDashboardEnabled":false},"dashboard":{"annotations":{"list":[{"builtIn":1,"datasource":{"type":"grafana","uid":"-- Grafana --"},"enable":true,"hide":true,"iconColor":"rgba(0, 211, 255, 1)","name":"Annotations \u0026 Alerts","type":"dashboard"}]},"editable":true,"fiscalYearStartMonth":0,"graphTooltip":0,"id":31,"links":[],"liveNow":false,"panels":[{"datasource":{"type":"marcusolsson-json-datasource","uid":"e2d5f30c-bad3-4d03-85c8-6185099c31e9"},"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":"statement"},"properties":[{"id":"custom.hidden","value":true}]},{"matcher":{"id":"byName","options":"sql"},"properties":[{"id":"displayName","value":"Sql Statement"},{"id":"custom.inspect","value":true},{"id":"custom.filterable","value":true},{"id":"links","value":[{"title":"","url":"/d/f91c18e0-f71c-46eb-a3a8-2d0f63407d5b/sql-log?${__url_time_range}\u0026var-statement=${__data.fields.statement}\u0026${explainplan:queryparam}\u0026${filters:queryparam}\u0026${search:queryparam}\u0026${__url_time_range}"}]}]}]},"gridPos":{"h":9,"w":7,"x":0,"y":0},"id":6,"options":{"cellHeight":"sm","footer":{"countRows":false,"fields":"","reducer":["sum"],"show":false},"showHeader":true},"pluginVersion":"10.0.3","targets":[{"body":"select sqlstring,ID from system.localstatementcache","cacheDurationSeconds":0,"datasource":{"type":"marcusolsson-json-datasource","uid":"e2d5f30c-bad3-4d03-85c8-6185099c31e9"},"fields":[{"jsonPath":"$.data[*].sql","language":"jsonpath"},{"jsonPath":"$.data[*].statement","language":"jsonpath","name":""}],"key":"Q-899a8fb3-34f3-4994-bc57-fde9edf098a0-0","method":"GET","params":[["dbname","$database"]],"queryParams":"","refId":"A","urlPath":"/query"}],"title":"New Panel","type":"table"},{"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"fieldConfig":{"defaults":{"color":{"mode":"palette-classic"},"custom":{"hideFrom":{"legend":false,"tooltip":false,"viz":false}},"mappings":[]},"overrides":[]},"gridPos":{"h":9,"w":5,"x":7,"y":0},"id":7,"options":{"legend":{"displayMode":"table","placement":"right","showLegend":true},"pieType":"pie","reduceOptions":{"calcs":["lastNotNull"],"fields":"","values":true},"tooltip":{"mode":"single","sort":"none"}},"pluginVersion":"10.0.3","targets":[{"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"editorMode":"builder","expr":"sum by(statement) (count_over_time({source=\"executions\", explainplan=~\"$explainplan\", statement=~\"$statement\"} [$__range]))","key":"Q-00d75461-1f95-45bf-8a91-a7f263c61fdf-0","queryType":"instant","refId":"B"}],"title":"Statement Distribution","type":"piechart"},{"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"fieldConfig":{"defaults":{"color":{"mode":"palette-classic"},"custom":{"hideFrom":{"legend":false,"tooltip":false,"viz":false}},"links":[{"title":"","url":"/d/f91c18e0-f71c-46eb-a3a8-2d0f63407d5b/sql-log?${__url_time_range}\u0026var-explainplan=${__data.fields.explainplan}\u0026${statement:queryparam}\u0026${filters:queryparam}\u0026${search:queryparam}\u0026${__url_time_range}"}],"mappings":[]},"overrides":[]},"gridPos":{"h":9,"w":5,"x":12,"y":0},"id":8,"options":{"legend":{"displayMode":"table","placement":"right","showLegend":true},"pieType":"pie","reduceOptions":{"calcs":["lastNotNull"],"fields":"","values":true},"tooltip":{"mode":"single","sort":"none"}},"pluginVersion":"10.0.3","targets":[{"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"editorMode":"builder","expr":"topk by(explainplan) (20, sum by(explainplan) (count_over_time({source=\"executions\", explainplan=~\"$explainplan\", statement=\"$statement\"} [$__range])))","key":"Q-00d75461-1f95-45bf-8a91-a7f263c61fdf-0","queryType":"instant","refId":"B"}],"title":"Explain Plan Distribution","type":"piechart"},{"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"description":"Note the calculation is down in browser and the query is limited to 5000 lines returned from loki.","fieldConfig":{"defaults":{"color":{"mode":"palette-classic"},"custom":{"hideFrom":{"legend":false,"tooltip":false,"viz":false}},"links":[{"title":"Statement Filter","url":"/d/f91c18e0-f71c-46eb-a3a8-2d0f63407d5b/sql-log?var-statement=${__data.fields.stmthash}\u0026${filter:queryparam}\u0026${filters:queryparam}\u0026${__url_time_range}"}],"mappings":[],"unit":"µs"},"overrides":[{"matcher":{"id":"byName","options":"stmthash"},"properties":[{"id":"unit","value":"string"}]}]},"gridPos":{"h":8,"w":6,"x":18,"y":0},"id":5,"options":{"legend":{"displayMode":"table","placement":"right","showLegend":true},"pieType":"pie","reduceOptions":{"calcs":["lastNotNull"],"fields":"","values":true},"tooltip":{"mode":"single","sort":"none"}},"pluginVersion":"10.0.3","targets":[{"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"editorMode":"builder","expr":"{job=\"execution\", stmthash=~\"$statement\"} |~ `$filter` |= `$xplan` | logfmt","maxLines":5000,"queryType":"range","refId":"A","resolution":1}],"title":"Top 10 ExecTime for first 5000 execution in time window","transformations":[{"id":"extractFields","options":{"format":"auto","keepTime":true,"replace":true,"source":"labels"}},{"id":"organize","options":{"excludeByName":{"Time":true,"compiletime":true,"connid":true,"ddlop":true,"deletions":true,"diskspill":true,"dmlop":true,"evicted":true,"execcount":true,"filename":true,"hostname":true,"indexfetches":true,"indexhits":true,"inserts":true,"job":true,"locked":true,"numindexfetch":true,"numtablefetch":true,"peakmemusage":true,"recordsfetched":true,"recordsreturned":true,"rejectindexhits":true,"replaces":true,"sorted":true,"sqlhash":true,"tablefetches":true,"time":true,"transid":true,"updates":true,"xplanhash":true},"indexByName":{},"renameByName":{}}},{"id":"convertFieldType","options":{"conversions":[{"destinationType":"number","targetField":"exectime"}],"fields":{}}},{"id":"groupBy","options":{"fields":{"exectime":{"aggregations":["sum"],"operation":"aggregate"},"stmthash":{"aggregations":[],"operation":"groupby"}}}}],"type":"piechart"},{"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"gridPos":{"h":19,"w":24,"x":0,"y":9},"id":2,"options":{"dedupStrategy":"none","enableLogDetails":true,"prettifyLogMessage":false,"showCommonLabels":false,"showLabels":false,"showTime":true,"sortOrder":"Descending","wrapLogMessage":false},"targets":[{"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"editorMode":"builder","expr":"{job=\"execution\", stmthash=~\"$statement\"} |~ `$filter` |= `$xplan` | logfmt","key":"Q-750d1062-cf8f-4219-b251-cca241a74556-0","queryType":"range","refId":"A"}],"title":"New Panel","transformations":[{"id":"extractFields","options":{"format":"auto","keepTime":false,"replace":false,"source":"labels"}},{"id":"organize","options":{"excludeByName":{"Line":false,"compiletime":true,"connid":true,"ddlop":true,"deletions":true,"diskspill":true,"dmlop":true,"evicted":true,"execcount":true,"filename":true,"hostname":true,"id":true,"indexfetches":true,"indexhits":true,"inserts":true,"job":true,"labels":false,"locked":true,"numindexfetch":true,"numtablefetch":true,"peakmemusage":true,"recordsfetched":true,"recordsreturned":true,"rejectindexhits":true,"replaces":true,"sorted":true,"sqlhash":true,"stmthash":true,"tablefetches":true,"time":true,"transid":true,"tsNs":true,"updates":true,"xplanhash":true},"indexByName":{"Line":0,"Time":1,"compiletime":6,"connid":7,"ddlop":8,"deletions":9,"diskspill":10,"dmlop":11,"evicted":12,"execcount":13,"exectime":2,"filename":14,"hostname":15,"id":5,"indexfetches":16,"indexhits":17,"inserts":18,"job":19,"labels":3,"locked":20,"numindexfetch":21,"numtablefetch":22,"peakmemusage":23,"recordsfetched":24,"recordsreturned":25,"rejectindexhits":26,"replaces":27,"sorted":28,"sqlhash":29,"stmthash":30,"tablefetches":31,"time":32,"transid":33,"tsNs":4,"updates":34,"xplanhash":35},"renameByName":{}}}],"type":"logs"}],"refresh":"","schemaVersion":38,"style":"dark","tags":[],"templating":{"list":[{"current":{"selected":false,"text":".+","value":".+"},"hide":0,"label":"statement","name":"statement","options":[{"selected":false,"text":".+","value":".+"}],"query":".+","skipUrlSync":false,"type":"textbox"},{"current":{"selected":false,"text":".+","value":".+"},"hide":0,"label":"explainplan","name":"explainplan","options":[{"selected":true,"text":".+","value":".+"}],"query":".+","skipUrlSync":false,"type":"textbox"},{"current":{"selected":false,"text":"","value":""},"hide":0,"label":"search","name":"search","options":[{"selected":true,"text":"","value":""}],"query":"","skipUrlSync":false,"type":"textbox"},{"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"filters":[{"condition":"","key":"xplanhash","operator":"!=","value":"0"}],"hide":0,"name":"filters","skipUrlSync":false,"type":"adhoc"}]},"time":{"from":"2023-07-27T20:17:00.000Z","to":"2023-07-27T20:27:00.000Z"},"timepicker":{},"timezone":"","title":"SQL Log","uid":"f91c18e0-f71c-46eb-a3a8-2d0f63407d5b","version":13,"weekStart":""}} \ No newline at end of file diff --git a/conf/provisioning/dashboards/nuodb_client/sql-logs.json b/conf/provisioning/dashboards/nuodb_client/sql-logs.json new file mode 100644 index 0000000..35664f0 --- /dev/null +++ b/conf/provisioning/dashboards/nuodb_client/sql-logs.json @@ -0,0 +1 @@ +{"meta":{"type":"db","canSave":true,"canEdit":true,"canAdmin":true,"canStar":true,"canDelete":true,"slug":"sql-logs","url":"/d/c9081118-5230-478d-b6e8-d76614395704/sql-logs","expires":"0001-01-01T00:00:00Z","created":"2023-07-29T14:51:47Z","updated":"2023-07-29T17:32:38Z","updatedBy":"admin","createdBy":"admin","version":6,"hasAcl":false,"isFolder":false,"folderId":20,"folderUid":"b7c2a563-48a3-426d-be2b-0f9fffbd8a85","folderTitle":"nuodb_client","folderUrl":"/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client","provisioned":false,"provisionedExternalId":"","annotationsPermissions":{"dashboard":{"canAdd":true,"canEdit":true,"canDelete":true},"organization":{"canAdd":true,"canEdit":true,"canDelete":true}},"publicDashboardAccessToken":"","publicDashboardUid":"","publicDashboardEnabled":false},"dashboard":{"annotations":{"list":[{"$$hashKey":"object:65","builtIn":1,"datasource":{"type":"datasource","uid":"grafana"},"enable":true,"hide":true,"iconColor":"rgba(0, 211, 255, 1)","name":"Annotations \u0026 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":"NuoDB Summary","editable":true,"fiscalYearStartMonth":0,"graphTooltip":1,"id":34,"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":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"},{"aliasColors":{},"bars":true,"dashLength":10,"dashes":false,"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":{"links":[]},"overrides":[]},"fill":1,"fillGradient":0,"gridPos":{"h":4,"w":24,"x":0,"y":1},"hiddenSeries":false,"id":6,"interval":"$interval","legend":{"avg":false,"current":false,"max":false,"min":false,"show":false,"total":false,"values":false},"lines":false,"linewidth":1,"nullPointMode":"null","options":{"alertThreshold":true},"paceLength":10,"percentage":false,"pluginVersion":"10.0.3","pointradius":2,"points":false,"renderer":"flot","seriesOverrides":[{"$$hashKey":"object:133","alias":"NumberCores","bars":false,"color":"rgb(255, 255, 255)","fill":1,"lines":true,"linewidth":0,"stack":false,"steppedLine":true,"yaxis":2}],"spaceLength":10,"stack":true,"steppedLine":false,"targets":[{"alias":"$measurement","datasource":{"type":"influxdb","uid":"P7F1571328205BBA6"},"groupBy":[{"params":["$__interval"],"type":"time"},{"params":["null"],"type":"fill"}],"hide":false,"orderByTime":"ASC","policy":"default","query":"SELECT sum(nthreads) as \"nthreads\" FROM (SELECT mean(raw) / 10000. as \"nthreads\" FROM \"Summary.Fetch\",\"Summary.Commit\",\"Summary.Sync\",\"Summary.Lock\",\"Summary.NtwkSend\",\"Summary.Throttle\",\"Summary.CPU\" WHERE $timeFilter AND nodetype = 'Transaction' AND host =~ /^$host$/ AND db =~ /^$database$/ GROUP BY time($__interval), \"pid\" fill(null)) GROUP BY time($__interval)","rawQuery":true,"refId":"A","resultFormat":"time_series","select":[[{"params":["value"],"type":"field"},{"params":[],"type":"mean"}]],"tags":[]},{"alias":"$measurement","datasource":{"type":"influxdb","uid":"P7F1571328205BBA6"},"groupBy":[{"params":["$__interval"],"type":"time"},{"params":["null"],"type":"fill"}],"hide":false,"measurement":"NumberCores","orderByTime":"ASC","policy":"default","query":"SELECT sum(ncores) FROM (SELECT mean(\"raw\") as ncores FROM \"NumberCores\" WHERE (\"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/ AND \"nodetype\" = 'Transaction') AND $timeFilter GROUP BY time($__interval), \"startid\" fill(null)) GROUP BY time($__interval)","rawQuery":true,"refId":"C","resultFormat":"time_series","select":[[{"params":["raw"],"type":"field"},{"params":[],"type":"mean"}]],"tags":[{"key":"db","operator":"=~","value":"/^$database$/"},{"condition":"AND","key":"host","operator":"=~","value":"/^$host$/"},{"condition":"AND","key":"nodetype","operator":"=","value":"Transaction"}]}],"thresholds":[],"timeRegions":[],"title":"Summary","tooltip":{"shared":true,"sort":2,"value_type":"individual"},"type":"graph","xaxis":{"mode":"time","show":true,"values":[]},"yaxes":[{"$$hashKey":"object:150","decimals":1,"format":"short","label":"measurement relative to vCPU","logBase":1,"min":"0","show":true},{"$$hashKey":"object:151","format":"short","label":"total number of vCPU","logBase":1,"show":true}],"yaxis":{"align":false}},{"collapsed":false,"gridPos":{"h":1,"w":24,"x":0,"y":5},"id":9,"panels":[],"title":"Log","type":"row"},{"datasource":{"type":"marcusolsson-json-datasource","uid":"fb12902f-919a-4aa9-89de-398bdfce52df"},"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":6},"id":12,"options":{"cellHeight":"md","footer":{"countRows":false,"enablePagination":false,"fields":"","reducer":["sum"],"show":false},"showHeader":false},"pluginVersion":"10.0.3","targets":[{"body":"select sqlstring from system.localstatementcache where ID='$statement'","cacheDurationSeconds":0,"datasource":{"type":"marcusolsson-json-datasource","uid":"fb12902f-919a-4aa9-89de-398bdfce52df"},"fields":[{"jsonPath":"$.rows[*][0]","name":"sqlstring"}],"method":"POST","params":[["dbname","$database"],["hostname","localhost"]],"queryParams":"","refId":"A","urlPath":"/query"}],"transparent":true,"type":"table"},{"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"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":6,"w":24,"x":0,"y":8},"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":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"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":"Log Counts","type":"timeseries"},{"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"description":"Output is limited to 2000 lines","gridPos":{"h":20,"w":24,"x":0,"y":14},"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":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"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":false,"schemaVersion":38,"style":"dark","tags":["sql","overview"],"templating":{"list":[{"auto":true,"auto_count":100,"auto_min":"10ms","current":{"selected":false,"text":"1s","value":"1s"},"hide":0,"label":"interval","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":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":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":".+","value":".+"},"hide":0,"label":"statement","name":"statement","options":[{"selected":true,"text":".+","value":".+"}],"query":".+","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":"filter","name":"filter","options":[{"selected":false,"text":"","value":""}],"query":"","skipUrlSync":false,"type":"textbox"},{"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"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 Logs","uid":"c9081118-5230-478d-b6e8-d76614395704","version":6,"weekStart":""}} \ No newline at end of file diff --git a/conf/provisioning/dashboards/nuodb_client/sql-statement-details.json b/conf/provisioning/dashboards/nuodb_client/sql-statement-details.json index f64f369..a975675 100644 --- a/conf/provisioning/dashboards/nuodb_client/sql-statement-details.json +++ b/conf/provisioning/dashboards/nuodb_client/sql-statement-details.json @@ -1 +1 @@ -{"meta":{"type":"db","canSave":true,"canEdit":true,"canAdmin":true,"canStar":true,"canDelete":true,"slug":"sql-statement-details","url":"/d/f13dbb76-dc2a-42b9-af72-88700f6857b8/sql-statement-details","expires":"0001-01-01T00:00:00Z","created":"2023-07-21T19:49:29Z","updated":"2023-07-26T22:53:17Z","updatedBy":"admin","createdBy":"admin","version":14,"hasAcl":false,"isFolder":false,"folderId":20,"folderUid":"b7c2a563-48a3-426d-be2b-0f9fffbd8a85","folderTitle":"nuodb_client","folderUrl":"/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client","provisioned":false,"provisionedExternalId":"sql-statement-details.json","annotationsPermissions":{"dashboard":{"canAdd":true,"canEdit":true,"canDelete":true},"organization":{"canAdd":true,"canEdit":true,"canDelete":true}},"publicDashboardAccessToken":"","publicDashboardUid":"","publicDashboardEnabled":false},"dashboard":{"annotations":{"list":[{"$$hashKey":"object:65","builtIn":1,"datasource":{"type":"datasource","uid":"grafana"},"enable":true,"hide":true,"iconColor":"rgba(0, 211, 255, 1)","name":"Annotations \u0026 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}]}]},"gridPos":{"h":13,"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":[{"desc":true,"displayName":"A"}]},"pluginVersion":"10.0.3","repeat":"host","repeatDirection":"v","targets":[{"body":"select * from system.localstatementcache where ID='$id'","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":"","value":""}],"query":"","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":14,"weekStart":""}} \ No newline at end of file +{"meta":{"type":"db","canSave":true,"canEdit":true,"canAdmin":true,"canStar":true,"canDelete":true,"slug":"sql-statement-details","url":"/d/f13dbb76-dc2a-42b9-af72-88700f6857b8/sql-statement-details","expires":"0001-01-01T00:00:00Z","created":"2023-07-21T19:49:29Z","updated":"2023-07-28T21:34:59Z","updatedBy":"admin","createdBy":"admin","version":15,"hasAcl":false,"isFolder":false,"folderId":20,"folderUid":"b7c2a563-48a3-426d-be2b-0f9fffbd8a85","folderTitle":"nuodb_client","folderUrl":"/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client","provisioned":false,"provisionedExternalId":"sql-statement-details.json","annotationsPermissions":{"dashboard":{"canAdd":true,"canEdit":true,"canDelete":true},"organization":{"canAdd":true,"canEdit":true,"canDelete":true}},"publicDashboardAccessToken":"","publicDashboardUid":"","publicDashboardEnabled":false},"dashboard":{"annotations":{"list":[{"$$hashKey":"object:65","builtIn":1,"datasource":{"type":"datasource","uid":"grafana"},"enable":true,"hide":true,"iconColor":"rgba(0, 211, 255, 1)","name":"Annotations \u0026 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":12,"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'","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":true,"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":15,"weekStart":""}} \ No newline at end of file diff --git a/conf/provisioning/dashboards/nuodb_client/sql-statement-executions.json b/conf/provisioning/dashboards/nuodb_client/sql-statement-executions.json index d9b0897..7ef1d8c 100644 --- a/conf/provisioning/dashboards/nuodb_client/sql-statement-executions.json +++ b/conf/provisioning/dashboards/nuodb_client/sql-statement-executions.json @@ -1 +1 @@ -{"meta":{"type":"db","canSave":true,"canEdit":true,"canAdmin":true,"canStar":true,"canDelete":true,"slug":"sql-statement-executions","url":"/d/Qi5TDej4z/sql-statement-executions","expires":"0001-01-01T00:00:00Z","created":"2023-07-21T15:31:11Z","updated":"2023-07-26T20:55:41Z","updatedBy":"Anonymous","createdBy":"admin","version":28,"hasAcl":false,"isFolder":false,"folderId":20,"folderUid":"b7c2a563-48a3-426d-be2b-0f9fffbd8a85","folderTitle":"nuodb_client","folderUrl":"/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client","provisioned":false,"provisionedExternalId":"sql-statement-executions.json","annotationsPermissions":{"dashboard":{"canAdd":true,"canEdit":true,"canDelete":true},"organization":{"canAdd":true,"canEdit":true,"canDelete":true}},"publicDashboardAccessToken":"","publicDashboardUid":"","publicDashboardEnabled":false},"dashboard":{"annotations":{"list":[{"$$hashKey":"object:65","builtIn":1,"datasource":{"type":"datasource","uid":"grafana"},"enable":true,"hide":true,"iconColor":"rgba(0, 211, 255, 1)","name":"Annotations \u0026 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":"marcusolsson-json-datasource","uid":"fb12902f-919a-4aa9-89de-398bdfce52df"},"fieldConfig":{"defaults":{"color":{"fixedColor":"super-light-blue","mode":"fixed"},"custom":{"align":"auto","cellOptions":{"type":"color-text"},"filterable":false,"inspect":false},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"green","value":null}]},"unit":"µs"},"overrides":[{"matcher":{"id":"byName","options":"ID"},"properties":[{"id":"custom.hidden","value":true},{"id":"unit","value":"string"}]},{"matcher":{"id":"byName","options":"NumExecutes"},"properties":[{"id":"unit","value":"none"},{"id":"custom.width","value":118}]},{"matcher":{"id":"byName","options":"ExecTime"},"properties":[{"id":"custom.width","value":101}]},{"matcher":{"id":"byName","options":"CompileTime"},"properties":[{"id":"custom.width","value":107}]},{"matcher":{"id":"byName","options":"MinExecTime"},"properties":[{"id":"custom.width","value":106}]},{"matcher":{"id":"byName","options":"AvgExecTime"},"properties":[{"id":"custom.width","value":108}]},{"matcher":{"id":"byName","options":"MaxExecTime"},"properties":[{"id":"custom.width","value":115}]},{"matcher":{"id":"byName","options":"LastExecuted"},"properties":[{"id":"custom.width","value":175}]},{"matcher":{"id":"byName","options":"SqlString"},"properties":[{"id":"links","value":[{"title":"Detals","url":"/d/f13dbb76-dc2a-42b9-af72-88700f6857b8/sql-statement-details?var-id=${__data.fields.ID}\u0026${host:queryparam}"}]}]}]},"gridPos":{"h":12,"w":24,"x":0,"y":0},"id":10,"interval":"$interval","maxPerRow":2,"options":{"cellHeight":"sm","footer":{"countRows":false,"enablePagination":false,"fields":["EXECTIME","COMPILETIME"],"reducer":["sum"],"show":false},"frameIndex":1,"showHeader":true,"sortBy":[]},"pluginVersion":"10.0.2","repeat":"host","repeatDirection":"v","targets":[{"body":"select LASTEXECUTED\n ,NUMEXECUTES\n ,EXECTIME\n ,COMPILETIME\n ,MINEXECTIME\n ,EXECTIME/NUMEXECUTES AS AVGEXECTIME\n ,MAXEXECTIME\n ,ID\n ,SQLSTRING\n from system.LOCALSTATEMENTCACHE\nwhere LASTEXECUTED \u003e DATE_SUB(NOW(), INTERVAL $__interval_ms/1000 second)","cacheDurationSeconds":0,"datasource":{"type":"marcusolsson-json-datasource","uid":"fb12902f-919a-4aa9-89de-398bdfce52df"},"fields":[{"jsonPath":"$.rows[*][0]","name":"LastExecuted","type":"time"},{"jsonPath":"$.rows[*][1]","language":"jsonpath","name":"NumExecutes"},{"jsonPath":"$.rows[*][2]","language":"jsonpath","name":"ExecTime"},{"jsonPath":"$.rows[*][3]","language":"jsonpath","name":"CompileTime"},{"jsonPath":"$.rows[*][4]","language":"jsonpath","name":"MinExecTime"},{"jsonPath":"$.rows[*][5]","language":"jsonpath","name":"AvgExecTime"},{"jsonPath":"$.rows[*][6]","language":"jsonpath","name":"MaxExecTime"},{"jsonPath":"$.rows[*][7]","language":"jsonpath","name":"ID","type":"string"},{"jsonPath":"$.rows[*][8]","language":"jsonpath","name":"SqlString"}],"method":"POST","params":[["dbname","$database"],["hostname","$host"]],"queryParams":"","refId":"A","urlPath":"/query"}],"title":"Statement Executions ($host)","type":"table"}],"refresh":"30s","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":28,"weekStart":""}} \ No newline at end of file +{"meta":{"type":"db","canSave":true,"canEdit":true,"canAdmin":true,"canStar":true,"canDelete":true,"slug":"sql-statement-executions","url":"/d/Qi5TDej4z/sql-statement-executions","expires":"0001-01-01T00:00:00Z","created":"2023-07-21T15:31:11Z","updated":"2023-07-29T16:28:26Z","updatedBy":"admin","createdBy":"admin","version":29,"hasAcl":false,"isFolder":false,"folderId":20,"folderUid":"b7c2a563-48a3-426d-be2b-0f9fffbd8a85","folderTitle":"nuodb_client","folderUrl":"/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client","provisioned":false,"provisionedExternalId":"sql-statement-executions.json","annotationsPermissions":{"dashboard":{"canAdd":true,"canEdit":true,"canDelete":true},"organization":{"canAdd":true,"canEdit":true,"canDelete":true}},"publicDashboardAccessToken":"","publicDashboardUid":"","publicDashboardEnabled":false},"dashboard":{"annotations":{"list":[{"$$hashKey":"object:65","builtIn":1,"datasource":{"type":"datasource","uid":"grafana"},"enable":true,"hide":true,"iconColor":"rgba(0, 211, 255, 1)","name":"Annotations \u0026 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":"marcusolsson-json-datasource","uid":"fb12902f-919a-4aa9-89de-398bdfce52df"},"fieldConfig":{"defaults":{"color":{"fixedColor":"super-light-blue","mode":"fixed"},"custom":{"align":"auto","cellOptions":{"type":"color-text"},"filterable":false,"inspect":false},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"green","value":null}]},"unit":"µs"},"overrides":[{"matcher":{"id":"byName","options":"ID"},"properties":[{"id":"custom.hidden","value":true},{"id":"unit","value":"string"}]},{"matcher":{"id":"byName","options":"NumExecutes"},"properties":[{"id":"unit","value":"none"},{"id":"custom.width","value":118}]},{"matcher":{"id":"byName","options":"ExecTime"},"properties":[{"id":"custom.width","value":101}]},{"matcher":{"id":"byName","options":"CompileTime"},"properties":[{"id":"custom.width","value":107}]},{"matcher":{"id":"byName","options":"MinExecTime"},"properties":[{"id":"custom.width","value":106}]},{"matcher":{"id":"byName","options":"AvgExecTime"},"properties":[{"id":"custom.width","value":108}]},{"matcher":{"id":"byName","options":"MaxExecTime"},"properties":[{"id":"custom.width","value":115}]},{"matcher":{"id":"byName","options":"LastExecuted"},"properties":[{"id":"custom.width","value":175}]},{"matcher":{"id":"byName","options":"SqlString"},"properties":[{"id":"links","value":[{"title":"Detals","url":"/d/f13dbb76-dc2a-42b9-af72-88700f6857b8/sql-statement-details?var-id=${__data.fields.ID}\u0026${host:queryparam}"}]}]}]},"gridPos":{"h":12,"w":24,"x":0,"y":0},"id":10,"interval":"$interval","maxPerRow":2,"options":{"cellHeight":"sm","footer":{"countRows":false,"enablePagination":false,"fields":["EXECTIME","COMPILETIME"],"reducer":["sum"],"show":false},"frameIndex":1,"showHeader":true,"sortBy":[]},"pluginVersion":"10.0.3","repeat":"host","repeatDirection":"v","targets":[{"body":"select LASTEXECUTED\n ,NUMEXECUTES\n ,EXECTIME\n ,COMPILETIME\n ,MINEXECTIME\n ,EXECTIME/NUMEXECUTES AS AVGEXECTIME\n ,MAXEXECTIME\n ,ID\n ,SQLSTRING\n from system.LOCALSTATEMENTCACHE\nwhere LASTEXECUTED \u003e DATE_SUB(NOW(), INTERVAL $__interval_ms/1000 second)","cacheDurationSeconds":0,"datasource":{"type":"marcusolsson-json-datasource","uid":"fb12902f-919a-4aa9-89de-398bdfce52df"},"fields":[{"jsonPath":"$.rows[*][0]","name":"LastExecuted","type":"time"},{"jsonPath":"$.rows[*][1]","language":"jsonpath","name":"NumExecutes"},{"jsonPath":"$.rows[*][2]","language":"jsonpath","name":"ExecTime"},{"jsonPath":"$.rows[*][3]","language":"jsonpath","name":"CompileTime"},{"jsonPath":"$.rows[*][4]","language":"jsonpath","name":"MinExecTime"},{"jsonPath":"$.rows[*][5]","language":"jsonpath","name":"AvgExecTime"},{"jsonPath":"$.rows[*][6]","language":"jsonpath","name":"MaxExecTime"},{"jsonPath":"$.rows[*][7]","language":"jsonpath","name":"ID","type":"string"},{"jsonPath":"$.rows[*][8]","language":"jsonpath","name":"SqlString"}],"method":"POST","params":[["dbname","$database"],["hostname","$host"]],"queryParams":"","refId":"A","urlPath":"/query"}],"title":"Statement Executions ($host)","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","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":29,"weekStart":""}} \ No newline at end of file diff --git a/conf/provisioning/dashboards/nuodb_client/sql-statement-operations.json b/conf/provisioning/dashboards/nuodb_client/sql-statement-operations.json index f120652..ce0dd04 100644 --- a/conf/provisioning/dashboards/nuodb_client/sql-statement-operations.json +++ b/conf/provisioning/dashboards/nuodb_client/sql-statement-operations.json @@ -1 +1 @@ -{"meta":{"type":"db","canSave":true,"canEdit":true,"canAdmin":true,"canStar":true,"canDelete":true,"slug":"sql-statement-operations","url":"/d/Cp_9O6C4k/sql-statement-operations","expires":"0001-01-01T00:00:00Z","created":"2023-07-21T15:56:00Z","updated":"2023-07-27T18:14:41Z","updatedBy":"admin","createdBy":"admin","version":25,"hasAcl":false,"isFolder":false,"folderId":20,"folderUid":"b7c2a563-48a3-426d-be2b-0f9fffbd8a85","folderTitle":"nuodb_client","folderUrl":"/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client","provisioned":false,"provisionedExternalId":"sql-statement-operations.json","annotationsPermissions":{"dashboard":{"canAdd":true,"canEdit":true,"canDelete":true},"organization":{"canAdd":true,"canEdit":true,"canDelete":true}},"publicDashboardAccessToken":"","publicDashboardUid":"","publicDashboardEnabled":false},"dashboard":{"annotations":{"list":[{"$$hashKey":"object:65","builtIn":1,"datasource":{"type":"datasource","uid":"grafana"},"enable":true,"hide":true,"iconColor":"rgba(0, 211, 255, 1)","name":"Annotations \u0026 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":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":true,"keepTime":true,"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":"super-light-blue","mode":"fixed"},"custom":{"align":"auto","cellOptions":{"type":"color-text"},"inspect":false},"links":[],"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"green","value":null}]},"unit":"none"},"overrides":[{"matcher":{"id":"byName","options":"ID"},"properties":[{"id":"custom.hidden","value":true},{"id":"unit","value":"string"}]},{"matcher":{"id":"byName","options":"INSERTS"},"properties":[{"id":"custom.width","value":107}]},{"matcher":{"id":"byName","options":"RECORDSRETURNED"},"properties":[{"id":"custom.width","value":163}]},{"matcher":{"id":"byName","options":"UPDATES"},"properties":[{"id":"custom.width","value":99}]},{"matcher":{"id":"byName","options":"DELETIONS"},"properties":[{"id":"custom.width","value":100}]},{"matcher":{"id":"byName","options":"REPLACES"},"properties":[{"id":"custom.width","value":95}]},{"matcher":{"id":"byName","options":"SQLSTRING"},"properties":[{"id":"custom.cellOptions","value":{"type":"color-text"}},{"id":"links","value":[{"targetBlank":false,"title":"Details","url":"/d/f13dbb76-dc2a-42b9-af72-88700f6857b8/sql-statement-details?var-id=${__data.fields.ID}\u0026${host:queryparam}"},{"title":"Executes","url":"/d/f75f6aed-e2e1-4612-9e7a-5412150dca5d/log-sql-execute?${__all_variables}\u0026stmthash=${__data.fields.ID}\u0026sql=${__data.fields.SQLSTRING}\u0026${__url_time_range}"}]}]},{"matcher":{"id":"byName","options":"NUMEXECUTES"},"properties":[{"id":"custom.width","value":127}]},{"matcher":{"id":"byName","options":"LASTEXECUTED"},"properties":[{"id":"custom.width","value":172}]}]},"gridPos":{"h":12,"w":24,"x":0,"y":0},"id":10,"interval":"$interval","maxPerRow":2,"options":{"cellHeight":"sm","footer":{"countRows":false,"fields":"","reducer":["sum"],"show":true},"frameIndex":1,"showHeader":true,"sortBy":[]},"pluginVersion":"10.0.3","repeat":"host","repeatDirection":"v","targets":[{"body":"select LASTEXECUTED\n ,NUMEXECUTES\n ,RECORDSRETURNED\n ,INSERTS\n ,UPDATES\n ,DELETIONS\n ,REPLACES\n ,SQLSTRING\n ,ID\n from system.LOCALSTATEMENTCACHE\n where LASTEXECUTED \u003e DATE_SUB(now(), INTERVAL $__interval_ms/1000 second)\n","cacheDurationSeconds":0,"datasource":{"type":"marcusolsson-json-datasource","uid":"fb12902f-919a-4aa9-89de-398bdfce52df"},"fields":[{"jsonPath":"$.rows[*][0]","name":"LASTEXECUTED","type":"time"},{"jsonPath":"$.rows[*][1]","language":"jsonpath","name":"NUMEXECUTES"},{"jsonPath":"$.rows[*][2]","language":"jsonpath","name":"RECORDSRETURNED"},{"jsonPath":"$.rows[*][3]","language":"jsonpath","name":"INSERTS"},{"jsonPath":"$.rows[*][4]","language":"jsonpath","name":"UPDATES"},{"jsonPath":"$.rows[*][5]","language":"jsonpath","name":"DELETIONS"},{"jsonPath":"$.rows[*][6]","language":"jsonpath","name":"REPLACES"},{"jsonPath":"$.rows[*][7]","language":"jsonpath","name":"SQLSTRING"},{"jsonPath":"$.rows[*][8]","language":"jsonpath","name":"ID","type":"string"}],"method":"POST","params":[["dbname","$database"],["hostname","$host"]],"queryParams":"","refId":"A","urlPath":"/query"}],"title":"Number Rows Returned/Updated ($host)","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":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":true,"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 Operations","uid":"Cp_9O6C4k","version":25,"weekStart":""}} \ No newline at end of file +{"meta":{"type":"db","canSave":true,"canEdit":true,"canAdmin":true,"canStar":true,"canDelete":true,"slug":"sql-statement-operations","url":"/d/Cp_9O6C4k/sql-statement-operations","expires":"0001-01-01T00:00:00Z","created":"2023-07-21T15:56:00Z","updated":"2023-07-29T16:47:41Z","updatedBy":"admin","createdBy":"admin","version":29,"hasAcl":false,"isFolder":false,"folderId":20,"folderUid":"b7c2a563-48a3-426d-be2b-0f9fffbd8a85","folderTitle":"nuodb_client","folderUrl":"/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client","provisioned":false,"provisionedExternalId":"sql-statement-operations.json","annotationsPermissions":{"dashboard":{"canAdd":true,"canEdit":true,"canDelete":true},"organization":{"canAdd":true,"canEdit":true,"canDelete":true}},"publicDashboardAccessToken":"","publicDashboardUid":"","publicDashboardEnabled":false},"dashboard":{"annotations":{"list":[{"$$hashKey":"object:65","builtIn":1,"datasource":{"type":"datasource","uid":"grafana"},"enable":true,"hide":true,"iconColor":"rgba(0, 211, 255, 1)","name":"Annotations \u0026 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":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":true,"keepTime":true,"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":"super-light-blue","mode":"fixed"},"custom":{"align":"auto","cellOptions":{"type":"color-text"},"inspect":false},"links":[],"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"green","value":null}]},"unit":"none"},"overrides":[{"matcher":{"id":"byName","options":"ID"},"properties":[{"id":"custom.hidden","value":true},{"id":"unit","value":"string"}]},{"matcher":{"id":"byName","options":"INSERTS"},"properties":[{"id":"custom.width","value":107}]},{"matcher":{"id":"byName","options":"RECORDSRETURNED"},"properties":[{"id":"custom.width","value":163}]},{"matcher":{"id":"byName","options":"UPDATES"},"properties":[{"id":"custom.width","value":99}]},{"matcher":{"id":"byName","options":"DELETIONS"},"properties":[{"id":"custom.width","value":100}]},{"matcher":{"id":"byName","options":"REPLACES"},"properties":[{"id":"custom.width","value":95}]},{"matcher":{"id":"byName","options":"SQLSTRING"},"properties":[{"id":"custom.cellOptions","value":{"type":"color-text"}},{"id":"links","value":[{"targetBlank":false,"title":"Details","url":"/d/f13dbb76-dc2a-42b9-af72-88700f6857b8/sql-statement-details?var-id=${__data.fields.ID}\u0026${host:queryparam}"},{"title":"Executes","url":"/d/c9081118-5230-478d-b6e8-d76614395704/sql-logs?${__all_variables}\u0026var-statement=${__data.fields.ID}\u0026${__url_time_range}"}]}]},{"matcher":{"id":"byName","options":"NUMEXECUTES"},"properties":[{"id":"custom.width","value":127}]},{"matcher":{"id":"byName","options":"LASTEXECUTED"},"properties":[{"id":"custom.width","value":172}]}]},"gridPos":{"h":12,"w":24,"x":0,"y":0},"id":10,"interval":"$interval","maxPerRow":2,"options":{"cellHeight":"sm","footer":{"countRows":false,"fields":"","reducer":["sum"],"show":true},"frameIndex":1,"showHeader":true,"sortBy":[{"desc":true,"displayName":"NUMEXECUTES"}]},"pluginVersion":"10.0.3","repeat":"host","repeatDirection":"v","targets":[{"body":"select LASTEXECUTED\n ,NUMEXECUTES\n ,RECORDSRETURNED\n ,INSERTS\n ,UPDATES\n ,DELETIONS\n ,REPLACES\n ,SQLSTRING\n ,ID\n from system.LOCALSTATEMENTCACHE\n where LASTEXECUTED \u003e DATE_SUB(now(), INTERVAL $__interval_ms/1000 second)\n","cacheDurationSeconds":0,"datasource":{"type":"marcusolsson-json-datasource","uid":"fb12902f-919a-4aa9-89de-398bdfce52df"},"fields":[{"jsonPath":"$.rows[*][0]","name":"LASTEXECUTED","type":"time"},{"jsonPath":"$.rows[*][1]","language":"jsonpath","name":"NUMEXECUTES"},{"jsonPath":"$.rows[*][2]","language":"jsonpath","name":"RECORDSRETURNED"},{"jsonPath":"$.rows[*][3]","language":"jsonpath","name":"INSERTS"},{"jsonPath":"$.rows[*][4]","language":"jsonpath","name":"UPDATES"},{"jsonPath":"$.rows[*][5]","language":"jsonpath","name":"DELETIONS"},{"jsonPath":"$.rows[*][6]","language":"jsonpath","name":"REPLACES"},{"jsonPath":"$.rows[*][7]","language":"jsonpath","name":"SQLSTRING"},{"jsonPath":"$.rows[*][8]","language":"jsonpath","name":"ID","type":"string"}],"method":"POST","params":[["dbname","$database"],["hostname","$host"]],"queryParams":"","refId":"A","urlPath":"/query"}],"title":"Number Rows Returned/Updated ($host)","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":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":true,"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 Operations","uid":"Cp_9O6C4k","version":29,"weekStart":""}} \ No newline at end of file diff --git a/conf/provisioning/dashboards/nuodb_client/sql-statements.json b/conf/provisioning/dashboards/nuodb_client/sql-statements.json index 71f8ece..5c256e1 100644 --- a/conf/provisioning/dashboards/nuodb_client/sql-statements.json +++ b/conf/provisioning/dashboards/nuodb_client/sql-statements.json @@ -1,5556 +1 @@ -{ - "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": "red", - "name": "db annotations", - "target": { - "limit": 100, - "matchAny": true, - "tags": [ - "$database" - ], - "type": "tags" - } - } - ] - }, - "editable": false, - "fiscalYearStartMonth": 0, - "graphTooltip": 1, - "id": 14, - "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": 9, - "x": 0, - "y": 2 - }, - "hideTimeOverride": true, - "id": 45, - "links": [ - { - "title": "", - "url": "/d/z35SM6j4z/client-messages?${__all_variables}&${__url_time_range}" - } - ], - "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": "palette-classic" - }, - "custom": { - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - } - }, - "links": [ - { - "targetBlank": false, - "title": "Details", - "url": "/d/z35SM6j4z/client-messages" - } - ], - "mappings": [], - "unit": "µs" - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 3, - "x": 9, - "y": 2 - }, - "hideTimeOverride": true, - "id": 52, - "links": [ - { - "targetBlank": false, - "title": "", - "url": "/d/z35SM6j4z/client-messages?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "legend": { - "displayMode": "list", - "placement": "bottom", - "showLegend": false - }, - "pieType": "pie", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "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": 12, - "y": 2 - }, - "hideTimeOverride": true, - "id": 54, - "links": [ - { - "title": "Details", - "url": "/d/z35SM6j4z/client-messages?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "legend": { - "displayMode": "list", - "placement": "bottom", - "showLegend": false - }, - "pieType": "pie", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "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": 9, - "x": 15, - "y": 2 - }, - "hideTimeOverride": true, - "id": 44, - "links": [ - { - "title": "Details", - "url": "/d/z35SM6j4z/client-messages?${__all_variables}&${__url_time_range}" - } - ], - "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": "Platform", - "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": [ - "lastNotNull" - ], - "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": [ - "lastNotNull" - ], - "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 - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 6, - "y": 8 - }, - "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": [ - "lastNotNull" - ], - "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" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "light-blue", - "value": null - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 9, - "y": 8 - }, - "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": [ - "lastNotNull" - ], - "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": "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": { - "fixedColor": "semi-dark-yellow", - "mode": "fixed" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "light-blue", - "value": null - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 12, - "y": 8 - }, - "hideTimeOverride": true, - "id": 46, - "links": [ - { - "title": "SQL Dashboard", - "url": "/d/J9fZNkr4z/sql?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "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": "SqlListenerSqlProcTime", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(R) FROM (SELECT mean(\"rate\") AS R FROM \"Commits\" 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": "Commits", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "light-blue", - "value": null - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 15, - "y": 8 - }, - "hideTimeOverride": true, - "id": 33, - "links": [ - { - "title": "SQL Dashboard", - "url": "/d/J9fZNkr4z/sql?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "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": "Inserts", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"Inserts\" 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": "Inserts", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "light-blue", - "value": null - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 18, - "y": 8 - }, - "hideTimeOverride": true, - "id": 35, - "links": [ - { - "title": "SQL Dashboard", - "url": "/d/J9fZNkr4z/sql?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "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": "Updates", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"Updates\" 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": "Updates", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "light-blue", - "value": null - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 21, - "y": 8 - }, - "hideTimeOverride": true, - "id": 34, - "links": [ - { - "title": "SQL Dashboard", - "url": "/d/J9fZNkr4z/sql?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "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": "Deletes", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"Deletes\" 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": "Deletes", - "type": "stat" - }, - { - "collapsed": false, - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 12 - }, - "id": 23, - "panels": [], - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "refId": "A" - } - ], - "title": "Rows", - "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" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "light-blue", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 6, - "x": 0, - "y": 13 - }, - "hideTimeOverride": true, - "id": 2, - "links": [ - { - "title": "Details by Statement", - "url": "/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.3.0", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "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" - } - ] - } - ], - "timeShift": "10s", - "title": "Statements Executed", - "type": "timeseries" - }, - { - "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": 13 - }, - "hideTimeOverride": true, - "id": 38, - "links": [ - { - "title": "Details by Statement", - "url": "/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "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": 13 - }, - "hideTimeOverride": true, - "id": 29, - "links": [ - { - "title": "Details by Statement", - "url": "/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "legend": { - "displayMode": "list", - "placement": "bottom", - "showLegend": false - }, - "pieType": "pie", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "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": 13 - }, - "hideTimeOverride": true, - "id": 37, - "links": [ - { - "title": "Details by Statement ", - "url": "/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "displayMode": "basic", - "minVizHeight": 10, - "minVizWidth": 0, - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showUnfilled": false, - "valueMode": "color" - }, - "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": "bargauge" - }, - { - "collapsed": false, - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 17 - }, - "id": 17, - "panels": [], - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "refId": "A" - } - ], - "title": "Indexes", - "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": 18 - }, - "hideTimeOverride": true, - "id": 10, - "links": [ - { - "title": "Details by Statement", - "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "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": 18 - }, - "hideTimeOverride": true, - "id": 12, - "links": [ - { - "title": "Details by Statement", - "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "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": 18 - }, - "hideTimeOverride": true, - "id": 15, - "links": [ - { - "title": "Details by Statement", - "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "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": 18 - }, - "hideTimeOverride": true, - "id": 13, - "links": [ - { - "title": "Details by Statement", - "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "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": 18 - }, - "hideTimeOverride": true, - "id": 11, - "links": [ - { - "title": "Details by Statement", - "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "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": 18 - }, - "hideTimeOverride": true, - "id": 14, - "links": [ - { - "title": "Details by Statement", - "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "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": 22 - }, - "id": 4, - "panels": [], - "repeat": "SQLStatementStats", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "refId": "A" - } - ], - "title": "Records", - "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": 23 - }, - "hideTimeOverride": true, - "id": 20, - "links": [ - { - "title": "Details by Statement", - "url": "/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "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": 23 - }, - "hideTimeOverride": true, - "id": 18, - "links": [ - { - "title": "Details by Statement", - "url": "/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "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": 23 - }, - "hideTimeOverride": true, - "id": 21, - "links": [ - { - "title": "Details by Statement", - "url": "/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "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": 23 - }, - "hideTimeOverride": true, - "id": 36, - "links": [ - { - "title": "Details by Statement", - "url": "/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "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": "", - "schemaVersion": 38, - "style": "dark", - "tags": [ - "overview" - ], - "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": "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": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "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-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": "utc", - "title": "SQL Statements", - "uid": "cul4kM9Vz", - "version": 69, - "weekStart": "" -} \ No newline at end of file +{"meta":{"type":"db","canSave":true,"canEdit":true,"canAdmin":true,"canStar":true,"canDelete":true,"slug":"sql-statements","url":"/d/cul4kM9Vz/sql-statements","expires":"0001-01-01T00:00:00Z","created":"2023-06-28T15:11:31Z","updated":"2023-07-29T16:23:55Z","updatedBy":"admin","createdBy":"admin","version":70,"hasAcl":false,"isFolder":false,"folderId":20,"folderUid":"b7c2a563-48a3-426d-be2b-0f9fffbd8a85","folderTitle":"nuodb_client","folderUrl":"/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client","provisioned":false,"provisionedExternalId":"sql-statements.json","annotationsPermissions":{"dashboard":{"canAdd":true,"canEdit":true,"canDelete":true},"organization":{"canAdd":true,"canEdit":true,"canDelete":true}},"publicDashboardAccessToken":"","publicDashboardUid":"","publicDashboardEnabled":false},"dashboard":{"annotations":{"list":[{"builtIn":1,"datasource":{"type":"datasource","uid":"grafana"},"enable":true,"hide":true,"iconColor":"rgba(0, 211, 255, 1)","name":"Annotations \u0026 Alerts","target":{"limit":100,"matchAny":false,"tags":[],"type":"dashboard"},"type":"dashboard"},{"datasource":{"type":"datasource","uid":"grafana"},"enable":true,"iconColor":"red","name":"db annotations","target":{"limit":100,"matchAny":true,"tags":["$database"],"type":"tags"}}]},"editable":true,"fiscalYearStartMonth":0,"graphTooltip":1,"id":14,"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":9,"x":0,"y":2},"hideTimeOverride":true,"id":45,"links":[{"title":"","url":"/d/z35SM6j4z/client-messages?${__all_variables}\u0026${__url_time_range}"}],"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":"palette-classic"},"custom":{"hideFrom":{"legend":false,"tooltip":false,"viz":false}},"links":[{"targetBlank":false,"title":"Details","url":"/d/z35SM6j4z/client-messages"}],"mappings":[],"unit":"µs"},"overrides":[]},"gridPos":{"h":5,"w":3,"x":9,"y":2},"hideTimeOverride":true,"id":52,"links":[{"targetBlank":false,"title":"","url":"/d/z35SM6j4z/client-messages?${__all_variables}\u0026${__url_time_range}"}],"options":{"legend":{"displayMode":"list","placement":"bottom","showLegend":false},"pieType":"pie","reduceOptions":{"calcs":["lastNotNull"],"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":12,"y":2},"hideTimeOverride":true,"id":54,"links":[{"title":"Details","url":"/d/z35SM6j4z/client-messages?${__all_variables}\u0026${__url_time_range}"}],"options":{"legend":{"displayMode":"list","placement":"bottom","showLegend":false},"pieType":"pie","reduceOptions":{"calcs":["lastNotNull"],"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":9,"x":15,"y":2},"hideTimeOverride":true,"id":44,"links":[{"title":"Details","url":"/d/z35SM6j4z/client-messages?${__all_variables}\u0026${__url_time_range}"}],"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":"Platform","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}\u0026${__url_time_range}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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}\u0026${__url_time_range}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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}]},"unit":"s"},"overrides":[]},"gridPos":{"h":4,"w":3,"x":6,"y":8},"id":26,"links":[{"title":"Overview","url":"/d/AeBZNz9Vk/nuodb-overview?${__all_variables}\u0026${__url_time_range}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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"},"fieldConfig":{"defaults":{"color":{"mode":"thresholds"},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"light-blue","value":null}]},"unit":"s"},"overrides":[]},"gridPos":{"h":4,"w":3,"x":9,"y":8},"hideTimeOverride":true,"id":27,"links":[{"title":"Overview","url":"/d/AeBZNz9Vk/nuodb-overview?${__all_variables}\u0026${__url_time_range}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":"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":{"fixedColor":"semi-dark-yellow","mode":"fixed"},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"light-blue","value":null}]},"unit":"none"},"overrides":[]},"gridPos":{"h":4,"w":3,"x":12,"y":8},"hideTimeOverride":true,"id":46,"links":[{"title":"SQL Dashboard","url":"/d/J9fZNkr4z/sql?${__all_variables}\u0026${__url_time_range}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":"SqlListenerSqlProcTime","orderByTime":"ASC","policy":"default","query":"SELECT SUM(R) FROM (SELECT mean(\"rate\") AS R FROM \"Commits\" 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":"Commits","type":"stat"},{"datasource":{"type":"influxdb","uid":"P7F1571328205BBA6"},"fieldConfig":{"defaults":{"color":{"mode":"thresholds"},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"light-blue","value":null}]},"unit":"none"},"overrides":[]},"gridPos":{"h":4,"w":3,"x":15,"y":8},"hideTimeOverride":true,"id":33,"links":[{"title":"SQL Dashboard","url":"/d/J9fZNkr4z/sql?${__all_variables}\u0026${__url_time_range}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":"Inserts","orderByTime":"ASC","policy":"default","query":"SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"Inserts\" 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":"Inserts","type":"stat"},{"datasource":{"type":"influxdb","uid":"P7F1571328205BBA6"},"fieldConfig":{"defaults":{"color":{"mode":"thresholds"},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"light-blue","value":null}]},"unit":"none"},"overrides":[]},"gridPos":{"h":4,"w":3,"x":18,"y":8},"hideTimeOverride":true,"id":35,"links":[{"title":"SQL Dashboard","url":"/d/J9fZNkr4z/sql?${__all_variables}\u0026${__url_time_range}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":"Updates","orderByTime":"ASC","policy":"default","query":"SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"Updates\" 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":"Updates","type":"stat"},{"datasource":{"type":"influxdb","uid":"P7F1571328205BBA6"},"fieldConfig":{"defaults":{"color":{"mode":"thresholds"},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"light-blue","value":null}]},"unit":"none"},"overrides":[]},"gridPos":{"h":4,"w":3,"x":21,"y":8},"hideTimeOverride":true,"id":34,"links":[{"title":"SQL Dashboard","url":"/d/J9fZNkr4z/sql?${__all_variables}\u0026${__url_time_range}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":"Deletes","orderByTime":"ASC","policy":"default","query":"SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"Deletes\" 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":"Deletes","type":"stat"},{"collapsed":false,"datasource":{"type":"influxdb","uid":"P7F1571328205BBA6"},"gridPos":{"h":1,"w":24,"x":0,"y":12},"id":23,"panels":[],"targets":[{"datasource":{"type":"influxdb","uid":"P7F1571328205BBA6"},"refId":"A"}],"title":"Rows","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"}},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"light-blue","value":null}]}},"overrides":[]},"gridPos":{"h":4,"w":6,"x":0,"y":13},"hideTimeOverride":true,"id":2,"links":[{"title":"Details by Statement","url":"/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}\u0026${__url_time_range}"}],"options":{"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"mode":"single","sort":"none"}},"pluginVersion":"8.3.0","targets":[{"datasource":{"type":"influxdb","uid":"P7F1571328205BBA6"},"groupBy":[{"params":["$__interval"],"type":"time"},{"params":["null"],"type":"fill"}],"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"}]}],"timeShift":"10s","title":"Statements Executed","type":"timeseries"},{"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":13},"hideTimeOverride":true,"id":38,"links":[{"title":"Details by Statement","url":"/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}\u0026${__url_time_range}"}],"options":{"colorMode":"value","graphMode":"none","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":13},"hideTimeOverride":true,"id":29,"links":[{"title":"Details by Statement","url":"/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}\u0026${__url_time_range}"}],"options":{"legend":{"displayMode":"list","placement":"bottom","showLegend":false},"pieType":"pie","reduceOptions":{"calcs":["lastNotNull"],"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":13},"hideTimeOverride":true,"id":37,"links":[{"title":"Details by Statement ","url":"/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}\u0026${__url_time_range}"}],"options":{"displayMode":"basic","minVizHeight":10,"minVizWidth":0,"orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"fields":"","values":false},"showUnfilled":false,"valueMode":"color"},"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":"bargauge"},{"collapsed":false,"datasource":{"type":"influxdb","uid":"P7F1571328205BBA6"},"gridPos":{"h":1,"w":24,"x":0,"y":17},"id":17,"panels":[],"targets":[{"datasource":{"type":"influxdb","uid":"P7F1571328205BBA6"},"refId":"A"}],"title":"Indexes","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":18},"hideTimeOverride":true,"id":10,"links":[{"title":"Details by Statement","url":"/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}\u0026${__url_time_range}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":18},"hideTimeOverride":true,"id":12,"links":[{"title":"Details by Statement","url":"/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}\u0026${__url_time_range}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":18},"hideTimeOverride":true,"id":15,"links":[{"title":"Details by Statement","url":"/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}\u0026${__url_time_range}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":18},"hideTimeOverride":true,"id":13,"links":[{"title":"Details by Statement","url":"/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}\u0026${__url_time_range}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":18},"hideTimeOverride":true,"id":11,"links":[{"title":"Details by Statement","url":"/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}\u0026${__url_time_range}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":18},"hideTimeOverride":true,"id":14,"links":[{"title":"Details by Statement","url":"/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}\u0026${__url_time_range}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":22},"id":4,"panels":[],"repeat":"SQLStatementStats","targets":[{"datasource":{"type":"influxdb","uid":"P7F1571328205BBA6"},"refId":"A"}],"title":"Records","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":23},"hideTimeOverride":true,"id":20,"links":[{"title":"Details by Statement","url":"/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}\u0026${__url_time_range}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":23},"hideTimeOverride":true,"id":18,"links":[{"title":"Details by Statement","url":"/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}\u0026${__url_time_range}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":23},"hideTimeOverride":true,"id":21,"links":[{"title":"Details by Statement","url":"/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}\u0026${__url_time_range}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":23},"hideTimeOverride":true,"id":36,"links":[{"title":"Details by Statement","url":"/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}\u0026${__url_time_range}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":false,"text":"10s","value":"10s"},"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":"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":true,"text":["All"],"value":["$__all"]},"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":"SQL Statements","uid":"cul4kM9Vz","version":70,"weekStart":""}} \ No newline at end of file From bd422bc69630c6efe1cbf6909556159e37957b85 Mon Sep 17 00:00:00 2001 From: Dirk Butson Date: Mon, 31 Jul 2023 11:43:28 -0400 Subject: [PATCH 06/14] added more datasources, note need to update variables to be set --- conf/provisioning/datasources/nuodb.yaml | 32 +++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/conf/provisioning/datasources/nuodb.yaml b/conf/provisioning/datasources/nuodb.yaml index 0f7d9e3..2cbb065 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,34 @@ 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://${LOKI_HOST}:8086 + user: "" + database: "" + basicAuth: false + isDefault: false + jsonData: + dbName: client + readOnly: false +- id: 7 + uid: fb12902f-919a-4aa9-89de-398bdfce52df + 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 + From 7b57a2994c8bc017290a4d12420e36f80ebfd3b3 Mon Sep 17 00:00:00 2001 From: Dirk Butson Date: Mon, 31 Jul 2023 12:48:30 -0400 Subject: [PATCH 07/14] added loki datasource, fixed client datasource --- conf/provisioning/datasources/nuodb.yaml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/conf/provisioning/datasources/nuodb.yaml b/conf/provisioning/datasources/nuodb.yaml index 2cbb065..ac3c0eb 100644 --- a/conf/provisioning/datasources/nuodb.yaml +++ b/conf/provisioning/datasources/nuodb.yaml @@ -40,7 +40,7 @@ datasources: typeName: InfluxDB typeLogoUrl: public/app/plugins/datasource/influxdb/img/influxdb_logo.svg access: proxy - url: http://${LOKI_HOST}:8086 + url: http://${INFLUX_HOST}:8086 user: "" database: "" basicAuth: false @@ -48,9 +48,7 @@ datasources: jsonData: dbName: client readOnly: false -- id: 7 - uid: fb12902f-919a-4aa9-89de-398bdfce52df - orgId: 1 +- orgId: 1 name: SQL type: marcusolsson-json-datasource typeName: JSON API @@ -63,5 +61,19 @@ datasources: 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 From f48b5205b71d392dd81b7ce733cc178a9b114ea8 Mon Sep 17 00:00:00 2001 From: Dirk Butson Date: Mon, 31 Jul 2023 18:57:26 -0400 Subject: [PATCH 08/14] . --- .../nuodb_client/client-messages.json | 492 +- .../nuodb_client/log-sql-execute.json | 516 +- .../nuodb_client/nuodb-sql-statements.json | 5852 ++++++++++++++++- .../dashboards/nuodb_client/sql-log.json | 723 +- .../dashboards/nuodb_client/sql-logs.json | 875 ++- .../nuodb_client/sql-overview-from-table.json | 5595 ++++++++++++++++ .../dashboards/nuodb_client/sql-overview.json | 5597 ++++++++++++++++ .../nuodb_client/sql-statement-details.json | 381 +- .../sql-statement-executions.json | 599 +- .../nuodb_client/sql-statement-indexes.json | 680 +- .../sql-statement-operations.json | 607 +- .../nuodb_client/sql-statement-records.json | 629 +- 12 files changed, 22536 insertions(+), 10 deletions(-) create mode 100644 conf/provisioning/dashboards/nuodb_client/sql-overview-from-table.json create mode 100644 conf/provisioning/dashboards/nuodb_client/sql-overview.json diff --git a/conf/provisioning/dashboards/nuodb_client/client-messages.json b/conf/provisioning/dashboards/nuodb_client/client-messages.json index b23382a..70bca9a 100644 --- a/conf/provisioning/dashboards/nuodb_client/client-messages.json +++ b/conf/provisioning/dashboards/nuodb_client/client-messages.json @@ -1 +1,491 @@ -{"meta":{"type":"db","canSave":true,"canEdit":true,"canAdmin":true,"canStar":true,"canDelete":true,"slug":"client-messages","url":"/d/z35SM6j4z/client-messages","expires":"0001-01-01T00:00:00Z","created":"2023-07-21T13:59:27Z","updated":"2023-07-28T20:00:45Z","updatedBy":"admin","createdBy":"admin","version":20,"hasAcl":false,"isFolder":false,"folderId":20,"folderUid":"b7c2a563-48a3-426d-be2b-0f9fffbd8a85","folderTitle":"nuodb_client","folderUrl":"/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client","provisioned":false,"provisionedExternalId":"client-msgs.json","annotationsPermissions":{"dashboard":{"canAdd":true,"canEdit":true,"canDelete":true},"organization":{"canAdd":true,"canEdit":true,"canDelete":true}},"publicDashboardAccessToken":"","publicDashboardUid":"","publicDashboardEnabled":false},"dashboard":{"annotations":{"list":[{"$$hashKey":"object:65","builtIn":1,"datasource":{"type":"datasource","uid":"grafana"},"enable":true,"hide":true,"iconColor":"rgba(0, 211, 255, 1)","name":"Annotations \u0026 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":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":"marcusolsson-json-datasource","uid":"fb12902f-919a-4aa9-89de-398bdfce52df"},"fieldConfig":{"defaults":{"color":{"fixedColor":"super-light-blue","mode":"fixed"},"custom":{"align":"auto","cellOptions":{"type":"color-text"},"inspect":false},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"green","value":null}]},"unit":"none"},"overrides":[{"matcher":{"id":"byName","options":"TypeGroup"},"properties":[{"id":"custom.width","value":131}]},{"matcher":{"id":"byName","options":"MsgType"},"properties":[{"id":"custom.width","value":253}]},{"matcher":{"id":"byName","options":"Count"},"properties":[{"id":"custom.width","value":118}]},{"matcher":{"id":"byName","options":"Duration"},"properties":[{"id":"unit","value":"µs"}]}]},"gridPos":{"h":24,"w":12,"x":0,"y":0},"id":10,"maxPerRow":2,"options":{"cellHeight":"sm","footer":{"countRows":false,"fields":"","reducer":["sum"],"show":true},"frameIndex":1,"showHeader":true,"sortBy":[]},"pluginVersion":"10.0.3","repeat":"host","repeatDirection":"h","targets":[{"body":"select TYPE,\"GROUP\",COUNT,DURATION from system.localclientmessages order by DURATION desc","cacheDurationSeconds":0,"datasource":{"type":"marcusolsson-json-datasource","uid":"fb12902f-919a-4aa9-89de-398bdfce52df"},"fields":[{"jsonPath":"$.rows[*][0]","name":"MsgType","type":"string"},{"jsonPath":"$.rows[*][1]","language":"jsonpath","name":"TypeGroup"},{"jsonPath":"$.rows[*][2]","language":"jsonpath","name":"Count"},{"jsonPath":"$.rows[*][3]","language":"jsonpath","name":"Duration"}],"method":"POST","params":[["dbname","$database"],["hostname","$host"]],"queryParams":"","refId":"A","urlPath":"/query"}],"title":"Client Messages ($host)","type":"table"}],"refresh":"30s","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":["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}]},"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":"Client Messages","uid":"z35SM6j4z","version":20,"weekStart":""}} \ No newline at end of file +{ + "meta": { + "type": "db", + "canSave": true, + "canEdit": true, + "canAdmin": true, + "canStar": true, + "canDelete": true, + "slug": "client-messages", + "url": "/d/z35SM6j4z/client-messages", + "expires": "0001-01-01T00:00:00Z", + "created": "2023-07-21T13:59:27Z", + "updated": "2023-07-31T15:47:25Z", + "updatedBy": "Anonymous", + "createdBy": "admin", + "version": 21, + "hasAcl": false, + "isFolder": false, + "folderId": 20, + "folderUid": "b7c2a563-48a3-426d-be2b-0f9fffbd8a85", + "folderTitle": "nuodb_client", + "folderUrl": "/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client", + "provisioned": false, + "provisionedExternalId": "client-msgs.json", + "annotationsPermissions": { + "dashboard": { + "canAdd": true, + "canEdit": true, + "canDelete": true + }, + "organization": { + "canAdd": true, + "canEdit": true, + "canDelete": true + } + }, + "publicDashboardAccessToken": "", + "publicDashboardUid": "", + "publicDashboardEnabled": false + }, + "dashboard": { + "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": 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": "marcusolsson-json-datasource", + "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "super-light-blue", + "mode": "fixed" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "color-text" + }, + "inspect": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "TypeGroup" + }, + "properties": [ + { + "id": "custom.width", + "value": 131 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "MsgType" + }, + "properties": [ + { + "id": "custom.width", + "value": 253 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Count" + }, + "properties": [ + { + "id": "custom.width", + "value": 118 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Duration" + }, + "properties": [ + { + "id": "unit", + "value": "µs" + } + ] + } + ] + }, + "gridPos": { + "h": 24, + "w": 12, + "x": 0, + "y": 0 + }, + "id": 10, + "maxPerRow": 2, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": true + }, + "frameIndex": 1, + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "10.0.3", + "repeat": "host", + "repeatDirection": "h", + "targets": [ + { + "body": "select TYPE,\"GROUP\",COUNT,DURATION from system.localclientmessages order by DURATION desc", + "cacheDurationSeconds": 0, + "datasource": { + "type": "marcusolsson-json-datasource", + "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" + }, + "fields": [ + { + "jsonPath": "$.rows[*][0]", + "name": "MsgType", + "type": "string" + }, + { + "jsonPath": "$.rows[*][1]", + "language": "jsonpath", + "name": "TypeGroup" + }, + { + "jsonPath": "$.rows[*][2]", + "language": "jsonpath", + "name": "Count" + }, + { + "jsonPath": "$.rows[*][3]", + "language": "jsonpath", + "name": "Duration" + } + ], + "method": "POST", + "params": [ + [ + "dbname", + "$database" + ], + [ + "hostname", + "$host" + ] + ], + "queryParams": "", + "refId": "A", + "urlPath": "/query" + } + ], + "title": "Client Messages ($host)", + "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 + } + ] + }, + "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": "Client Messages", + "uid": "z35SM6j4z", + "version": 21, + "weekStart": "" + } +} diff --git a/conf/provisioning/dashboards/nuodb_client/log-sql-execute.json b/conf/provisioning/dashboards/nuodb_client/log-sql-execute.json index 529ef7c..419205e 100644 --- a/conf/provisioning/dashboards/nuodb_client/log-sql-execute.json +++ b/conf/provisioning/dashboards/nuodb_client/log-sql-execute.json @@ -1 +1,515 @@ -{"meta":{"type":"db","canSave":true,"canEdit":true,"canAdmin":true,"canStar":true,"canDelete":true,"slug":"log-sql-execute","url":"/d/f75f6aed-e2e1-4612-9e7a-5412150dca5d/log-sql-execute","expires":"0001-01-01T00:00:00Z","created":"2023-07-27T16:59:17Z","updated":"2023-07-28T20:39:13Z","updatedBy":"admin","createdBy":"admin","version":9,"hasAcl":false,"isFolder":false,"folderId":20,"folderUid":"b7c2a563-48a3-426d-be2b-0f9fffbd8a85","folderTitle":"nuodb_client","folderUrl":"/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client","provisioned":false,"provisionedExternalId":"","annotationsPermissions":{"dashboard":{"canAdd":true,"canEdit":true,"canDelete":true},"organization":{"canAdd":true,"canEdit":true,"canDelete":true}},"publicDashboardAccessToken":"","publicDashboardUid":"","publicDashboardEnabled":false},"dashboard":{"annotations":{"list":[{"$$hashKey":"object:65","builtIn":1,"datasource":{"type":"datasource","uid":"grafana"},"enable":true,"hide":true,"iconColor":"rgba(0, 211, 255, 1)","name":"Annotations \u0026 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":30,"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":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"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":"time"},"properties":[{"id":"custom.hidden","value":true}]},{"matcher":{"id":"byName","options":"Time"},"properties":[{"id":"custom.width","value":176}]},{"matcher":{"id":"byName","options":"sqlhash"},"properties":[{"id":"custom.width","value":88},{"id":"custom.hidden","value":true}]}]},"gridPos":{"h":20,"w":24,"x":0,"y":0},"id":2,"options":{"cellHeight":"sm","footer":{"countRows":false,"fields":"","reducer":["sum"],"show":false},"showHeader":true,"sortBy":[]},"pluginVersion":"10.0.3","targets":[{"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"editorMode":"code","expr":"{job=\"execution\", stmthash=\"$stmthash\"}","key":"Q-603dd6c0-b9ea-47d9-87fa-aa99ec261e9a-0","queryType":"range","refId":"A"}],"title":"Statement $stmthash","transformations":[{"id":"extractFields","options":{"keepTime":true,"replace":true,"source":"Line"}}],"type":"table"}],"refresh":"5m","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":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":true,"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":"10008029380792074498","value":"10008029380792074498"},"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"definition":"","hide":2,"includeAll":false,"multi":false,"name":"stmthash","options":[],"query":{"label":"stmthash","refId":"LokiVariableQueryEditor-VariableQuery","stream":"","type":1},"refresh":2,"regex":"","skipUrlSync":false,"sort":0,"type":"query"},{"current":{"isNone":true,"selected":false,"text":"None","value":""},"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"definition":"","hide":0,"includeAll":false,"multi":false,"name":"sql","options":[],"query":{"label":"sql","refId":"LokiVariableQueryEditor-VariableQuery","stream":"{source=\"statements\"}","type":1},"refresh":2,"regex":"","skipUrlSync":false,"sort":0,"type":"query"}]},"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":"Log Sql Execute","uid":"f75f6aed-e2e1-4612-9e7a-5412150dca5d","version":9,"weekStart":""}} \ No newline at end of file +{ + "meta": { + "type": "db", + "canSave": true, + "canEdit": true, + "canAdmin": true, + "canStar": true, + "canDelete": true, + "slug": "log-sql-execute", + "url": "/d/f75f6aed-e2e1-4612-9e7a-5412150dca5d/log-sql-execute", + "expires": "0001-01-01T00:00:00Z", + "created": "2023-07-27T16:59:17Z", + "updated": "2023-07-28T20:39:13Z", + "updatedBy": "admin", + "createdBy": "admin", + "version": 9, + "hasAcl": false, + "isFolder": false, + "folderId": 20, + "folderUid": "b7c2a563-48a3-426d-be2b-0f9fffbd8a85", + "folderTitle": "nuodb_client", + "folderUrl": "/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client", + "provisioned": false, + "provisionedExternalId": "", + "annotationsPermissions": { + "dashboard": { + "canAdd": true, + "canEdit": true, + "canDelete": true + }, + "organization": { + "canAdd": true, + "canEdit": true, + "canDelete": true + } + }, + "publicDashboardAccessToken": "", + "publicDashboardUid": "", + "publicDashboardEnabled": false + }, + "dashboard": { + "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": 30, + "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": "loki", + "uid": "ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3" + }, + "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": "time" + }, + "properties": [ + { + "id": "custom.hidden", + "value": true + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Time" + }, + "properties": [ + { + "id": "custom.width", + "value": 176 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "sqlhash" + }, + "properties": [ + { + "id": "custom.width", + "value": 88 + }, + { + "id": "custom.hidden", + "value": true + } + ] + } + ] + }, + "gridPos": { + "h": 20, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 2, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "datasource": { + "type": "loki", + "uid": "ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3" + }, + "editorMode": "code", + "expr": "{job=\"execution\", stmthash=\"$stmthash\"}", + "key": "Q-603dd6c0-b9ea-47d9-87fa-aa99ec261e9a-0", + "queryType": "range", + "refId": "A" + } + ], + "title": "Statement $stmthash", + "transformations": [ + { + "id": "extractFields", + "options": { + "keepTime": true, + "replace": true, + "source": "Line" + } + } + ], + "type": "table" + } + ], + "refresh": "5m", + "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": 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": true, + "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": "10008029380792074498", + "value": "10008029380792074498" + }, + "datasource": { + "type": "loki", + "uid": "ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3" + }, + "definition": "", + "hide": 2, + "includeAll": false, + "multi": false, + "name": "stmthash", + "options": [], + "query": { + "label": "stmthash", + "refId": "LokiVariableQueryEditor-VariableQuery", + "stream": "", + "type": 1 + }, + "refresh": 2, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": { + "isNone": true, + "selected": false, + "text": "None", + "value": "" + }, + "datasource": { + "type": "loki", + "uid": "ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3" + }, + "definition": "", + "hide": 0, + "includeAll": false, + "multi": false, + "name": "sql", + "options": [], + "query": { + "label": "sql", + "refId": "LokiVariableQueryEditor-VariableQuery", + "stream": "{source=\"statements\"}", + "type": 1 + }, + "refresh": 2, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + } + ] + }, + "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": "Log Sql Execute", + "uid": "f75f6aed-e2e1-4612-9e7a-5412150dca5d", + "version": 9, + "weekStart": "" + } +} diff --git a/conf/provisioning/dashboards/nuodb_client/nuodb-sql-statements.json b/conf/provisioning/dashboards/nuodb_client/nuodb-sql-statements.json index 23f3b25..4fbe6c3 100644 --- a/conf/provisioning/dashboards/nuodb_client/nuodb-sql-statements.json +++ b/conf/provisioning/dashboards/nuodb_client/nuodb-sql-statements.json @@ -1 +1,5851 @@ -{"meta":{"type":"db","canSave":true,"canEdit":true,"canAdmin":true,"canStar":true,"canDelete":true,"slug":"nuodb-sql-statements","url":"/d/df0d2b01-89ff-4108-bace-32f436204209/nuodb-sql-statements","expires":"0001-01-01T00:00:00Z","created":"2023-07-30T18:45:18Z","updated":"2023-07-31T04:51:59Z","updatedBy":"admin","createdBy":"admin","version":41,"hasAcl":false,"isFolder":false,"folderId":20,"folderUid":"b7c2a563-48a3-426d-be2b-0f9fffbd8a85","folderTitle":"nuodb_client","folderUrl":"/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client","provisioned":false,"provisionedExternalId":"","annotationsPermissions":{"dashboard":{"canAdd":true,"canEdit":true,"canDelete":true},"organization":{"canAdd":true,"canEdit":true,"canDelete":true}},"publicDashboardAccessToken":"","publicDashboardUid":"","publicDashboardEnabled":false},"dashboard":{"annotations":{"list":[{"$$hashKey":"object:65","builtIn":1,"datasource":{"type":"datasource","uid":"grafana"},"enable":true,"hide":true,"iconColor":"rgba(0, 211, 255, 1)","name":"Annotations \u0026 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":true,"fiscalYearStartMonth":0,"graphTooltip":1,"id":35,"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":false,"gridPos":{"h":1,"w":24,"x":0,"y":0},"id":28,"panels":[],"title":"Selectors","type":"row"},{"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}\u0026${interval:queryparam}\u0026${database:queryparam}\u0026${host:queryparam}\u0026${__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 value, 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}\u0026${interval:queryparam}\u0026${database:queryparam}\u0026${host:queryparam}\u0026${__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}\u0026${interval:queryparam}\u0026${database:queryparam}\u0026${host:queryparam}\u0026${__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}\u0026${interval:queryparam}\u0026${database:queryparam}\u0026${host:queryparam}\u0026${__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}\u0026${interval:queryparam}\u0026${database:queryparam}\u0026${host:queryparam}\u0026${__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}\u0026${interval:queryparam}\u0026${database:queryparam}\u0026${host:queryparam}\u0026${__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 mean(\"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}\u0026${interval:queryparam}\u0026${database:queryparam}\u0026${host:queryparam}\u0026${__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}\u0026${interval:queryparam}\u0026${database:queryparam}\u0026${host:queryparam}\u0026${__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}\u0026${interval:queryparam}\u0026${database:queryparam}\u0026${host:queryparam}\u0026${__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}\u0026${interval:queryparam}\u0026${database:queryparam}\u0026${host:queryparam}\u0026${__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}\u0026${interval:queryparam}\u0026${database:queryparam}\u0026${host:queryparam}\u0026${__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}\u0026${interval:queryparam}\u0026${database:queryparam}\u0026${host:queryparam}\u0026${__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}\u0026${interval:queryparam}\u0026${database:queryparam}\u0026${host:queryparam}\u0026${__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}\u0026${interval:queryparam}\u0026${database:queryparam}\u0026${host:queryparam}\u0026${__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}\u0026${interval:queryparam}\u0026${database:queryparam}\u0026${host:queryparam}\u0026${__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}\u0026${interval:queryparam}\u0026${database:queryparam}\u0026${host:queryparam}\u0026${__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}\u0026${interval:queryparam}\u0026${database:queryparam}\u0026${host:queryparam}\u0026${__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"},{"collapsed":false,"gridPos":{"h":1,"w":24,"x":0,"y":26},"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":27},"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":{"mode":"thresholds"},"links":[{"title":"","url":"/d/df0d2b01-89ff-4108-bace-32f436204209/nuodb-sql-statements?var-id=${__data.fields.id}\u0026${interval:queryparam}\u0026${database:queryparam}\u0026${host:queryparam}\u0026${__url_time_range}"}],"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"green","value":null},{"color":"red","value":80}]},"unit":"none"},"overrides":[{"matcher":{"id":"byName","options":"id"},"properties":[{"id":"unit","value":"string"}]}]},"gridPos":{"h":5,"w":5,"x":0,"y":29},"id":45,"interval":"30s","options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","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":"autogen","refId":"A","resultFormat":"time_series","select":[[{"params":["numexecutes"],"type":"field"},{"params":[],"type":"sum"},{"params":[" / 30"],"type":"math"}]],"tags":[{"key":"host::tag","operator":"=~","value":"/^$host$/"},{"condition":"AND","key":"id::tag","operator":"=~","value":"/^$id$/"}]}],"title":"Executes","transformations":[{"id":"organize","options":{"excludeByName":{"Time":false,"nuodb_statements.sum {sqlstring: update STOCK set S_QUANTITY = ? , S_YTD = S_YTD + ?, S_ORDER_CNT = S_ORDER_CNT + 1, S_REMOTE_CNT = S_REMOTE_CNT + ? where S_I_ID = ? and S_W_ID = ?}":false},"indexByName":{},"renameByName":{"nuodb_statements.sum {sqlstring: update STOCK set S_QUANTITY = ? , S_YTD = S_YTD + ?, S_ORDER_CNT = S_ORDER_CNT + 1, S_REMOTE_CNT = S_REMOTE_CNT + ? where S_I_ID = ? and S_W_ID = ?}":""}}}],"type":"stat"}],"refresh":false,"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":false,"text":"30s","value":"30s"},{"selected":true,"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"},{"current":{"selected":false,"text":"update ORDER_LINE set OL_DELIVERY_D = ? where OL_O_ID = ? and OL_D_ID = ? and OL_W_ID = ?","value":"update ORDER_LINE set OL_DELIVERY_D = ? where OL_O_ID = ? and OL_D_ID = ? and OL_W_ID = ?"},"datasource":{"type":"influxdb","uid":"cdb0a5c8-a25e-4ddc-a047-9d8658d5249a"},"definition":"select \"sqlstring\" from (select \"id\",\"sqlstring\",first(\"numexecutes\") from nuodb_statements where \"id\" = '$id')","hide":2,"includeAll":false,"label":"sql","multi":false,"name":"sql","options":[],"query":"select \"sqlstring\" from (select \"id\",\"sqlstring\",first(\"numexecutes\") from nuodb_statements where \"id\" = '$id')","refresh":1,"regex":"","skipUrlSync":false,"sort":0,"type":"query"}]},"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":41,"weekStart":""}} \ No newline at end of file +{ + "meta": { + "type": "db", + "canSave": true, + "canEdit": true, + "canAdmin": true, + "canStar": true, + "canDelete": true, + "slug": "nuodb-sql-statements", + "url": "/d/df0d2b01-89ff-4108-bace-32f436204209/nuodb-sql-statements", + "expires": "0001-01-01T00:00:00Z", + "created": "2023-07-30T18:45:18Z", + "updated": "2023-07-31T18:49:45Z", + "updatedBy": "admin", + "createdBy": "admin", + "version": 53, + "hasAcl": false, + "isFolder": false, + "folderId": 20, + "folderUid": "b7c2a563-48a3-426d-be2b-0f9fffbd8a85", + "folderTitle": "nuodb_client", + "folderUrl": "/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client", + "provisioned": false, + "provisionedExternalId": "", + "annotationsPermissions": { + "dashboard": { + "canAdd": true, + "canEdit": true, + "canDelete": true + }, + "organization": { + "canAdd": true, + "canEdit": true, + "canDelete": true + } + }, + "publicDashboardAccessToken": "", + "publicDashboardUid": "", + "publicDashboardEnabled": false + }, + "dashboard": { + "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": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 1, + "id": 35, + "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" + }, + { + "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": 4, + "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": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "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": [], + "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": 4, + "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": [ + "last" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "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": [], + "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": 4, + "w": 3, + "x": 7, + "y": 4 + }, + "hideTimeOverride": true, + "id": 49, + "interval": "$collection", + "links": [ + { + "title": "Execute Breakdown", + "url": "/d/Qi5TDej4z/sql-statement-cache?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "center", + "orientation": "vertical", + "reduceOptions": { + "calcs": [ + "last" + ], + "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": 4, + "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": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "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": [], + "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": 3, + "x": 15, + "y": 4 + }, + "hideTimeOverride": true, + "id": 50, + "interval": "$collection", + "links": [ + { + "title": "Execute Breakdown", + "url": "/d/Qi5TDej4z/sql-statement-cache?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "center", + "orientation": "vertical", + "reduceOptions": { + "calcs": [ + "last" + ], + "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": 4, + "w": 6, + "x": 18, + "y": 4 + }, + "hideTimeOverride": true, + "id": 52, + "interval": "$collection", + "links": [ + { + "title": "Execute Breakdown", + "url": "/d/Qi5TDej4z/sql-statement-cache?${__all_variables}&${__url_time_range}" + } + ], + "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": [], + "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": 8 + }, + "hideTimeOverride": true, + "id": 53, + "interval": "$collection", + "links": [ + { + "title": "Execute Breakdown", + "url": "/d/Qi5TDej4z/sql-statement-cache?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "center", + "orientation": "vertical", + "reduceOptions": { + "calcs": [ + "last" + ], + "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": [], + "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": 8 + }, + "hideTimeOverride": true, + "id": 54, + "interval": "$collection", + "links": [ + { + "title": "Execute Breakdown", + "url": "/d/Qi5TDej4z/sql-statement-cache?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "center", + "orientation": "vertical", + "reduceOptions": { + "calcs": [ + "last" + ], + "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": [], + "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": 8 + }, + "hideTimeOverride": true, + "id": 55, + "interval": "$collection", + "links": [ + { + "title": "Execute Breakdown", + "url": "/d/Qi5TDej4z/sql-statement-cache?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "center", + "orientation": "vertical", + "reduceOptions": { + "calcs": [ + "last" + ], + "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": [], + "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": 8 + }, + "hideTimeOverride": true, + "id": 57, + "interval": "$collection", + "links": [ + { + "title": "Execute Breakdown", + "url": "/d/Qi5TDej4z/sql-statement-cache?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "center", + "orientation": "vertical", + "reduceOptions": { + "calcs": [ + "last" + ], + "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": [], + "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": 8 + }, + "hideTimeOverride": true, + "id": 56, + "interval": "$collection", + "links": [ + { + "title": "Execute Breakdown", + "url": "/d/Qi5TDej4z/sql-statement-cache?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "center", + "orientation": "vertical", + "reduceOptions": { + "calcs": [ + "last" + ], + "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": [], + "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": 8 + }, + "hideTimeOverride": true, + "id": 58, + "interval": "$collection", + "links": [ + { + "title": "Execute Breakdown", + "url": "/d/Qi5TDej4z/sql-statement-cache?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "center", + "orientation": "vertical", + "reduceOptions": { + "calcs": [ + "last" + ], + "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": [], + "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": 6, + "x": 0, + "y": 12 + }, + "hideTimeOverride": true, + "id": 59, + "interval": "$collection", + "links": [ + { + "title": "Execute Breakdown", + "url": "/d/Qi5TDej4z/sql-statement-cache?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "center", + "orientation": "vertical", + "reduceOptions": { + "calcs": [ + "last" + ], + "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": [], + "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": 6, + "x": 6, + "y": 12 + }, + "hideTimeOverride": true, + "id": 60, + "interval": "$collection", + "links": [ + { + "title": "Execute Breakdown", + "url": "/d/Qi5TDej4z/sql-statement-cache?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "center", + "orientation": "vertical", + "reduceOptions": { + "calcs": [ + "last" + ], + "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": [], + "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": 6, + "x": 12, + "y": 12 + }, + "hideTimeOverride": true, + "id": 61, + "interval": "$collection", + "links": [ + { + "title": "Execute Breakdown", + "url": "/d/Qi5TDej4z/sql-statement-cache?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "center", + "orientation": "vertical", + "reduceOptions": { + "calcs": [ + "last" + ], + "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": [], + "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": 6, + "x": 18, + "y": 12 + }, + "hideTimeOverride": true, + "id": 62, + "interval": "$collection", + "links": [ + { + "title": "Execute Breakdown", + "url": "/d/Qi5TDej4z/sql-statement-cache?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "center", + "orientation": "vertical", + "reduceOptions": { + "calcs": [ + "last" + ], + "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": false, + "text": "30s", + "value": "30s" + }, + { + "selected": false, + "text": "1m", + "value": "1m" + }, + { + "selected": true, + "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": 53, + "weekStart": "" + } +} diff --git a/conf/provisioning/dashboards/nuodb_client/sql-log.json b/conf/provisioning/dashboards/nuodb_client/sql-log.json index 5bea71e..d5124e7 100644 --- a/conf/provisioning/dashboards/nuodb_client/sql-log.json +++ b/conf/provisioning/dashboards/nuodb_client/sql-log.json @@ -1 +1,722 @@ -{"meta":{"type":"db","canSave":true,"canEdit":true,"canAdmin":true,"canStar":true,"canDelete":true,"slug":"sql-log","url":"/d/f91c18e0-f71c-46eb-a3a8-2d0f63407d5b/sql-log","expires":"0001-01-01T00:00:00Z","created":"2023-07-28T13:06:30Z","updated":"2023-07-29T00:53:29Z","updatedBy":"admin","createdBy":"admin","version":13,"hasAcl":false,"isFolder":false,"folderId":20,"folderUid":"b7c2a563-48a3-426d-be2b-0f9fffbd8a85","folderTitle":"nuodb_client","folderUrl":"/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client","provisioned":false,"provisionedExternalId":"","annotationsPermissions":{"dashboard":{"canAdd":true,"canEdit":true,"canDelete":true},"organization":{"canAdd":true,"canEdit":true,"canDelete":true}},"publicDashboardAccessToken":"","publicDashboardUid":"","publicDashboardEnabled":false},"dashboard":{"annotations":{"list":[{"builtIn":1,"datasource":{"type":"grafana","uid":"-- Grafana --"},"enable":true,"hide":true,"iconColor":"rgba(0, 211, 255, 1)","name":"Annotations \u0026 Alerts","type":"dashboard"}]},"editable":true,"fiscalYearStartMonth":0,"graphTooltip":0,"id":31,"links":[],"liveNow":false,"panels":[{"datasource":{"type":"marcusolsson-json-datasource","uid":"e2d5f30c-bad3-4d03-85c8-6185099c31e9"},"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":"statement"},"properties":[{"id":"custom.hidden","value":true}]},{"matcher":{"id":"byName","options":"sql"},"properties":[{"id":"displayName","value":"Sql Statement"},{"id":"custom.inspect","value":true},{"id":"custom.filterable","value":true},{"id":"links","value":[{"title":"","url":"/d/f91c18e0-f71c-46eb-a3a8-2d0f63407d5b/sql-log?${__url_time_range}\u0026var-statement=${__data.fields.statement}\u0026${explainplan:queryparam}\u0026${filters:queryparam}\u0026${search:queryparam}\u0026${__url_time_range}"}]}]}]},"gridPos":{"h":9,"w":7,"x":0,"y":0},"id":6,"options":{"cellHeight":"sm","footer":{"countRows":false,"fields":"","reducer":["sum"],"show":false},"showHeader":true},"pluginVersion":"10.0.3","targets":[{"body":"select sqlstring,ID from system.localstatementcache","cacheDurationSeconds":0,"datasource":{"type":"marcusolsson-json-datasource","uid":"e2d5f30c-bad3-4d03-85c8-6185099c31e9"},"fields":[{"jsonPath":"$.data[*].sql","language":"jsonpath"},{"jsonPath":"$.data[*].statement","language":"jsonpath","name":""}],"key":"Q-899a8fb3-34f3-4994-bc57-fde9edf098a0-0","method":"GET","params":[["dbname","$database"]],"queryParams":"","refId":"A","urlPath":"/query"}],"title":"New Panel","type":"table"},{"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"fieldConfig":{"defaults":{"color":{"mode":"palette-classic"},"custom":{"hideFrom":{"legend":false,"tooltip":false,"viz":false}},"mappings":[]},"overrides":[]},"gridPos":{"h":9,"w":5,"x":7,"y":0},"id":7,"options":{"legend":{"displayMode":"table","placement":"right","showLegend":true},"pieType":"pie","reduceOptions":{"calcs":["lastNotNull"],"fields":"","values":true},"tooltip":{"mode":"single","sort":"none"}},"pluginVersion":"10.0.3","targets":[{"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"editorMode":"builder","expr":"sum by(statement) (count_over_time({source=\"executions\", explainplan=~\"$explainplan\", statement=~\"$statement\"} [$__range]))","key":"Q-00d75461-1f95-45bf-8a91-a7f263c61fdf-0","queryType":"instant","refId":"B"}],"title":"Statement Distribution","type":"piechart"},{"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"fieldConfig":{"defaults":{"color":{"mode":"palette-classic"},"custom":{"hideFrom":{"legend":false,"tooltip":false,"viz":false}},"links":[{"title":"","url":"/d/f91c18e0-f71c-46eb-a3a8-2d0f63407d5b/sql-log?${__url_time_range}\u0026var-explainplan=${__data.fields.explainplan}\u0026${statement:queryparam}\u0026${filters:queryparam}\u0026${search:queryparam}\u0026${__url_time_range}"}],"mappings":[]},"overrides":[]},"gridPos":{"h":9,"w":5,"x":12,"y":0},"id":8,"options":{"legend":{"displayMode":"table","placement":"right","showLegend":true},"pieType":"pie","reduceOptions":{"calcs":["lastNotNull"],"fields":"","values":true},"tooltip":{"mode":"single","sort":"none"}},"pluginVersion":"10.0.3","targets":[{"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"editorMode":"builder","expr":"topk by(explainplan) (20, sum by(explainplan) (count_over_time({source=\"executions\", explainplan=~\"$explainplan\", statement=\"$statement\"} [$__range])))","key":"Q-00d75461-1f95-45bf-8a91-a7f263c61fdf-0","queryType":"instant","refId":"B"}],"title":"Explain Plan Distribution","type":"piechart"},{"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"description":"Note the calculation is down in browser and the query is limited to 5000 lines returned from loki.","fieldConfig":{"defaults":{"color":{"mode":"palette-classic"},"custom":{"hideFrom":{"legend":false,"tooltip":false,"viz":false}},"links":[{"title":"Statement Filter","url":"/d/f91c18e0-f71c-46eb-a3a8-2d0f63407d5b/sql-log?var-statement=${__data.fields.stmthash}\u0026${filter:queryparam}\u0026${filters:queryparam}\u0026${__url_time_range}"}],"mappings":[],"unit":"µs"},"overrides":[{"matcher":{"id":"byName","options":"stmthash"},"properties":[{"id":"unit","value":"string"}]}]},"gridPos":{"h":8,"w":6,"x":18,"y":0},"id":5,"options":{"legend":{"displayMode":"table","placement":"right","showLegend":true},"pieType":"pie","reduceOptions":{"calcs":["lastNotNull"],"fields":"","values":true},"tooltip":{"mode":"single","sort":"none"}},"pluginVersion":"10.0.3","targets":[{"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"editorMode":"builder","expr":"{job=\"execution\", stmthash=~\"$statement\"} |~ `$filter` |= `$xplan` | logfmt","maxLines":5000,"queryType":"range","refId":"A","resolution":1}],"title":"Top 10 ExecTime for first 5000 execution in time window","transformations":[{"id":"extractFields","options":{"format":"auto","keepTime":true,"replace":true,"source":"labels"}},{"id":"organize","options":{"excludeByName":{"Time":true,"compiletime":true,"connid":true,"ddlop":true,"deletions":true,"diskspill":true,"dmlop":true,"evicted":true,"execcount":true,"filename":true,"hostname":true,"indexfetches":true,"indexhits":true,"inserts":true,"job":true,"locked":true,"numindexfetch":true,"numtablefetch":true,"peakmemusage":true,"recordsfetched":true,"recordsreturned":true,"rejectindexhits":true,"replaces":true,"sorted":true,"sqlhash":true,"tablefetches":true,"time":true,"transid":true,"updates":true,"xplanhash":true},"indexByName":{},"renameByName":{}}},{"id":"convertFieldType","options":{"conversions":[{"destinationType":"number","targetField":"exectime"}],"fields":{}}},{"id":"groupBy","options":{"fields":{"exectime":{"aggregations":["sum"],"operation":"aggregate"},"stmthash":{"aggregations":[],"operation":"groupby"}}}}],"type":"piechart"},{"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"gridPos":{"h":19,"w":24,"x":0,"y":9},"id":2,"options":{"dedupStrategy":"none","enableLogDetails":true,"prettifyLogMessage":false,"showCommonLabels":false,"showLabels":false,"showTime":true,"sortOrder":"Descending","wrapLogMessage":false},"targets":[{"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"editorMode":"builder","expr":"{job=\"execution\", stmthash=~\"$statement\"} |~ `$filter` |= `$xplan` | logfmt","key":"Q-750d1062-cf8f-4219-b251-cca241a74556-0","queryType":"range","refId":"A"}],"title":"New Panel","transformations":[{"id":"extractFields","options":{"format":"auto","keepTime":false,"replace":false,"source":"labels"}},{"id":"organize","options":{"excludeByName":{"Line":false,"compiletime":true,"connid":true,"ddlop":true,"deletions":true,"diskspill":true,"dmlop":true,"evicted":true,"execcount":true,"filename":true,"hostname":true,"id":true,"indexfetches":true,"indexhits":true,"inserts":true,"job":true,"labels":false,"locked":true,"numindexfetch":true,"numtablefetch":true,"peakmemusage":true,"recordsfetched":true,"recordsreturned":true,"rejectindexhits":true,"replaces":true,"sorted":true,"sqlhash":true,"stmthash":true,"tablefetches":true,"time":true,"transid":true,"tsNs":true,"updates":true,"xplanhash":true},"indexByName":{"Line":0,"Time":1,"compiletime":6,"connid":7,"ddlop":8,"deletions":9,"diskspill":10,"dmlop":11,"evicted":12,"execcount":13,"exectime":2,"filename":14,"hostname":15,"id":5,"indexfetches":16,"indexhits":17,"inserts":18,"job":19,"labels":3,"locked":20,"numindexfetch":21,"numtablefetch":22,"peakmemusage":23,"recordsfetched":24,"recordsreturned":25,"rejectindexhits":26,"replaces":27,"sorted":28,"sqlhash":29,"stmthash":30,"tablefetches":31,"time":32,"transid":33,"tsNs":4,"updates":34,"xplanhash":35},"renameByName":{}}}],"type":"logs"}],"refresh":"","schemaVersion":38,"style":"dark","tags":[],"templating":{"list":[{"current":{"selected":false,"text":".+","value":".+"},"hide":0,"label":"statement","name":"statement","options":[{"selected":false,"text":".+","value":".+"}],"query":".+","skipUrlSync":false,"type":"textbox"},{"current":{"selected":false,"text":".+","value":".+"},"hide":0,"label":"explainplan","name":"explainplan","options":[{"selected":true,"text":".+","value":".+"}],"query":".+","skipUrlSync":false,"type":"textbox"},{"current":{"selected":false,"text":"","value":""},"hide":0,"label":"search","name":"search","options":[{"selected":true,"text":"","value":""}],"query":"","skipUrlSync":false,"type":"textbox"},{"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"filters":[{"condition":"","key":"xplanhash","operator":"!=","value":"0"}],"hide":0,"name":"filters","skipUrlSync":false,"type":"adhoc"}]},"time":{"from":"2023-07-27T20:17:00.000Z","to":"2023-07-27T20:27:00.000Z"},"timepicker":{},"timezone":"","title":"SQL Log","uid":"f91c18e0-f71c-46eb-a3a8-2d0f63407d5b","version":13,"weekStart":""}} \ No newline at end of file +{ + "meta": { + "type": "db", + "canSave": true, + "canEdit": true, + "canAdmin": true, + "canStar": true, + "canDelete": true, + "slug": "sql-log", + "url": "/d/f91c18e0-f71c-46eb-a3a8-2d0f63407d5b/sql-log", + "expires": "0001-01-01T00:00:00Z", + "created": "2023-07-28T13:06:30Z", + "updated": "2023-07-29T00:53:29Z", + "updatedBy": "admin", + "createdBy": "admin", + "version": 13, + "hasAcl": false, + "isFolder": false, + "folderId": 20, + "folderUid": "b7c2a563-48a3-426d-be2b-0f9fffbd8a85", + "folderTitle": "nuodb_client", + "folderUrl": "/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client", + "provisioned": false, + "provisionedExternalId": "", + "annotationsPermissions": { + "dashboard": { + "canAdd": true, + "canEdit": true, + "canDelete": true + }, + "organization": { + "canAdd": true, + "canEdit": true, + "canDelete": true + } + }, + "publicDashboardAccessToken": "", + "publicDashboardUid": "", + "publicDashboardEnabled": false + }, + "dashboard": { + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "grafana", + "uid": "-- Grafana --" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": 31, + "links": [], + "liveNow": false, + "panels": [ + { + "datasource": { + "type": "marcusolsson-json-datasource", + "uid": "e2d5f30c-bad3-4d03-85c8-6185099c31e9" + }, + "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": "statement" + }, + "properties": [ + { + "id": "custom.hidden", + "value": true + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "sql" + }, + "properties": [ + { + "id": "displayName", + "value": "Sql Statement" + }, + { + "id": "custom.inspect", + "value": true + }, + { + "id": "custom.filterable", + "value": true + }, + { + "id": "links", + "value": [ + { + "title": "", + "url": "/d/f91c18e0-f71c-46eb-a3a8-2d0f63407d5b/sql-log?${__url_time_range}&var-statement=${__data.fields.statement}&${explainplan:queryparam}&${filters:queryparam}&${search:queryparam}&${__url_time_range}" + } + ] + } + ] + } + ] + }, + "gridPos": { + "h": 9, + "w": 7, + "x": 0, + "y": 0 + }, + "id": 6, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "body": "select sqlstring,ID from system.localstatementcache", + "cacheDurationSeconds": 0, + "datasource": { + "type": "marcusolsson-json-datasource", + "uid": "e2d5f30c-bad3-4d03-85c8-6185099c31e9" + }, + "fields": [ + { + "jsonPath": "$.data[*].sql", + "language": "jsonpath" + }, + { + "jsonPath": "$.data[*].statement", + "language": "jsonpath", + "name": "" + } + ], + "key": "Q-899a8fb3-34f3-4994-bc57-fde9edf098a0-0", + "method": "GET", + "params": [ + [ + "dbname", + "$database" + ] + ], + "queryParams": "", + "refId": "A", + "urlPath": "/query" + } + ], + "title": "New Panel", + "type": "table" + }, + { + "datasource": { + "type": "loki", + "uid": "ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "mappings": [] + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 5, + "x": 7, + "y": 0 + }, + "id": 7, + "options": { + "legend": { + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "pieType": "pie", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "datasource": { + "type": "loki", + "uid": "ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3" + }, + "editorMode": "builder", + "expr": "sum by(statement) (count_over_time({source=\"executions\", explainplan=~\"$explainplan\", statement=~\"$statement\"} [$__range]))", + "key": "Q-00d75461-1f95-45bf-8a91-a7f263c61fdf-0", + "queryType": "instant", + "refId": "B" + } + ], + "title": "Statement Distribution", + "type": "piechart" + }, + { + "datasource": { + "type": "loki", + "uid": "ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "links": [ + { + "title": "", + "url": "/d/f91c18e0-f71c-46eb-a3a8-2d0f63407d5b/sql-log?${__url_time_range}&var-explainplan=${__data.fields.explainplan}&${statement:queryparam}&${filters:queryparam}&${search:queryparam}&${__url_time_range}" + } + ], + "mappings": [] + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 5, + "x": 12, + "y": 0 + }, + "id": 8, + "options": { + "legend": { + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "pieType": "pie", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "datasource": { + "type": "loki", + "uid": "ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3" + }, + "editorMode": "builder", + "expr": "topk by(explainplan) (20, sum by(explainplan) (count_over_time({source=\"executions\", explainplan=~\"$explainplan\", statement=\"$statement\"} [$__range])))", + "key": "Q-00d75461-1f95-45bf-8a91-a7f263c61fdf-0", + "queryType": "instant", + "refId": "B" + } + ], + "title": "Explain Plan Distribution", + "type": "piechart" + }, + { + "datasource": { + "type": "loki", + "uid": "ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3" + }, + "description": "Note the calculation is down in browser and the query is limited to 5000 lines returned from loki.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "links": [ + { + "title": "Statement Filter", + "url": "/d/f91c18e0-f71c-46eb-a3a8-2d0f63407d5b/sql-log?var-statement=${__data.fields.stmthash}&${filter:queryparam}&${filters:queryparam}&${__url_time_range}" + } + ], + "mappings": [], + "unit": "µs" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "stmthash" + }, + "properties": [ + { + "id": "unit", + "value": "string" + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 6, + "x": 18, + "y": 0 + }, + "id": 5, + "options": { + "legend": { + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "pieType": "pie", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "datasource": { + "type": "loki", + "uid": "ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3" + }, + "editorMode": "builder", + "expr": "{job=\"execution\", stmthash=~\"$statement\"} |~ `$filter` |= `$xplan` | logfmt", + "maxLines": 5000, + "queryType": "range", + "refId": "A", + "resolution": 1 + } + ], + "title": "Top 10 ExecTime for first 5000 execution in time window", + "transformations": [ + { + "id": "extractFields", + "options": { + "format": "auto", + "keepTime": true, + "replace": true, + "source": "labels" + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "compiletime": true, + "connid": true, + "ddlop": true, + "deletions": true, + "diskspill": true, + "dmlop": true, + "evicted": true, + "execcount": true, + "filename": true, + "hostname": true, + "indexfetches": true, + "indexhits": true, + "inserts": true, + "job": true, + "locked": true, + "numindexfetch": true, + "numtablefetch": true, + "peakmemusage": true, + "recordsfetched": true, + "recordsreturned": true, + "rejectindexhits": true, + "replaces": true, + "sorted": true, + "sqlhash": true, + "tablefetches": true, + "time": true, + "transid": true, + "updates": true, + "xplanhash": true + }, + "indexByName": {}, + "renameByName": {} + } + }, + { + "id": "convertFieldType", + "options": { + "conversions": [ + { + "destinationType": "number", + "targetField": "exectime" + } + ], + "fields": {} + } + }, + { + "id": "groupBy", + "options": { + "fields": { + "exectime": { + "aggregations": [ + "sum" + ], + "operation": "aggregate" + }, + "stmthash": { + "aggregations": [], + "operation": "groupby" + } + } + } + } + ], + "type": "piechart" + }, + { + "datasource": { + "type": "loki", + "uid": "ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3" + }, + "gridPos": { + "h": 19, + "w": 24, + "x": 0, + "y": 9 + }, + "id": 2, + "options": { + "dedupStrategy": "none", + "enableLogDetails": true, + "prettifyLogMessage": false, + "showCommonLabels": false, + "showLabels": false, + "showTime": true, + "sortOrder": "Descending", + "wrapLogMessage": false + }, + "targets": [ + { + "datasource": { + "type": "loki", + "uid": "ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3" + }, + "editorMode": "builder", + "expr": "{job=\"execution\", stmthash=~\"$statement\"} |~ `$filter` |= `$xplan` | logfmt", + "key": "Q-750d1062-cf8f-4219-b251-cca241a74556-0", + "queryType": "range", + "refId": "A" + } + ], + "title": "New Panel", + "transformations": [ + { + "id": "extractFields", + "options": { + "format": "auto", + "keepTime": false, + "replace": false, + "source": "labels" + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Line": false, + "compiletime": true, + "connid": true, + "ddlop": true, + "deletions": true, + "diskspill": true, + "dmlop": true, + "evicted": true, + "execcount": true, + "filename": true, + "hostname": true, + "id": true, + "indexfetches": true, + "indexhits": true, + "inserts": true, + "job": true, + "labels": false, + "locked": true, + "numindexfetch": true, + "numtablefetch": true, + "peakmemusage": true, + "recordsfetched": true, + "recordsreturned": true, + "rejectindexhits": true, + "replaces": true, + "sorted": true, + "sqlhash": true, + "stmthash": true, + "tablefetches": true, + "time": true, + "transid": true, + "tsNs": true, + "updates": true, + "xplanhash": true + }, + "indexByName": { + "Line": 0, + "Time": 1, + "compiletime": 6, + "connid": 7, + "ddlop": 8, + "deletions": 9, + "diskspill": 10, + "dmlop": 11, + "evicted": 12, + "execcount": 13, + "exectime": 2, + "filename": 14, + "hostname": 15, + "id": 5, + "indexfetches": 16, + "indexhits": 17, + "inserts": 18, + "job": 19, + "labels": 3, + "locked": 20, + "numindexfetch": 21, + "numtablefetch": 22, + "peakmemusage": 23, + "recordsfetched": 24, + "recordsreturned": 25, + "rejectindexhits": 26, + "replaces": 27, + "sorted": 28, + "sqlhash": 29, + "stmthash": 30, + "tablefetches": 31, + "time": 32, + "transid": 33, + "tsNs": 4, + "updates": 34, + "xplanhash": 35 + }, + "renameByName": {} + } + } + ], + "type": "logs" + } + ], + "refresh": "", + "schemaVersion": 38, + "style": "dark", + "tags": [], + "templating": { + "list": [ + { + "current": { + "selected": false, + "text": ".+", + "value": ".+" + }, + "hide": 0, + "label": "statement", + "name": "statement", + "options": [ + { + "selected": false, + "text": ".+", + "value": ".+" + } + ], + "query": ".+", + "skipUrlSync": false, + "type": "textbox" + }, + { + "current": { + "selected": false, + "text": ".+", + "value": ".+" + }, + "hide": 0, + "label": "explainplan", + "name": "explainplan", + "options": [ + { + "selected": true, + "text": ".+", + "value": ".+" + } + ], + "query": ".+", + "skipUrlSync": false, + "type": "textbox" + }, + { + "current": { + "selected": false, + "text": "", + "value": "" + }, + "hide": 0, + "label": "search", + "name": "search", + "options": [ + { + "selected": true, + "text": "", + "value": "" + } + ], + "query": "", + "skipUrlSync": false, + "type": "textbox" + }, + { + "datasource": { + "type": "loki", + "uid": "ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3" + }, + "filters": [ + { + "condition": "", + "key": "xplanhash", + "operator": "!=", + "value": "0" + } + ], + "hide": 0, + "name": "filters", + "skipUrlSync": false, + "type": "adhoc" + } + ] + }, + "time": { + "from": "2023-07-27T20:17:00.000Z", + "to": "2023-07-27T20:27:00.000Z" + }, + "timepicker": {}, + "timezone": "", + "title": "SQL Log", + "uid": "f91c18e0-f71c-46eb-a3a8-2d0f63407d5b", + "version": 13, + "weekStart": "" + } +} diff --git a/conf/provisioning/dashboards/nuodb_client/sql-logs.json b/conf/provisioning/dashboards/nuodb_client/sql-logs.json index 35664f0..e0cb7ba 100644 --- a/conf/provisioning/dashboards/nuodb_client/sql-logs.json +++ b/conf/provisioning/dashboards/nuodb_client/sql-logs.json @@ -1 +1,874 @@ -{"meta":{"type":"db","canSave":true,"canEdit":true,"canAdmin":true,"canStar":true,"canDelete":true,"slug":"sql-logs","url":"/d/c9081118-5230-478d-b6e8-d76614395704/sql-logs","expires":"0001-01-01T00:00:00Z","created":"2023-07-29T14:51:47Z","updated":"2023-07-29T17:32:38Z","updatedBy":"admin","createdBy":"admin","version":6,"hasAcl":false,"isFolder":false,"folderId":20,"folderUid":"b7c2a563-48a3-426d-be2b-0f9fffbd8a85","folderTitle":"nuodb_client","folderUrl":"/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client","provisioned":false,"provisionedExternalId":"","annotationsPermissions":{"dashboard":{"canAdd":true,"canEdit":true,"canDelete":true},"organization":{"canAdd":true,"canEdit":true,"canDelete":true}},"publicDashboardAccessToken":"","publicDashboardUid":"","publicDashboardEnabled":false},"dashboard":{"annotations":{"list":[{"$$hashKey":"object:65","builtIn":1,"datasource":{"type":"datasource","uid":"grafana"},"enable":true,"hide":true,"iconColor":"rgba(0, 211, 255, 1)","name":"Annotations \u0026 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":"NuoDB Summary","editable":true,"fiscalYearStartMonth":0,"graphTooltip":1,"id":34,"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":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"},{"aliasColors":{},"bars":true,"dashLength":10,"dashes":false,"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":{"links":[]},"overrides":[]},"fill":1,"fillGradient":0,"gridPos":{"h":4,"w":24,"x":0,"y":1},"hiddenSeries":false,"id":6,"interval":"$interval","legend":{"avg":false,"current":false,"max":false,"min":false,"show":false,"total":false,"values":false},"lines":false,"linewidth":1,"nullPointMode":"null","options":{"alertThreshold":true},"paceLength":10,"percentage":false,"pluginVersion":"10.0.3","pointradius":2,"points":false,"renderer":"flot","seriesOverrides":[{"$$hashKey":"object:133","alias":"NumberCores","bars":false,"color":"rgb(255, 255, 255)","fill":1,"lines":true,"linewidth":0,"stack":false,"steppedLine":true,"yaxis":2}],"spaceLength":10,"stack":true,"steppedLine":false,"targets":[{"alias":"$measurement","datasource":{"type":"influxdb","uid":"P7F1571328205BBA6"},"groupBy":[{"params":["$__interval"],"type":"time"},{"params":["null"],"type":"fill"}],"hide":false,"orderByTime":"ASC","policy":"default","query":"SELECT sum(nthreads) as \"nthreads\" FROM (SELECT mean(raw) / 10000. as \"nthreads\" FROM \"Summary.Fetch\",\"Summary.Commit\",\"Summary.Sync\",\"Summary.Lock\",\"Summary.NtwkSend\",\"Summary.Throttle\",\"Summary.CPU\" WHERE $timeFilter AND nodetype = 'Transaction' AND host =~ /^$host$/ AND db =~ /^$database$/ GROUP BY time($__interval), \"pid\" fill(null)) GROUP BY time($__interval)","rawQuery":true,"refId":"A","resultFormat":"time_series","select":[[{"params":["value"],"type":"field"},{"params":[],"type":"mean"}]],"tags":[]},{"alias":"$measurement","datasource":{"type":"influxdb","uid":"P7F1571328205BBA6"},"groupBy":[{"params":["$__interval"],"type":"time"},{"params":["null"],"type":"fill"}],"hide":false,"measurement":"NumberCores","orderByTime":"ASC","policy":"default","query":"SELECT sum(ncores) FROM (SELECT mean(\"raw\") as ncores FROM \"NumberCores\" WHERE (\"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/ AND \"nodetype\" = 'Transaction') AND $timeFilter GROUP BY time($__interval), \"startid\" fill(null)) GROUP BY time($__interval)","rawQuery":true,"refId":"C","resultFormat":"time_series","select":[[{"params":["raw"],"type":"field"},{"params":[],"type":"mean"}]],"tags":[{"key":"db","operator":"=~","value":"/^$database$/"},{"condition":"AND","key":"host","operator":"=~","value":"/^$host$/"},{"condition":"AND","key":"nodetype","operator":"=","value":"Transaction"}]}],"thresholds":[],"timeRegions":[],"title":"Summary","tooltip":{"shared":true,"sort":2,"value_type":"individual"},"type":"graph","xaxis":{"mode":"time","show":true,"values":[]},"yaxes":[{"$$hashKey":"object:150","decimals":1,"format":"short","label":"measurement relative to vCPU","logBase":1,"min":"0","show":true},{"$$hashKey":"object:151","format":"short","label":"total number of vCPU","logBase":1,"show":true}],"yaxis":{"align":false}},{"collapsed":false,"gridPos":{"h":1,"w":24,"x":0,"y":5},"id":9,"panels":[],"title":"Log","type":"row"},{"datasource":{"type":"marcusolsson-json-datasource","uid":"fb12902f-919a-4aa9-89de-398bdfce52df"},"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":6},"id":12,"options":{"cellHeight":"md","footer":{"countRows":false,"enablePagination":false,"fields":"","reducer":["sum"],"show":false},"showHeader":false},"pluginVersion":"10.0.3","targets":[{"body":"select sqlstring from system.localstatementcache where ID='$statement'","cacheDurationSeconds":0,"datasource":{"type":"marcusolsson-json-datasource","uid":"fb12902f-919a-4aa9-89de-398bdfce52df"},"fields":[{"jsonPath":"$.rows[*][0]","name":"sqlstring"}],"method":"POST","params":[["dbname","$database"],["hostname","localhost"]],"queryParams":"","refId":"A","urlPath":"/query"}],"transparent":true,"type":"table"},{"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"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":6,"w":24,"x":0,"y":8},"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":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"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":"Log Counts","type":"timeseries"},{"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"description":"Output is limited to 2000 lines","gridPos":{"h":20,"w":24,"x":0,"y":14},"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":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"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":false,"schemaVersion":38,"style":"dark","tags":["sql","overview"],"templating":{"list":[{"auto":true,"auto_count":100,"auto_min":"10ms","current":{"selected":false,"text":"1s","value":"1s"},"hide":0,"label":"interval","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":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":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":".+","value":".+"},"hide":0,"label":"statement","name":"statement","options":[{"selected":true,"text":".+","value":".+"}],"query":".+","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":"filter","name":"filter","options":[{"selected":false,"text":"","value":""}],"query":"","skipUrlSync":false,"type":"textbox"},{"datasource":{"type":"loki","uid":"ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3"},"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 Logs","uid":"c9081118-5230-478d-b6e8-d76614395704","version":6,"weekStart":""}} \ No newline at end of file +{ + "meta": { + "type": "db", + "canSave": true, + "canEdit": true, + "canAdmin": true, + "canStar": true, + "canDelete": true, + "slug": "sql-logs", + "url": "/d/c9081118-5230-478d-b6e8-d76614395704/sql-logs", + "expires": "0001-01-01T00:00:00Z", + "created": "2023-07-29T14:51:47Z", + "updated": "2023-07-31T18:31:19Z", + "updatedBy": "admin", + "createdBy": "admin", + "version": 7, + "hasAcl": false, + "isFolder": false, + "folderId": 20, + "folderUid": "b7c2a563-48a3-426d-be2b-0f9fffbd8a85", + "folderTitle": "nuodb_client", + "folderUrl": "/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client", + "provisioned": false, + "provisionedExternalId": "", + "annotationsPermissions": { + "dashboard": { + "canAdd": true, + "canEdit": true, + "canDelete": true + }, + "organization": { + "canAdd": true, + "canEdit": true, + "canDelete": true + } + }, + "publicDashboardAccessToken": "", + "publicDashboardUid": "", + "publicDashboardEnabled": false + }, + "dashboard": { + "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": "NuoDB Summary", + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 1, + "id": 34, + "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": 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" + }, + { + "aliasColors": {}, + "bars": true, + "dashLength": 10, + "dashes": false, + "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": { + "links": [] + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 4, + "w": 24, + "x": 0, + "y": 1 + }, + "hiddenSeries": false, + "id": 6, + "interval": "$interval", + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false + }, + "lines": false, + "linewidth": 1, + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "paceLength": 10, + "percentage": false, + "pluginVersion": "10.0.3", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "$$hashKey": "object:133", + "alias": "NumberCores", + "bars": false, + "color": "rgb(255, 255, 255)", + "fill": 1, + "lines": true, + "linewidth": 0, + "stack": false, + "steppedLine": true, + "yaxis": 2 + } + ], + "spaceLength": 10, + "stack": true, + "steppedLine": false, + "targets": [ + { + "alias": "$measurement", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(nthreads) as \"nthreads\" FROM (SELECT mean(raw) / 10000. as \"nthreads\" FROM \"Summary.Fetch\",\"Summary.Commit\",\"Summary.Sync\",\"Summary.Lock\",\"Summary.NtwkSend\",\"Summary.Throttle\",\"Summary.CPU\" WHERE $timeFilter AND nodetype = 'Transaction' AND host =~ /^$host$/ AND db =~ /^$database$/ GROUP BY time($__interval), \"pid\" fill(null)) GROUP BY time($__interval)", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [] + }, + { + "alias": "$measurement", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "NumberCores", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(ncores) FROM (SELECT mean(\"raw\") as ncores FROM \"NumberCores\" WHERE (\"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/ AND \"nodetype\" = 'Transaction') AND $timeFilter GROUP BY time($__interval), \"startid\" fill(null)) GROUP BY time($__interval)", + "rawQuery": true, + "refId": "C", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "raw" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "db", + "operator": "=~", + "value": "/^$database$/" + }, + { + "condition": "AND", + "key": "host", + "operator": "=~", + "value": "/^$host$/" + }, + { + "condition": "AND", + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Summary", + "tooltip": { + "shared": true, + "sort": 2, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:150", + "decimals": 1, + "format": "short", + "label": "measurement relative to vCPU", + "logBase": 1, + "min": "0", + "show": true + }, + { + "$$hashKey": "object:151", + "format": "short", + "label": "total number of vCPU", + "logBase": 1, + "show": true + } + ], + "yaxis": { + "align": false + } + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 5 + }, + "id": 9, + "panels": [], + "title": "Log", + "type": "row" + }, + { + "datasource": { + "type": "marcusolsson-json-datasource", + "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" + }, + "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": 6 + }, + "id": 12, + "options": { + "cellHeight": "md", + "footer": { + "countRows": false, + "enablePagination": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": false + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "body": "select sqlstring from system.localstatementcache where ID='$statement'", + "cacheDurationSeconds": 0, + "datasource": { + "type": "marcusolsson-json-datasource", + "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" + }, + "fields": [ + { + "jsonPath": "$.rows[*][0]", + "name": "sqlstring" + } + ], + "method": "POST", + "params": [ + [ + "dbname", + "$database" + ], + [ + "hostname", + "localhost" + ] + ], + "queryParams": "", + "refId": "A", + "urlPath": "/query" + } + ], + "transparent": true, + "type": "table" + }, + { + "datasource": { + "type": "loki", + "uid": "ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3" + }, + "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": 6, + "w": 24, + "x": 0, + "y": 8 + }, + "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": "ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3" + }, + "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": "Log Counts", + "type": "timeseries" + }, + { + "datasource": { + "type": "loki", + "uid": "ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3" + }, + "description": "Output is limited to 2000 lines", + "gridPos": { + "h": 20, + "w": 24, + "x": 0, + "y": 14 + }, + "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": "ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3" + }, + "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": false, + "schemaVersion": 38, + "style": "dark", + "tags": [ + "sql", + "overview" + ], + "templating": { + "list": [ + { + "auto": true, + "auto_count": 100, + "auto_min": "10ms", + "current": { + "selected": false, + "text": "1s", + "value": "1s" + }, + "hide": 0, + "label": "interval", + "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": 2, + "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": false, + "text": ".+", + "value": ".+" + }, + "hide": 0, + "label": "statement", + "name": "statement", + "options": [ + { + "selected": false, + "text": ".+", + "value": ".+" + } + ], + "query": ".+", + "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": "filter", + "name": "filter", + "options": [ + { + "selected": true, + "text": "", + "value": "" + } + ], + "query": "", + "skipUrlSync": false, + "type": "textbox" + }, + { + "datasource": { + "type": "loki", + "uid": "ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3" + }, + "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 Logs", + "uid": "c9081118-5230-478d-b6e8-d76614395704", + "version": 7, + "weekStart": "" + } +} diff --git a/conf/provisioning/dashboards/nuodb_client/sql-overview-from-table.json b/conf/provisioning/dashboards/nuodb_client/sql-overview-from-table.json new file mode 100644 index 0000000..395ff01 --- /dev/null +++ b/conf/provisioning/dashboards/nuodb_client/sql-overview-from-table.json @@ -0,0 +1,5595 @@ +{ + "meta": { + "type": "db", + "canSave": true, + "canEdit": true, + "canAdmin": true, + "canStar": true, + "canDelete": true, + "slug": "sql-overview-from-table", + "url": "/d/becbeb9d-f054-4081-8766-13c43e7eb972/sql-overview-from-table", + "expires": "0001-01-01T00:00:00Z", + "created": "2023-07-31T16:38:20Z", + "updated": "2023-07-31T16:38:20Z", + "updatedBy": "admin", + "createdBy": "admin", + "version": 1, + "hasAcl": false, + "isFolder": false, + "folderId": 20, + "folderUid": "b7c2a563-48a3-426d-be2b-0f9fffbd8a85", + "folderTitle": "nuodb_client", + "folderUrl": "/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client", + "provisioned": false, + "provisionedExternalId": "", + "annotationsPermissions": { + "dashboard": { + "canAdd": true, + "canEdit": true, + "canDelete": true + }, + "organization": { + "canAdd": true, + "canEdit": true, + "canDelete": true + } + }, + "publicDashboardAccessToken": "", + "publicDashboardUid": "", + "publicDashboardEnabled": false + }, + "dashboard": { + "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": "red", + "name": "db annotations", + "target": { + "limit": 100, + "matchAny": true, + "tags": [ + "$database" + ], + "type": "tags" + } + } + ] + }, + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 1, + "id": 36, + "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": 9, + "x": 0, + "y": 2 + }, + "hideTimeOverride": true, + "id": 45, + "links": [ + { + "title": "", + "url": "/d/z35SM6j4z/client-messages?${__all_variables}&${__url_time_range}" + } + ], + "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": "palette-classic" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "links": [ + { + "targetBlank": false, + "title": "Details", + "url": "/d/z35SM6j4z/client-messages" + } + ], + "mappings": [], + "unit": "µs" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 9, + "y": 2 + }, + "hideTimeOverride": true, + "id": 52, + "links": [ + { + "targetBlank": false, + "title": "", + "url": "/d/z35SM6j4z/client-messages?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "pieType": "pie", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": 12, + "y": 2 + }, + "hideTimeOverride": true, + "id": 54, + "links": [ + { + "title": "Details", + "url": "/d/z35SM6j4z/client-messages?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "pieType": "pie", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": 9, + "x": 15, + "y": 2 + }, + "hideTimeOverride": true, + "id": 44, + "links": [ + { + "title": "Details", + "url": "/d/z35SM6j4z/client-messages?${__all_variables}&${__url_time_range}" + } + ], + "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": "Platform", + "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": [ + "lastNotNull" + ], + "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": [ + "lastNotNull" + ], + "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 + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 6, + "y": 8 + }, + "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": [ + "lastNotNull" + ], + "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" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "light-blue", + "value": null + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 9, + "y": 8 + }, + "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": [ + "lastNotNull" + ], + "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": "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": { + "fixedColor": "semi-dark-yellow", + "mode": "fixed" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "light-blue", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 12, + "y": 8 + }, + "hideTimeOverride": true, + "id": 46, + "links": [ + { + "title": "SQL Dashboard", + "url": "/d/J9fZNkr4z/sql?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": "SqlListenerSqlProcTime", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT SUM(R) FROM (SELECT mean(\"rate\") AS R FROM \"Commits\" 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": "Commits", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "light-blue", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 15, + "y": 8 + }, + "hideTimeOverride": true, + "id": 33, + "links": [ + { + "title": "SQL Dashboard", + "url": "/d/J9fZNkr4z/sql?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": "Inserts", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"Inserts\" 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": "Inserts", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "light-blue", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 18, + "y": 8 + }, + "hideTimeOverride": true, + "id": 35, + "links": [ + { + "title": "SQL Dashboard", + "url": "/d/J9fZNkr4z/sql?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": "Updates", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"Updates\" 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": "Updates", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "light-blue", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 21, + "y": 8 + }, + "hideTimeOverride": true, + "id": 34, + "links": [ + { + "title": "SQL Dashboard", + "url": "/d/J9fZNkr4z/sql?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": "Deletes", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"Deletes\" 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": "Deletes", + "type": "stat" + }, + { + "collapsed": false, + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 12 + }, + "id": 23, + "panels": [], + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "refId": "A" + } + ], + "title": "Rows", + "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" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "light-blue", + "value": null + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 6, + "x": 0, + "y": 13 + }, + "hideTimeOverride": true, + "id": 2, + "links": [ + { + "title": "Details by Statement", + "url": "/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "8.3.0", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "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" + } + ] + } + ], + "timeShift": "10s", + "title": "Statements Executed", + "type": "timeseries" + }, + { + "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": 13 + }, + "hideTimeOverride": true, + "id": 38, + "links": [ + { + "title": "Details by Statement", + "url": "/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": 13 + }, + "hideTimeOverride": true, + "id": 29, + "links": [ + { + "title": "Details by Statement", + "url": "/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "pieType": "pie", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": 13 + }, + "hideTimeOverride": true, + "id": 37, + "links": [ + { + "title": "Details by Statement ", + "url": "/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "displayMode": "basic", + "minVizHeight": 10, + "minVizWidth": 0, + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showUnfilled": false, + "valueMode": "color" + }, + "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": "bargauge" + }, + { + "collapsed": false, + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 17 + }, + "id": 17, + "panels": [], + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "refId": "A" + } + ], + "title": "Indexes", + "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": 18 + }, + "hideTimeOverride": true, + "id": 10, + "links": [ + { + "title": "Details by Statement", + "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": 18 + }, + "hideTimeOverride": true, + "id": 12, + "links": [ + { + "title": "Details by Statement", + "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": 18 + }, + "hideTimeOverride": true, + "id": 15, + "links": [ + { + "title": "Details by Statement", + "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": 18 + }, + "hideTimeOverride": true, + "id": 13, + "links": [ + { + "title": "Details by Statement", + "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": 18 + }, + "hideTimeOverride": true, + "id": 11, + "links": [ + { + "title": "Details by Statement", + "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": 18 + }, + "hideTimeOverride": true, + "id": 14, + "links": [ + { + "title": "Details by Statement", + "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": 22 + }, + "id": 4, + "panels": [], + "repeat": "SQLStatementStats", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "refId": "A" + } + ], + "title": "Records", + "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": 23 + }, + "hideTimeOverride": true, + "id": 20, + "links": [ + { + "title": "Details by Statement", + "url": "/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": 23 + }, + "hideTimeOverride": true, + "id": 18, + "links": [ + { + "title": "Details by Statement", + "url": "/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": 23 + }, + "hideTimeOverride": true, + "id": 21, + "links": [ + { + "title": "Details by Statement", + "url": "/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": 23 + }, + "hideTimeOverride": true, + "id": 36, + "links": [ + { + "title": "Details by Statement", + "url": "/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": "", + "schemaVersion": 38, + "style": "dark", + "tags": [], + "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": "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": true, + "text": [ + "All" + ], + "value": [ + "$__all" + ] + }, + "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": "SQL Overview From Table", + "uid": "becbeb9d-f054-4081-8766-13c43e7eb972", + "version": 1, + "weekStart": "" + } +} diff --git a/conf/provisioning/dashboards/nuodb_client/sql-overview.json b/conf/provisioning/dashboards/nuodb_client/sql-overview.json new file mode 100644 index 0000000..38cef64 --- /dev/null +++ b/conf/provisioning/dashboards/nuodb_client/sql-overview.json @@ -0,0 +1,5597 @@ +{ + "meta": { + "type": "db", + "canSave": true, + "canEdit": true, + "canAdmin": true, + "canStar": true, + "canDelete": true, + "slug": "sql-overview", + "url": "/d/cul4kM9Vz/sql-overview", + "expires": "0001-01-01T00:00:00Z", + "created": "2023-06-28T15:11:31Z", + "updated": "2023-07-31T16:37:45Z", + "updatedBy": "admin", + "createdBy": "admin", + "version": 71, + "hasAcl": false, + "isFolder": false, + "folderId": 20, + "folderUid": "b7c2a563-48a3-426d-be2b-0f9fffbd8a85", + "folderTitle": "nuodb_client", + "folderUrl": "/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client", + "provisioned": false, + "provisionedExternalId": "sql-statements.json", + "annotationsPermissions": { + "dashboard": { + "canAdd": true, + "canEdit": true, + "canDelete": true + }, + "organization": { + "canAdd": true, + "canEdit": true, + "canDelete": true + } + }, + "publicDashboardAccessToken": "", + "publicDashboardUid": "", + "publicDashboardEnabled": false + }, + "dashboard": { + "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": "red", + "name": "db annotations", + "target": { + "limit": 100, + "matchAny": true, + "tags": [ + "$database" + ], + "type": "tags" + } + } + ] + }, + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 1, + "id": 14, + "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": 9, + "x": 0, + "y": 2 + }, + "hideTimeOverride": true, + "id": 45, + "links": [ + { + "title": "", + "url": "/d/z35SM6j4z/client-messages?${__all_variables}&${__url_time_range}" + } + ], + "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": "palette-classic" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "links": [ + { + "targetBlank": false, + "title": "Details", + "url": "/d/z35SM6j4z/client-messages" + } + ], + "mappings": [], + "unit": "µs" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 9, + "y": 2 + }, + "hideTimeOverride": true, + "id": 52, + "links": [ + { + "targetBlank": false, + "title": "", + "url": "/d/z35SM6j4z/client-messages?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "pieType": "pie", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": 12, + "y": 2 + }, + "hideTimeOverride": true, + "id": 54, + "links": [ + { + "title": "Details", + "url": "/d/z35SM6j4z/client-messages?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "pieType": "pie", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": 9, + "x": 15, + "y": 2 + }, + "hideTimeOverride": true, + "id": 44, + "links": [ + { + "title": "Details", + "url": "/d/z35SM6j4z/client-messages?${__all_variables}&${__url_time_range}" + } + ], + "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": "Platform", + "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": [ + "lastNotNull" + ], + "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": [ + "lastNotNull" + ], + "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 + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 6, + "y": 8 + }, + "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": [ + "lastNotNull" + ], + "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" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "light-blue", + "value": null + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 9, + "y": 8 + }, + "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": [ + "lastNotNull" + ], + "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": "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": { + "fixedColor": "semi-dark-yellow", + "mode": "fixed" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "light-blue", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 12, + "y": 8 + }, + "hideTimeOverride": true, + "id": 46, + "links": [ + { + "title": "SQL Dashboard", + "url": "/d/J9fZNkr4z/sql?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": "SqlListenerSqlProcTime", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT SUM(R) FROM (SELECT mean(\"rate\") AS R FROM \"Commits\" 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": "Commits", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "light-blue", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 15, + "y": 8 + }, + "hideTimeOverride": true, + "id": 33, + "links": [ + { + "title": "SQL Dashboard", + "url": "/d/J9fZNkr4z/sql?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": "Inserts", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"Inserts\" 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": "Inserts", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "light-blue", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 18, + "y": 8 + }, + "hideTimeOverride": true, + "id": 35, + "links": [ + { + "title": "SQL Dashboard", + "url": "/d/J9fZNkr4z/sql?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": "Updates", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"Updates\" 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": "Updates", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "light-blue", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 21, + "y": 8 + }, + "hideTimeOverride": true, + "id": 34, + "links": [ + { + "title": "SQL Dashboard", + "url": "/d/J9fZNkr4z/sql?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": "Deletes", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"Deletes\" 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": "Deletes", + "type": "stat" + }, + { + "collapsed": false, + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 12 + }, + "id": 23, + "panels": [], + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "refId": "A" + } + ], + "title": "Rows", + "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" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "light-blue", + "value": null + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 6, + "x": 0, + "y": 13 + }, + "hideTimeOverride": true, + "id": 2, + "links": [ + { + "title": "Details by Statement", + "url": "/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "8.3.0", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "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" + } + ] + } + ], + "timeShift": "10s", + "title": "Statements Executed", + "type": "timeseries" + }, + { + "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": 13 + }, + "hideTimeOverride": true, + "id": 38, + "links": [ + { + "title": "Details by Statement", + "url": "/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": 13 + }, + "hideTimeOverride": true, + "id": 29, + "links": [ + { + "title": "Details by Statement", + "url": "/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "pieType": "pie", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": 13 + }, + "hideTimeOverride": true, + "id": 37, + "links": [ + { + "title": "Details by Statement ", + "url": "/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "displayMode": "basic", + "minVizHeight": 10, + "minVizWidth": 0, + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showUnfilled": false, + "valueMode": "color" + }, + "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": "bargauge" + }, + { + "collapsed": false, + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 17 + }, + "id": 17, + "panels": [], + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "refId": "A" + } + ], + "title": "Indexes", + "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": 18 + }, + "hideTimeOverride": true, + "id": 10, + "links": [ + { + "title": "Details by Statement", + "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": 18 + }, + "hideTimeOverride": true, + "id": 12, + "links": [ + { + "title": "Details by Statement", + "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": 18 + }, + "hideTimeOverride": true, + "id": 15, + "links": [ + { + "title": "Details by Statement", + "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": 18 + }, + "hideTimeOverride": true, + "id": 13, + "links": [ + { + "title": "Details by Statement", + "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": 18 + }, + "hideTimeOverride": true, + "id": 11, + "links": [ + { + "title": "Details by Statement", + "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": 18 + }, + "hideTimeOverride": true, + "id": 14, + "links": [ + { + "title": "Details by Statement", + "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": 22 + }, + "id": 4, + "panels": [], + "repeat": "SQLStatementStats", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "refId": "A" + } + ], + "title": "Records", + "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": 23 + }, + "hideTimeOverride": true, + "id": 20, + "links": [ + { + "title": "Details by Statement", + "url": "/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": 23 + }, + "hideTimeOverride": true, + "id": 18, + "links": [ + { + "title": "Details by Statement", + "url": "/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": 23 + }, + "hideTimeOverride": true, + "id": 21, + "links": [ + { + "title": "Details by Statement", + "url": "/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": 23 + }, + "hideTimeOverride": true, + "id": 36, + "links": [ + { + "title": "Details by Statement", + "url": "/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "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": "", + "schemaVersion": 38, + "style": "dark", + "tags": [ + "overview" + ], + "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": 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": "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": true, + "text": [ + "All" + ], + "value": [ + "$__all" + ] + }, + "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": "SQL Overview", + "uid": "cul4kM9Vz", + "version": 71, + "weekStart": "" + } +} diff --git a/conf/provisioning/dashboards/nuodb_client/sql-statement-details.json b/conf/provisioning/dashboards/nuodb_client/sql-statement-details.json index a975675..9657996 100644 --- a/conf/provisioning/dashboards/nuodb_client/sql-statement-details.json +++ b/conf/provisioning/dashboards/nuodb_client/sql-statement-details.json @@ -1 +1,380 @@ -{"meta":{"type":"db","canSave":true,"canEdit":true,"canAdmin":true,"canStar":true,"canDelete":true,"slug":"sql-statement-details","url":"/d/f13dbb76-dc2a-42b9-af72-88700f6857b8/sql-statement-details","expires":"0001-01-01T00:00:00Z","created":"2023-07-21T19:49:29Z","updated":"2023-07-28T21:34:59Z","updatedBy":"admin","createdBy":"admin","version":15,"hasAcl":false,"isFolder":false,"folderId":20,"folderUid":"b7c2a563-48a3-426d-be2b-0f9fffbd8a85","folderTitle":"nuodb_client","folderUrl":"/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client","provisioned":false,"provisionedExternalId":"sql-statement-details.json","annotationsPermissions":{"dashboard":{"canAdd":true,"canEdit":true,"canDelete":true},"organization":{"canAdd":true,"canEdit":true,"canDelete":true}},"publicDashboardAccessToken":"","publicDashboardUid":"","publicDashboardEnabled":false},"dashboard":{"annotations":{"list":[{"$$hashKey":"object:65","builtIn":1,"datasource":{"type":"datasource","uid":"grafana"},"enable":true,"hide":true,"iconColor":"rgba(0, 211, 255, 1)","name":"Annotations \u0026 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":12,"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'","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":true,"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":15,"weekStart":""}} \ No newline at end of file +{ + "meta": { + "type": "db", + "canSave": true, + "canEdit": true, + "canAdmin": true, + "canStar": true, + "canDelete": true, + "slug": "sql-statement-details", + "url": "/d/f13dbb76-dc2a-42b9-af72-88700f6857b8/sql-statement-details", + "expires": "0001-01-01T00:00:00Z", + "created": "2023-07-21T19:49:29Z", + "updated": "2023-07-28T21:34:59Z", + "updatedBy": "admin", + "createdBy": "admin", + "version": 15, + "hasAcl": false, + "isFolder": false, + "folderId": 20, + "folderUid": "b7c2a563-48a3-426d-be2b-0f9fffbd8a85", + "folderTitle": "nuodb_client", + "folderUrl": "/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client", + "provisioned": false, + "provisionedExternalId": "sql-statement-details.json", + "annotationsPermissions": { + "dashboard": { + "canAdd": true, + "canEdit": true, + "canDelete": true + }, + "organization": { + "canAdd": true, + "canEdit": true, + "canDelete": true + } + }, + "publicDashboardAccessToken": "", + "publicDashboardUid": "", + "publicDashboardEnabled": false + }, + "dashboard": { + "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": 12, + "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'", + "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": true, + "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": 15, + "weekStart": "" + } +} diff --git a/conf/provisioning/dashboards/nuodb_client/sql-statement-executions.json b/conf/provisioning/dashboards/nuodb_client/sql-statement-executions.json index 7ef1d8c..2daeec5 100644 --- a/conf/provisioning/dashboards/nuodb_client/sql-statement-executions.json +++ b/conf/provisioning/dashboards/nuodb_client/sql-statement-executions.json @@ -1 +1,598 @@ -{"meta":{"type":"db","canSave":true,"canEdit":true,"canAdmin":true,"canStar":true,"canDelete":true,"slug":"sql-statement-executions","url":"/d/Qi5TDej4z/sql-statement-executions","expires":"0001-01-01T00:00:00Z","created":"2023-07-21T15:31:11Z","updated":"2023-07-29T16:28:26Z","updatedBy":"admin","createdBy":"admin","version":29,"hasAcl":false,"isFolder":false,"folderId":20,"folderUid":"b7c2a563-48a3-426d-be2b-0f9fffbd8a85","folderTitle":"nuodb_client","folderUrl":"/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client","provisioned":false,"provisionedExternalId":"sql-statement-executions.json","annotationsPermissions":{"dashboard":{"canAdd":true,"canEdit":true,"canDelete":true},"organization":{"canAdd":true,"canEdit":true,"canDelete":true}},"publicDashboardAccessToken":"","publicDashboardUid":"","publicDashboardEnabled":false},"dashboard":{"annotations":{"list":[{"$$hashKey":"object:65","builtIn":1,"datasource":{"type":"datasource","uid":"grafana"},"enable":true,"hide":true,"iconColor":"rgba(0, 211, 255, 1)","name":"Annotations \u0026 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":"marcusolsson-json-datasource","uid":"fb12902f-919a-4aa9-89de-398bdfce52df"},"fieldConfig":{"defaults":{"color":{"fixedColor":"super-light-blue","mode":"fixed"},"custom":{"align":"auto","cellOptions":{"type":"color-text"},"filterable":false,"inspect":false},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"green","value":null}]},"unit":"µs"},"overrides":[{"matcher":{"id":"byName","options":"ID"},"properties":[{"id":"custom.hidden","value":true},{"id":"unit","value":"string"}]},{"matcher":{"id":"byName","options":"NumExecutes"},"properties":[{"id":"unit","value":"none"},{"id":"custom.width","value":118}]},{"matcher":{"id":"byName","options":"ExecTime"},"properties":[{"id":"custom.width","value":101}]},{"matcher":{"id":"byName","options":"CompileTime"},"properties":[{"id":"custom.width","value":107}]},{"matcher":{"id":"byName","options":"MinExecTime"},"properties":[{"id":"custom.width","value":106}]},{"matcher":{"id":"byName","options":"AvgExecTime"},"properties":[{"id":"custom.width","value":108}]},{"matcher":{"id":"byName","options":"MaxExecTime"},"properties":[{"id":"custom.width","value":115}]},{"matcher":{"id":"byName","options":"LastExecuted"},"properties":[{"id":"custom.width","value":175}]},{"matcher":{"id":"byName","options":"SqlString"},"properties":[{"id":"links","value":[{"title":"Detals","url":"/d/f13dbb76-dc2a-42b9-af72-88700f6857b8/sql-statement-details?var-id=${__data.fields.ID}\u0026${host:queryparam}"}]}]}]},"gridPos":{"h":12,"w":24,"x":0,"y":0},"id":10,"interval":"$interval","maxPerRow":2,"options":{"cellHeight":"sm","footer":{"countRows":false,"enablePagination":false,"fields":["EXECTIME","COMPILETIME"],"reducer":["sum"],"show":false},"frameIndex":1,"showHeader":true,"sortBy":[]},"pluginVersion":"10.0.3","repeat":"host","repeatDirection":"v","targets":[{"body":"select LASTEXECUTED\n ,NUMEXECUTES\n ,EXECTIME\n ,COMPILETIME\n ,MINEXECTIME\n ,EXECTIME/NUMEXECUTES AS AVGEXECTIME\n ,MAXEXECTIME\n ,ID\n ,SQLSTRING\n from system.LOCALSTATEMENTCACHE\nwhere LASTEXECUTED \u003e DATE_SUB(NOW(), INTERVAL $__interval_ms/1000 second)","cacheDurationSeconds":0,"datasource":{"type":"marcusolsson-json-datasource","uid":"fb12902f-919a-4aa9-89de-398bdfce52df"},"fields":[{"jsonPath":"$.rows[*][0]","name":"LastExecuted","type":"time"},{"jsonPath":"$.rows[*][1]","language":"jsonpath","name":"NumExecutes"},{"jsonPath":"$.rows[*][2]","language":"jsonpath","name":"ExecTime"},{"jsonPath":"$.rows[*][3]","language":"jsonpath","name":"CompileTime"},{"jsonPath":"$.rows[*][4]","language":"jsonpath","name":"MinExecTime"},{"jsonPath":"$.rows[*][5]","language":"jsonpath","name":"AvgExecTime"},{"jsonPath":"$.rows[*][6]","language":"jsonpath","name":"MaxExecTime"},{"jsonPath":"$.rows[*][7]","language":"jsonpath","name":"ID","type":"string"},{"jsonPath":"$.rows[*][8]","language":"jsonpath","name":"SqlString"}],"method":"POST","params":[["dbname","$database"],["hostname","$host"]],"queryParams":"","refId":"A","urlPath":"/query"}],"title":"Statement Executions ($host)","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","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":29,"weekStart":""}} \ No newline at end of file +{ + "meta": { + "type": "db", + "canSave": true, + "canEdit": true, + "canAdmin": true, + "canStar": true, + "canDelete": true, + "slug": "sql-statement-executions", + "url": "/d/Qi5TDej4z/sql-statement-executions", + "expires": "0001-01-01T00:00:00Z", + "created": "2023-07-21T15:31:11Z", + "updated": "2023-07-29T16:28:26Z", + "updatedBy": "admin", + "createdBy": "admin", + "version": 29, + "hasAcl": false, + "isFolder": false, + "folderId": 20, + "folderUid": "b7c2a563-48a3-426d-be2b-0f9fffbd8a85", + "folderTitle": "nuodb_client", + "folderUrl": "/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client", + "provisioned": false, + "provisionedExternalId": "sql-statement-executions.json", + "annotationsPermissions": { + "dashboard": { + "canAdd": true, + "canEdit": true, + "canDelete": true + }, + "organization": { + "canAdd": true, + "canEdit": true, + "canDelete": true + } + }, + "publicDashboardAccessToken": "", + "publicDashboardUid": "", + "publicDashboardEnabled": false + }, + "dashboard": { + "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": "marcusolsson-json-datasource", + "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "super-light-blue", + "mode": "fixed" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "color-text" + }, + "filterable": false, + "inspect": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "µs" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "ID" + }, + "properties": [ + { + "id": "custom.hidden", + "value": true + }, + { + "id": "unit", + "value": "string" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "NumExecutes" + }, + "properties": [ + { + "id": "unit", + "value": "none" + }, + { + "id": "custom.width", + "value": 118 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "ExecTime" + }, + "properties": [ + { + "id": "custom.width", + "value": 101 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "CompileTime" + }, + "properties": [ + { + "id": "custom.width", + "value": 107 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "MinExecTime" + }, + "properties": [ + { + "id": "custom.width", + "value": 106 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "AvgExecTime" + }, + "properties": [ + { + "id": "custom.width", + "value": 108 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "MaxExecTime" + }, + "properties": [ + { + "id": "custom.width", + "value": 115 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "LastExecuted" + }, + "properties": [ + { + "id": "custom.width", + "value": 175 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "SqlString" + }, + "properties": [ + { + "id": "links", + "value": [ + { + "title": "Detals", + "url": "/d/f13dbb76-dc2a-42b9-af72-88700f6857b8/sql-statement-details?var-id=${__data.fields.ID}&${host:queryparam}" + } + ] + } + ] + } + ] + }, + "gridPos": { + "h": 12, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 10, + "interval": "$interval", + "maxPerRow": 2, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "enablePagination": false, + "fields": [ + "EXECTIME", + "COMPILETIME" + ], + "reducer": [ + "sum" + ], + "show": false + }, + "frameIndex": 1, + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "10.0.3", + "repeat": "host", + "repeatDirection": "v", + "targets": [ + { + "body": "select LASTEXECUTED\n ,NUMEXECUTES\n ,EXECTIME\n ,COMPILETIME\n ,MINEXECTIME\n ,EXECTIME/NUMEXECUTES AS AVGEXECTIME\n ,MAXEXECTIME\n ,ID\n ,SQLSTRING\n from system.LOCALSTATEMENTCACHE\nwhere LASTEXECUTED > DATE_SUB(NOW(), INTERVAL $__interval_ms/1000 second)", + "cacheDurationSeconds": 0, + "datasource": { + "type": "marcusolsson-json-datasource", + "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" + }, + "fields": [ + { + "jsonPath": "$.rows[*][0]", + "name": "LastExecuted", + "type": "time" + }, + { + "jsonPath": "$.rows[*][1]", + "language": "jsonpath", + "name": "NumExecutes" + }, + { + "jsonPath": "$.rows[*][2]", + "language": "jsonpath", + "name": "ExecTime" + }, + { + "jsonPath": "$.rows[*][3]", + "language": "jsonpath", + "name": "CompileTime" + }, + { + "jsonPath": "$.rows[*][4]", + "language": "jsonpath", + "name": "MinExecTime" + }, + { + "jsonPath": "$.rows[*][5]", + "language": "jsonpath", + "name": "AvgExecTime" + }, + { + "jsonPath": "$.rows[*][6]", + "language": "jsonpath", + "name": "MaxExecTime" + }, + { + "jsonPath": "$.rows[*][7]", + "language": "jsonpath", + "name": "ID", + "type": "string" + }, + { + "jsonPath": "$.rows[*][8]", + "language": "jsonpath", + "name": "SqlString" + } + ], + "method": "POST", + "params": [ + [ + "dbname", + "$database" + ], + [ + "hostname", + "$host" + ] + ], + "queryParams": "", + "refId": "A", + "urlPath": "/query" + } + ], + "title": "Statement Executions ($host)", + "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", + "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": 29, + "weekStart": "" + } +} diff --git a/conf/provisioning/dashboards/nuodb_client/sql-statement-indexes.json b/conf/provisioning/dashboards/nuodb_client/sql-statement-indexes.json index 55b74b1..60ea11d 100644 --- a/conf/provisioning/dashboards/nuodb_client/sql-statement-indexes.json +++ b/conf/provisioning/dashboards/nuodb_client/sql-statement-indexes.json @@ -1 +1,679 @@ -{"meta":{"type":"db","canSave":true,"canEdit":true,"canAdmin":true,"canStar":true,"canDelete":true,"slug":"sql-statement-indexes","url":"/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes","expires":"0001-01-01T00:00:00Z","created":"2023-07-21T21:53:27Z","updated":"2023-07-26T20:55:41Z","updatedBy":"Anonymous","createdBy":"admin","version":12,"hasAcl":false,"isFolder":false,"folderId":20,"folderUid":"b7c2a563-48a3-426d-be2b-0f9fffbd8a85","folderTitle":"nuodb_client","folderUrl":"/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client","provisioned":false,"provisionedExternalId":"sql-statement-indexes.json","annotationsPermissions":{"dashboard":{"canAdd":true,"canEdit":true,"canDelete":true},"organization":{"canAdd":true,"canEdit":true,"canDelete":true}},"publicDashboardAccessToken":"","publicDashboardUid":"","publicDashboardEnabled":false},"dashboard":{"annotations":{"list":[{"$$hashKey":"object:65","builtIn":1,"datasource":{"type":"datasource","uid":"grafana"},"enable":true,"hide":true,"iconColor":"rgba(0, 211, 255, 1)","name":"Annotations \u0026 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":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":["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":"#C0D8FF","mode":"fixed"},"custom":{"align":"auto","cellOptions":{"type":"color-text"},"inspect":false},"links":[],"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"green","value":null}]},"unit":"none"},"overrides":[{"matcher":{"id":"byName","options":"ID"},"properties":[{"id":"custom.hidden","value":true},{"id":"unit","value":"string"}]},{"matcher":{"id":"byName","options":"INDEXHITS"},"properties":[{"id":"custom.width","value":97}]},{"matcher":{"id":"byName","options":"INDEXFETCHES"},"properties":[{"id":"custom.width","value":128}]},{"matcher":{"id":"byName","options":"EXHAUSTIVEFETCHES"},"properties":[{"id":"custom.width","value":169},{"id":"displayName","value":"TABLEFETCHES"}]},{"matcher":{"id":"byName","options":"INDEXBATCHFETCHES"},"properties":[{"id":"custom.width","value":203},{"id":"displayName","value":"#INDEXSCANS"}]},{"matcher":{"id":"byName","options":"#INDEXSCANS"},"properties":[{"id":"custom.width","value":120}]},{"matcher":{"id":"byName","options":"TABLEFETCHES"},"properties":[{"id":"custom.width","value":128}]},{"matcher":{"id":"byName","options":"NUMEXECUTES"},"properties":[{"id":"custom.width","value":129}]},{"matcher":{"id":"byName","options":"LASTEXECUTED"},"properties":[{"id":"custom.width","value":176}]},{"matcher":{"id":"byName","options":"EXHAUSTIVEBATCHFETCHES"},"properties":[{"id":"custom.width","value":120},{"id":"displayName","value":"#TABLESCANS"}]},{"matcher":{"id":"byName","options":"SQLSTRING"},"properties":[{"id":"custom.inspect","value":true},{"id":"links","value":[{"title":"Statement Details","url":"/d/f13dbb76-dc2a-42b9-af72-88700f6857b8/sql-statement-details?var-id=${__data.fields.ID}\u0026${host:queryparam}"}]}]},{"matcher":{"id":"byName","options":"EXECTIME"},"properties":[{"id":"custom.width","value":97},{"id":"custom.hidden"},{"id":"unit","value":"µs"}]},{"matcher":{"id":"byName","options":"REJECTEDINDEXHITS"},"properties":[{"id":"custom.width","value":88},{"id":"displayName","value":"REJECTED"}]}]},"gridPos":{"h":12,"w":24,"x":0,"y":0},"id":10,"interval":"$interval","maxPerRow":2,"options":{"cellHeight":"sm","footer":{"countRows":false,"fields":"","reducer":["sum"],"show":true},"frameIndex":1,"showHeader":true,"sortBy":[{"desc":true,"displayName":"NUMEXECUTES"}]},"pluginVersion":"10.0.2","repeat":"host","repeatDirection":"v","targets":[{"body":"select LASTEXECUTED,\n NUMEXECUTES,\n EXECTIME,\n INDEXHITS,\n REJECTEDINDEXHITS,\n INDEXFETCHES,\n EXHAUSTIVEFETCHES,\n INDEXBATCHFETCHES,\n EXHAUSTIVEBATCHFETCHES,\n SQLSTRING,\n ID\n from system.LOCALSTATEMENTCACHE\n where LASTEXECUTED \u003e DATE_SUB(now(), INTERVAL $__interval_ms/1000 second)","cacheDurationSeconds":0,"datasource":{"type":"marcusolsson-json-datasource","uid":"fb12902f-919a-4aa9-89de-398bdfce52df"},"fields":[{"jsonPath":"$.rows[*][0]","name":"LASTEXECUTED","type":"time"},{"jsonPath":"$.rows[*][1]","language":"jsonpath","name":"NUMEXECUTES"},{"jsonPath":"$.rows[*][2]","language":"jsonpath","name":"EXECTIME"},{"jsonPath":"$.rows[*][3]","language":"jsonpath","name":"INDEXHITS"},{"jsonPath":"$.rows[*][4]","language":"jsonpath","name":"REJECTEDINDEXHITS"},{"jsonPath":"$.rows[*][5]","language":"jsonpath","name":"INDEXFETCHES"},{"jsonPath":"$.rows[*][6]","language":"jsonpath","name":"EXHAUSTIVEFETCHES"},{"jsonPath":"$.rows[*][7]","language":"jsonpath","name":"INDEXBATCHFETCHES"},{"jsonPath":"$.rows[*][8]","language":"jsonpath","name":"EXHAUSTIVEBATCHFETCHES"},{"jsonPath":"$.rows[*][9]","language":"jsonpath","name":"SQLSTRING","type":"string"},{"jsonPath":"$.rows[*][10]","language":"jsonpath","name":"ID","type":"string"}],"method":"POST","params":[["dbname","$database"],["hostname","$host"]],"queryParams":"","refId":"A","urlPath":"/query"}],"title":"Number Rows Returned/Updated ($host)","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}]},"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 Indexes","uid":"c5af0e56-adeb-4e24-aab3-427e225c0559","version":12,"weekStart":""}} \ No newline at end of file +{ + "meta": { + "type": "db", + "canSave": true, + "canEdit": true, + "canAdmin": true, + "canStar": true, + "canDelete": true, + "slug": "sql-statement-indexes", + "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes", + "expires": "0001-01-01T00:00:00Z", + "created": "2023-07-21T21:53:27Z", + "updated": "2023-07-26T20:55:41Z", + "updatedBy": "Anonymous", + "createdBy": "admin", + "version": 12, + "hasAcl": false, + "isFolder": false, + "folderId": 20, + "folderUid": "b7c2a563-48a3-426d-be2b-0f9fffbd8a85", + "folderTitle": "nuodb_client", + "folderUrl": "/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client", + "provisioned": false, + "provisionedExternalId": "sql-statement-indexes.json", + "annotationsPermissions": { + "dashboard": { + "canAdd": true, + "canEdit": true, + "canDelete": true + }, + "organization": { + "canAdd": true, + "canEdit": true, + "canDelete": true + } + }, + "publicDashboardAccessToken": "", + "publicDashboardUid": "", + "publicDashboardEnabled": false + }, + "dashboard": { + "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": 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": [ + "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": "#C0D8FF", + "mode": "fixed" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "color-text" + }, + "inspect": false + }, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "ID" + }, + "properties": [ + { + "id": "custom.hidden", + "value": true + }, + { + "id": "unit", + "value": "string" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "INDEXHITS" + }, + "properties": [ + { + "id": "custom.width", + "value": 97 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "INDEXFETCHES" + }, + "properties": [ + { + "id": "custom.width", + "value": 128 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "EXHAUSTIVEFETCHES" + }, + "properties": [ + { + "id": "custom.width", + "value": 169 + }, + { + "id": "displayName", + "value": "TABLEFETCHES" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "INDEXBATCHFETCHES" + }, + "properties": [ + { + "id": "custom.width", + "value": 203 + }, + { + "id": "displayName", + "value": "#INDEXSCANS" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "#INDEXSCANS" + }, + "properties": [ + { + "id": "custom.width", + "value": 120 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "TABLEFETCHES" + }, + "properties": [ + { + "id": "custom.width", + "value": 128 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "NUMEXECUTES" + }, + "properties": [ + { + "id": "custom.width", + "value": 129 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "LASTEXECUTED" + }, + "properties": [ + { + "id": "custom.width", + "value": 176 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "EXHAUSTIVEBATCHFETCHES" + }, + "properties": [ + { + "id": "custom.width", + "value": 120 + }, + { + "id": "displayName", + "value": "#TABLESCANS" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "SQLSTRING" + }, + "properties": [ + { + "id": "custom.inspect", + "value": true + }, + { + "id": "links", + "value": [ + { + "title": "Statement Details", + "url": "/d/f13dbb76-dc2a-42b9-af72-88700f6857b8/sql-statement-details?var-id=${__data.fields.ID}&${host:queryparam}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "EXECTIME" + }, + "properties": [ + { + "id": "custom.width", + "value": 97 + }, + { + "id": "custom.hidden" + }, + { + "id": "unit", + "value": "µs" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "REJECTEDINDEXHITS" + }, + "properties": [ + { + "id": "custom.width", + "value": 88 + }, + { + "id": "displayName", + "value": "REJECTED" + } + ] + } + ] + }, + "gridPos": { + "h": 12, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 10, + "interval": "$interval", + "maxPerRow": 2, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": true + }, + "frameIndex": 1, + "showHeader": true, + "sortBy": [ + { + "desc": true, + "displayName": "NUMEXECUTES" + } + ] + }, + "pluginVersion": "10.0.2", + "repeat": "host", + "repeatDirection": "v", + "targets": [ + { + "body": "select LASTEXECUTED,\n NUMEXECUTES,\n EXECTIME,\n INDEXHITS,\n REJECTEDINDEXHITS,\n INDEXFETCHES,\n EXHAUSTIVEFETCHES,\n INDEXBATCHFETCHES,\n EXHAUSTIVEBATCHFETCHES,\n SQLSTRING,\n ID\n from system.LOCALSTATEMENTCACHE\n where LASTEXECUTED > DATE_SUB(now(), INTERVAL $__interval_ms/1000 second)", + "cacheDurationSeconds": 0, + "datasource": { + "type": "marcusolsson-json-datasource", + "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" + }, + "fields": [ + { + "jsonPath": "$.rows[*][0]", + "name": "LASTEXECUTED", + "type": "time" + }, + { + "jsonPath": "$.rows[*][1]", + "language": "jsonpath", + "name": "NUMEXECUTES" + }, + { + "jsonPath": "$.rows[*][2]", + "language": "jsonpath", + "name": "EXECTIME" + }, + { + "jsonPath": "$.rows[*][3]", + "language": "jsonpath", + "name": "INDEXHITS" + }, + { + "jsonPath": "$.rows[*][4]", + "language": "jsonpath", + "name": "REJECTEDINDEXHITS" + }, + { + "jsonPath": "$.rows[*][5]", + "language": "jsonpath", + "name": "INDEXFETCHES" + }, + { + "jsonPath": "$.rows[*][6]", + "language": "jsonpath", + "name": "EXHAUSTIVEFETCHES" + }, + { + "jsonPath": "$.rows[*][7]", + "language": "jsonpath", + "name": "INDEXBATCHFETCHES" + }, + { + "jsonPath": "$.rows[*][8]", + "language": "jsonpath", + "name": "EXHAUSTIVEBATCHFETCHES" + }, + { + "jsonPath": "$.rows[*][9]", + "language": "jsonpath", + "name": "SQLSTRING", + "type": "string" + }, + { + "jsonPath": "$.rows[*][10]", + "language": "jsonpath", + "name": "ID", + "type": "string" + } + ], + "method": "POST", + "params": [ + [ + "dbname", + "$database" + ], + [ + "hostname", + "$host" + ] + ], + "queryParams": "", + "refId": "A", + "urlPath": "/query" + } + ], + "title": "Number Rows Returned/Updated ($host)", + "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 + } + ] + }, + "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 Indexes", + "uid": "c5af0e56-adeb-4e24-aab3-427e225c0559", + "version": 12, + "weekStart": "" + } +} diff --git a/conf/provisioning/dashboards/nuodb_client/sql-statement-operations.json b/conf/provisioning/dashboards/nuodb_client/sql-statement-operations.json index ce0dd04..a970360 100644 --- a/conf/provisioning/dashboards/nuodb_client/sql-statement-operations.json +++ b/conf/provisioning/dashboards/nuodb_client/sql-statement-operations.json @@ -1 +1,606 @@ -{"meta":{"type":"db","canSave":true,"canEdit":true,"canAdmin":true,"canStar":true,"canDelete":true,"slug":"sql-statement-operations","url":"/d/Cp_9O6C4k/sql-statement-operations","expires":"0001-01-01T00:00:00Z","created":"2023-07-21T15:56:00Z","updated":"2023-07-29T16:47:41Z","updatedBy":"admin","createdBy":"admin","version":29,"hasAcl":false,"isFolder":false,"folderId":20,"folderUid":"b7c2a563-48a3-426d-be2b-0f9fffbd8a85","folderTitle":"nuodb_client","folderUrl":"/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client","provisioned":false,"provisionedExternalId":"sql-statement-operations.json","annotationsPermissions":{"dashboard":{"canAdd":true,"canEdit":true,"canDelete":true},"organization":{"canAdd":true,"canEdit":true,"canDelete":true}},"publicDashboardAccessToken":"","publicDashboardUid":"","publicDashboardEnabled":false},"dashboard":{"annotations":{"list":[{"$$hashKey":"object:65","builtIn":1,"datasource":{"type":"datasource","uid":"grafana"},"enable":true,"hide":true,"iconColor":"rgba(0, 211, 255, 1)","name":"Annotations \u0026 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":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":true,"keepTime":true,"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":"super-light-blue","mode":"fixed"},"custom":{"align":"auto","cellOptions":{"type":"color-text"},"inspect":false},"links":[],"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"green","value":null}]},"unit":"none"},"overrides":[{"matcher":{"id":"byName","options":"ID"},"properties":[{"id":"custom.hidden","value":true},{"id":"unit","value":"string"}]},{"matcher":{"id":"byName","options":"INSERTS"},"properties":[{"id":"custom.width","value":107}]},{"matcher":{"id":"byName","options":"RECORDSRETURNED"},"properties":[{"id":"custom.width","value":163}]},{"matcher":{"id":"byName","options":"UPDATES"},"properties":[{"id":"custom.width","value":99}]},{"matcher":{"id":"byName","options":"DELETIONS"},"properties":[{"id":"custom.width","value":100}]},{"matcher":{"id":"byName","options":"REPLACES"},"properties":[{"id":"custom.width","value":95}]},{"matcher":{"id":"byName","options":"SQLSTRING"},"properties":[{"id":"custom.cellOptions","value":{"type":"color-text"}},{"id":"links","value":[{"targetBlank":false,"title":"Details","url":"/d/f13dbb76-dc2a-42b9-af72-88700f6857b8/sql-statement-details?var-id=${__data.fields.ID}\u0026${host:queryparam}"},{"title":"Executes","url":"/d/c9081118-5230-478d-b6e8-d76614395704/sql-logs?${__all_variables}\u0026var-statement=${__data.fields.ID}\u0026${__url_time_range}"}]}]},{"matcher":{"id":"byName","options":"NUMEXECUTES"},"properties":[{"id":"custom.width","value":127}]},{"matcher":{"id":"byName","options":"LASTEXECUTED"},"properties":[{"id":"custom.width","value":172}]}]},"gridPos":{"h":12,"w":24,"x":0,"y":0},"id":10,"interval":"$interval","maxPerRow":2,"options":{"cellHeight":"sm","footer":{"countRows":false,"fields":"","reducer":["sum"],"show":true},"frameIndex":1,"showHeader":true,"sortBy":[{"desc":true,"displayName":"NUMEXECUTES"}]},"pluginVersion":"10.0.3","repeat":"host","repeatDirection":"v","targets":[{"body":"select LASTEXECUTED\n ,NUMEXECUTES\n ,RECORDSRETURNED\n ,INSERTS\n ,UPDATES\n ,DELETIONS\n ,REPLACES\n ,SQLSTRING\n ,ID\n from system.LOCALSTATEMENTCACHE\n where LASTEXECUTED \u003e DATE_SUB(now(), INTERVAL $__interval_ms/1000 second)\n","cacheDurationSeconds":0,"datasource":{"type":"marcusolsson-json-datasource","uid":"fb12902f-919a-4aa9-89de-398bdfce52df"},"fields":[{"jsonPath":"$.rows[*][0]","name":"LASTEXECUTED","type":"time"},{"jsonPath":"$.rows[*][1]","language":"jsonpath","name":"NUMEXECUTES"},{"jsonPath":"$.rows[*][2]","language":"jsonpath","name":"RECORDSRETURNED"},{"jsonPath":"$.rows[*][3]","language":"jsonpath","name":"INSERTS"},{"jsonPath":"$.rows[*][4]","language":"jsonpath","name":"UPDATES"},{"jsonPath":"$.rows[*][5]","language":"jsonpath","name":"DELETIONS"},{"jsonPath":"$.rows[*][6]","language":"jsonpath","name":"REPLACES"},{"jsonPath":"$.rows[*][7]","language":"jsonpath","name":"SQLSTRING"},{"jsonPath":"$.rows[*][8]","language":"jsonpath","name":"ID","type":"string"}],"method":"POST","params":[["dbname","$database"],["hostname","$host"]],"queryParams":"","refId":"A","urlPath":"/query"}],"title":"Number Rows Returned/Updated ($host)","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":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":true,"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 Operations","uid":"Cp_9O6C4k","version":29,"weekStart":""}} \ No newline at end of file +{ + "meta": { + "type": "db", + "canSave": true, + "canEdit": true, + "canAdmin": true, + "canStar": true, + "canDelete": true, + "slug": "sql-statement-operations", + "url": "/d/Cp_9O6C4k/sql-statement-operations", + "expires": "0001-01-01T00:00:00Z", + "created": "2023-07-21T15:56:00Z", + "updated": "2023-07-29T16:47:41Z", + "updatedBy": "admin", + "createdBy": "admin", + "version": 29, + "hasAcl": false, + "isFolder": false, + "folderId": 20, + "folderUid": "b7c2a563-48a3-426d-be2b-0f9fffbd8a85", + "folderTitle": "nuodb_client", + "folderUrl": "/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client", + "provisioned": false, + "provisionedExternalId": "sql-statement-operations.json", + "annotationsPermissions": { + "dashboard": { + "canAdd": true, + "canEdit": true, + "canDelete": true + }, + "organization": { + "canAdd": true, + "canEdit": true, + "canDelete": true + } + }, + "publicDashboardAccessToken": "", + "publicDashboardUid": "", + "publicDashboardEnabled": false + }, + "dashboard": { + "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": 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": true, + "keepTime": true, + "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": "super-light-blue", + "mode": "fixed" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "color-text" + }, + "inspect": false + }, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "ID" + }, + "properties": [ + { + "id": "custom.hidden", + "value": true + }, + { + "id": "unit", + "value": "string" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "INSERTS" + }, + "properties": [ + { + "id": "custom.width", + "value": 107 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "RECORDSRETURNED" + }, + "properties": [ + { + "id": "custom.width", + "value": 163 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "UPDATES" + }, + "properties": [ + { + "id": "custom.width", + "value": 99 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "DELETIONS" + }, + "properties": [ + { + "id": "custom.width", + "value": 100 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "REPLACES" + }, + "properties": [ + { + "id": "custom.width", + "value": 95 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "SQLSTRING" + }, + "properties": [ + { + "id": "custom.cellOptions", + "value": { + "type": "color-text" + } + }, + { + "id": "links", + "value": [ + { + "targetBlank": false, + "title": "Details", + "url": "/d/f13dbb76-dc2a-42b9-af72-88700f6857b8/sql-statement-details?var-id=${__data.fields.ID}&${host:queryparam}" + }, + { + "title": "Executes", + "url": "/d/c9081118-5230-478d-b6e8-d76614395704/sql-logs?${__all_variables}&var-statement=${__data.fields.ID}&${__url_time_range}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "NUMEXECUTES" + }, + "properties": [ + { + "id": "custom.width", + "value": 127 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "LASTEXECUTED" + }, + "properties": [ + { + "id": "custom.width", + "value": 172 + } + ] + } + ] + }, + "gridPos": { + "h": 12, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 10, + "interval": "$interval", + "maxPerRow": 2, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": true + }, + "frameIndex": 1, + "showHeader": true, + "sortBy": [ + { + "desc": true, + "displayName": "NUMEXECUTES" + } + ] + }, + "pluginVersion": "10.0.3", + "repeat": "host", + "repeatDirection": "v", + "targets": [ + { + "body": "select LASTEXECUTED\n ,NUMEXECUTES\n ,RECORDSRETURNED\n ,INSERTS\n ,UPDATES\n ,DELETIONS\n ,REPLACES\n ,SQLSTRING\n ,ID\n from system.LOCALSTATEMENTCACHE\n where LASTEXECUTED > DATE_SUB(now(), INTERVAL $__interval_ms/1000 second)\n", + "cacheDurationSeconds": 0, + "datasource": { + "type": "marcusolsson-json-datasource", + "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" + }, + "fields": [ + { + "jsonPath": "$.rows[*][0]", + "name": "LASTEXECUTED", + "type": "time" + }, + { + "jsonPath": "$.rows[*][1]", + "language": "jsonpath", + "name": "NUMEXECUTES" + }, + { + "jsonPath": "$.rows[*][2]", + "language": "jsonpath", + "name": "RECORDSRETURNED" + }, + { + "jsonPath": "$.rows[*][3]", + "language": "jsonpath", + "name": "INSERTS" + }, + { + "jsonPath": "$.rows[*][4]", + "language": "jsonpath", + "name": "UPDATES" + }, + { + "jsonPath": "$.rows[*][5]", + "language": "jsonpath", + "name": "DELETIONS" + }, + { + "jsonPath": "$.rows[*][6]", + "language": "jsonpath", + "name": "REPLACES" + }, + { + "jsonPath": "$.rows[*][7]", + "language": "jsonpath", + "name": "SQLSTRING" + }, + { + "jsonPath": "$.rows[*][8]", + "language": "jsonpath", + "name": "ID", + "type": "string" + } + ], + "method": "POST", + "params": [ + [ + "dbname", + "$database" + ], + [ + "hostname", + "$host" + ] + ], + "queryParams": "", + "refId": "A", + "urlPath": "/query" + } + ], + "title": "Number Rows Returned/Updated ($host)", + "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": 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": true, + "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 Operations", + "uid": "Cp_9O6C4k", + "version": 29, + "weekStart": "" + } +} diff --git a/conf/provisioning/dashboards/nuodb_client/sql-statement-records.json b/conf/provisioning/dashboards/nuodb_client/sql-statement-records.json index 0001c41..f99ccdb 100644 --- a/conf/provisioning/dashboards/nuodb_client/sql-statement-records.json +++ b/conf/provisioning/dashboards/nuodb_client/sql-statement-records.json @@ -1 +1,628 @@ -{"meta":{"type":"db","canSave":true,"canEdit":true,"canAdmin":true,"canStar":true,"canDelete":true,"slug":"sql-statement-records","url":"/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records","expires":"0001-01-01T00:00:00Z","created":"2023-07-21T22:33:55Z","updated":"2023-07-26T20:55:41Z","updatedBy":"Anonymous","createdBy":"admin","version":10,"hasAcl":false,"isFolder":false,"folderId":20,"folderUid":"b7c2a563-48a3-426d-be2b-0f9fffbd8a85","folderTitle":"nuodb_client","folderUrl":"/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client","provisioned":false,"provisionedExternalId":"sql-statement-records.json","annotationsPermissions":{"dashboard":{"canAdd":true,"canEdit":true,"canDelete":true},"organization":{"canAdd":true,"canEdit":true,"canDelete":true}},"publicDashboardAccessToken":"","publicDashboardUid":"","publicDashboardEnabled":false},"dashboard":{"annotations":{"list":[{"$$hashKey":"object:65","builtIn":1,"datasource":{"type":"datasource","uid":"grafana"},"enable":true,"hide":true,"iconColor":"rgba(0, 211, 255, 1)","name":"Annotations \u0026 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":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":"marcusolsson-json-datasource","uid":"fb12902f-919a-4aa9-89de-398bdfce52df"},"fieldConfig":{"defaults":{"color":{"fixedColor":"#C0D8FF","mode":"fixed"},"custom":{"align":"auto","cellOptions":{"type":"color-text"},"inspect":false},"links":[],"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"green","value":null}]},"unit":"none"},"overrides":[{"matcher":{"id":"byName","options":"ID"},"properties":[{"id":"custom.hidden","value":true},{"id":"unit","value":"string"}]},{"matcher":{"id":"byName","options":"LOCKED"},"properties":[{"id":"custom.width","value":115}]},{"matcher":{"id":"byName","options":"RECORDSFETCHED"},"properties":[{"id":"custom.width","value":137},{"id":"displayName","value":"FETCHED"}]},{"matcher":{"id":"byName","options":"RECORDSSORTED"},"properties":[{"id":"custom.width","value":169},{"id":"displayName","value":"SORTED"}]},{"matcher":{"id":"byName","options":"EVICTED"},"properties":[{"id":"custom.width","value":119}]},{"matcher":{"id":"byName","options":"NUMEXECUTES"},"properties":[{"id":"custom.width","value":129}]},{"matcher":{"id":"byName","options":"LASTEXECUTED"},"properties":[{"id":"custom.width","value":160}]},{"matcher":{"id":"byName","options":"SQLSTRING"},"properties":[{"id":"custom.inspect","value":true},{"id":"links","value":[{"title":"Statement Details","url":"/d/f13dbb76-dc2a-42b9-af72-88700f6857b8/sql-statement-details?var-id=${__data.fields.ID}\u0026${host:queryparam}"}]}]},{"matcher":{"id":"byName","options":"EXECTIME"},"properties":[{"id":"custom.width","value":113},{"id":"unit","value":"µs"}]},{"matcher":{"id":"byName","options":"SORTED"},"properties":[{"id":"custom.width","value":99}]},{"matcher":{"id":"byName","options":"RECORDSFETCHED"},"properties":[{"id":"custom.width","value":121}]}]},"gridPos":{"h":12,"w":24,"x":0,"y":0},"id":10,"interval":"$interval","maxPerRow":2,"options":{"cellHeight":"sm","footer":{"countRows":false,"fields":"","reducer":["sum"],"show":true},"frameIndex":1,"showHeader":true,"sortBy":[]},"pluginVersion":"10.0.2","repeat":"host","repeatDirection":"v","targets":[{"body":"select LASTEXECUTED\n ,NUMEXECUTES\n ,EXECTIME\n ,RECORDSFETCHED\n ,LOCKED\n ,RECORDSSORTED\n ,EVICTED\n ,SQLSTRING\n ,ID\n from system.LOCALSTATEMENTCACHE\nwhere LASTEXECUTED \u003e DATE_SUB(now(), INTERVAL $__interval_ms / 1000 second)\n\n","cacheDurationSeconds":0,"datasource":{"type":"marcusolsson-json-datasource","uid":"fb12902f-919a-4aa9-89de-398bdfce52df"},"fields":[{"jsonPath":"$.rows[*][0]","name":"LASTEXECUTED","type":"time"},{"jsonPath":"$.rows[*][1]","language":"jsonpath","name":"NUMEXECUTES"},{"jsonPath":"$.rows[*][2]","language":"jsonpath","name":"EXECTIME"},{"jsonPath":"$.rows[*][3]","language":"jsonpath","name":"RECORDSFETCHED"},{"jsonPath":"$.rows[*][4]","language":"jsonpath","name":"LOCKED"},{"jsonPath":"$.rows[*][5]","language":"jsonpath","name":"RECORDSSORTED"},{"jsonPath":"$.rows[*][6]","language":"jsonpath","name":"EVICTED"},{"jsonPath":"$.rows[*][7]","language":"jsonpath","name":"SQLSTRING"},{"jsonPath":"$.rows[*][8]","language":"jsonpath","name":"ID","type":"string"}],"method":"POST","params":[["dbname","$database"],["hostname","$host"]],"queryParams":"","refId":"A","urlPath":"/query"}],"title":"Records ($host)","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}]},"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 Records","uid":"f1af96f4-c6b6-4813-9cab-39bda6df0650","version":10,"weekStart":""}} \ No newline at end of file +{ + "meta": { + "type": "db", + "canSave": true, + "canEdit": true, + "canAdmin": true, + "canStar": true, + "canDelete": true, + "slug": "sql-statement-records", + "url": "/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records", + "expires": "0001-01-01T00:00:00Z", + "created": "2023-07-21T22:33:55Z", + "updated": "2023-07-26T20:55:41Z", + "updatedBy": "Anonymous", + "createdBy": "admin", + "version": 10, + "hasAcl": false, + "isFolder": false, + "folderId": 20, + "folderUid": "b7c2a563-48a3-426d-be2b-0f9fffbd8a85", + "folderTitle": "nuodb_client", + "folderUrl": "/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client", + "provisioned": false, + "provisionedExternalId": "sql-statement-records.json", + "annotationsPermissions": { + "dashboard": { + "canAdd": true, + "canEdit": true, + "canDelete": true + }, + "organization": { + "canAdd": true, + "canEdit": true, + "canDelete": true + } + }, + "publicDashboardAccessToken": "", + "publicDashboardUid": "", + "publicDashboardEnabled": false + }, + "dashboard": { + "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": 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": "marcusolsson-json-datasource", + "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "#C0D8FF", + "mode": "fixed" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "color-text" + }, + "inspect": false + }, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "ID" + }, + "properties": [ + { + "id": "custom.hidden", + "value": true + }, + { + "id": "unit", + "value": "string" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "LOCKED" + }, + "properties": [ + { + "id": "custom.width", + "value": 115 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "RECORDSFETCHED" + }, + "properties": [ + { + "id": "custom.width", + "value": 137 + }, + { + "id": "displayName", + "value": "FETCHED" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "RECORDSSORTED" + }, + "properties": [ + { + "id": "custom.width", + "value": 169 + }, + { + "id": "displayName", + "value": "SORTED" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "EVICTED" + }, + "properties": [ + { + "id": "custom.width", + "value": 119 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "NUMEXECUTES" + }, + "properties": [ + { + "id": "custom.width", + "value": 129 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "LASTEXECUTED" + }, + "properties": [ + { + "id": "custom.width", + "value": 160 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "SQLSTRING" + }, + "properties": [ + { + "id": "custom.inspect", + "value": true + }, + { + "id": "links", + "value": [ + { + "title": "Statement Details", + "url": "/d/f13dbb76-dc2a-42b9-af72-88700f6857b8/sql-statement-details?var-id=${__data.fields.ID}&${host:queryparam}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "EXECTIME" + }, + "properties": [ + { + "id": "custom.width", + "value": 113 + }, + { + "id": "unit", + "value": "µs" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "SORTED" + }, + "properties": [ + { + "id": "custom.width", + "value": 99 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "RECORDSFETCHED" + }, + "properties": [ + { + "id": "custom.width", + "value": 121 + } + ] + } + ] + }, + "gridPos": { + "h": 12, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 10, + "interval": "$interval", + "maxPerRow": 2, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": true + }, + "frameIndex": 1, + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "10.0.2", + "repeat": "host", + "repeatDirection": "v", + "targets": [ + { + "body": "select LASTEXECUTED\n ,NUMEXECUTES\n ,EXECTIME\n ,RECORDSFETCHED\n ,LOCKED\n ,RECORDSSORTED\n ,EVICTED\n ,SQLSTRING\n ,ID\n from system.LOCALSTATEMENTCACHE\nwhere LASTEXECUTED > DATE_SUB(now(), INTERVAL $__interval_ms / 1000 second)\n\n", + "cacheDurationSeconds": 0, + "datasource": { + "type": "marcusolsson-json-datasource", + "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" + }, + "fields": [ + { + "jsonPath": "$.rows[*][0]", + "name": "LASTEXECUTED", + "type": "time" + }, + { + "jsonPath": "$.rows[*][1]", + "language": "jsonpath", + "name": "NUMEXECUTES" + }, + { + "jsonPath": "$.rows[*][2]", + "language": "jsonpath", + "name": "EXECTIME" + }, + { + "jsonPath": "$.rows[*][3]", + "language": "jsonpath", + "name": "RECORDSFETCHED" + }, + { + "jsonPath": "$.rows[*][4]", + "language": "jsonpath", + "name": "LOCKED" + }, + { + "jsonPath": "$.rows[*][5]", + "language": "jsonpath", + "name": "RECORDSSORTED" + }, + { + "jsonPath": "$.rows[*][6]", + "language": "jsonpath", + "name": "EVICTED" + }, + { + "jsonPath": "$.rows[*][7]", + "language": "jsonpath", + "name": "SQLSTRING" + }, + { + "jsonPath": "$.rows[*][8]", + "language": "jsonpath", + "name": "ID", + "type": "string" + } + ], + "method": "POST", + "params": [ + [ + "dbname", + "$database" + ], + [ + "hostname", + "$host" + ] + ], + "queryParams": "", + "refId": "A", + "urlPath": "/query" + } + ], + "title": "Records ($host)", + "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 + } + ] + }, + "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 Records", + "uid": "f1af96f4-c6b6-4813-9cab-39bda6df0650", + "version": 10, + "weekStart": "" + } +} From 7372dd289510f99b13ac0e0cd10cad6423bb9cd8 Mon Sep 17 00:00:00 2001 From: Dirk Butson Date: Tue, 1 Aug 2023 18:52:27 -0400 Subject: [PATCH 09/14] refresh dashboards --- .../dashboards/nuodb_client/client-msgs.json | 450 -- .../nuodb_client/log-sql-execute.json | 515 -- ...-overview.json => nuodb-sql-overview.json} | 22 +- .../nuodb_client/nuodb-sql-statements.json | 252 +- ...{sql-logs.json => sql-execution-logs.json} | 119 +- .../dashboards/nuodb_client/sql-log.json | 722 --- .../nuodb_client/sql-overview-from-table.json | 5595 ----------------- .../nuodb_client/sql-statement-details.json | 12 +- .../sql-statement-operations.json | 25 +- .../nuodb_client/sql-statements.json | 1 - 10 files changed, 189 insertions(+), 7524 deletions(-) delete mode 100644 conf/provisioning/dashboards/nuodb_client/client-msgs.json delete mode 100644 conf/provisioning/dashboards/nuodb_client/log-sql-execute.json rename conf/provisioning/dashboards/nuodb_client/{sql-overview.json => nuodb-sql-overview.json} (99%) rename conf/provisioning/dashboards/nuodb_client/{sql-logs.json => sql-execution-logs.json} (90%) delete mode 100644 conf/provisioning/dashboards/nuodb_client/sql-log.json delete mode 100644 conf/provisioning/dashboards/nuodb_client/sql-overview-from-table.json delete mode 100644 conf/provisioning/dashboards/nuodb_client/sql-statements.json diff --git a/conf/provisioning/dashboards/nuodb_client/client-msgs.json b/conf/provisioning/dashboards/nuodb_client/client-msgs.json deleted file mode 100644 index a018540..0000000 --- a/conf/provisioning/dashboards/nuodb_client/client-msgs.json +++ /dev/null @@ -1,450 +0,0 @@ -{ - "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": 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": "marcusolsson-json-datasource", - "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "super-light-blue", - "mode": "fixed" - }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "color-text" - }, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "none" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "TypeGroup" - }, - "properties": [ - { - "id": "custom.width", - "value": 131 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "MsgType" - }, - "properties": [ - { - "id": "custom.width", - "value": 253 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Count" - }, - "properties": [ - { - "id": "custom.width", - "value": 118 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Duration" - }, - "properties": [ - { - "id": "unit", - "value": "µs" - } - ] - } - ] - }, - "gridPos": { - "h": 24, - "w": 12, - "x": 0, - "y": 0 - }, - "id": 10, - "maxPerRow": 2, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": [ - "sum" - ], - "show": true - }, - "frameIndex": 1, - "showHeader": true, - "sortBy": [] - }, - "pluginVersion": "10.0.3", - "repeat": "host", - "repeatDirection": "h", - "targets": [ - { - "body": "select TYPE,\"GROUP\",COUNT,DURATION from system.localclientmessages order by DURATION desc", - "cacheDurationSeconds": 0, - "datasource": { - "type": "marcusolsson-json-datasource", - "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" - }, - "fields": [ - { - "jsonPath": "$.rows[*][0]", - "name": "MsgType", - "type": "string" - }, - { - "jsonPath": "$.rows[*][1]", - "language": "jsonpath", - "name": "TypeGroup" - }, - { - "jsonPath": "$.rows[*][2]", - "language": "jsonpath", - "name": "Count" - }, - { - "jsonPath": "$.rows[*][3]", - "language": "jsonpath", - "name": "Duration" - } - ], - "method": "POST", - "params": [ - [ - "dbname", - "$database" - ], - [ - "hostname", - "$host" - ] - ], - "queryParams": "", - "refId": "A", - "urlPath": "/query" - } - ], - "title": "Client Messages ($host)", - "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 - } - ] - }, - "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": "Client Messages", - "uid": "z35SM6j4z", - "version": 19, - "weekStart": "" -} \ No newline at end of file diff --git a/conf/provisioning/dashboards/nuodb_client/log-sql-execute.json b/conf/provisioning/dashboards/nuodb_client/log-sql-execute.json deleted file mode 100644 index 419205e..0000000 --- a/conf/provisioning/dashboards/nuodb_client/log-sql-execute.json +++ /dev/null @@ -1,515 +0,0 @@ -{ - "meta": { - "type": "db", - "canSave": true, - "canEdit": true, - "canAdmin": true, - "canStar": true, - "canDelete": true, - "slug": "log-sql-execute", - "url": "/d/f75f6aed-e2e1-4612-9e7a-5412150dca5d/log-sql-execute", - "expires": "0001-01-01T00:00:00Z", - "created": "2023-07-27T16:59:17Z", - "updated": "2023-07-28T20:39:13Z", - "updatedBy": "admin", - "createdBy": "admin", - "version": 9, - "hasAcl": false, - "isFolder": false, - "folderId": 20, - "folderUid": "b7c2a563-48a3-426d-be2b-0f9fffbd8a85", - "folderTitle": "nuodb_client", - "folderUrl": "/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client", - "provisioned": false, - "provisionedExternalId": "", - "annotationsPermissions": { - "dashboard": { - "canAdd": true, - "canEdit": true, - "canDelete": true - }, - "organization": { - "canAdd": true, - "canEdit": true, - "canDelete": true - } - }, - "publicDashboardAccessToken": "", - "publicDashboardUid": "", - "publicDashboardEnabled": false - }, - "dashboard": { - "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": 30, - "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": "loki", - "uid": "ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3" - }, - "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": "time" - }, - "properties": [ - { - "id": "custom.hidden", - "value": true - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Time" - }, - "properties": [ - { - "id": "custom.width", - "value": 176 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "sqlhash" - }, - "properties": [ - { - "id": "custom.width", - "value": 88 - }, - { - "id": "custom.hidden", - "value": true - } - ] - } - ] - }, - "gridPos": { - "h": 20, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 2, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true, - "sortBy": [] - }, - "pluginVersion": "10.0.3", - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3" - }, - "editorMode": "code", - "expr": "{job=\"execution\", stmthash=\"$stmthash\"}", - "key": "Q-603dd6c0-b9ea-47d9-87fa-aa99ec261e9a-0", - "queryType": "range", - "refId": "A" - } - ], - "title": "Statement $stmthash", - "transformations": [ - { - "id": "extractFields", - "options": { - "keepTime": true, - "replace": true, - "source": "Line" - } - } - ], - "type": "table" - } - ], - "refresh": "5m", - "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": 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": true, - "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": "10008029380792074498", - "value": "10008029380792074498" - }, - "datasource": { - "type": "loki", - "uid": "ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3" - }, - "definition": "", - "hide": 2, - "includeAll": false, - "multi": false, - "name": "stmthash", - "options": [], - "query": { - "label": "stmthash", - "refId": "LokiVariableQueryEditor-VariableQuery", - "stream": "", - "type": 1 - }, - "refresh": 2, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "type": "query" - }, - { - "current": { - "isNone": true, - "selected": false, - "text": "None", - "value": "" - }, - "datasource": { - "type": "loki", - "uid": "ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3" - }, - "definition": "", - "hide": 0, - "includeAll": false, - "multi": false, - "name": "sql", - "options": [], - "query": { - "label": "sql", - "refId": "LokiVariableQueryEditor-VariableQuery", - "stream": "{source=\"statements\"}", - "type": 1 - }, - "refresh": 2, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "type": "query" - } - ] - }, - "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": "Log Sql Execute", - "uid": "f75f6aed-e2e1-4612-9e7a-5412150dca5d", - "version": 9, - "weekStart": "" - } -} diff --git a/conf/provisioning/dashboards/nuodb_client/sql-overview.json b/conf/provisioning/dashboards/nuodb_client/nuodb-sql-overview.json similarity index 99% rename from conf/provisioning/dashboards/nuodb_client/sql-overview.json rename to conf/provisioning/dashboards/nuodb_client/nuodb-sql-overview.json index 38cef64..5c9e4a3 100644 --- a/conf/provisioning/dashboards/nuodb_client/sql-overview.json +++ b/conf/provisioning/dashboards/nuodb_client/nuodb-sql-overview.json @@ -6,14 +6,14 @@ "canAdmin": true, "canStar": true, "canDelete": true, - "slug": "sql-overview", - "url": "/d/cul4kM9Vz/sql-overview", + "slug": "nuodb-sql-overview", + "url": "/d/cul4kM9Vz/nuodb-sql-overview", "expires": "0001-01-01T00:00:00Z", "created": "2023-06-28T15:11:31Z", - "updated": "2023-07-31T16:37:45Z", + "updated": "2023-08-01T15:24:31Z", "updatedBy": "admin", "createdBy": "admin", - "version": 71, + "version": 74, "hasAcl": false, "isFolder": false, "folderId": 20, @@ -78,7 +78,7 @@ } ] }, - "editable": true, + "editable": false, "fiscalYearStartMonth": 0, "graphTooltip": 1, "id": 14, @@ -3159,7 +3159,7 @@ "links": [ { "title": "SQL Dashboard", - "url": "/d/J9fZNkr4z/sql?${__all_variables}&${__url_time_range}" + "url": "/d/J9fZNkr4z/sql?${__all_variables}&${__url_time_range}" } ], "options": { @@ -5397,7 +5397,7 @@ "type": "stat" } ], - "refresh": "", + "refresh": "10s", "schemaVersion": 38, "style": "dark", "tags": [ @@ -5419,12 +5419,12 @@ "name": "interval", "options": [ { - "selected": true, + "selected": false, "text": "auto", "value": "$__auto_interval_interval" }, { - "selected": false, + "selected": true, "text": "10s", "value": "10s" }, @@ -5589,9 +5589,9 @@ ] }, "timezone": "utc", - "title": "SQL Overview", + "title": "NuoDB SQL Overview", "uid": "cul4kM9Vz", - "version": 71, + "version": 74, "weekStart": "" } } diff --git a/conf/provisioning/dashboards/nuodb_client/nuodb-sql-statements.json b/conf/provisioning/dashboards/nuodb_client/nuodb-sql-statements.json index 4fbe6c3..6e94550 100644 --- a/conf/provisioning/dashboards/nuodb_client/nuodb-sql-statements.json +++ b/conf/provisioning/dashboards/nuodb_client/nuodb-sql-statements.json @@ -10,10 +10,10 @@ "url": "/d/df0d2b01-89ff-4108-bace-32f436204209/nuodb-sql-statements", "expires": "0001-01-01T00:00:00Z", "created": "2023-07-30T18:45:18Z", - "updated": "2023-07-31T18:49:45Z", + "updated": "2023-08-01T03:00:41Z", "updatedBy": "admin", "createdBy": "admin", - "version": 53, + "version": 56, "hasAcl": false, "isFolder": false, "folderId": 20, @@ -74,7 +74,7 @@ ] }, "description": "NuoDB Summary", - "editable": true, + "editable": false, "fiscalYearStartMonth": 0, "graphTooltip": 1, "id": 35, @@ -1594,7 +1594,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "red", @@ -3028,7 +3029,7 @@ "overrides": [] }, "gridPos": { - "h": 4, + "h": 5, "w": 4, "x": 0, "y": 4 @@ -3044,10 +3045,12 @@ ], "options": { "legend": { - "calcs": [], - "displayMode": "list", + "calcs": [ + "lastNotNull" + ], + "displayMode": "table", "placement": "bottom", - "showLegend": false + "showLegend": true }, "tooltip": { "mode": "single", @@ -3177,6 +3180,7 @@ "mode": "fixed" }, "mappings": [], + "noValue": "0", "thresholds": { "mode": "absolute", "steps": [ @@ -3215,7 +3219,7 @@ ] }, "gridPos": { - "h": 4, + "h": 5, "w": 3, "x": 4, "y": 4 @@ -3237,12 +3241,12 @@ "orientation": "vertical", "reduceOptions": { "calcs": [ - "last" + "lastNotNull" ], "fields": "", "values": false }, - "textMode": "auto" + "textMode": "value" }, "pluginVersion": "10.0.3", "targets": [ @@ -3386,6 +3390,7 @@ "mode": "fixed" }, "mappings": [], + "noValue": "0", "thresholds": { "mode": "absolute", "steps": [ @@ -3424,7 +3429,7 @@ ] }, "gridPos": { - "h": 4, + "h": 5, "w": 3, "x": 7, "y": 4 @@ -3435,7 +3440,7 @@ "links": [ { "title": "Execute Breakdown", - "url": "/d/Qi5TDej4z/sql-statement-cache?${__all_variables}&${__url_time_range}" + "url": "/d/c9081118-5230-478d-b6e8-d76614395704/sql-logs?${__all_variables}&${__url_time_range}&var-statement=${id:value}" } ], "options": { @@ -3445,7 +3450,7 @@ "orientation": "vertical", "reduceOptions": { "calcs": [ - "last" + "lastNotNull" ], "fields": "", "values": false @@ -3578,7 +3583,7 @@ "overrides": [] }, "gridPos": { - "h": 4, + "h": 5, "w": 5, "x": 10, "y": 4 @@ -3594,10 +3599,12 @@ ], "options": { "legend": { - "calcs": [], - "displayMode": "list", + "calcs": [ + "lastNotNull" + ], + "displayMode": "table", "placement": "bottom", - "showLegend": false + "showLegend": true }, "tooltip": { "mode": "single", @@ -3678,6 +3685,7 @@ "mode": "fixed" }, "mappings": [], + "noValue": "0", "thresholds": { "mode": "absolute", "steps": [ @@ -3716,7 +3724,7 @@ ] }, "gridPos": { - "h": 4, + "h": 5, "w": 3, "x": 15, "y": 4 @@ -3727,7 +3735,7 @@ "links": [ { "title": "Execute Breakdown", - "url": "/d/Qi5TDej4z/sql-statement-cache?${__all_variables}&${__url_time_range}" + "url": "/d/c9081118-5230-478d-b6e8-d76614395704/sql-logs?${__all_variables}&${__url_time_range}&var-statement=${id:value}" } ], "options": { @@ -3737,7 +3745,7 @@ "orientation": "vertical", "reduceOptions": { "calcs": [ - "last" + "lastNotNull" ], "fields": "", "values": false @@ -3862,7 +3870,7 @@ ] }, "gridPos": { - "h": 4, + "h": 5, "w": 6, "x": 18, "y": 4 @@ -3873,7 +3881,7 @@ "links": [ { "title": "Execute Breakdown", - "url": "/d/Qi5TDej4z/sql-statement-cache?${__all_variables}&${__url_time_range}" + "url": "/d/c9081118-5230-478d-b6e8-d76614395704/sql-logs?${__all_variables}&${__url_time_range}&var-statement=${id:value}" } ], "options": { @@ -4158,6 +4166,7 @@ "mode": "fixed" }, "mappings": [], + "noValue": "0", "thresholds": { "mode": "absolute", "steps": [ @@ -4199,15 +4208,15 @@ "h": 4, "w": 4, "x": 0, - "y": 8 + "y": 9 }, "hideTimeOverride": true, "id": 53, "interval": "$collection", "links": [ { - "title": "Execute Breakdown", - "url": "/d/Qi5TDej4z/sql-statement-cache?${__all_variables}&${__url_time_range}" + "title": "", + "url": "/d/c9081118-5230-478d-b6e8-d76614395704/sql-logs?${__all_variables}&${__url_time_range}&var-statement=${id:value}" } ], "options": { @@ -4217,7 +4226,7 @@ "orientation": "vertical", "reduceOptions": { "calcs": [ - "last" + "lastNotNull" ], "fields": "", "values": false @@ -4305,6 +4314,7 @@ "mode": "fixed" }, "mappings": [], + "noValue": "0", "thresholds": { "mode": "absolute", "steps": [ @@ -4346,15 +4356,15 @@ "h": 4, "w": 4, "x": 4, - "y": 8 + "y": 9 }, "hideTimeOverride": true, "id": 54, "interval": "$collection", "links": [ { - "title": "Execute Breakdown", - "url": "/d/Qi5TDej4z/sql-statement-cache?${__all_variables}&${__url_time_range}" + "title": "", + "url": "/d/c9081118-5230-478d-b6e8-d76614395704/sql-logs?${__all_variables}&${__url_time_range}&var-statement=${id:value}" } ], "options": { @@ -4364,7 +4374,7 @@ "orientation": "vertical", "reduceOptions": { "calcs": [ - "last" + "lastNotNull" ], "fields": "", "values": false @@ -4452,6 +4462,7 @@ "mode": "fixed" }, "mappings": [], + "noValue": "0", "thresholds": { "mode": "absolute", "steps": [ @@ -4493,15 +4504,15 @@ "h": 4, "w": 4, "x": 8, - "y": 8 + "y": 9 }, "hideTimeOverride": true, "id": 55, "interval": "$collection", "links": [ { - "title": "Execute Breakdown", - "url": "/d/Qi5TDej4z/sql-statement-cache?${__all_variables}&${__url_time_range}" + "title": "", + "url": "/d/c9081118-5230-478d-b6e8-d76614395704/sql-logs?${__all_variables}&${__url_time_range}&var-statement=${id:value}" } ], "options": { @@ -4511,7 +4522,7 @@ "orientation": "vertical", "reduceOptions": { "calcs": [ - "last" + "lastNotNull" ], "fields": "", "values": false @@ -4599,6 +4610,7 @@ "mode": "fixed" }, "mappings": [], + "noValue": "0", "thresholds": { "mode": "absolute", "steps": [ @@ -4640,15 +4652,15 @@ "h": 4, "w": 4, "x": 12, - "y": 8 + "y": 9 }, "hideTimeOverride": true, "id": 57, "interval": "$collection", "links": [ { - "title": "Execute Breakdown", - "url": "/d/Qi5TDej4z/sql-statement-cache?${__all_variables}&${__url_time_range}" + "title": "", + "url": "/d/c9081118-5230-478d-b6e8-d76614395704/sql-logs?${__all_variables}&${__url_time_range}&var-statement=${id:value}" } ], "options": { @@ -4658,7 +4670,7 @@ "orientation": "vertical", "reduceOptions": { "calcs": [ - "last" + "lastNotNull" ], "fields": "", "values": false @@ -4746,6 +4758,7 @@ "mode": "fixed" }, "mappings": [], + "noValue": "0", "thresholds": { "mode": "absolute", "steps": [ @@ -4787,15 +4800,15 @@ "h": 4, "w": 4, "x": 16, - "y": 8 + "y": 9 }, "hideTimeOverride": true, "id": 56, "interval": "$collection", "links": [ { - "title": "Execute Breakdown", - "url": "/d/Qi5TDej4z/sql-statement-cache?${__all_variables}&${__url_time_range}" + "title": "", + "url": "/d/c9081118-5230-478d-b6e8-d76614395704/sql-logs?${__all_variables}&${__url_time_range}&var-statement=${id:value}" } ], "options": { @@ -4805,7 +4818,7 @@ "orientation": "vertical", "reduceOptions": { "calcs": [ - "last" + "lastNotNull" ], "fields": "", "values": false @@ -4893,6 +4906,7 @@ "mode": "fixed" }, "mappings": [], + "noValue": "0", "thresholds": { "mode": "absolute", "steps": [ @@ -4934,7 +4948,7 @@ "h": 4, "w": 4, "x": 20, - "y": 8 + "y": 9 }, "hideTimeOverride": true, "id": 58, @@ -4942,7 +4956,7 @@ "links": [ { "title": "Execute Breakdown", - "url": "/d/Qi5TDej4z/sql-statement-cache?${__all_variables}&${__url_time_range}" + "url": "/d/c9081118-5230-478d-b6e8-d76614395704/sql-logs?${__all_variables}&${__url_time_range}&var-statement=${id:value}" } ], "options": { @@ -4952,7 +4966,7 @@ "orientation": "vertical", "reduceOptions": { "calcs": [ - "last" + "lastNotNull" ], "fields": "", "values": false @@ -5040,6 +5054,7 @@ "mode": "fixed" }, "mappings": [], + "noValue": "0", "thresholds": { "mode": "absolute", "steps": [ @@ -5051,45 +5066,21 @@ }, "unit": "none" }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "exectime" - }, - "properties": [ - { - "id": "displayName" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "compiletime" - }, - "properties": [ - { - "id": "displayName", - "value": "Compile Time" - } - ] - } - ] + "overrides": [] }, "gridPos": { "h": 4, "w": 6, "x": 0, - "y": 12 + "y": 13 }, "hideTimeOverride": true, "id": 59, "interval": "$collection", "links": [ { - "title": "Execute Breakdown", - "url": "/d/Qi5TDej4z/sql-statement-cache?${__all_variables}&${__url_time_range}" + "title": "", + "url": "/d/c9081118-5230-478d-b6e8-d76614395704/sql-logs?${__all_variables}&${__url_time_range}&var-statement=${id:value}" } ], "options": { @@ -5099,7 +5090,7 @@ "orientation": "vertical", "reduceOptions": { "calcs": [ - "last" + "lastNotNull" ], "fields": "", "values": false @@ -5187,6 +5178,7 @@ "mode": "fixed" }, "mappings": [], + "noValue": "0", "thresholds": { "mode": "absolute", "steps": [ @@ -5198,45 +5190,21 @@ }, "unit": "none" }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "exectime" - }, - "properties": [ - { - "id": "displayName" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "compiletime" - }, - "properties": [ - { - "id": "displayName", - "value": "Compile Time" - } - ] - } - ] + "overrides": [] }, "gridPos": { "h": 4, "w": 6, "x": 6, - "y": 12 + "y": 13 }, "hideTimeOverride": true, "id": 60, "interval": "$collection", "links": [ { - "title": "Execute Breakdown", - "url": "/d/Qi5TDej4z/sql-statement-cache?${__all_variables}&${__url_time_range}" + "title": "", + "url": "/d/c9081118-5230-478d-b6e8-d76614395704/sql-logs?${__all_variables}&${__url_time_range}&var-statement=${id:value}" } ], "options": { @@ -5246,7 +5214,7 @@ "orientation": "vertical", "reduceOptions": { "calcs": [ - "last" + "lastNotNull" ], "fields": "", "values": false @@ -5334,6 +5302,7 @@ "mode": "fixed" }, "mappings": [], + "noValue": "0", "thresholds": { "mode": "absolute", "steps": [ @@ -5345,45 +5314,21 @@ }, "unit": "none" }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "exectime" - }, - "properties": [ - { - "id": "displayName" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "compiletime" - }, - "properties": [ - { - "id": "displayName", - "value": "Compile Time" - } - ] - } - ] + "overrides": [] }, "gridPos": { "h": 4, "w": 6, "x": 12, - "y": 12 + "y": 13 }, "hideTimeOverride": true, "id": 61, "interval": "$collection", "links": [ { - "title": "Execute Breakdown", - "url": "/d/Qi5TDej4z/sql-statement-cache?${__all_variables}&${__url_time_range}" + "title": "", + "url": "/d/c9081118-5230-478d-b6e8-d76614395704/sql-logs?${__all_variables}&${__url_time_range}&var-statement=${id:value}" } ], "options": { @@ -5393,7 +5338,7 @@ "orientation": "vertical", "reduceOptions": { "calcs": [ - "last" + "lastNotNull" ], "fields": "", "values": false @@ -5481,6 +5426,7 @@ "mode": "fixed" }, "mappings": [], + "noValue": "0", "thresholds": { "mode": "absolute", "steps": [ @@ -5492,45 +5438,21 @@ }, "unit": "none" }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "exectime" - }, - "properties": [ - { - "id": "displayName" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "compiletime" - }, - "properties": [ - { - "id": "displayName", - "value": "Compile Time" - } - ] - } - ] + "overrides": [] }, "gridPos": { "h": 4, "w": 6, "x": 18, - "y": 12 + "y": 13 }, "hideTimeOverride": true, "id": 62, "interval": "$collection", "links": [ { - "title": "Execute Breakdown", - "url": "/d/Qi5TDej4z/sql-statement-cache?${__all_variables}&${__url_time_range}" + "title": "", + "url": "/d/c9081118-5230-478d-b6e8-d76614395704/sql-logs?${__all_variables}&${__url_time_range}&var-statement=${id:value}" } ], "options": { @@ -5540,7 +5462,7 @@ "orientation": "vertical", "reduceOptions": { "calcs": [ - "last" + "lastNotNull" ], "fields": "", "values": false @@ -5649,7 +5571,7 @@ "value": "10s" }, { - "selected": false, + "selected": true, "text": "30s", "value": "30s" }, @@ -5659,7 +5581,7 @@ "value": "1m" }, { - "selected": true, + "selected": false, "text": "5m", "value": "5m" }, @@ -5845,7 +5767,7 @@ "timezone": "", "title": "NuoDB SQL Statements", "uid": "df0d2b01-89ff-4108-bace-32f436204209", - "version": 53, + "version": 56, "weekStart": "" } } diff --git a/conf/provisioning/dashboards/nuodb_client/sql-logs.json b/conf/provisioning/dashboards/nuodb_client/sql-execution-logs.json similarity index 90% rename from conf/provisioning/dashboards/nuodb_client/sql-logs.json rename to conf/provisioning/dashboards/nuodb_client/sql-execution-logs.json index e0cb7ba..9286fc3 100644 --- a/conf/provisioning/dashboards/nuodb_client/sql-logs.json +++ b/conf/provisioning/dashboards/nuodb_client/sql-execution-logs.json @@ -6,14 +6,14 @@ "canAdmin": true, "canStar": true, "canDelete": true, - "slug": "sql-logs", - "url": "/d/c9081118-5230-478d-b6e8-d76614395704/sql-logs", + "slug": "sql-execution-logs", + "url": "/d/c9081118-5230-478d-b6e8-d76614395704/sql-execution-logs", "expires": "0001-01-01T00:00:00Z", "created": "2023-07-29T14:51:47Z", - "updated": "2023-07-31T18:31:19Z", + "updated": "2023-08-01T22:44:06Z", "updatedBy": "admin", "createdBy": "admin", - "version": 7, + "version": 14, "hasAcl": false, "isFolder": false, "folderId": 20, @@ -73,7 +73,7 @@ } ] }, - "description": "NuoDB Summary", + "description": "Log of each statement execution", "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 1, @@ -100,6 +100,18 @@ ], "title": "nuodb", "type": "dashboards" + }, + { + "asDropdown": true, + "icon": "external link", + "includeVars": true, + "keepTime": true, + "tags": [], + "targetBlank": false, + "title": "sql", + "tooltip": "", + "type": "dashboards", + "url": "" } ], "liveNow": false, @@ -353,8 +365,8 @@ }, { "datasource": { - "type": "marcusolsson-json-datasource", - "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" }, "fieldConfig": { "defaults": { @@ -392,12 +404,11 @@ "x": 0, "y": 6 }, - "id": 12, + "id": 13, "options": { - "cellHeight": "md", + "cellHeight": "sm", "footer": { "countRows": false, - "enablePagination": false, "fields": "", "reducer": [ "sum" @@ -409,35 +420,59 @@ "pluginVersion": "10.0.3", "targets": [ { - "body": "select sqlstring from system.localstatementcache where ID='$statement'", - "cacheDurationSeconds": 0, "datasource": { - "type": "marcusolsson-json-datasource", - "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" }, - "fields": [ + "groupBy": [ { - "jsonPath": "$.rows[*][0]", - "name": "sqlstring" + "params": [ + "sqlstring::tag" + ], + "type": "tag" } ], - "method": "POST", - "params": [ - [ - "dbname", - "$database" - ], + "measurement": "nuodb_statements", + "orderByTime": "ASC", + "policy": "autogen", + "refId": "A", + "resultFormat": "table", + "select": [ [ - "hostname", - "localhost" + { + "params": [ + "numexecutes" + ], + "type": "field" + }, + { + "params": [], + "type": "first" + } ] ], - "queryParams": "", - "refId": "A", - "urlPath": "/query" + "tags": [ + { + "key": "id::tag", + "operator": "=~", + "value": "/^$statement$/" + } + ] + } + ], + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "first": true + }, + "indexByName": {}, + "renameByName": {} + } } ], - "transparent": true, "type": "table" }, { @@ -533,7 +568,7 @@ "refId": "A" } ], - "title": "Log Counts", + "title": "Statement Execution Counts", "type": "timeseries" }, { @@ -578,7 +613,7 @@ "type": "logs" } ], - "refresh": false, + "refresh": "", "schemaVersion": 38, "style": "dark", "tags": [ @@ -620,12 +655,12 @@ "name": "interval", "options": [ { - "selected": false, + "selected": true, "text": "auto", "value": "$__auto_interval_interval" }, { - "selected": true, + "selected": false, "text": "10s", "value": "10s" }, @@ -764,20 +799,20 @@ { "current": { "selected": false, - "text": ".+", - "value": ".+" + "text": "undefined", + "value": "undefined" }, "hide": 0, "label": "statement", "name": "statement", "options": [ { - "selected": false, - "text": ".+", - "value": ".+" + "selected": true, + "text": "undefined", + "value": "undefined" } ], - "query": ".+", + "query": "undefined", "skipUrlSync": false, "type": "textbox" }, @@ -809,7 +844,7 @@ }, "description": "regex filter for each line, use to limit results before logfmt", "hide": 0, - "label": "filter", + "label": "", "name": "filter", "options": [ { @@ -866,9 +901,9 @@ ] }, "timezone": "", - "title": "SQL Logs", + "title": "SQL Execution Logs", "uid": "c9081118-5230-478d-b6e8-d76614395704", - "version": 7, + "version": 14, "weekStart": "" } } diff --git a/conf/provisioning/dashboards/nuodb_client/sql-log.json b/conf/provisioning/dashboards/nuodb_client/sql-log.json deleted file mode 100644 index d5124e7..0000000 --- a/conf/provisioning/dashboards/nuodb_client/sql-log.json +++ /dev/null @@ -1,722 +0,0 @@ -{ - "meta": { - "type": "db", - "canSave": true, - "canEdit": true, - "canAdmin": true, - "canStar": true, - "canDelete": true, - "slug": "sql-log", - "url": "/d/f91c18e0-f71c-46eb-a3a8-2d0f63407d5b/sql-log", - "expires": "0001-01-01T00:00:00Z", - "created": "2023-07-28T13:06:30Z", - "updated": "2023-07-29T00:53:29Z", - "updatedBy": "admin", - "createdBy": "admin", - "version": 13, - "hasAcl": false, - "isFolder": false, - "folderId": 20, - "folderUid": "b7c2a563-48a3-426d-be2b-0f9fffbd8a85", - "folderTitle": "nuodb_client", - "folderUrl": "/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client", - "provisioned": false, - "provisionedExternalId": "", - "annotationsPermissions": { - "dashboard": { - "canAdd": true, - "canEdit": true, - "canDelete": true - }, - "organization": { - "canAdd": true, - "canEdit": true, - "canDelete": true - } - }, - "publicDashboardAccessToken": "", - "publicDashboardUid": "", - "publicDashboardEnabled": false - }, - "dashboard": { - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": { - "type": "grafana", - "uid": "-- Grafana --" - }, - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "editable": true, - "fiscalYearStartMonth": 0, - "graphTooltip": 0, - "id": 31, - "links": [], - "liveNow": false, - "panels": [ - { - "datasource": { - "type": "marcusolsson-json-datasource", - "uid": "e2d5f30c-bad3-4d03-85c8-6185099c31e9" - }, - "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": "statement" - }, - "properties": [ - { - "id": "custom.hidden", - "value": true - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "sql" - }, - "properties": [ - { - "id": "displayName", - "value": "Sql Statement" - }, - { - "id": "custom.inspect", - "value": true - }, - { - "id": "custom.filterable", - "value": true - }, - { - "id": "links", - "value": [ - { - "title": "", - "url": "/d/f91c18e0-f71c-46eb-a3a8-2d0f63407d5b/sql-log?${__url_time_range}&var-statement=${__data.fields.statement}&${explainplan:queryparam}&${filters:queryparam}&${search:queryparam}&${__url_time_range}" - } - ] - } - ] - } - ] - }, - "gridPos": { - "h": 9, - "w": 7, - "x": 0, - "y": 0 - }, - "id": 6, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true - }, - "pluginVersion": "10.0.3", - "targets": [ - { - "body": "select sqlstring,ID from system.localstatementcache", - "cacheDurationSeconds": 0, - "datasource": { - "type": "marcusolsson-json-datasource", - "uid": "e2d5f30c-bad3-4d03-85c8-6185099c31e9" - }, - "fields": [ - { - "jsonPath": "$.data[*].sql", - "language": "jsonpath" - }, - { - "jsonPath": "$.data[*].statement", - "language": "jsonpath", - "name": "" - } - ], - "key": "Q-899a8fb3-34f3-4994-bc57-fde9edf098a0-0", - "method": "GET", - "params": [ - [ - "dbname", - "$database" - ] - ], - "queryParams": "", - "refId": "A", - "urlPath": "/query" - } - ], - "title": "New Panel", - "type": "table" - }, - { - "datasource": { - "type": "loki", - "uid": "ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - } - }, - "mappings": [] - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 5, - "x": 7, - "y": 0 - }, - "id": 7, - "options": { - "legend": { - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "pieType": "pie", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "10.0.3", - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3" - }, - "editorMode": "builder", - "expr": "sum by(statement) (count_over_time({source=\"executions\", explainplan=~\"$explainplan\", statement=~\"$statement\"} [$__range]))", - "key": "Q-00d75461-1f95-45bf-8a91-a7f263c61fdf-0", - "queryType": "instant", - "refId": "B" - } - ], - "title": "Statement Distribution", - "type": "piechart" - }, - { - "datasource": { - "type": "loki", - "uid": "ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - } - }, - "links": [ - { - "title": "", - "url": "/d/f91c18e0-f71c-46eb-a3a8-2d0f63407d5b/sql-log?${__url_time_range}&var-explainplan=${__data.fields.explainplan}&${statement:queryparam}&${filters:queryparam}&${search:queryparam}&${__url_time_range}" - } - ], - "mappings": [] - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 5, - "x": 12, - "y": 0 - }, - "id": 8, - "options": { - "legend": { - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "pieType": "pie", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "10.0.3", - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3" - }, - "editorMode": "builder", - "expr": "topk by(explainplan) (20, sum by(explainplan) (count_over_time({source=\"executions\", explainplan=~\"$explainplan\", statement=\"$statement\"} [$__range])))", - "key": "Q-00d75461-1f95-45bf-8a91-a7f263c61fdf-0", - "queryType": "instant", - "refId": "B" - } - ], - "title": "Explain Plan Distribution", - "type": "piechart" - }, - { - "datasource": { - "type": "loki", - "uid": "ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3" - }, - "description": "Note the calculation is down in browser and the query is limited to 5000 lines returned from loki.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - } - }, - "links": [ - { - "title": "Statement Filter", - "url": "/d/f91c18e0-f71c-46eb-a3a8-2d0f63407d5b/sql-log?var-statement=${__data.fields.stmthash}&${filter:queryparam}&${filters:queryparam}&${__url_time_range}" - } - ], - "mappings": [], - "unit": "µs" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "stmthash" - }, - "properties": [ - { - "id": "unit", - "value": "string" - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 6, - "x": 18, - "y": 0 - }, - "id": 5, - "options": { - "legend": { - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "pieType": "pie", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "10.0.3", - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3" - }, - "editorMode": "builder", - "expr": "{job=\"execution\", stmthash=~\"$statement\"} |~ `$filter` |= `$xplan` | logfmt", - "maxLines": 5000, - "queryType": "range", - "refId": "A", - "resolution": 1 - } - ], - "title": "Top 10 ExecTime for first 5000 execution in time window", - "transformations": [ - { - "id": "extractFields", - "options": { - "format": "auto", - "keepTime": true, - "replace": true, - "source": "labels" - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true, - "compiletime": true, - "connid": true, - "ddlop": true, - "deletions": true, - "diskspill": true, - "dmlop": true, - "evicted": true, - "execcount": true, - "filename": true, - "hostname": true, - "indexfetches": true, - "indexhits": true, - "inserts": true, - "job": true, - "locked": true, - "numindexfetch": true, - "numtablefetch": true, - "peakmemusage": true, - "recordsfetched": true, - "recordsreturned": true, - "rejectindexhits": true, - "replaces": true, - "sorted": true, - "sqlhash": true, - "tablefetches": true, - "time": true, - "transid": true, - "updates": true, - "xplanhash": true - }, - "indexByName": {}, - "renameByName": {} - } - }, - { - "id": "convertFieldType", - "options": { - "conversions": [ - { - "destinationType": "number", - "targetField": "exectime" - } - ], - "fields": {} - } - }, - { - "id": "groupBy", - "options": { - "fields": { - "exectime": { - "aggregations": [ - "sum" - ], - "operation": "aggregate" - }, - "stmthash": { - "aggregations": [], - "operation": "groupby" - } - } - } - } - ], - "type": "piechart" - }, - { - "datasource": { - "type": "loki", - "uid": "ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3" - }, - "gridPos": { - "h": 19, - "w": 24, - "x": 0, - "y": 9 - }, - "id": 2, - "options": { - "dedupStrategy": "none", - "enableLogDetails": true, - "prettifyLogMessage": false, - "showCommonLabels": false, - "showLabels": false, - "showTime": true, - "sortOrder": "Descending", - "wrapLogMessage": false - }, - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3" - }, - "editorMode": "builder", - "expr": "{job=\"execution\", stmthash=~\"$statement\"} |~ `$filter` |= `$xplan` | logfmt", - "key": "Q-750d1062-cf8f-4219-b251-cca241a74556-0", - "queryType": "range", - "refId": "A" - } - ], - "title": "New Panel", - "transformations": [ - { - "id": "extractFields", - "options": { - "format": "auto", - "keepTime": false, - "replace": false, - "source": "labels" - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Line": false, - "compiletime": true, - "connid": true, - "ddlop": true, - "deletions": true, - "diskspill": true, - "dmlop": true, - "evicted": true, - "execcount": true, - "filename": true, - "hostname": true, - "id": true, - "indexfetches": true, - "indexhits": true, - "inserts": true, - "job": true, - "labels": false, - "locked": true, - "numindexfetch": true, - "numtablefetch": true, - "peakmemusage": true, - "recordsfetched": true, - "recordsreturned": true, - "rejectindexhits": true, - "replaces": true, - "sorted": true, - "sqlhash": true, - "stmthash": true, - "tablefetches": true, - "time": true, - "transid": true, - "tsNs": true, - "updates": true, - "xplanhash": true - }, - "indexByName": { - "Line": 0, - "Time": 1, - "compiletime": 6, - "connid": 7, - "ddlop": 8, - "deletions": 9, - "diskspill": 10, - "dmlop": 11, - "evicted": 12, - "execcount": 13, - "exectime": 2, - "filename": 14, - "hostname": 15, - "id": 5, - "indexfetches": 16, - "indexhits": 17, - "inserts": 18, - "job": 19, - "labels": 3, - "locked": 20, - "numindexfetch": 21, - "numtablefetch": 22, - "peakmemusage": 23, - "recordsfetched": 24, - "recordsreturned": 25, - "rejectindexhits": 26, - "replaces": 27, - "sorted": 28, - "sqlhash": 29, - "stmthash": 30, - "tablefetches": 31, - "time": 32, - "transid": 33, - "tsNs": 4, - "updates": 34, - "xplanhash": 35 - }, - "renameByName": {} - } - } - ], - "type": "logs" - } - ], - "refresh": "", - "schemaVersion": 38, - "style": "dark", - "tags": [], - "templating": { - "list": [ - { - "current": { - "selected": false, - "text": ".+", - "value": ".+" - }, - "hide": 0, - "label": "statement", - "name": "statement", - "options": [ - { - "selected": false, - "text": ".+", - "value": ".+" - } - ], - "query": ".+", - "skipUrlSync": false, - "type": "textbox" - }, - { - "current": { - "selected": false, - "text": ".+", - "value": ".+" - }, - "hide": 0, - "label": "explainplan", - "name": "explainplan", - "options": [ - { - "selected": true, - "text": ".+", - "value": ".+" - } - ], - "query": ".+", - "skipUrlSync": false, - "type": "textbox" - }, - { - "current": { - "selected": false, - "text": "", - "value": "" - }, - "hide": 0, - "label": "search", - "name": "search", - "options": [ - { - "selected": true, - "text": "", - "value": "" - } - ], - "query": "", - "skipUrlSync": false, - "type": "textbox" - }, - { - "datasource": { - "type": "loki", - "uid": "ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3" - }, - "filters": [ - { - "condition": "", - "key": "xplanhash", - "operator": "!=", - "value": "0" - } - ], - "hide": 0, - "name": "filters", - "skipUrlSync": false, - "type": "adhoc" - } - ] - }, - "time": { - "from": "2023-07-27T20:17:00.000Z", - "to": "2023-07-27T20:27:00.000Z" - }, - "timepicker": {}, - "timezone": "", - "title": "SQL Log", - "uid": "f91c18e0-f71c-46eb-a3a8-2d0f63407d5b", - "version": 13, - "weekStart": "" - } -} diff --git a/conf/provisioning/dashboards/nuodb_client/sql-overview-from-table.json b/conf/provisioning/dashboards/nuodb_client/sql-overview-from-table.json deleted file mode 100644 index 395ff01..0000000 --- a/conf/provisioning/dashboards/nuodb_client/sql-overview-from-table.json +++ /dev/null @@ -1,5595 +0,0 @@ -{ - "meta": { - "type": "db", - "canSave": true, - "canEdit": true, - "canAdmin": true, - "canStar": true, - "canDelete": true, - "slug": "sql-overview-from-table", - "url": "/d/becbeb9d-f054-4081-8766-13c43e7eb972/sql-overview-from-table", - "expires": "0001-01-01T00:00:00Z", - "created": "2023-07-31T16:38:20Z", - "updated": "2023-07-31T16:38:20Z", - "updatedBy": "admin", - "createdBy": "admin", - "version": 1, - "hasAcl": false, - "isFolder": false, - "folderId": 20, - "folderUid": "b7c2a563-48a3-426d-be2b-0f9fffbd8a85", - "folderTitle": "nuodb_client", - "folderUrl": "/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client", - "provisioned": false, - "provisionedExternalId": "", - "annotationsPermissions": { - "dashboard": { - "canAdd": true, - "canEdit": true, - "canDelete": true - }, - "organization": { - "canAdd": true, - "canEdit": true, - "canDelete": true - } - }, - "publicDashboardAccessToken": "", - "publicDashboardUid": "", - "publicDashboardEnabled": false - }, - "dashboard": { - "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": "red", - "name": "db annotations", - "target": { - "limit": 100, - "matchAny": true, - "tags": [ - "$database" - ], - "type": "tags" - } - } - ] - }, - "editable": true, - "fiscalYearStartMonth": 0, - "graphTooltip": 1, - "id": 36, - "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": 9, - "x": 0, - "y": 2 - }, - "hideTimeOverride": true, - "id": 45, - "links": [ - { - "title": "", - "url": "/d/z35SM6j4z/client-messages?${__all_variables}&${__url_time_range}" - } - ], - "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": "palette-classic" - }, - "custom": { - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - } - }, - "links": [ - { - "targetBlank": false, - "title": "Details", - "url": "/d/z35SM6j4z/client-messages" - } - ], - "mappings": [], - "unit": "µs" - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 3, - "x": 9, - "y": 2 - }, - "hideTimeOverride": true, - "id": 52, - "links": [ - { - "targetBlank": false, - "title": "", - "url": "/d/z35SM6j4z/client-messages?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "legend": { - "displayMode": "list", - "placement": "bottom", - "showLegend": false - }, - "pieType": "pie", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "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": 12, - "y": 2 - }, - "hideTimeOverride": true, - "id": 54, - "links": [ - { - "title": "Details", - "url": "/d/z35SM6j4z/client-messages?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "legend": { - "displayMode": "list", - "placement": "bottom", - "showLegend": false - }, - "pieType": "pie", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "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": 9, - "x": 15, - "y": 2 - }, - "hideTimeOverride": true, - "id": 44, - "links": [ - { - "title": "Details", - "url": "/d/z35SM6j4z/client-messages?${__all_variables}&${__url_time_range}" - } - ], - "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": "Platform", - "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": [ - "lastNotNull" - ], - "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": [ - "lastNotNull" - ], - "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 - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 6, - "y": 8 - }, - "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": [ - "lastNotNull" - ], - "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" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "light-blue", - "value": null - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 9, - "y": 8 - }, - "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": [ - "lastNotNull" - ], - "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": "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": { - "fixedColor": "semi-dark-yellow", - "mode": "fixed" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "light-blue", - "value": null - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 12, - "y": 8 - }, - "hideTimeOverride": true, - "id": 46, - "links": [ - { - "title": "SQL Dashboard", - "url": "/d/J9fZNkr4z/sql?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "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": "SqlListenerSqlProcTime", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(R) FROM (SELECT mean(\"rate\") AS R FROM \"Commits\" 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": "Commits", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "light-blue", - "value": null - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 15, - "y": 8 - }, - "hideTimeOverride": true, - "id": 33, - "links": [ - { - "title": "SQL Dashboard", - "url": "/d/J9fZNkr4z/sql?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "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": "Inserts", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"Inserts\" 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": "Inserts", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "light-blue", - "value": null - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 18, - "y": 8 - }, - "hideTimeOverride": true, - "id": 35, - "links": [ - { - "title": "SQL Dashboard", - "url": "/d/J9fZNkr4z/sql?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "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": "Updates", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"Updates\" 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": "Updates", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "light-blue", - "value": null - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 21, - "y": 8 - }, - "hideTimeOverride": true, - "id": 34, - "links": [ - { - "title": "SQL Dashboard", - "url": "/d/J9fZNkr4z/sql?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "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": "Deletes", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"Deletes\" 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": "Deletes", - "type": "stat" - }, - { - "collapsed": false, - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 12 - }, - "id": 23, - "panels": [], - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "refId": "A" - } - ], - "title": "Rows", - "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" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "light-blue", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 6, - "x": 0, - "y": 13 - }, - "hideTimeOverride": true, - "id": 2, - "links": [ - { - "title": "Details by Statement", - "url": "/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.3.0", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "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" - } - ] - } - ], - "timeShift": "10s", - "title": "Statements Executed", - "type": "timeseries" - }, - { - "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": 13 - }, - "hideTimeOverride": true, - "id": 38, - "links": [ - { - "title": "Details by Statement", - "url": "/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "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": 13 - }, - "hideTimeOverride": true, - "id": 29, - "links": [ - { - "title": "Details by Statement", - "url": "/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "legend": { - "displayMode": "list", - "placement": "bottom", - "showLegend": false - }, - "pieType": "pie", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "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": 13 - }, - "hideTimeOverride": true, - "id": 37, - "links": [ - { - "title": "Details by Statement ", - "url": "/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "displayMode": "basic", - "minVizHeight": 10, - "minVizWidth": 0, - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showUnfilled": false, - "valueMode": "color" - }, - "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": "bargauge" - }, - { - "collapsed": false, - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 17 - }, - "id": 17, - "panels": [], - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "refId": "A" - } - ], - "title": "Indexes", - "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": 18 - }, - "hideTimeOverride": true, - "id": 10, - "links": [ - { - "title": "Details by Statement", - "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "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": 18 - }, - "hideTimeOverride": true, - "id": 12, - "links": [ - { - "title": "Details by Statement", - "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "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": 18 - }, - "hideTimeOverride": true, - "id": 15, - "links": [ - { - "title": "Details by Statement", - "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "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": 18 - }, - "hideTimeOverride": true, - "id": 13, - "links": [ - { - "title": "Details by Statement", - "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "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": 18 - }, - "hideTimeOverride": true, - "id": 11, - "links": [ - { - "title": "Details by Statement", - "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "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": 18 - }, - "hideTimeOverride": true, - "id": 14, - "links": [ - { - "title": "Details by Statement", - "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "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": 22 - }, - "id": 4, - "panels": [], - "repeat": "SQLStatementStats", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "refId": "A" - } - ], - "title": "Records", - "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": 23 - }, - "hideTimeOverride": true, - "id": 20, - "links": [ - { - "title": "Details by Statement", - "url": "/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "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": 23 - }, - "hideTimeOverride": true, - "id": 18, - "links": [ - { - "title": "Details by Statement", - "url": "/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "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": 23 - }, - "hideTimeOverride": true, - "id": 21, - "links": [ - { - "title": "Details by Statement", - "url": "/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "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": 23 - }, - "hideTimeOverride": true, - "id": 36, - "links": [ - { - "title": "Details by Statement", - "url": "/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "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": "", - "schemaVersion": 38, - "style": "dark", - "tags": [], - "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": "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": true, - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "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": "SQL Overview From Table", - "uid": "becbeb9d-f054-4081-8766-13c43e7eb972", - "version": 1, - "weekStart": "" - } -} diff --git a/conf/provisioning/dashboards/nuodb_client/sql-statement-details.json b/conf/provisioning/dashboards/nuodb_client/sql-statement-details.json index 9657996..cd872cd 100644 --- a/conf/provisioning/dashboards/nuodb_client/sql-statement-details.json +++ b/conf/provisioning/dashboards/nuodb_client/sql-statement-details.json @@ -10,10 +10,10 @@ "url": "/d/f13dbb76-dc2a-42b9-af72-88700f6857b8/sql-statement-details", "expires": "0001-01-01T00:00:00Z", "created": "2023-07-21T19:49:29Z", - "updated": "2023-07-28T21:34:59Z", + "updated": "2023-08-01T12:55:05Z", "updatedBy": "admin", "createdBy": "admin", - "version": 15, + "version": 17, "hasAcl": false, "isFolder": false, "folderId": 20, @@ -192,7 +192,7 @@ }, "gridPos": { "h": 27, - "w": 12, + "w": 24, "x": 0, "y": 0 }, @@ -217,7 +217,7 @@ "repeatDirection": "h", "targets": [ { - "body": "select * from system.localstatementcache where ID='$id'", + "body": "select * from system.localstatementcache where ID='$id'\n", "cacheDurationSeconds": 0, "datasource": { "type": "marcusolsson-json-datasource", @@ -331,7 +331,7 @@ "name": "id", "options": [ { - "selected": true, + "selected": false, "text": "0", "value": "0" } @@ -374,7 +374,7 @@ "timezone": "", "title": "Sql Statement Details", "uid": "f13dbb76-dc2a-42b9-af72-88700f6857b8", - "version": 15, + "version": 17, "weekStart": "" } } diff --git a/conf/provisioning/dashboards/nuodb_client/sql-statement-operations.json b/conf/provisioning/dashboards/nuodb_client/sql-statement-operations.json index a970360..c705334 100644 --- a/conf/provisioning/dashboards/nuodb_client/sql-statement-operations.json +++ b/conf/provisioning/dashboards/nuodb_client/sql-statement-operations.json @@ -10,10 +10,10 @@ "url": "/d/Cp_9O6C4k/sql-statement-operations", "expires": "0001-01-01T00:00:00Z", "created": "2023-07-21T15:56:00Z", - "updated": "2023-07-29T16:47:41Z", + "updated": "2023-08-01T18:58:00Z", "updatedBy": "admin", "createdBy": "admin", - "version": 29, + "version": 33, "hasAcl": false, "isFolder": false, "folderId": 20, @@ -88,7 +88,7 @@ ] }, "description": "NuoDB Summary", - "editable": true, + "editable": false, "fiscalYearStartMonth": 0, "graphTooltip": 1, "id": 19, @@ -259,10 +259,6 @@ "targetBlank": false, "title": "Details", "url": "/d/f13dbb76-dc2a-42b9-af72-88700f6857b8/sql-statement-details?var-id=${__data.fields.ID}&${host:queryparam}" - }, - { - "title": "Executes", - "url": "/d/c9081118-5230-478d-b6e8-d76614395704/sql-logs?${__all_variables}&var-statement=${__data.fields.ID}&${__url_time_range}" } ] } @@ -315,19 +311,14 @@ }, "frameIndex": 1, "showHeader": true, - "sortBy": [ - { - "desc": true, - "displayName": "NUMEXECUTES" - } - ] + "sortBy": [] }, "pluginVersion": "10.0.3", "repeat": "host", "repeatDirection": "v", "targets": [ { - "body": "select LASTEXECUTED\n ,NUMEXECUTES\n ,RECORDSRETURNED\n ,INSERTS\n ,UPDATES\n ,DELETIONS\n ,REPLACES\n ,SQLSTRING\n ,ID\n from system.LOCALSTATEMENTCACHE\n where LASTEXECUTED > DATE_SUB(now(), INTERVAL $__interval_ms/1000 second)\n", + "body": "select LASTEXECUTED\n ,NUMEXECUTES\n ,RECORDSRETURNED\n ,INSERTS\n ,UPDATES\n ,DELETIONS\n ,REPLACES\n ,SQLSTRING\n ,ID\n from system.LOCALSTATEMENTCACHE\n where LASTEXECUTED > DATE_SUB(now(), INTERVAL $__interval_ms/1000 second) and ID is not null\n", "cacheDurationSeconds": 0, "datasource": { "type": "marcusolsson-json-datasource", @@ -428,7 +419,7 @@ "value": "$__auto_interval_interval" }, { - "selected": false, + "selected": true, "text": "10s", "value": "10s" }, @@ -483,7 +474,7 @@ "value": "1d" }, { - "selected": true, + "selected": false, "text": "7d", "value": "7d" }, @@ -600,7 +591,7 @@ "timezone": "", "title": "Sql Statement Operations", "uid": "Cp_9O6C4k", - "version": 29, + "version": 33, "weekStart": "" } } diff --git a/conf/provisioning/dashboards/nuodb_client/sql-statements.json b/conf/provisioning/dashboards/nuodb_client/sql-statements.json deleted file mode 100644 index 5c256e1..0000000 --- a/conf/provisioning/dashboards/nuodb_client/sql-statements.json +++ /dev/null @@ -1 +0,0 @@ -{"meta":{"type":"db","canSave":true,"canEdit":true,"canAdmin":true,"canStar":true,"canDelete":true,"slug":"sql-statements","url":"/d/cul4kM9Vz/sql-statements","expires":"0001-01-01T00:00:00Z","created":"2023-06-28T15:11:31Z","updated":"2023-07-29T16:23:55Z","updatedBy":"admin","createdBy":"admin","version":70,"hasAcl":false,"isFolder":false,"folderId":20,"folderUid":"b7c2a563-48a3-426d-be2b-0f9fffbd8a85","folderTitle":"nuodb_client","folderUrl":"/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client","provisioned":false,"provisionedExternalId":"sql-statements.json","annotationsPermissions":{"dashboard":{"canAdd":true,"canEdit":true,"canDelete":true},"organization":{"canAdd":true,"canEdit":true,"canDelete":true}},"publicDashboardAccessToken":"","publicDashboardUid":"","publicDashboardEnabled":false},"dashboard":{"annotations":{"list":[{"builtIn":1,"datasource":{"type":"datasource","uid":"grafana"},"enable":true,"hide":true,"iconColor":"rgba(0, 211, 255, 1)","name":"Annotations \u0026 Alerts","target":{"limit":100,"matchAny":false,"tags":[],"type":"dashboard"},"type":"dashboard"},{"datasource":{"type":"datasource","uid":"grafana"},"enable":true,"iconColor":"red","name":"db annotations","target":{"limit":100,"matchAny":true,"tags":["$database"],"type":"tags"}}]},"editable":true,"fiscalYearStartMonth":0,"graphTooltip":1,"id":14,"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":9,"x":0,"y":2},"hideTimeOverride":true,"id":45,"links":[{"title":"","url":"/d/z35SM6j4z/client-messages?${__all_variables}\u0026${__url_time_range}"}],"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":"palette-classic"},"custom":{"hideFrom":{"legend":false,"tooltip":false,"viz":false}},"links":[{"targetBlank":false,"title":"Details","url":"/d/z35SM6j4z/client-messages"}],"mappings":[],"unit":"µs"},"overrides":[]},"gridPos":{"h":5,"w":3,"x":9,"y":2},"hideTimeOverride":true,"id":52,"links":[{"targetBlank":false,"title":"","url":"/d/z35SM6j4z/client-messages?${__all_variables}\u0026${__url_time_range}"}],"options":{"legend":{"displayMode":"list","placement":"bottom","showLegend":false},"pieType":"pie","reduceOptions":{"calcs":["lastNotNull"],"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":12,"y":2},"hideTimeOverride":true,"id":54,"links":[{"title":"Details","url":"/d/z35SM6j4z/client-messages?${__all_variables}\u0026${__url_time_range}"}],"options":{"legend":{"displayMode":"list","placement":"bottom","showLegend":false},"pieType":"pie","reduceOptions":{"calcs":["lastNotNull"],"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":9,"x":15,"y":2},"hideTimeOverride":true,"id":44,"links":[{"title":"Details","url":"/d/z35SM6j4z/client-messages?${__all_variables}\u0026${__url_time_range}"}],"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":"Platform","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}\u0026${__url_time_range}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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}\u0026${__url_time_range}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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}]},"unit":"s"},"overrides":[]},"gridPos":{"h":4,"w":3,"x":6,"y":8},"id":26,"links":[{"title":"Overview","url":"/d/AeBZNz9Vk/nuodb-overview?${__all_variables}\u0026${__url_time_range}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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"},"fieldConfig":{"defaults":{"color":{"mode":"thresholds"},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"light-blue","value":null}]},"unit":"s"},"overrides":[]},"gridPos":{"h":4,"w":3,"x":9,"y":8},"hideTimeOverride":true,"id":27,"links":[{"title":"Overview","url":"/d/AeBZNz9Vk/nuodb-overview?${__all_variables}\u0026${__url_time_range}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":"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":{"fixedColor":"semi-dark-yellow","mode":"fixed"},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"light-blue","value":null}]},"unit":"none"},"overrides":[]},"gridPos":{"h":4,"w":3,"x":12,"y":8},"hideTimeOverride":true,"id":46,"links":[{"title":"SQL Dashboard","url":"/d/J9fZNkr4z/sql?${__all_variables}\u0026${__url_time_range}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":"SqlListenerSqlProcTime","orderByTime":"ASC","policy":"default","query":"SELECT SUM(R) FROM (SELECT mean(\"rate\") AS R FROM \"Commits\" 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":"Commits","type":"stat"},{"datasource":{"type":"influxdb","uid":"P7F1571328205BBA6"},"fieldConfig":{"defaults":{"color":{"mode":"thresholds"},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"light-blue","value":null}]},"unit":"none"},"overrides":[]},"gridPos":{"h":4,"w":3,"x":15,"y":8},"hideTimeOverride":true,"id":33,"links":[{"title":"SQL Dashboard","url":"/d/J9fZNkr4z/sql?${__all_variables}\u0026${__url_time_range}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":"Inserts","orderByTime":"ASC","policy":"default","query":"SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"Inserts\" 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":"Inserts","type":"stat"},{"datasource":{"type":"influxdb","uid":"P7F1571328205BBA6"},"fieldConfig":{"defaults":{"color":{"mode":"thresholds"},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"light-blue","value":null}]},"unit":"none"},"overrides":[]},"gridPos":{"h":4,"w":3,"x":18,"y":8},"hideTimeOverride":true,"id":35,"links":[{"title":"SQL Dashboard","url":"/d/J9fZNkr4z/sql?${__all_variables}\u0026${__url_time_range}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":"Updates","orderByTime":"ASC","policy":"default","query":"SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"Updates\" 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":"Updates","type":"stat"},{"datasource":{"type":"influxdb","uid":"P7F1571328205BBA6"},"fieldConfig":{"defaults":{"color":{"mode":"thresholds"},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"light-blue","value":null}]},"unit":"none"},"overrides":[]},"gridPos":{"h":4,"w":3,"x":21,"y":8},"hideTimeOverride":true,"id":34,"links":[{"title":"SQL Dashboard","url":"/d/J9fZNkr4z/sql?${__all_variables}\u0026${__url_time_range}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":"Deletes","orderByTime":"ASC","policy":"default","query":"SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"Deletes\" 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":"Deletes","type":"stat"},{"collapsed":false,"datasource":{"type":"influxdb","uid":"P7F1571328205BBA6"},"gridPos":{"h":1,"w":24,"x":0,"y":12},"id":23,"panels":[],"targets":[{"datasource":{"type":"influxdb","uid":"P7F1571328205BBA6"},"refId":"A"}],"title":"Rows","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"}},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"light-blue","value":null}]}},"overrides":[]},"gridPos":{"h":4,"w":6,"x":0,"y":13},"hideTimeOverride":true,"id":2,"links":[{"title":"Details by Statement","url":"/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}\u0026${__url_time_range}"}],"options":{"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"mode":"single","sort":"none"}},"pluginVersion":"8.3.0","targets":[{"datasource":{"type":"influxdb","uid":"P7F1571328205BBA6"},"groupBy":[{"params":["$__interval"],"type":"time"},{"params":["null"],"type":"fill"}],"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"}]}],"timeShift":"10s","title":"Statements Executed","type":"timeseries"},{"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":13},"hideTimeOverride":true,"id":38,"links":[{"title":"Details by Statement","url":"/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}\u0026${__url_time_range}"}],"options":{"colorMode":"value","graphMode":"none","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":13},"hideTimeOverride":true,"id":29,"links":[{"title":"Details by Statement","url":"/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}\u0026${__url_time_range}"}],"options":{"legend":{"displayMode":"list","placement":"bottom","showLegend":false},"pieType":"pie","reduceOptions":{"calcs":["lastNotNull"],"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":13},"hideTimeOverride":true,"id":37,"links":[{"title":"Details by Statement ","url":"/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}\u0026${__url_time_range}"}],"options":{"displayMode":"basic","minVizHeight":10,"minVizWidth":0,"orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"fields":"","values":false},"showUnfilled":false,"valueMode":"color"},"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":"bargauge"},{"collapsed":false,"datasource":{"type":"influxdb","uid":"P7F1571328205BBA6"},"gridPos":{"h":1,"w":24,"x":0,"y":17},"id":17,"panels":[],"targets":[{"datasource":{"type":"influxdb","uid":"P7F1571328205BBA6"},"refId":"A"}],"title":"Indexes","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":18},"hideTimeOverride":true,"id":10,"links":[{"title":"Details by Statement","url":"/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}\u0026${__url_time_range}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":18},"hideTimeOverride":true,"id":12,"links":[{"title":"Details by Statement","url":"/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}\u0026${__url_time_range}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":18},"hideTimeOverride":true,"id":15,"links":[{"title":"Details by Statement","url":"/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}\u0026${__url_time_range}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":18},"hideTimeOverride":true,"id":13,"links":[{"title":"Details by Statement","url":"/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}\u0026${__url_time_range}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":18},"hideTimeOverride":true,"id":11,"links":[{"title":"Details by Statement","url":"/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}\u0026${__url_time_range}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":18},"hideTimeOverride":true,"id":14,"links":[{"title":"Details by Statement","url":"/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}\u0026${__url_time_range}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":22},"id":4,"panels":[],"repeat":"SQLStatementStats","targets":[{"datasource":{"type":"influxdb","uid":"P7F1571328205BBA6"},"refId":"A"}],"title":"Records","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":23},"hideTimeOverride":true,"id":20,"links":[{"title":"Details by Statement","url":"/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}\u0026${__url_time_range}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":23},"hideTimeOverride":true,"id":18,"links":[{"title":"Details by Statement","url":"/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}\u0026${__url_time_range}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":23},"hideTimeOverride":true,"id":21,"links":[{"title":"Details by Statement","url":"/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}\u0026${__url_time_range}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":23},"hideTimeOverride":true,"id":36,"links":[{"title":"Details by Statement","url":"/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}\u0026${__url_time_range}"}],"options":{"colorMode":"value","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"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":false,"text":"10s","value":"10s"},"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":"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":true,"text":["All"],"value":["$__all"]},"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":"SQL Statements","uid":"cul4kM9Vz","version":70,"weekStart":""}} \ No newline at end of file From 41d7c5e5a1a92e7cab45b4edcffe9232bf968871 Mon Sep 17 00:00:00 2001 From: Dirk Butson Date: Fri, 6 Oct 2023 13:06:33 -0400 Subject: [PATCH 10/14] fixed client dashboards --- .../nuodb_client/client-messages.json | 491 - .../nuodb_client/nuodb-sql-overview.json | 9747 ++++++++------- .../nuodb_client/nuodb-sql-statements.json | 10097 ++++++++-------- .../nuodb_client/sql-client-messages.json | 450 + .../nuodb_client/sql-execution-logs.json | 1617 ++- .../nuodb_client/sql-statement-details.json | 659 +- .../sql-statement-executions.json | 1041 +- .../nuodb_client/sql-statement-indexes.json | 1167 +- .../sql-statement-operations.json | 1037 +- .../nuodb_client/sql-statement-records.json | 1089 +- 10 files changed, 13513 insertions(+), 13882 deletions(-) delete mode 100644 conf/provisioning/dashboards/nuodb_client/client-messages.json create mode 100644 conf/provisioning/dashboards/nuodb_client/sql-client-messages.json diff --git a/conf/provisioning/dashboards/nuodb_client/client-messages.json b/conf/provisioning/dashboards/nuodb_client/client-messages.json deleted file mode 100644 index 70bca9a..0000000 --- a/conf/provisioning/dashboards/nuodb_client/client-messages.json +++ /dev/null @@ -1,491 +0,0 @@ -{ - "meta": { - "type": "db", - "canSave": true, - "canEdit": true, - "canAdmin": true, - "canStar": true, - "canDelete": true, - "slug": "client-messages", - "url": "/d/z35SM6j4z/client-messages", - "expires": "0001-01-01T00:00:00Z", - "created": "2023-07-21T13:59:27Z", - "updated": "2023-07-31T15:47:25Z", - "updatedBy": "Anonymous", - "createdBy": "admin", - "version": 21, - "hasAcl": false, - "isFolder": false, - "folderId": 20, - "folderUid": "b7c2a563-48a3-426d-be2b-0f9fffbd8a85", - "folderTitle": "nuodb_client", - "folderUrl": "/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client", - "provisioned": false, - "provisionedExternalId": "client-msgs.json", - "annotationsPermissions": { - "dashboard": { - "canAdd": true, - "canEdit": true, - "canDelete": true - }, - "organization": { - "canAdd": true, - "canEdit": true, - "canDelete": true - } - }, - "publicDashboardAccessToken": "", - "publicDashboardUid": "", - "publicDashboardEnabled": false - }, - "dashboard": { - "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": 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": "marcusolsson-json-datasource", - "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "super-light-blue", - "mode": "fixed" - }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "color-text" - }, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "none" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "TypeGroup" - }, - "properties": [ - { - "id": "custom.width", - "value": 131 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "MsgType" - }, - "properties": [ - { - "id": "custom.width", - "value": 253 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Count" - }, - "properties": [ - { - "id": "custom.width", - "value": 118 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Duration" - }, - "properties": [ - { - "id": "unit", - "value": "µs" - } - ] - } - ] - }, - "gridPos": { - "h": 24, - "w": 12, - "x": 0, - "y": 0 - }, - "id": 10, - "maxPerRow": 2, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": [ - "sum" - ], - "show": true - }, - "frameIndex": 1, - "showHeader": true, - "sortBy": [] - }, - "pluginVersion": "10.0.3", - "repeat": "host", - "repeatDirection": "h", - "targets": [ - { - "body": "select TYPE,\"GROUP\",COUNT,DURATION from system.localclientmessages order by DURATION desc", - "cacheDurationSeconds": 0, - "datasource": { - "type": "marcusolsson-json-datasource", - "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" - }, - "fields": [ - { - "jsonPath": "$.rows[*][0]", - "name": "MsgType", - "type": "string" - }, - { - "jsonPath": "$.rows[*][1]", - "language": "jsonpath", - "name": "TypeGroup" - }, - { - "jsonPath": "$.rows[*][2]", - "language": "jsonpath", - "name": "Count" - }, - { - "jsonPath": "$.rows[*][3]", - "language": "jsonpath", - "name": "Duration" - } - ], - "method": "POST", - "params": [ - [ - "dbname", - "$database" - ], - [ - "hostname", - "$host" - ] - ], - "queryParams": "", - "refId": "A", - "urlPath": "/query" - } - ], - "title": "Client Messages ($host)", - "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 - } - ] - }, - "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": "Client Messages", - "uid": "z35SM6j4z", - "version": 21, - "weekStart": "" - } -} diff --git a/conf/provisioning/dashboards/nuodb_client/nuodb-sql-overview.json b/conf/provisioning/dashboards/nuodb_client/nuodb-sql-overview.json index 5c9e4a3..1fe2428 100644 --- a/conf/provisioning/dashboards/nuodb_client/nuodb-sql-overview.json +++ b/conf/provisioning/dashboards/nuodb_client/nuodb-sql-overview.json @@ -1,5597 +1,5556 @@ { - "meta": { - "type": "db", - "canSave": true, - "canEdit": true, - "canAdmin": true, - "canStar": true, - "canDelete": true, - "slug": "nuodb-sql-overview", - "url": "/d/cul4kM9Vz/nuodb-sql-overview", - "expires": "0001-01-01T00:00:00Z", - "created": "2023-06-28T15:11:31Z", - "updated": "2023-08-01T15:24:31Z", - "updatedBy": "admin", - "createdBy": "admin", - "version": 74, - "hasAcl": false, - "isFolder": false, - "folderId": 20, - "folderUid": "b7c2a563-48a3-426d-be2b-0f9fffbd8a85", - "folderTitle": "nuodb_client", - "folderUrl": "/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client", - "provisioned": false, - "provisionedExternalId": "sql-statements.json", - "annotationsPermissions": { - "dashboard": { - "canAdd": true, - "canEdit": true, - "canDelete": true - }, - "organization": { - "canAdd": true, - "canEdit": true, - "canDelete": true - } - }, - "publicDashboardAccessToken": "", - "publicDashboardUid": "", - "publicDashboardEnabled": false - }, - "dashboard": { - "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" - }, + "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" }, - { - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "enable": true, - "iconColor": "red", - "name": "db annotations", - "target": { - "limit": 100, - "matchAny": true, - "tags": [ - "$database" - ], - "type": "tags" - } - } - ] - }, - "editable": false, - "fiscalYearStartMonth": 0, - "graphTooltip": 1, - "id": 14, - "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" + "type": "dashboard" }, { - "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" + "type": "datasource", + "uid": "grafana" }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 49, - "panels": [ - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" + "enable": true, + "iconColor": "red", + "name": "db annotations", + "target": { + "limit": 100, + "matchAny": true, + "tags": [ + "$database" + ], + "type": "tags" + } + } + ] + }, + "editable": false, + "fiscalYearStartMonth": 0, + "graphTooltip": 1, + "id": 14, + "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 }, - "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" - } + "lineInterpolation": "stepBefore", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "log": 10, + "type": "log" }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" }, - "unit": "µs" + "thresholdsStyle": { + "mode": "off" + } }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 12, - "x": 0, - "y": 1 - }, - "hideTimeOverride": true, - "id": 50, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] }, - "tooltip": { - "mode": "multi", - "sort": "none" - } + "unit": "µs" }, - "targets": [ - { - "alias": "Full", - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "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" }, - "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": [ - "null" + "rate" ], - "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" + "type": "field" }, { - "condition": "AND", - "key": "db", - "operator": "=~", - "value": "/^$database$/" + "params": [], + "type": "sum" } ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "Empty", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" }, - { - "alias": "Empty", - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "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": [ - "null" + "rate" ], - "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" + "type": "field" }, { - "condition": "AND", - "key": "db", - "operator": "=~", - "value": "/^$database$/" + "params": [], + "type": "mean" } ] - } - ], - "timeShift": "10s", - "title": "Duration", - "type": "timeseries" + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + } + ], + "timeShift": "10s", + "title": "Duration", + "type": "timeseries" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" }, - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" + "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 }, - "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" - } + "lineInterpolation": "stepBefore", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "log": 10, + "type": "log" }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" }, - "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 + "thresholdsStyle": { + "mode": "off" + } }, - "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" - }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ { - "condition": "AND", - "key": "db", - "operator": "=~", - "value": "/^$database$/" + "color": "green" } ] }, - { - "alias": "Empty", - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "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" }, - "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": [ - "null" + "rate" ], - "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" + "type": "field" }, { - "condition": "AND", - "key": "db", - "operator": "=~", - "value": "/^$database$/" + "params": [], + "type": "sum" } ] - } - ], - "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": [ + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, { - "color": "green", - "value": null + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" } ] }, - "unit": "µs" - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 9, - "x": 0, - "y": 2 - }, - "hideTimeOverride": true, - "id": 45, - "links": [ - { - "title": "", - "url": "/d/z35SM6j4z/client-messages?${__all_variables}&${__url_time_range}" - } - ], - "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" + { + "alias": "Empty", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" }, - { - "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": [ - [ + "groupBy": [ { "params": [ - "rate" + "$__interval" ], - "type": "field" + "type": "time" }, - { - "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" + "null" ], - "type": "field" + "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" }, { - "params": [], - "type": "mean" + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" } ] - ], - "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" - }, + } + ], + "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": [ { - "condition": "AND", - "key": "db", - "operator": "=~", - "value": "/^$database$/" + "color": "green", + "value": null } ] }, - { - "alias": "ResultSet", - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "unit": "µs" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 9, + "x": 0, + "y": 2 + }, + "hideTimeOverride": true, + "id": 45, + "links": [ + { + "title": "", + "url": "/d/z35SM6j4z/client-messages?${__all_variables}&${__url_time_range}" + } + ], + "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" }, - "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": [ - "null" + "rate" ], - "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" + "type": "field" }, { - "condition": "AND", - "key": "db", - "operator": "=~", - "value": "/^$database$/" + "params": [], + "type": "sum" } ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "Prepare", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" }, - { - "alias": "Transaction", - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "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": [ - "null" + "rate" ], - "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" + "type": "field" }, { - "condition": "AND", - "key": "db", - "operator": "=~", - "value": "/^$database$/" + "params": [], + "type": "mean" } ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "PrepareAndExecute", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" }, - { - "alias": "Connection", - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "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": [ - "null" + "rate" ], - "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" + "type": "field" }, { - "condition": "AND", - "key": "db", - "operator": "=~", - "value": "/^$database$/" + "params": [], + "type": "mean" } ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "ResultSet", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" }, - { - "alias": "Database", - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "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": [ - "null" + "rate" ], - "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" + "type": "field" }, { - "condition": "AND", - "key": "db", - "operator": "=~", - "value": "/^$database$/" + "params": [], + "type": "mean" } ] - } - ], - "timeShift": "10s", - "title": "Duration", - "type": "timeseries" - }, - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - } + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" }, - "links": [ - { - "targetBlank": false, - "title": "Details", - "url": "/d/z35SM6j4z/client-messages" - } - ], - "mappings": [], - "unit": "µs" - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 3, - "x": 9, - "y": 2 - }, - "hideTimeOverride": true, - "id": 52, - "links": [ - { - "targetBlank": false, - "title": "", - "url": "/d/z35SM6j4z/client-messages?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "legend": { - "displayMode": "list", - "placement": "bottom", - "showLegend": false - }, - "pieType": "pie", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] }, - "targets": [ - { - "alias": "Execute", - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + { + "alias": "Transaction", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "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": [ - "null" + "rate" ], - "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" + "type": "field" }, { - "condition": "AND", - "key": "db", - "operator": "=~", - "value": "/^$database$/" + "params": [], + "type": "mean" } ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "Connection", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" }, - { - "alias": "Prepare", - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "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": [ - "null" + "rate" ], - "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" + "type": "field" }, { - "condition": "AND", - "key": "db", - "operator": "=~", - "value": "/^$database$/" + "params": [], + "type": "mean" } ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "Database", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" }, - { - "alias": "PrepareAndExecute", - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "groupBy": [ + { + "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": [ - "$__interval" + "rate" ], - "type": "time" + "type": "field" }, { - "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$/" + "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" }, - { - "alias": "ResultSet", - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "links": [ + { + "targetBlank": false, + "title": "Details", + "url": "/d/z35SM6j4z/client-messages" + } + ], + "mappings": [], + "unit": "µs" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 9, + "y": 2 + }, + "hideTimeOverride": true, + "id": 52, + "links": [ + { + "targetBlank": false, + "title": "", + "url": "/d/z35SM6j4z/client-messages?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "pieType": "pie", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "alias": "Execute", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "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": [ - "null" + "rate" ], - "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" + "type": "field" }, { - "condition": "AND", - "key": "db", - "operator": "=~", - "value": "/^$database$/" + "params": [], + "type": "sum" } ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "Prepare", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" }, - { - "alias": "Transaction", - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "groupBy": [ + { + "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": [ - "$__interval" + "rate" ], - "type": "time" + "type": "field" }, { - "params": [ - "null" - ], - "type": "fill" + "params": [], + "type": "mean" } - ], - "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": [ + ] + ], + "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": [ + [ { - "key": "nodetype", - "operator": "=", - "value": "Transaction" + "params": [ + "rate" + ], + "type": "field" }, { - "condition": "AND", - "key": "db", - "operator": "=~", - "value": "/^$database$/" + "params": [], + "type": "mean" } ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "ResultSet", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" }, - { - "alias": "Connection", - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "groupBy": [ + { + "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": [ - "$__interval" + "rate" ], - "type": "time" + "type": "field" }, { - "params": [ - "null" - ], - "type": "fill" + "params": [], + "type": "mean" } - ], - "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": [ + ] + ], + "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": [ + [ { - "key": "nodetype", - "operator": "=", - "value": "Transaction" + "params": [ + "rate" + ], + "type": "field" }, { - "condition": "AND", - "key": "db", - "operator": "=~", - "value": "/^$database$/" + "params": [], + "type": "mean" } ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "Connection", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" }, - { - "alias": "Database", - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "groupBy": [ + { + "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": [ - "$__interval" + "rate" ], - "type": "time" + "type": "field" }, { - "params": [ - "null" - ], - "type": "fill" + "params": [], + "type": "mean" } - ], - "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": [ + ] + ], + "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": [ + [ { - "key": "nodetype", - "operator": "=", - "value": "Transaction" + "params": [ + "rate" + ], + "type": "field" }, { - "condition": "AND", - "key": "db", - "operator": "=~", - "value": "/^$database$/" + "params": [], + "type": "mean" } ] - } - ], - "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 - } + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" }, - "links": [], - "mappings": [], - "unit": "none" + { + "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 + } }, - "overrides": [] + "links": [], + "mappings": [], + "unit": "none" }, - "gridPos": { - "h": 5, - "w": 3, - "x": 12, - "y": 2 + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 12, + "y": 2 + }, + "hideTimeOverride": true, + "id": 54, + "links": [ + { + "title": "Details", + "url": "/d/z35SM6j4z/client-messages?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": false }, - "hideTimeOverride": true, - "id": 54, - "links": [ - { - "title": "Details", - "url": "/d/z35SM6j4z/client-messages?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "legend": { - "displayMode": "list", - "placement": "bottom", - "showLegend": false - }, - "pieType": "pie", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } + "pieType": "pie", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false }, - "targets": [ - { - "alias": "Execute", - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "alias": "Execute", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "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": [ - "null" + "rate" ], - "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" + "type": "field" }, { - "condition": "AND", - "key": "db", - "operator": "=~", - "value": "/^$database$/" + "params": [], + "type": "sum" } ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "Prepare", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" }, - { - "alias": "Prepare", - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "groupBy": [ + { + "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": [ - "$__interval" + "rate" ], - "type": "time" + "type": "field" }, { - "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$/" + "params": [], + "type": "mean" } ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "PrepareAndExecute", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" }, - { - "alias": "PrepareAndExecute", - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "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": [ - "null" + "rate" ], - "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" + "type": "field" }, { - "condition": "AND", - "key": "db", - "operator": "=~", - "value": "/^$database$/" + "params": [], + "type": "mean" } ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "ResultSet", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" }, - { - "alias": "ResultSet", - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "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": [ - "null" + "rate" ], - "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" + "type": "field" }, { - "condition": "AND", - "key": "db", - "operator": "=~", - "value": "/^$database$/" + "params": [], + "type": "mean" } ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "Transaction", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" }, - { - "alias": "Transaction", - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "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": [ - "null" + "rate" ], - "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" + "type": "field" }, { - "condition": "AND", - "key": "db", - "operator": "=~", - "value": "/^$database$/" + "params": [], + "type": "mean" } ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "Connection", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" }, - { - "alias": "Connection", - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "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": [ - "null" + "rate" ], - "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" + "type": "field" }, { - "condition": "AND", - "key": "db", - "operator": "=~", - "value": "/^$database$/" + "params": [], + "type": "mean" } ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "Database", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" }, - { - "alias": "Database", - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "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": [ - "null" + "rate" ], - "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" + "type": "field" }, { - "condition": "AND", - "key": "db", - "operator": "=~", - "value": "/^$database$/" + "params": [], + "type": "mean" } ] - } - ], - "timeShift": "10s", - "title": "Counts", - "type": "piechart" - }, - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" }, - "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" + { + "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 } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "none" + ] }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 9, - "x": 15, - "y": 2 + "unit": "none" }, - "hideTimeOverride": true, - "id": 44, - "links": [ - { - "title": "Details", - "url": "/d/z35SM6j4z/client-messages?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 9, + "x": 15, + "y": 2 + }, + "hideTimeOverride": true, + "id": 44, + "links": [ + { + "title": "Details", + "url": "/d/z35SM6j4z/client-messages?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true }, - "targets": [ - { - "alias": "Execute", - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "alias": "Execute", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "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": [ - "null" + "rate" ], - "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" + "type": "field" }, { - "condition": "AND", - "key": "db", - "operator": "=~", - "value": "/^$database$/" + "params": [], + "type": "sum" } ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "Prepare", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" }, - { - "alias": "Prepare", - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "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": [ - "null" + "rate" ], - "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" + "type": "field" }, { - "condition": "AND", - "key": "db", - "operator": "=~", - "value": "/^$database$/" + "params": [], + "type": "mean" } ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "PrepareAndExecute", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" }, - { - "alias": "PrepareAndExecute", - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "groupBy": [ + { + "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": [ - "$__interval" + "rate" ], - "type": "time" + "type": "field" }, { - "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$/" + "params": [], + "type": "mean" } ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "ResultSet", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" }, - { - "alias": "ResultSet", - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "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": [ - "null" + "rate" ], - "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" + "type": "field" }, { - "condition": "AND", - "key": "db", - "operator": "=~", - "value": "/^$database$/" + "params": [], + "type": "mean" } ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "Transaction", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" }, - { - "alias": "Transaction", - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "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": [ - "null" + "rate" ], - "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" + "type": "field" }, { - "condition": "AND", - "key": "db", - "operator": "=~", - "value": "/^$database$/" + "params": [], + "type": "mean" } ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "Connection", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" }, - { - "alias": "Connection", - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "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": [ - "null" + "rate" ], - "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" + "type": "field" }, { - "condition": "AND", - "key": "db", - "operator": "=~", - "value": "/^$database$/" + "params": [], + "type": "mean" } ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" + } + ] + }, + { + "alias": "Database", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" }, - { - "alias": "Database", - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "groupBy": [ + { + "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": [ - "$__interval" + "rate" ], - "type": "time" + "type": "field" }, { - "params": [ - "null" - ], - "type": "fill" + "params": [], + "type": "mean" } - ], - "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" - }, + ] + ], + "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": "Platform", + "type": "row" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ { - "condition": "AND", - "key": "db", - "operator": "=~", - "value": "/^$database$/" + "color": "super-light-blue", + "value": null } ] - } - ], - "timeShift": "10s", - "title": "Counts", - "type": "timeseries" - }, - { - "collapsed": false, - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 7 + }, + "unit": "µs" }, - "id": 31, - "panels": [], - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "refId": "A" - } - ], - "title": "Platform", - "type": "row" + "overrides": [] }, - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "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": [ + "lastNotNull" + ], + "fields": "", + "values": false }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "super-light-blue", - "value": null - } - ] - }, - "unit": "µs" + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" }, - "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": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "10.0.3", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "groupBy": [ + { + "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": [ - "$__interval" + "rate" ], - "type": "time" + "type": "field" }, { - "params": [ - "null" - ], - "type": "fill" + "params": [], + "type": "mean" } - ], - "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": [ + ] + ], + "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": [ { - "key": "nodetype", - "operator": "=", - "value": "Transaction" + "color": "super-light-blue", + "value": null } ] - } - ], - "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 + "unit": "µs" }, - "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": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" + "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": [ + "lastNotNull" + ], + "fields": "", + "values": false }, - "pluginVersion": "10.0.3", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "groupBy": [ + { + "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": [ - "$__interval" + "rate" ], - "type": "time" + "type": "field" }, { - "params": [ - "null" - ], - "type": "fill" + "params": [], + "type": "mean" } - ], - "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": [ + ] + ], + "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": [ { - "key": "nodetype", - "operator": "=", - "value": "Transaction" + "color": "light-blue", + "value": null } ] - } - ], - "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 - } - ] - }, - "unit": "s" }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 6, - "y": 8 + "unit": "s" }, - "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": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 6, + "y": 8 + }, + "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": [ + "lastNotNull" + ], + "fields": "", + "values": false }, - "pluginVersion": "10.0.3", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "groupBy": [ + { + "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": [ - "$__interval" + "value" ], - "type": "time" + "type": "field" }, { - "params": [ - "null" - ], - "type": "fill" + "params": [], + "type": "mean" } - ], - "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": [ + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + } + ], + "title": "Idle Time", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ { - "key": "nodetype", - "operator": "=", - "value": "Transaction" + "color": "light-blue", + "value": null } ] - } - ], - "title": "Idle Time", - "type": "stat" - }, - { - "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": 4, - "w": 3, - "x": 9, - "y": 8 + "unit": "s" }, - "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": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 9, + "y": 8 + }, + "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": [ + "lastNotNull" + ], + "fields": "", + "values": false }, - "pluginVersion": "10.0.3", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "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": [ - "null" + "value" ], - "type": "fill" - } - ], - "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$/" + "type": "field" }, { - "condition": "AND", - "key": "host", - "operator": "=~", - "value": "/^$host$/" + "params": [], + "type": "mean" } ] - } - ], - "timeShift": "10s", - "title": "Proc Time", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "semi-dark-yellow", - "mode": "fixed" + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "light-blue", - "value": null - } - ] + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" }, - "unit": "none" + { + "condition": "AND", + "key": "host", + "operator": "=~", + "value": "/^$host$/" + } + ] + } + ], + "timeShift": "10s", + "title": "Proc Time", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "semi-dark-yellow", + "mode": "fixed" }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 12, - "y": 8 + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "light-blue", + "value": null + } + ] + }, + "unit": "none" }, - "hideTimeOverride": true, - "id": 46, - "links": [ - { - "title": "SQL Dashboard", - "url": "/d/J9fZNkr4z/sql?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 12, + "y": 8 + }, + "hideTimeOverride": true, + "id": 46, + "links": [ + { + "title": "SQL Dashboard", + "url": "/d/J9fZNkr4z/sql?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false }, - "pluginVersion": "10.0.3", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "SqlListenerSqlProcTime", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT SUM(R) FROM (SELECT mean(\"rate\") AS R FROM \"Commits\" 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": [ - "null" + "value" ], - "type": "fill" - } - ], - "measurement": "SqlListenerSqlProcTime", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(R) FROM (SELECT mean(\"rate\") AS R FROM \"Commits\" 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$/" + "type": "field" }, { - "condition": "AND", - "key": "host", - "operator": "=~", - "value": "/^$host$/" + "params": [], + "type": "mean" } ] - } - ], - "timeShift": "10s", - "title": "Commits", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "light-blue", - "value": null - } - ] + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" }, - "unit": "none" + { + "condition": "AND", + "key": "host", + "operator": "=~", + "value": "/^$host$/" + } + ] + } + ], + "timeShift": "10s", + "title": "Commits", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 15, - "y": 8 + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "light-blue", + "value": null + } + ] + }, + "unit": "none" }, - "hideTimeOverride": true, - "id": 33, - "links": [ - { - "title": "SQL Dashboard", - "url": "/d/J9fZNkr4z/sql?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 15, + "y": 8 + }, + "hideTimeOverride": true, + "id": 33, + "links": [ + { + "title": "SQL Dashboard", + "url": "/d/J9fZNkr4z/sql?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false }, - "pluginVersion": "10.0.3", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "groupBy": [ + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "Inserts", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"Inserts\" 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": [ - "$__interval" + "rate" ], - "type": "time" + "type": "field" }, { - "params": [ - "null" - ], - "type": "fill" + "params": [], + "type": "mean" } - ], - "measurement": "Inserts", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"Inserts\" 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": [ + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + } + ], + "timeShift": "10s", + "title": "Inserts", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ { - "key": "nodetype", - "operator": "=", - "value": "Transaction" + "color": "light-blue", + "value": null } ] - } - ], - "timeShift": "10s", - "title": "Inserts", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "light-blue", - "value": null - } - ] - }, - "unit": "none" }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 18, - "y": 8 + "unit": "none" }, - "hideTimeOverride": true, - "id": 35, - "links": [ - { - "title": "SQL Dashboard", - "url": "/d/J9fZNkr4z/sql?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 18, + "y": 8 + }, + "hideTimeOverride": true, + "id": 35, + "links": [ + { + "title": "SQL Dashboard", + "url": "/d/J9fZNkr4z/sql?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false }, - "pluginVersion": "10.0.3", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "groupBy": [ + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "Updates", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"Updates\" 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": [ - "$__interval" + "rate" ], - "type": "time" + "type": "field" }, { - "params": [ - "null" - ], - "type": "fill" + "params": [], + "type": "mean" } - ], - "measurement": "Updates", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"Updates\" 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": [ + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + } + ], + "timeShift": "10s", + "title": "Updates", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ { - "key": "nodetype", - "operator": "=", - "value": "Transaction" + "color": "light-blue", + "value": null } ] - } - ], - "timeShift": "10s", - "title": "Updates", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "light-blue", - "value": null - } - ] - }, - "unit": "none" }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 21, - "y": 8 + "unit": "none" }, - "hideTimeOverride": true, - "id": 34, - "links": [ - { - "title": "SQL Dashboard", - "url": "/d/J9fZNkr4z/sql?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 21, + "y": 8 + }, + "hideTimeOverride": true, + "id": 34, + "links": [ + { + "title": "SQL Dashboard", + "url": "/d/J9fZNkr4z/sql?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false }, - "pluginVersion": "10.0.3", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "groupBy": [ + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "Deletes", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"Deletes\" 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": [ - "$__interval" + "rate" ], - "type": "time" + "type": "field" }, { - "params": [ - "null" - ], - "type": "fill" + "params": [], + "type": "mean" } - ], - "measurement": "Deletes", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"Deletes\" 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": [ + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + } + ], + "timeShift": "10s", + "title": "Deletes", + "type": "stat" + }, + { + "collapsed": false, + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 12 + }, + "id": 23, + "panels": [], + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "refId": "A" + } + ], + "title": "Rows", + "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" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ { - "key": "nodetype", - "operator": "=", - "value": "Transaction" + "color": "light-blue", + "value": null } ] } - ], - "timeShift": "10s", - "title": "Deletes", - "type": "stat" - }, - { - "collapsed": false, - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 12 - }, - "id": 23, - "panels": [], - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "refId": "A" - } - ], - "title": "Rows", - "type": "row" + "overrides": [] }, - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "gridPos": { + "h": 4, + "w": 6, + "x": 0, + "y": 13 + }, + "hideTimeOverride": true, + "id": 2, + "links": [ + { + "title": "Details by Statement", + "url": "/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true }, - "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": "light-blue", - "value": null - } - ] - } + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "8.3.0", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 6, - "x": 0, - "y": 13 - }, - "hideTimeOverride": true, - "id": 2, - "links": [ - { - "title": "Details by Statement", - "url": "/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.3.0", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "groupBy": [ + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "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": [ - "$__interval" + "rate" ], - "type": "time" + "type": "field" }, { - "params": [ - "null" - ], - "type": "fill" + "params": [], + "type": "mean" } - ], - "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": [ + ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + } + ], + "timeShift": "10s", + "title": "Statements Executed", + "type": "timeseries" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ { - "key": "nodetype", - "operator": "=", - "value": "Transaction" + "color": "light-blue", + "value": null } ] } - ], - "timeShift": "10s", - "title": "Statements Executed", - "type": "timeseries" + }, + "overrides": [] }, - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "gridPos": { + "h": 4, + "w": 3, + "x": 6, + "y": 13 + }, + "hideTimeOverride": true, + "id": 38, + "links": [ + { + "title": "Details by Statement", + "url": "/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "light-blue", - "value": null - } - ] - } + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 6, - "y": 13 - }, - "hideTimeOverride": true, - "id": 38, - "links": [ - { - "title": "Details by Statement", - "url": "/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "10.0.3", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "groupBy": [ + { + "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": [ - "$__interval" + "rate" ], - "type": "time" + "type": "field" }, { - "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" + "params": [], + "type": "mean" } ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + }, + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" }, - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "groupBy": [ + { + "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": [ - "$__interval" + "rate" ], - "type": "time" + "type": "field" }, { - "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" + "params": [], + "type": "mean" } ] - } - ], - "timeShift": "10s", - "title": "Statements Executed", - "type": "stat" + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + } + ], + "timeShift": "10s", + "title": "Statements Executed", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" }, - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - } - }, - "mappings": [] + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } }, - "overrides": [] + "mappings": [] }, - "gridPos": { - "h": 4, - "w": 3, - "x": 9, - "y": 13 + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 9, + "y": 13 + }, + "hideTimeOverride": true, + "id": 29, + "links": [ + { + "title": "Details by Statement", + "url": "/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": false }, - "hideTimeOverride": true, - "id": 29, - "links": [ - { - "title": "Details by Statement", - "url": "/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "legend": { - "displayMode": "list", - "placement": "bottom", - "showLegend": false - }, - "pieType": "pie", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } + "pieType": "pie", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false }, - "pluginVersion": "8.3.0", - "repeatDirection": "h", - "targets": [ - { - "alias": "Selects", - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.3.0", + "repeatDirection": "h", + "targets": [ + { + "alias": "Selects", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "groupBy": [ + { + "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": [ - "$__interval" + "rate" ], - "type": "time" + "type": "field" }, { - "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" + "params": [], + "type": "mean" } ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + }, + { + "alias": "Inserts", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" }, - { - "alias": "Inserts", - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "groupBy": [ + { + "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": [ - "$__interval" + "rate" ], - "type": "time" + "type": "field" }, { - "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" + "params": [], + "type": "mean" } ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + }, + { + "alias": "Updates", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" }, - { - "alias": "Updates", - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "groupBy": [ + { + "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": [ - "$__interval" + "rate" ], - "type": "time" + "type": "field" }, { - "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" + "params": [], + "type": "mean" } ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + }, + { + "alias": "Replace", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" }, - { - "alias": "Replace", - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "groupBy": [ + { + "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": [ - "$__interval" + "rate" ], - "type": "time" + "type": "field" }, { - "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" + "params": [], + "type": "mean" } ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + }, + { + "alias": "Deletes", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" }, - { - "alias": "Deletes", - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "groupBy": [ + { + "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": [ - "$__interval" + "rate" ], - "type": "time" + "type": "field" }, { - "params": [ - "null" - ], - "type": "fill" + "params": [], + "type": "mean" } - ], - "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": [ + ] + ], + "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": [ { - "key": "nodetype", - "operator": "=", - "value": "Transaction" + "color": "green", + "value": null } ] } - ], - "timeShift": "10s", - "title": "SQL", - "type": "piechart" + }, + "overrides": [] }, - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "gridPos": { + "h": 4, + "w": 12, + "x": 12, + "y": 13 + }, + "hideTimeOverride": true, + "id": 37, + "links": [ + { + "title": "Details by Statement ", + "url": "/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "displayMode": "basic", + "minVizHeight": 10, + "minVizWidth": 0, + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - } + "showUnfilled": false, + "valueMode": "color" + }, + "pluginVersion": "10.0.3", + "repeatDirection": "h", + "targets": [ + { + "alias": "Selects", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 12, - "x": 12, - "y": 13 - }, - "hideTimeOverride": true, - "id": 37, - "links": [ - { - "title": "Details by Statement ", - "url": "/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "displayMode": "basic", - "minVizHeight": 10, - "minVizWidth": 0, - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showUnfilled": false, - "valueMode": "color" - }, - "pluginVersion": "10.0.3", - "repeatDirection": "h", - "targets": [ - { - "alias": "Selects", - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "groupBy": [ + { + "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": [ - "$__interval" + "rate" ], - "type": "time" + "type": "field" }, { - "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" + "params": [], + "type": "mean" } ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + }, + { + "alias": "Inserts", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" }, - { - "alias": "Inserts", - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "groupBy": [ + { + "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": [ - "$__interval" + "rate" ], - "type": "time" + "type": "field" }, { - "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" + "params": [], + "type": "mean" } ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + }, + { + "alias": "Updates", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" }, - { - "alias": "Updates", - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "groupBy": [ + { + "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": [ - "$__interval" + "rate" ], - "type": "time" + "type": "field" }, { - "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" + "params": [], + "type": "mean" } ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + }, + { + "alias": "Replace", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" }, - { - "alias": "Replace", - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "groupBy": [ + { + "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": [ - "$__interval" + "rate" ], - "type": "time" + "type": "field" }, { - "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" + "params": [], + "type": "mean" } ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + }, + { + "alias": "Deletes", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" }, - { - "alias": "Deletes", - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "groupBy": [ + { + "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": [ - "$__interval" + "rate" ], - "type": "time" + "type": "field" }, { - "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" + "params": [], + "type": "mean" } ] - } - ], - "timeShift": "10s", - "title": "SQL Rows by Operation", - "type": "bargauge" - }, - { - "collapsed": false, - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 17 - }, - "id": 17, - "panels": [], - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "refId": "A" - } - ], - "title": "Indexes", - "type": "row" - }, - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" } + ] + } + ], + "timeShift": "10s", + "title": "SQL Rows by Operation", + "type": "bargauge" + }, + { + "collapsed": false, + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 17 + }, + "id": 17, + "panels": [], + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 4, - "x": 0, - "y": 18 - }, - "hideTimeOverride": true, - "id": 10, - "links": [ - { - "title": "Details by Statement", - "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}&${__url_time_range}" + "refId": "A" + } + ], + "title": "Indexes", + "type": "row" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" }, - "pluginVersion": "10.0.3", - "repeatDirection": "h", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 4, + "x": 0, + "y": 18 + }, + "hideTimeOverride": true, + "id": 10, + "links": [ + { + "title": "Details by Statement", + "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "repeatDirection": "h", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "groupBy": [ + { + "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": [ - "$__interval" + "rate" ], - "type": "time" + "type": "field" }, { - "params": [ - "null" - ], - "type": "fill" + "params": [], + "type": "mean" } - ], - "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": [ + ] + ], + "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": [ { - "key": "nodetype", - "operator": "=", - "value": "Transaction" + "color": "light-red", + "value": null } ] } - ], - "timeShift": "10s", - "title": "Index Hits", - "type": "stat" + }, + "overrides": [] }, - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "gridPos": { + "h": 4, + "w": 4, + "x": 4, + "y": 18 + }, + "hideTimeOverride": true, + "id": 12, + "links": [ + { + "title": "Details by Statement", + "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "light-red", - "value": null - } - ] - } + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "repeatDirection": "h", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 4, - "x": 4, - "y": 18 - }, - "hideTimeOverride": true, - "id": 12, - "links": [ - { - "title": "Details by Statement", - "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "10.0.3", - "repeatDirection": "h", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "groupBy": [ + { + "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": [ - "$__interval" + "rate" ], - "type": "time" + "type": "field" }, { - "params": [ - "null" - ], - "type": "fill" + "params": [], + "type": "mean" } - ], - "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": [ + ] + ], + "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": [ { - "key": "nodetype", - "operator": "=", - "value": "Transaction" + "color": "green", + "value": null } ] } - ], - "timeShift": "10s", - "title": "Rejected Index Hits", - "type": "stat" + }, + "overrides": [] }, - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "gridPos": { + "h": 4, + "w": 4, + "x": 8, + "y": 18 + }, + "hideTimeOverride": true, + "id": 15, + "links": [ + { + "title": "Details by Statement", + "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - } + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "repeatDirection": "h", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 4, - "x": 8, - "y": 18 - }, - "hideTimeOverride": true, - "id": 15, - "links": [ - { - "title": "Details by Statement", - "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "10.0.3", - "repeatDirection": "h", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "groupBy": [ + { + "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": [ - "$__interval" + "rate" ], - "type": "time" + "type": "field" }, { - "params": [ - "null" - ], - "type": "fill" + "params": [], + "type": "mean" } - ], - "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": [ + ] + ], + "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": [ { - "key": "nodetype", - "operator": "=", - "value": "Transaction" + "color": "light-red", + "value": null } ] } - ], - "timeShift": "10s", - "title": "IndexScan Fetches", - "type": "stat" + }, + "overrides": [] }, - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "gridPos": { + "h": 4, + "w": 4, + "x": 12, + "y": 18 + }, + "hideTimeOverride": true, + "id": 13, + "links": [ + { + "title": "Details by Statement", + "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "light-red", - "value": null - } - ] - } + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "repeatDirection": "h", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 4, - "x": 12, - "y": 18 - }, - "hideTimeOverride": true, - "id": 13, - "links": [ - { - "title": "Details by Statement", - "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "10.0.3", - "repeatDirection": "h", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "groupBy": [ + { + "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": [ - "$__interval" + "rate" ], - "type": "time" + "type": "field" }, { - "params": [ - "null" - ], - "type": "fill" + "params": [], + "type": "mean" } - ], - "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": [ + ] + ], + "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": [ { - "key": "nodetype", - "operator": "=", - "value": "Transaction" + "color": "green", + "value": null } ] } - ], - "timeShift": "10s", - "title": "TableScan Fetches", - "type": "stat" + }, + "overrides": [] }, - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "gridPos": { + "h": 4, + "w": 4, + "x": 16, + "y": 18 + }, + "hideTimeOverride": true, + "id": 11, + "links": [ + { + "title": "Details by Statement", + "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "repeatDirection": "h", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] + { + "params": [ + "null" + ], + "type": "fill" } - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 4, - "x": 16, - "y": 18 - }, - "hideTimeOverride": true, - "id": 11, - "links": [ - { - "title": "Details by Statement", - "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "10.0.3", - "repeatDirection": "h", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "groupBy": [ + ], + "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": [ - "$__interval" + "rate" ], - "type": "time" + "type": "field" }, { - "params": [ - "null" - ], - "type": "fill" + "params": [], + "type": "mean" } - ], - "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": [ + ] + ], + "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": [ { - "key": "nodetype", - "operator": "=", - "value": "Transaction" + "color": "light-red", + "value": null } ] } - ], - "timeShift": "10s", - "title": "# IndexScans", - "type": "stat" + }, + "overrides": [] }, - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "gridPos": { + "h": 4, + "w": 4, + "x": 20, + "y": 18 + }, + "hideTimeOverride": true, + "id": 14, + "links": [ + { + "title": "Details by Statement", + "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "light-red", - "value": null - } - ] - } + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "repeatDirection": "h", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 4, - "x": 20, - "y": 18 - }, - "hideTimeOverride": true, - "id": 14, - "links": [ - { - "title": "Details by Statement", - "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "10.0.3", - "repeatDirection": "h", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "groupBy": [ + { + "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": [ - "$__interval" + "rate" ], - "type": "time" + "type": "field" }, { - "params": [ - "null" - ], - "type": "fill" + "params": [], + "type": "mean" } - ], - "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": [ + ] + ], + "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": 22 + }, + "id": 4, + "panels": [], + "repeat": "SQLStatementStats", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "refId": "A" + } + ], + "title": "Records", + "type": "row" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ { - "key": "nodetype", - "operator": "=", - "value": "Transaction" + "color": "green", + "value": null } ] } - ], - "timeShift": "10s", - "title": "# TableScans", - "type": "stat" - }, - { - "collapsed": false, - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 22 }, - "id": 4, - "panels": [], - "repeat": "SQLStatementStats", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "refId": "A" - } - ], - "title": "Records", - "type": "row" + "overrides": [] }, - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "gridPos": { + "h": 4, + "w": 6, + "x": 0, + "y": 23 + }, + "hideTimeOverride": true, + "id": 20, + "links": [ + { + "title": "Details by Statement", + "url": "/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - } + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 6, - "x": 0, - "y": 23 - }, - "hideTimeOverride": true, - "id": 20, - "links": [ - { - "title": "Details by Statement", - "url": "/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "10.0.3", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "groupBy": [ + { + "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": [ - "$__interval" + "rate" ], - "type": "time" + "type": "field" }, { - "params": [ - "null" - ], - "type": "fill" + "params": [], + "type": "mean" } - ], - "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": [ + ] + ], + "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": [ { - "key": "nodetype", - "operator": "=", - "value": "Transaction" + "color": "green", + "value": null } ] } - ], - "timeShift": "10s", - "title": "Records Fetched", - "type": "stat" + }, + "overrides": [] }, - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "gridPos": { + "h": 4, + "w": 6, + "x": 6, + "y": 23 + }, + "hideTimeOverride": true, + "id": 18, + "links": [ + { + "title": "Details by Statement", + "url": "/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - } + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 6, - "x": 6, - "y": 23 - }, - "hideTimeOverride": true, - "id": 18, - "links": [ - { - "title": "Details by Statement", - "url": "/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "10.0.3", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "groupBy": [ + { + "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": [ - "$__interval" + "rate" ], - "type": "time" + "type": "field" }, { - "params": [ - "null" - ], - "type": "fill" + "params": [], + "type": "mean" } - ], - "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": [ + ] + ], + "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": [ { - "key": "nodetype", - "operator": "=", - "value": "Transaction" + "color": "green", + "value": null } ] } - ], - "timeShift": "10s", - "title": "Records Locked", - "type": "stat" + }, + "overrides": [] }, - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "gridPos": { + "h": 4, + "w": 6, + "x": 12, + "y": 23 + }, + "hideTimeOverride": true, + "id": 21, + "links": [ + { + "title": "Details by Statement", + "url": "/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - } + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 6, - "x": 12, - "y": 23 - }, - "hideTimeOverride": true, - "id": 21, - "links": [ - { - "title": "Details by Statement", - "url": "/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "10.0.3", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "groupBy": [ + { + "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": [ - "$__interval" + "rate" ], - "type": "time" + "type": "field" }, { - "params": [ - "null" - ], - "type": "fill" + "params": [], + "type": "mean" } - ], - "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": [ + ] + ], + "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": [ { - "key": "nodetype", - "operator": "=", - "value": "Transaction" + "color": "green", + "value": null } ] } - ], - "timeShift": "10s", - "title": "Records Sorted", - "type": "stat" + }, + "overrides": [] }, - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "gridPos": { + "h": 4, + "w": 6, + "x": 18, + "y": 23 + }, + "hideTimeOverride": true, + "id": 36, + "links": [ + { + "title": "Details by Statement", + "url": "/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}&${__url_time_range}" + } + ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - } + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 6, - "x": 18, - "y": 23 - }, - "hideTimeOverride": true, - "id": 36, - "links": [ - { - "title": "Details by Statement", - "url": "/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "10.0.3", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "groupBy": [ + { + "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": [ - "$__interval" + "rate" ], - "type": "time" + "type": "field" }, { - "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" + "params": [], + "type": "mean" } ] - } - ], - "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": { + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + } + ], + "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": 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" }, - "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" + "text": "30s", + "value": "30s" }, - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + { + "selected": false, + "text": "1m", + "value": "1m" }, - "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": true, - "text": [ - "All" - ], - "value": [ - "$__all" - ] + { + "selected": false, + "text": "5m", + "value": "5m" }, - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + { + "selected": false, + "text": "10m", + "value": "10m" }, - "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": 74, - "weekStart": "" - } + { + "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": true, + "text": [ + "All" + ], + "value": [ + "$__all" + ] + }, + "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": 74, + "weekStart": "" } diff --git a/conf/provisioning/dashboards/nuodb_client/nuodb-sql-statements.json b/conf/provisioning/dashboards/nuodb_client/nuodb-sql-statements.json index 6e94550..7550ede 100644 --- a/conf/provisioning/dashboards/nuodb_client/nuodb-sql-statements.json +++ b/conf/provisioning/dashboards/nuodb_client/nuodb-sql-statements.json @@ -1,5773 +1,5732 @@ { - "meta": { - "type": "db", - "canSave": true, - "canEdit": true, - "canAdmin": true, - "canStar": true, - "canDelete": true, - "slug": "nuodb-sql-statements", - "url": "/d/df0d2b01-89ff-4108-bace-32f436204209/nuodb-sql-statements", - "expires": "0001-01-01T00:00:00Z", - "created": "2023-07-30T18:45:18Z", - "updated": "2023-08-01T03:00:41Z", - "updatedBy": "admin", - "createdBy": "admin", - "version": 56, - "hasAcl": false, - "isFolder": false, - "folderId": 20, - "folderUid": "b7c2a563-48a3-426d-be2b-0f9fffbd8a85", - "folderTitle": "nuodb_client", - "folderUrl": "/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client", - "provisioned": false, - "provisionedExternalId": "", - "annotationsPermissions": { - "dashboard": { - "canAdd": true, - "canEdit": true, - "canDelete": true - }, - "organization": { - "canAdd": true, - "canEdit": true, - "canDelete": true - } - }, - "publicDashboardAccessToken": "", - "publicDashboardUid": "", - "publicDashboardEnabled": false - }, - "dashboard": { - "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": 35, - "links": [ + "annotations": { + "list": [ { - "asDropdown": true, - "icon": "external link", - "includeVars": true, - "keepTime": true, - "tags": [ - "overview" - ], - "title": "top views", - "type": "dashboards" + "$$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" }, { - "asDropdown": true, - "icon": "external link", - "includeVars": true, - "keepTime": true, + "$$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": [ - "nuodb" + "$database" ], - "title": "nuodb", - "type": "dashboards" + "type": "tags" } - ], - "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" + ] + }, + "description": "NuoDB Summary", + "editable": false, + "fiscalYearStartMonth": 0, + "graphTooltip": 1, + "id": 35, + "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 + } }, - "overrides": [ + "links": [ { - "matcher": { - "id": "byName", - "options": "id" - }, - "properties": [ - { - "id": "unit", - "value": "string" - } - ] + "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}" } - ] - }, - "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" - } + ], + "mappings": [], + "unit": "none" }, - "pluginVersion": "10.0.3", - "targets": [ + "overrides": [ { - "alias": "$tag_id", - "datasource": { - "type": "influxdb", - "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + "matcher": { + "id": "byName", + "options": "id" }, - "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": [ + "properties": [ { - "key": "host::tag", - "operator": "=~", - "value": "/^$host$/" + "id": "unit", + "value": "string" } ] } - ], - "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" + "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" }, - "custom": { - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - } + { + "params": [ + "id::tag" + ], + "type": "tag" }, - "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" - } - ] + "params": [ + "null" + ], + "type": "fill" } - ] - }, - "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": [ + ], + "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": [ - "$__interval" + "numexecutes" ], - "type": "time" + "type": "field" }, { - "params": [ - "id::tag" - ], - "type": "tag" + "params": [], + "type": "sum" }, { "params": [ - "null" + " / 30" ], - "type": "fill" + "type": "math" } - ], - "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": [ + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + } + ] + } + ], + "title": "Executes", + "transformations": [ + { + "id": "convertFieldType", + "options": { + "conversions": [ { - "key": "host::tag", - "operator": "=~", - "value": "/^$host$/" + "destinationType": "string", + "targetField": "id" } - ] + ], + "fields": {} } - ], - "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 } }, - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true - }, - "indexByName": {}, - "renameByName": {} + "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}" } - } - ], - "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 - } + ], + "mappings": [], + "unit": "µs" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "id" }, - "links": [ + "properties": [ { - "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}" + "id": "unit", + "value": "string" } - ], - "mappings": [], - "unit": "µs" + ] + } + ] + }, + "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" }, - "overrides": [ + "groupBy": [ { - "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" + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "id::tag" + ], + "type": "tag" }, - "groupBy": [ + { + "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": [ - "$__interval" + "numexecutes" ], - "type": "time" + "type": "field" }, { - "params": [ - "id::tag" - ], - "type": "tag" + "params": [], + "type": "sum" }, { "params": [ - "null" + " / 30" ], - "type": "fill" + "type": "math" } - ], - "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": [ + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + } + ] + } + ], + "title": "Execute Time", + "transformations": [ + { + "id": "convertFieldType", + "options": { + "conversions": [ { - "key": "host::tag", - "operator": "=~", - "value": "/^$host$/" + "destinationType": "string", + "targetField": "id" } - ] + ], + "fields": {} } - ], - "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 } }, - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true - }, - "indexByName": {}, - "renameByName": {} + "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}" } - } - ], - "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 - } + ], + "mappings": [], + "unit": "µs" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "id" }, - "links": [ + "properties": [ { - "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}" + "id": "unit", + "value": "string" } - ], - "mappings": [], - "unit": "none" + ] + } + ] + }, + "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" }, - "overrides": [ + "groupBy": [ { - "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" + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "id::tag" + ], + "type": "tag" }, - "groupBy": [ + { + "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": [ - "$__interval" + "numexecutes" ], - "type": "time" + "type": "field" }, { - "params": [ - "id::tag" - ], - "type": "tag" + "params": [], + "type": "sum" }, { "params": [ - "null" + " / 30" ], - "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$/" + "type": "math" } ] - } - ], - "title": "Selects", - "transformations": [ - { - "id": "convertFieldType", - "options": { - "conversions": [ - { - "destinationType": "string", - "targetField": "id" - } - ], - "fields": {} - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true - }, - "indexByName": {}, - "renameByName": {} + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" } + ] + } + ], + "title": "Compile Time", + "transformations": [ + { + "id": "convertFieldType", + "options": { + "conversions": [ + { + "destinationType": "string", + "targetField": "id" + } + ], + "fields": {} } - ], - "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 - } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true }, - "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" + "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 + } }, - "overrides": [ + "links": [ { - "matcher": { - "id": "byName", - "options": "id" - }, - "properties": [ - { - "id": "unit", - "value": "string" - } - ] + "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}" } - ] - }, - "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" - } + ], + "mappings": [], + "unit": "none" }, - "pluginVersion": "10.0.3", - "targets": [ + "overrides": [ { - "alias": "$tag_id", - "datasource": { - "type": "influxdb", - "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + "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" }, - "groupBy": [ + { + "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": [ - "$__interval" + "numexecutes" ], - "type": "time" + "type": "field" }, { - "params": [ - "id::tag" - ], - "type": "tag" + "params": [], + "type": "sum" }, { "params": [ - "null" + " / 30" ], - "type": "fill" + "type": "math" } - ], - "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": [ + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + } + ] + } + ], + "title": "Selects", + "transformations": [ + { + "id": "convertFieldType", + "options": { + "conversions": [ { - "key": "host::tag", - "operator": "=~", - "value": "/^$host$/" + "destinationType": "string", + "targetField": "id" } - ] + ], + "fields": {} } - ], - "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 } }, - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true - }, - "indexByName": {}, - "renameByName": {} + "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}" } - } - ], - "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 - } + ], + "mappings": [], + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "id" }, - "links": [ + "properties": [ { - "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}" + "id": "unit", + "value": "string" } - ], - "mappings": [], - "unit": "none" + ] + } + ] + }, + "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" }, - "overrides": [ + "groupBy": [ { - "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" + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "id::tag" + ], + "type": "tag" }, - "groupBy": [ + { + "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": [ - "$__interval" + "numexecutes" ], - "type": "time" + "type": "field" }, { - "params": [ - "id::tag" - ], - "type": "tag" + "params": [], + "type": "sum" }, { "params": [ - "null" + " / 30" ], - "type": "fill" + "type": "math" } - ], - "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": [ + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + } + ] + } + ], + "title": "Inserts", + "transformations": [ + { + "id": "convertFieldType", + "options": { + "conversions": [ { - "key": "host::tag", - "operator": "=~", - "value": "/^$host$/" + "destinationType": "string", + "targetField": "id" } - ] + ], + "fields": {} } - ], - "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 } }, - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true - }, - "indexByName": {}, - "renameByName": {} + "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}" } - } - ], - "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 - } + ], + "mappings": [], + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "id" }, - "links": [ + "properties": [ { - "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}" + "id": "unit", + "value": "string" } - ], - "mappings": [], - "unit": "none" + ] + } + ] + }, + "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" }, - "overrides": [ + "groupBy": [ { - "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" + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "id::tag" + ], + "type": "tag" }, - "groupBy": [ + { + "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": [ - "$__interval" + "numexecutes" ], - "type": "time" + "type": "field" }, { - "params": [ - "id::tag" - ], - "type": "tag" + "params": [], + "type": "sum" }, { "params": [ - "null" + " / 30" ], - "type": "fill" + "type": "math" } - ], - "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": [ + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + } + ] + } + ], + "title": "Updates", + "transformations": [ + { + "id": "convertFieldType", + "options": { + "conversions": [ { - "key": "host::tag", - "operator": "=~", - "value": "/^$host$/" + "destinationType": "string", + "targetField": "id" } - ] + ], + "fields": {} } - ], - "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 } }, - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true - }, - "indexByName": {}, - "renameByName": {} + "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}" } - } - ], - "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 - } + ], + "mappings": [], + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "id" }, - "links": [ + "properties": [ { - "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}" + "id": "unit", + "value": "string" } - ], - "mappings": [], - "unit": "none" + ] + } + ] + }, + "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" }, - "overrides": [ + "groupBy": [ { - "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" + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "id::tag" + ], + "type": "tag" }, - "groupBy": [ + { + "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": [ - "$__interval" + "numexecutes" ], - "type": "time" + "type": "field" }, { - "params": [ - "id::tag" - ], - "type": "tag" + "params": [], + "type": "sum" }, { "params": [ - "null" + " / 30" ], - "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$/" + "type": "math" } ] - } - ], - "title": "Replaces", - "transformations": [ - { - "id": "convertFieldType", - "options": { - "conversions": [ - { - "destinationType": "string", - "targetField": "id" - } - ], - "fields": {} - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true - }, - "indexByName": {}, - "renameByName": {} + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" } - } - ], - "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": "Deletes", + "transformations": [ + { + "id": "convertFieldType", + "options": { + "conversions": [ { - "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}" + "destinationType": "string", + "targetField": "id" } ], - "mappings": [], - "unit": "none" + "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 + } }, - "overrides": [ + "links": [ { - "matcher": { - "id": "byName", - "options": "id" - }, - "properties": [ - { - "id": "unit", - "value": "string" - } - ] + "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}" } - ] - }, - "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" - } + ], + "mappings": [], + "unit": "none" }, - "pluginVersion": "10.0.3", - "targets": [ + "overrides": [ { - "alias": "$tag_id", - "datasource": { - "type": "influxdb", - "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + "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" }, - "groupBy": [ + { + "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": [ - "$__interval" + "numexecutes" ], - "type": "time" + "type": "field" }, { - "params": [ - "id::tag" - ], - "type": "tag" + "params": [], + "type": "sum" }, { "params": [ - "null" + " / 30" ], - "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$/" + "type": "math" } ] - } - ], - "title": "Record Fetched", - "transformations": [ - { - "id": "convertFieldType", - "options": { - "conversions": [ - { - "destinationType": "string", - "targetField": "id" - } - ], - "fields": {} - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true - }, - "indexByName": {}, - "renameByName": {} + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" } - } - ], - "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": "Replaces", + "transformations": [ + { + "id": "convertFieldType", + "options": { + "conversions": [ { - "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}" + "destinationType": "string", + "targetField": "id" } ], - "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 - } - ] + "fields": {} + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true }, - { - "matcher": { - "id": "byName", - "options": "id" - }, - "properties": [ - { - "id": "custom.hidden", - "value": true - }, - { - "id": "unit", - "value": "string" - } - ] + "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 } - ] - }, - "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": [ + "links": [ { - "desc": true, - "displayName": "Select SQL String to Display" + "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" }, - "pluginVersion": "10.0.3", - "targets": [ + "overrides": [ { - "datasource": { - "type": "influxdb", - "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + "matcher": { + "id": "byName", + "options": "id" }, - "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": [] + "properties": [ + { + "id": "unit", + "value": "string" + } + ] } - ], - "transformations": [ - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true - }, - "indexByName": {}, - "renameByName": {} - } + ] + }, + "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" }, - { - "id": "convertFieldType", - "options": { - "conversions": [ - { - "destinationType": "string", - "targetField": "id" - } + "groupBy": [ + { + "params": [ + "$__interval" ], - "fields": {} - } - } - ], - "type": "table" - }, - { - "datasource": { - "type": "influxdb", - "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" + "type": "time" }, - "custom": { - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - } + { + "params": [ + "id::tag" + ], + "type": "tag" }, - "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" - } - ] + "params": [ + "null" + ], + "type": "fill" } - ] - }, - "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": [ + ], + "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": [ - "$__interval" + "numexecutes" ], - "type": "time" + "type": "field" }, { - "params": [ - "id::tag" - ], - "type": "tag" + "params": [], + "type": "sum" }, { "params": [ - "null" + " / 30" ], - "type": "fill" + "type": "math" } - ], - "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": [ + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + } + ] + } + ], + "title": "Record Fetched", + "transformations": [ + { + "id": "convertFieldType", + "options": { + "conversions": [ { - "key": "host::tag", - "operator": "=~", - "value": "/^$host$/" + "destinationType": "string", + "targetField": "id" } - ] + ], + "fields": {} } - ], - "title": "IndexHits", - "transformations": [ - { - "id": "convertFieldType", - "options": { - "conversions": [ - { - "destinationType": "string", - "targetField": "id" - } - ], - "fields": {} - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true - }, - "indexByName": {}, - "renameByName": {} - } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true + }, + "indexByName": {}, + "renameByName": {} } - ], - "type": "piechart" + } + ], + "type": "piechart" + }, + { + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" }, - { - "datasource": { - "type": "influxdb", - "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "auto" }, - "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" + "filterable": true, + "inspect": false }, - "overrides": [ + "displayName": "Select SQL String to Display", + "links": [ { - "matcher": { - "id": "byName", - "options": "id" - }, - "properties": [ - { - "id": "unit", - "value": "string" - } - ] + "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}" } - ] - }, - "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" + ], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] } }, - "pluginVersion": "10.0.3", - "targets": [ + "overrides": [ { - "alias": "$tag_id", - "datasource": { - "type": "influxdb", - "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + "matcher": { + "id": "byName", + "options": "sqlstring" }, - "groupBy": [ + "properties": [ { - "params": [ - "$__interval" - ], - "type": "time" - }, + "id": "custom.inspect", + "value": true + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "id" + }, + "properties": [ { - "params": [ - "id::tag" - ], - "type": "tag" + "id": "custom.hidden", + "value": true }, { - "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$/" + "id": "unit", + "value": "string" } ] } - ], - "title": "Record Locked", - "transformations": [ - { - "id": "convertFieldType", - "options": { - "conversions": [ - { - "destinationType": "string", - "targetField": "id" - } - ], - "fields": {} - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true - }, - "indexByName": {}, - "renameByName": {} - } + ] + }, + "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" } - ], - "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 + "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 }, - "links": [ + "indexByName": {}, + "renameByName": {} + } + }, + { + "id": "convertFieldType", + "options": { + "conversions": [ { - "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}" + "destinationType": "string", + "targetField": "id" } ], - "mappings": [], - "unit": "none" + "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 + } }, - "overrides": [ + "links": [ { - "matcher": { - "id": "byName", - "options": "id" - }, - "properties": [ - { - "id": "unit", - "value": "string" - } - ] + "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}" } - ] - }, - "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" - } + ], + "mappings": [], + "unit": "none" }, - "pluginVersion": "10.0.3", - "targets": [ + "overrides": [ { - "alias": "$tag_id", - "datasource": { - "type": "influxdb", - "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + "matcher": { + "id": "byName", + "options": "id" }, - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, + "properties": [ { - "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$/" + "id": "unit", + "value": "string" } ] } - ], - "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" + "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" }, - "custom": { - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - } + { + "params": [ + "id::tag" + ], + "type": "tag" }, - "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" - } - ] + "params": [ + "null" + ], + "type": "fill" } - ] - }, - "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": [ + ], + "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": [ - "$__interval" + "numexecutes" ], - "type": "time" + "type": "field" }, { - "params": [ - "id::tag" - ], - "type": "tag" + "params": [], + "type": "sum" }, { "params": [ - "null" + " / 30" ], - "type": "fill" + "type": "math" } - ], - "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": [ + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + } + ] + } + ], + "title": "IndexHits", + "transformations": [ + { + "id": "convertFieldType", + "options": { + "conversions": [ { - "key": "host::tag", - "operator": "=~", - "value": "/^$host$/" + "destinationType": "string", + "targetField": "id" } - ] + ], + "fields": {} } - ], - "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 } }, - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true - }, - "indexByName": {}, - "renameByName": {} + "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}" } - } - ], - "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 - } + ], + "mappings": [], + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "id" }, - "links": [ + "properties": [ { - "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}" + "id": "unit", + "value": "string" } - ], - "mappings": [], - "unit": "none" + ] + } + ] + }, + "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" }, - "overrides": [ + "groupBy": [ { - "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" + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "id::tag" + ], + "type": "tag" }, - "groupBy": [ + { + "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": [ - "$__interval" + "numexecutes" ], - "type": "time" + "type": "field" }, { - "params": [ - "id::tag" - ], - "type": "tag" + "params": [], + "type": "sum" }, { "params": [ - "null" + " / 30" ], - "type": "fill" + "type": "math" } - ], - "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": [ + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + } + ] + } + ], + "title": "Record Locked", + "transformations": [ + { + "id": "convertFieldType", + "options": { + "conversions": [ { - "key": "host::tag", - "operator": "=~", - "value": "/^$host$/" + "destinationType": "string", + "targetField": "id" } - ] + ], + "fields": {} } - ], - "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 } }, - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true - }, - "indexByName": {}, - "renameByName": {} + "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}" } - } - ], - "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 - } + ], + "mappings": [], + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "id" }, - "links": [ + "properties": [ { - "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}" + "id": "unit", + "value": "string" } - ], - "mappings": [], - "unit": "none" + ] + } + ] + }, + "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" }, - "overrides": [ + "groupBy": [ { - "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" + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "id::tag" + ], + "type": "tag" }, - "groupBy": [ + { + "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": [ - "$__interval" + "numexecutes" ], - "type": "time" + "type": "field" }, { - "params": [ - "id::tag" - ], - "type": "tag" + "params": [], + "type": "sum" }, { "params": [ - "null" + " / 30" ], - "type": "fill" + "type": "math" } - ], - "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": [ + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + } + ] + } + ], + "title": "RejectedIndexHits", + "transformations": [ + { + "id": "convertFieldType", + "options": { + "conversions": [ { - "key": "host::tag", - "operator": "=~", - "value": "/^$host$/" + "destinationType": "string", + "targetField": "id" } - ] + ], + "fields": {} } - ], - "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 } }, - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true - }, - "indexByName": {}, - "renameByName": {} + "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}" } - } - ], - "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 - } + ], + "mappings": [], + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "id" }, - "links": [ + "properties": [ { - "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}" + "id": "unit", + "value": "string" } - ], - "mappings": [], - "unit": "none" + ] + } + ] + }, + "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" }, - "overrides": [ + "groupBy": [ { - "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" + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "id::tag" + ], + "type": "tag" }, - "groupBy": [ + { + "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": [ - "$__interval" + "numexecutes" ], - "type": "time" + "type": "field" }, { - "params": [ - "id::tag" - ], - "type": "tag" + "params": [], + "type": "sum" }, { "params": [ - "null" + " / 30" ], - "type": "fill" + "type": "math" } - ], - "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": [ + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" + } + ] + } + ], + "title": "Record Sorted", + "transformations": [ + { + "id": "convertFieldType", + "options": { + "conversions": [ { - "key": "host::tag", - "operator": "=~", - "value": "/^$host$/" + "destinationType": "string", + "targetField": "id" } - ] + ], + "fields": {} } - ], - "title": "TableFetches", - "transformations": [ - { - "id": "convertFieldType", - "options": { - "conversions": [ - { - "destinationType": "string", - "targetField": "id" - } - ], - "fields": {} - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true - }, - "indexByName": {}, - "renameByName": {} - } + }, + { + "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" + } + ], + "type": "piechart" }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "auto" + { + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } }, - "inspect": true - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, + "links": [ { - "color": "red", - "value": 80 + "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" }, - "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": [ + "overrides": [ { - "params": [ - "sqlstring::tag" - ], - "type": "tag" - } - ], - "measurement": "nuodb_statements", - "orderByTime": "ASC", - "policy": "autogen", - "refId": "A", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "numexecutes" - ], - "type": "field" + "matcher": { + "id": "byName", + "options": "id" }, - { - "params": [], - "type": "first" - } - ] - ], - "tags": [ - { - "key": "id::tag", - "operator": "=~", - "value": "/^$id$/" + "properties": [ + { + "id": "unit", + "value": "string" + } + ] } ] - } - ], - "transformations": [ - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true, - "first": true - }, - "indexByName": {}, - "renameByName": {} + }, + "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" } - } - ], - "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" + "pluginVersion": "10.0.3", + "targets": [ + { + "alias": "$tag_id", + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" }, - { - "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": [ - [ + "groupBy": [ { "params": [ - "exectime" + "$__interval" ], - "type": "field" + "type": "time" }, { - "params": [], - "type": "sum" + "params": [ + "id::tag" + ], + "type": "tag" }, { "params": [ - " / $collection" + "null" ], - "type": "math" + "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$/" } ] - ], - "tags": [ - { - "key": "host::tag", - "operator": "=~", - "value": "/^$host$/" - } - ] - }, - { - "datasource": { - "type": "influxdb", - "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" - }, - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" + } + ], + "title": "IndexFetches", + "transformations": [ + { + "id": "convertFieldType", + "options": { + "conversions": [ + { + "destinationType": "string", + "targetField": "id" + } ], - "type": "fill" + "fields": {} } - ], - "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" + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "nodetype", - "operator": "=", - "value": "Transaction" + "indexByName": {}, + "renameByName": {} } - ] - } - ], - "timeShift": "10s", - "title": "Total Exec Time", - "type": "timeseries" - }, - { - "datasource": { - "type": "influxdb", - "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + } + ], + "type": "piechart" }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "super-light-blue", - "mode": "fixed" - }, - "mappings": [], - "noValue": "0", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "super-light-blue", - "value": null - } - ] - }, - "unit": "µs" + { + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "exectime" - }, - "properties": [ - { - "id": "displayName" + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false } - ] - }, - { - "matcher": { - "id": "byName", - "options": "compiletime" }, - "properties": [ + "links": [ { - "id": "displayName", - "value": "Compile Time" + "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}" } - ] - } - ] - }, - "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" + ], + "mappings": [], + "unit": "none" }, - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, + "overrides": [ { - "params": [ - "null" - ], - "type": "fill" + "matcher": { + "id": "byName", + "options": "id" + }, + "properties": [ + { + "id": "unit", + "value": "string" + } + ] } - ], - "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": [ - [ + ] + }, + "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": [ - "exectime" + "$__interval" ], - "type": "field" + "type": "time" }, { - "params": [], - "type": "sum" + "params": [ + "id::tag" + ], + "type": "tag" }, { "params": [ - " / $collection" + "null" ], - "type": "math" + "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$/" } ] - ], - "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": [ { - "condition": "AND", - "key": "id::tag", - "operator": "=~", - "value": "/^$id$/" + "matcher": { + "id": "byName", + "options": "id" + }, + "properties": [ + { + "id": "unit", + "value": "string" + } + ] } ] }, - { - "alias": "compiletime", - "datasource": { - "type": "influxdb", - "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" - }, - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" + "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" }, - { - "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": [ - [ + "groupBy": [ { "params": [ - "compiletime" + "$__interval" ], - "type": "field" + "type": "time" }, { - "params": [], - "type": "sum" + "params": [ + "id::tag" + ], + "type": "tag" }, { "params": [ - " / $collection" + "null" ], - "type": "math" + "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$/" } ] - ], - "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 + }, { - "condition": "AND", - "key": "id::tag", - "operator": "=~", - "value": "/^$id$/" + "color": "red", + "value": 80 } ] - } - ], - "timeShift": "10s", - "title": "Execution Time", - "type": "stat" + }, + "unit": "string" + }, + "overrides": [] }, - { - "datasource": { - "type": "influxdb", - "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + "gridPos": { + "h": 2, + "w": 24, + "x": 0, + "y": 2 + }, + "id": 37, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "super-light-blue", - "mode": "fixed" - }, - "mappings": [], - "noValue": "0", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "super-light-blue", - "value": null - } - ] - }, - "unit": "µs" + "showHeader": false + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" }, - "overrides": [ + "groupBy": [ { - "matcher": { - "id": "byName", - "options": "exectime" + "params": [ + "sqlstring::tag" + ], + "type": "tag" + } + ], + "measurement": "nuodb_statements", + "orderByTime": "ASC", + "policy": "autogen", + "refId": "A", + "resultFormat": "table", + "select": [ + [ + { + "params": [ + "numexecutes" + ], + "type": "field" }, - "properties": [ - { - "id": "displayName" - } - ] - }, + { + "params": [], + "type": "first" + } + ] + ], + "tags": [ { - "matcher": { - "id": "byName", - "options": "compiletime" - }, - "properties": [ - { - "id": "displayName", - "value": "Compile Time" - } - ] + "key": "id::tag", + "operator": "=~", + "value": "/^$id$/" } ] - }, - "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}" + } + ], + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "first": true + }, + "indexByName": {}, + "renameByName": {} } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "center", - "orientation": "vertical", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" + } + ], + "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" }, - "pluginVersion": "10.0.3", - "targets": [ - { - "alias": "compiletime", - "datasource": { - "type": "influxdb", - "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + "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" }, - "groupBy": [ + { + "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": [ - "$__interval" + "exectime" ], - "type": "time" + "type": "field" + }, + { + "params": [], + "type": "sum" }, { "params": [ - "null" + " / $collection" ], - "type": "fill" + "type": "math" } - ], - "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": [ + ] + ], + "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": [ + [ { - "key": "host::tag", - "operator": "=~", - "value": "/^$host$/" + "params": [ + "rate" + ], + "type": "field" }, { - "condition": "AND", - "key": "id::tag", - "operator": "=~", - "value": "/^$id$/" + "params": [], + "type": "mean" } ] - } - ], - "timeShift": "10s", - "title": "Compile Time", - "type": "stat" + ], + "tags": [ + { + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] + } + ], + "timeShift": "10s", + "title": "Total Exec Time", + "type": "timeseries" + }, + { + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" }, - { - "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" + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "super-light-blue", + "mode": "fixed" + }, + "mappings": [], + "noValue": "0", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "super-light-blue", + "value": null } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "super-light-blue", - "value": null - } - ] - }, - "unit": "none" + ] }, - "overrides": [] + "unit": "µs" }, - "gridPos": { - "h": 5, - "w": 5, - "x": 10, - "y": 4 - }, - "hideTimeOverride": true, - "id": 51, - "interval": "$collection", - "links": [ + "overrides": [ { - "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" + "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 }, - "pluginVersion": "10.0.3", - "targets": [ - { - "alias": "numexecutes", - "datasource": { - "type": "influxdb", - "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + "textMode": "value" + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "alias": "exectime", + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "groupBy": [ + { + "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": [ - "$__interval" + "exectime" ], - "type": "time" + "type": "field" + }, + { + "params": [], + "type": "sum" }, { "params": [ - "null" + " / $collection" ], - "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$/" + "type": "math" } ] - } - ], - "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": [ + ], + "tags": [ { - "matcher": { - "id": "byName", - "options": "exectime" - }, - "properties": [ - { - "id": "displayName" - } - ] + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" }, { - "matcher": { - "id": "byName", - "options": "compiletime" - }, - "properties": [ - { - "id": "displayName", - "value": "Compile Time" - } - ] + "condition": "AND", + "key": "id::tag", + "operator": "=~", + "value": "/^$id$/" } ] }, - "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" + { + "alias": "compiletime", + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "groupBy": [ + { + "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": [ - "$__interval" + "compiletime" ], - "type": "time" + "type": "field" + }, + { + "params": [], + "type": "sum" }, { "params": [ - "null" + " / $collection" ], - "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$/" + "type": "math" } ] - } - ], - "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": [ + ], + "tags": [ { - "matcher": { - "id": "byName", - "options": "exectime" - }, - "properties": [ - { - "id": "displayName" - } - ] + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" }, { - "matcher": { - "id": "byName", - "options": "compiletime" - }, - "properties": [ - { - "id": "displayName", - "value": "Compile Time" - } - ] + "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" }, - "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": [ + "overrides": [ { - "alias": "Selects", - "datasource": { - "type": "influxdb", - "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + "matcher": { + "id": "byName", + "options": "exectime" }, - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, + "properties": [ { - "params": [ - "null" - ], - "type": "fill" + "id": "displayName" } - ], - "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$/" - }, + ] + }, + { + "matcher": { + "id": "byName", + "options": "compiletime" + }, + "properties": [ { - "condition": "AND", - "key": "id::tag", - "operator": "=~", - "value": "/^$id$/" + "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" }, - { - "alias": "Inserts", - "datasource": { - "type": "influxdb", - "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "groupBy": [ + { + "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": [ - "$__interval" + "compiletime" ], - "type": "time" + "type": "field" + }, + { + "params": [], + "type": "sum" }, { "params": [ - "null" + " / $collection" ], - "type": "fill" + "type": "math" } - ], - "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$/" - }, + ] + ], + "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": [ { - "condition": "AND", - "key": "id::tag", - "operator": "=~", - "value": "/^$id$/" + "color": "super-light-blue", + "value": null } ] }, - { - "alias": "Updates", - "datasource": { - "type": "influxdb", - "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + "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" }, - "groupBy": [ + { + "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": [ - "$__interval" + "numexecutes" ], - "type": "time" + "type": "field" + }, + { + "params": [], + "type": "sum" }, { "params": [ - "null" + " / $collection" ], - "type": "fill" + "type": "math" } - ], - "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$/" + ] + ], + "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": [ { - "alias": "Deletes", - "datasource": { - "type": "influxdb", - "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + "matcher": { + "id": "byName", + "options": "exectime" }, - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, + "properties": [ { - "params": [ - "null" - ], - "type": "fill" + "id": "displayName" } - ], - "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$/" - }, + ] + }, + { + "matcher": { + "id": "byName", + "options": "compiletime" + }, + "properties": [ { - "condition": "AND", - "key": "id::tag", - "operator": "=~", - "value": "/^$id$/" + "id": "displayName", + "value": "Compile Time" } ] } - ], - "timeShift": "10s", - "title": "SQL Rows ", - "type": "bargauge" + ] }, - { - "datasource": { - "type": "influxdb", - "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + "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 }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "light-green", - "mode": "fixed" - }, - "mappings": [], - "noValue": "0", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "super-light-blue", - "value": null - } - ] - }, - "unit": "none" + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "alias": "value", + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" }, - "overrides": [ + "groupBy": [ { - "matcher": { - "id": "byName", - "options": "exectime" - }, - "properties": [ - { - "id": "displayName" - } - ] + "params": [ + "$__interval" + ], + "type": "time" }, { - "matcher": { - "id": "byName", - "options": "compiletime" - }, - "properties": [ - { - "id": "displayName", - "value": "Compile Time" - } - ] + "params": [ + "null" + ], + "type": "fill" } - ] - }, - "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": [ + ], + "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": [ - "$__interval" + "numexecutes" ], - "type": "time" + "type": "field" }, { - "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$/" + "params": [], + "type": "sum" }, { - "condition": "AND", - "key": "id::tag", - "operator": "=~", - "value": "/^$id$/" + "params": [ + " / $collection" + ], + "type": "math" } ] - } - ], - "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": [ + ], + "tags": [ { - "matcher": { - "id": "byName", - "options": "exectime" - }, - "properties": [ - { - "id": "displayName" - } - ] + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" }, { - "matcher": { - "id": "byName", - "options": "compiletime" - }, - "properties": [ - { - "id": "displayName", - "value": "Compile Time" - } - ] + "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" }, - "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": [ + "overrides": [ { - "alias": "rejectedindexhits", - "datasource": { - "type": "influxdb", - "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + "matcher": { + "id": "byName", + "options": "exectime" }, - "groupBy": [ + "properties": [ { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" + "id": "displayName" } - ], - "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$/" - }, + ] + }, + { + "matcher": { + "id": "byName", + "options": "compiletime" + }, + "properties": [ { - "condition": "AND", - "key": "id::tag", - "operator": "=~", - "value": "/^$id$/" + "id": "displayName", + "value": "Compile Time" } ] } - ], - "timeShift": "10s", - "title": "Rejected Index Hits", - "type": "stat" + ] }, - { - "datasource": { - "type": "influxdb", - "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + "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 }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "light-green", - "mode": "fixed" - }, - "mappings": [], - "noValue": "0", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "super-light-blue", - "value": null - } - ] - }, - "unit": "none" + "showUnfilled": false, + "valueMode": "color" + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "alias": "Selects", + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" }, - "overrides": [ + "groupBy": [ { - "matcher": { - "id": "byName", - "options": "exectime" - }, - "properties": [ - { - "id": "displayName" - } - ] + "params": [ + "$__interval" + ], + "type": "time" }, { - "matcher": { - "id": "byName", - "options": "compiletime" - }, - "properties": [ - { - "id": "displayName", - "value": "Compile Time" - } - ] + "params": [ + "null" + ], + "type": "fill" } - ] - }, - "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": [ + ], + "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": [ - "$__interval" + "recordsreturned" ], - "type": "time" + "type": "field" }, { - "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$/" + "params": [], + "type": "sum" }, { - "condition": "AND", - "key": "id::tag", - "operator": "=~", - "value": "/^$id$/" + "params": [ + " / $collection" + ], + "type": "math" } ] - } - ], - "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": [ + ], + "tags": [ { - "matcher": { - "id": "byName", - "options": "exectime" - }, - "properties": [ - { - "id": "displayName" - } - ] + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" }, { - "matcher": { - "id": "byName", - "options": "compiletime" - }, - "properties": [ - { - "id": "displayName", - "value": "Compile Time" - } - ] + "condition": "AND", + "key": "id::tag", + "operator": "=~", + "value": "/^$id$/" } ] }, - "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" + { + "alias": "Inserts", + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "groupBy": [ + { + "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": [ - "$__interval" + "inserts" ], - "type": "time" + "type": "field" }, { - "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$/" + "params": [], + "type": "sum" }, { - "condition": "AND", - "key": "id::tag", - "operator": "=~", - "value": "/^$id$/" + "params": [ + " / $collection" + ], + "type": "math" } ] - } - ], - "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": [ + ], + "tags": [ { - "matcher": { - "id": "byName", - "options": "exectime" - }, - "properties": [ - { - "id": "displayName" - } - ] + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" }, { - "matcher": { - "id": "byName", - "options": "compiletime" - }, - "properties": [ - { - "id": "displayName", - "value": "Compile Time" - } - ] + "condition": "AND", + "key": "id::tag", + "operator": "=~", + "value": "/^$id$/" } ] }, - "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" + { + "alias": "Updates", + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "groupBy": [ + { + "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": [ - "$__interval" + "updates" ], - "type": "time" + "type": "field" }, { - "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$/" + "params": [], + "type": "sum" }, { - "condition": "AND", - "key": "id::tag", - "operator": "=~", - "value": "/^$id$/" + "params": [ + " / $collection" + ], + "type": "math" } ] - } - ], - "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": [ + ], + "tags": [ { - "matcher": { - "id": "byName", - "options": "exectime" - }, - "properties": [ - { - "id": "displayName" - } - ] + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" }, { - "matcher": { - "id": "byName", - "options": "compiletime" - }, - "properties": [ - { - "id": "displayName", - "value": "Compile Time" - } - ] + "condition": "AND", + "key": "id::tag", + "operator": "=~", + "value": "/^$id$/" } ] }, - "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" + { + "alias": "Deletes", + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "groupBy": [ + { + "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": [ - "$__interval" + "deletions" ], - "type": "time" + "type": "field" + }, + { + "params": [], + "type": "sum" }, { "params": [ - "null" + " / $collection" ], - "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$/" + "type": "math" } ] - } - ], - "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 - } - ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" }, - "unit": "none" + { + "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" }, - "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" + "mappings": [], + "noValue": "0", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "super-light-blue", + "value": null + } + ] + }, + "unit": "none" }, - "pluginVersion": "10.0.3", - "targets": [ + "overrides": [ { - "alias": "recordsfetched", - "datasource": { - "type": "influxdb", - "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + "matcher": { + "id": "byName", + "options": "exectime" }, - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, + "properties": [ { - "params": [ - "null" - ], - "type": "fill" + "id": "displayName" } - ], - "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$/" - }, + ] + }, + { + "matcher": { + "id": "byName", + "options": "compiletime" + }, + "properties": [ { - "condition": "AND", - "key": "id::tag", - "operator": "=~", - "value": "/^$id$/" + "id": "displayName", + "value": "Compile Time" } ] } - ], - "timeShift": "10s", - "title": "Records Fetched", - "type": "stat" + ] }, - { - "datasource": { - "type": "influxdb", - "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + "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 }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "light-green", - "mode": "fixed" - }, - "mappings": [], - "noValue": "0", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "super-light-blue", - "value": null - } - ] - }, - "unit": "none" + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "alias": "indexhits", + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" }, - "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" }, - "groupBy": [ + { + "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": [ - "$__interval" + "indexhits" ], - "type": "time" + "type": "field" }, { - "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$/" + "params": [], + "type": "sum" }, { - "condition": "AND", - "key": "id::tag", - "operator": "=~", - "value": "/^$id$/" + "params": [ + " / $collection" + ], + "type": "math" } ] - } - ], - "timeShift": "10s", - "title": "Records Locked", - "type": "stat" + ], + "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" }, - { - "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" }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "light-green", - "mode": "fixed" - }, - "mappings": [], - "noValue": "0", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "super-light-blue", - "value": null - } - ] + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "exectime" }, - "unit": "none" + "properties": [ + { + "id": "displayName" + } + ] }, - "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}" + "matcher": { + "id": "byName", + "options": "compiletime" + }, + "properties": [ + { + "id": "displayName", + "value": "Compile Time" + } + ] } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "center", - "orientation": "vertical", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" + ] + }, + "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 }, - "pluginVersion": "10.0.3", - "targets": [ - { - "alias": "recordssorted", - "datasource": { - "type": "influxdb", - "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "alias": "rejectedindexhits", + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "groupBy": [ + { + "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": [ - "$__interval" + "rejectedindexhits" ], - "type": "time" + "type": "field" }, { - "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$/" + "params": [], + "type": "sum" }, { - "condition": "AND", - "key": "id::tag", - "operator": "=~", - "value": "/^$id$/" + "params": [ + " / $collection" + ], + "type": "math" } ] - } - ], - "timeShift": "10s", - "title": "Records Sorted", - "type": "stat" + ], + "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" }, - { - "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" }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "light-green", - "mode": "fixed" - }, - "mappings": [], - "noValue": "0", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "super-light-blue", - "value": null - } - ] + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "exectime" }, - "unit": "none" + "properties": [ + { + "id": "displayName" + } + ] }, - "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}" + "matcher": { + "id": "byName", + "options": "compiletime" + }, + "properties": [ + { + "id": "displayName", + "value": "Compile Time" + } + ] } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "center", - "orientation": "vertical", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" + ] + }, + "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 }, - "pluginVersion": "10.0.3", - "targets": [ - { - "alias": "recordsevicted", - "datasource": { - "type": "influxdb", - "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "alias": "indexfetches", + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "groupBy": [ + { + "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": [ - "$__interval" + "indexfetches" ], - "type": "time" + "type": "field" }, { - "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$/" + "params": [], + "type": "sum" }, { - "condition": "AND", - "key": "id::tag", - "operator": "=~", - "value": "/^$id$/" + "params": [ + " / $collection" + ], + "type": "math" } ] - } - ], - "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": [ + ], + "tags": [ { - "selected": false, - "text": "auto", - "value": "$__auto_interval_interval" + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" }, { - "selected": false, - "text": "10s", - "value": "10s" + "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" }, - { - "selected": true, - "text": "30s", - "value": "30s" + "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": [ { - "selected": false, - "text": "1m", - "value": "1m" + "params": [ + "$__interval" + ], + "type": "time" }, { - "selected": false, - "text": "5m", - "value": "5m" - }, + "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": [ { - "selected": false, - "text": "10m", - "value": "10m" + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" }, { - "selected": false, - "text": "15m", - "value": "15m" + "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" }, - { - "selected": false, - "text": "30m", - "value": "30m" + "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": [ { - "selected": false, - "text": "1h", - "value": "1h" + "params": [ + "$__interval" + ], + "type": "time" }, { - "selected": false, - "text": "6h", - "value": "6h" - }, + "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": [ { - "selected": false, - "text": "12h", - "value": "12h" + "key": "host::tag", + "operator": "=~", + "value": "/^$host$/" }, { - "selected": false, - "text": "1d", - "value": "1d" + "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": [ { - "selected": false, - "text": "7d", - "value": "7d" + "params": [ + "$__interval" + ], + "type": "time" }, { - "selected": false, - "text": "14d", - "value": "14d" + "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$/" }, { - "selected": false, - "text": "30d", - "value": "30d" + "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" ], - "query": "10s,30s,1m,5m,10m,15m,30m,1h,6h,12h,1d,7d,14d,30d", - "queryValue": "", - "refresh": 2, - "skipUrlSync": false, - "type": "interval" + "fields": "", + "values": false }, + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "targets": [ { - "allValue": ".*", - "current": { - "selected": false, - "text": "test", - "value": "test" - }, + "alias": "recordsfetched", "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" + "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": "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 + "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": [ { - "current": { - "selected": false, - "text": "10432982178702295000", - "value": "10432982178702295000" - }, + "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" }, - "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" + "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": [ { - "hide": 2, - "name": "collection", - "query": "10", - "skipUrlSync": false, - "type": "constant" + "title": "", + "url": "/d/c9081118-5230-478d-b6e8-d76614395704/sql-logs?${__all_variables}&${__url_time_range}&var-statement=${id:value}" } - ] - }, - "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": 56, - "weekStart": "" - } + "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": 56, + "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..6abec25 --- /dev/null +++ b/conf/provisioning/dashboards/nuodb_client/sql-client-messages.json @@ -0,0 +1,450 @@ +{ + "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": 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": "marcusolsson-json-datasource", + "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "super-light-blue", + "mode": "fixed" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "color-text" + }, + "inspect": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "TypeGroup" + }, + "properties": [ + { + "id": "custom.width", + "value": 131 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "MsgType" + }, + "properties": [ + { + "id": "custom.width", + "value": 253 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Count" + }, + "properties": [ + { + "id": "custom.width", + "value": 118 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Duration" + }, + "properties": [ + { + "id": "unit", + "value": "µs" + } + ] + } + ] + }, + "gridPos": { + "h": 24, + "w": 12, + "x": 0, + "y": 0 + }, + "id": 10, + "maxPerRow": 2, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": true + }, + "frameIndex": 1, + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "10.0.3", + "repeat": "host", + "repeatDirection": "h", + "targets": [ + { + "body": "select TYPE,\"GROUP\",COUNT,DURATION from system.localclientmessages order by DURATION desc", + "cacheDurationSeconds": 0, + "datasource": { + "type": "marcusolsson-json-datasource", + "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" + }, + "fields": [ + { + "jsonPath": "$.rows[*][0]", + "name": "MsgType", + "type": "string" + }, + { + "jsonPath": "$.rows[*][1]", + "language": "jsonpath", + "name": "TypeGroup" + }, + { + "jsonPath": "$.rows[*][2]", + "language": "jsonpath", + "name": "Count" + }, + { + "jsonPath": "$.rows[*][3]", + "language": "jsonpath", + "name": "Duration" + } + ], + "method": "POST", + "params": [ + [ + "dbname", + "$database" + ], + [ + "hostname", + "$host" + ] + ], + "queryParams": "", + "refId": "A", + "urlPath": "/query" + } + ], + "title": "Client Messages ($host)", + "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 + } + ] + }, + "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": "Client Messages", + "uid": "z35SM6j4z", + "version": 21, + "weekStart": "" +} diff --git a/conf/provisioning/dashboards/nuodb_client/sql-execution-logs.json b/conf/provisioning/dashboards/nuodb_client/sql-execution-logs.json index 9286fc3..014413c 100644 --- a/conf/provisioning/dashboards/nuodb_client/sql-execution-logs.json +++ b/conf/provisioning/dashboards/nuodb_client/sql-execution-logs.json @@ -1,909 +1,868 @@ { - "meta": { - "type": "db", - "canSave": true, - "canEdit": true, - "canAdmin": true, - "canStar": true, - "canDelete": true, - "slug": "sql-execution-logs", - "url": "/d/c9081118-5230-478d-b6e8-d76614395704/sql-execution-logs", - "expires": "0001-01-01T00:00:00Z", - "created": "2023-07-29T14:51:47Z", - "updated": "2023-08-01T22:44:06Z", - "updatedBy": "admin", - "createdBy": "admin", - "version": 14, - "hasAcl": false, - "isFolder": false, - "folderId": 20, - "folderUid": "b7c2a563-48a3-426d-be2b-0f9fffbd8a85", - "folderTitle": "nuodb_client", - "folderUrl": "/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client", - "provisioned": false, - "provisionedExternalId": "", - "annotationsPermissions": { - "dashboard": { - "canAdd": true, - "canEdit": true, - "canDelete": true + "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" }, - "organization": { - "canAdd": true, - "canEdit": true, - "canDelete": true + { + "$$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" } - }, - "publicDashboardAccessToken": "", - "publicDashboardUid": "", - "publicDashboardEnabled": false + ] }, - "dashboard": { - "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" - }, + "description": "Log of each statement execution", + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 1, + "id": 34, + "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": [ { - "$$hashKey": "object:2934", "datasource": { - "type": "datasource", - "uid": "grafana" + "type": "influxdb", + "uid": "P7F1571328205BBA6" }, - "enable": true, - "hide": false, - "iconColor": "rgba(255, 96, 96, 1)", - "limit": 100, - "name": "db annotations", - "showIn": 0, - "tags": [ - "$database" - ], - "type": "tags" + "refId": "A" } - ] + ], + "title": "Summary", + "type": "row" }, - "description": "Log of each statement execution", - "editable": true, - "fiscalYearStartMonth": 0, - "graphTooltip": 1, - "id": 34, - "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" + { + "aliasColors": {}, + "bars": true, + "dashLength": 10, + "dashes": false, + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" }, - { - "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" + "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": { + "links": [] }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 8, - "panels": [], - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "refId": "A" - } - ], - "title": "Summary", - "type": "row" + "overrides": [] }, - { - "aliasColors": {}, - "bars": true, - "dashLength": 10, - "dashes": false, - "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": { - "links": [] + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 4, + "w": 24, + "x": 0, + "y": 1 + }, + "hiddenSeries": false, + "id": 6, + "interval": "$interval", + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false + }, + "lines": false, + "linewidth": 1, + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "paceLength": 10, + "percentage": false, + "pluginVersion": "10.0.3", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "$$hashKey": "object:133", + "alias": "NumberCores", + "bars": false, + "color": "rgb(255, 255, 255)", + "fill": 1, + "lines": true, + "linewidth": 0, + "stack": false, + "steppedLine": true, + "yaxis": 2 + } + ], + "spaceLength": 10, + "stack": true, + "steppedLine": false, + "targets": [ + { + "alias": "$measurement", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 4, - "w": 24, - "x": 0, - "y": 1 - }, - "hiddenSeries": false, - "id": 6, - "interval": "$interval", - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": false, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "paceLength": 10, - "percentage": false, - "pluginVersion": "10.0.3", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "$$hashKey": "object:133", - "alias": "NumberCores", - "bars": false, - "color": "rgb(255, 255, 255)", - "fill": 1, - "lines": true, - "linewidth": 0, - "stack": false, - "steppedLine": true, - "yaxis": 2 - } - ], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "alias": "$measurement", - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "groupBy": [ + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(nthreads) as \"nthreads\" FROM (SELECT mean(raw) / 10000. as \"nthreads\" FROM \"Summary.Fetch\",\"Summary.Commit\",\"Summary.Sync\",\"Summary.Lock\",\"Summary.NtwkSend\",\"Summary.Throttle\",\"Summary.CPU\" WHERE $timeFilter AND nodetype = 'Transaction' AND host =~ /^$host$/ AND db =~ /^$database$/ GROUP BY time($__interval), \"pid\" fill(null)) GROUP BY time($__interval)", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ { "params": [ - "$__interval" + "value" ], - "type": "time" + "type": "field" }, { - "params": [ - "null" - ], - "type": "fill" + "params": [], + "type": "mean" } - ], - "hide": false, - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT sum(nthreads) as \"nthreads\" FROM (SELECT mean(raw) / 10000. as \"nthreads\" FROM \"Summary.Fetch\",\"Summary.Commit\",\"Summary.Sync\",\"Summary.Lock\",\"Summary.NtwkSend\",\"Summary.Throttle\",\"Summary.CPU\" WHERE $timeFilter AND nodetype = 'Transaction' AND host =~ /^$host$/ AND db =~ /^$database$/ GROUP BY time($__interval), \"pid\" fill(null)) GROUP BY time($__interval)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] + ] + ], + "tags": [] + }, + { + "alias": "$measurement", + "datasource": { + "type": "influxdb", + "uid": "P7F1571328205BBA6" }, - { - "alias": "$measurement", - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "NumberCores", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(ncores) FROM (SELECT mean(\"raw\") as ncores FROM \"NumberCores\" WHERE (\"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/ AND \"nodetype\" = 'Transaction') AND $timeFilter GROUP BY time($__interval), \"startid\" fill(null)) GROUP BY time($__interval)", + "rawQuery": true, + "refId": "C", + "resultFormat": "time_series", + "select": [ + [ { "params": [ - "null" + "raw" ], - "type": "fill" - } - ], - "hide": false, - "measurement": "NumberCores", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT sum(ncores) FROM (SELECT mean(\"raw\") as ncores FROM \"NumberCores\" WHERE (\"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/ AND \"nodetype\" = 'Transaction') AND $timeFilter GROUP BY time($__interval), \"startid\" fill(null)) GROUP BY time($__interval)", - "rawQuery": true, - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "raw" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "db", - "operator": "=~", - "value": "/^$database$/" - }, - { - "condition": "AND", - "key": "host", - "operator": "=~", - "value": "/^$host$/" + "type": "field" }, { - "condition": "AND", - "key": "nodetype", - "operator": "=", - "value": "Transaction" + "params": [], + "type": "mean" } ] - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Summary", - "tooltip": { - "shared": true, - "sort": 2, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:150", - "decimals": 1, - "format": "short", - "label": "measurement relative to vCPU", - "logBase": 1, - "min": "0", - "show": true - }, - { - "$$hashKey": "object:151", - "format": "short", - "label": "total number of vCPU", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false + ], + "tags": [ + { + "key": "db", + "operator": "=~", + "value": "/^$database$/" + }, + { + "condition": "AND", + "key": "host", + "operator": "=~", + "value": "/^$host$/" + }, + { + "condition": "AND", + "key": "nodetype", + "operator": "=", + "value": "Transaction" + } + ] } + ], + "thresholds": [], + "timeRegions": [], + "title": "Summary", + "tooltip": { + "shared": true, + "sort": 2, + "value_type": "individual" }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 5 - }, - "id": 9, - "panels": [], - "title": "Log", - "type": "row" + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] }, - { - "datasource": { - "type": "influxdb", - "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + "yaxes": [ + { + "$$hashKey": "object:150", + "decimals": 1, + "format": "short", + "label": "measurement relative to vCPU", + "logBase": 1, + "min": "0", + "show": true }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" + { + "$$hashKey": "object:151", + "format": "short", + "label": "total number of vCPU", + "logBase": 1, + "show": true + } + ], + "yaxis": { + "align": false + } + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 5 + }, + "id": 9, + "panels": [], + "title": "Log", + "type": "row" + }, + { + "datasource": { + "type": "influxdb", + "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "auto" }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "auto" + "inspect": true + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null }, - "inspect": true - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "string" + { + "color": "red", + "value": 80 + } + ] }, - "overrides": [] + "unit": "string" }, - "gridPos": { - "h": 2, - "w": 24, - "x": 0, - "y": 6 + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 24, + "x": 0, + "y": 6 + }, + "id": 13, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false }, - "id": 13, - "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" }, - "showHeader": false - }, - "pluginVersion": "10.0.3", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "cdb0a5c8-a25e-4ddc-a047-9d8658d5249a" - }, - "groupBy": [ + "groupBy": [ + { + "params": [ + "sqlstring::tag" + ], + "type": "tag" + } + ], + "measurement": "nuodb_statements", + "orderByTime": "ASC", + "policy": "autogen", + "refId": "A", + "resultFormat": "table", + "select": [ + [ { "params": [ - "sqlstring::tag" + "numexecutes" ], - "type": "tag" - } - ], - "measurement": "nuodb_statements", - "orderByTime": "ASC", - "policy": "autogen", - "refId": "A", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "numexecutes" - ], - "type": "field" - }, - { - "params": [], - "type": "first" - } - ] - ], - "tags": [ + "type": "field" + }, { - "key": "id::tag", - "operator": "=~", - "value": "/^$statement$/" + "params": [], + "type": "first" } ] - } - ], - "transformations": [ - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true, - "first": true - }, - "indexByName": {}, - "renameByName": {} + ], + "tags": [ + { + "key": "id::tag", + "operator": "=~", + "value": "/^$statement$/" } + ] + } + ], + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "first": true + }, + "indexByName": {}, + "renameByName": {} } - ], - "type": "table" + } + ], + "type": "table" + }, + { + "datasource": { + "type": "loki", + "uid": "ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3" }, - { - "datasource": { - "type": "loki", - "uid": "ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "continuous-GrYlRd" + "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 }, - "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" - } + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" }, - "displayName": "Count", - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" } }, - "overrides": [] + "displayName": "Count", + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } }, - "gridPos": { - "h": 6, - "w": 24, - "x": 0, - "y": 8 + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 24, + "x": 0, + "y": 8 + }, + "id": 10, + "interval": "$loginterval", + "maxDataPoints": 500, + "options": { + "legend": { + "calcs": [ + "sum" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true }, - "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": "ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3" }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3" - }, - "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" + "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": "ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3" + }, + "description": "Output is limited to 2000 lines", + "gridPos": { + "h": 20, + "w": 24, + "x": 0, + "y": 14 + }, + "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": "ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3" + }, + "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": [ { - "datasource": { - "type": "loki", - "uid": "ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3" - }, - "description": "Output is limited to 2000 lines", - "gridPos": { - "h": 20, - "w": 24, - "x": 0, - "y": 14 + "auto": true, + "auto_count": 100, + "auto_min": "10ms", + "current": { + "selected": false, + "text": "1s", + "value": "1s" }, - "id": 11, - "interval": "1s", - "options": { - "dedupStrategy": "none", - "enableLogDetails": true, - "prettifyLogMessage": false, - "showCommonLabels": false, - "showLabels": false, - "showTime": true, - "sortOrder": "Descending", - "wrapLogMessage": false + "hide": 0, + "label": "interval", + "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" }, - "targets": [ + "hide": 2, + "label": "interval", + "name": "interval", + "options": [ + { + "selected": true, + "text": "auto", + "value": "$__auto_interval_interval" + }, { - "datasource": { - "type": "loki", - "uid": "ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3" - }, - "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": "10ms", - "current": { "selected": false, - "text": "1s", - "value": "1s" + "text": "10s", + "value": "10s" }, - "hide": 0, - "label": "interval", - "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" + "text": "30s", + "value": "30s" }, - "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" + "text": "1m", + "value": "1m" }, - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + { + "selected": false, + "text": "5m", + "value": "5m" }, - "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" - ] + { + "selected": false, + "text": "10m", + "value": "10m" }, - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + { + "selected": false, + "text": "15m", + "value": "15m" }, - "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" + "text": "30m", + "value": "30m" }, - "hide": 0, - "label": "statement", - "name": "statement", - "options": [ - { - "selected": true, - "text": "undefined", - "value": "undefined" - } + { + "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" ], - "query": "undefined", - "skipUrlSync": false, - "type": "textbox" + "value": [ + "$__all" + ] }, - { - "current": { - "selected": false, + "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": true, + "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": ".+" - }, - "hide": 0, - "label": "execution", - "name": "execution", - "options": [ - { - "selected": true, - "text": ".+", - "value": ".+" - } - ], - "query": ".+", - "skipUrlSync": false, - "type": "textbox" + } + ], + "query": ".+", + "skipUrlSync": false, + "type": "textbox" + }, + { + "current": { + "selected": false, + "text": "", + "value": "" }, - { - "current": { - "selected": false, + "description": "regex filter for each line, use to limit results before logfmt", + "hide": 0, + "label": "", + "name": "filter", + "options": [ + { + "selected": true, "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" + } + ], + "query": "", + "skipUrlSync": false, + "type": "textbox" + }, + { + "datasource": { + "type": "loki", + "uid": "ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3" }, - { - "datasource": { - "type": "loki", - "uid": "ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3" - }, - "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": 14, - "weekStart": "" - } + "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": 14, + "weekStart": "" } diff --git a/conf/provisioning/dashboards/nuodb_client/sql-statement-details.json b/conf/provisioning/dashboards/nuodb_client/sql-statement-details.json index cd872cd..4722976 100644 --- a/conf/provisioning/dashboards/nuodb_client/sql-statement-details.json +++ b/conf/provisioning/dashboards/nuodb_client/sql-statement-details.json @@ -1,380 +1,339 @@ { - "meta": { - "type": "db", - "canSave": true, - "canEdit": true, - "canAdmin": true, - "canStar": true, - "canDelete": true, - "slug": "sql-statement-details", - "url": "/d/f13dbb76-dc2a-42b9-af72-88700f6857b8/sql-statement-details", - "expires": "0001-01-01T00:00:00Z", - "created": "2023-07-21T19:49:29Z", - "updated": "2023-08-01T12:55:05Z", - "updatedBy": "admin", - "createdBy": "admin", - "version": 17, - "hasAcl": false, - "isFolder": false, - "folderId": 20, - "folderUid": "b7c2a563-48a3-426d-be2b-0f9fffbd8a85", - "folderTitle": "nuodb_client", - "folderUrl": "/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client", - "provisioned": false, - "provisionedExternalId": "sql-statement-details.json", - "annotationsPermissions": { - "dashboard": { - "canAdd": true, - "canEdit": true, - "canDelete": true - }, - "organization": { - "canAdd": true, - "canEdit": true, - "canDelete": true - } - }, - "publicDashboardAccessToken": "", - "publicDashboardUid": "", - "publicDashboardEnabled": false - }, - "dashboard": { - "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" - }, + "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" }, - { - "$$hashKey": "object:2934", - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "enable": true, - "hide": false, - "iconColor": "rgba(255, 96, 96, 1)", + "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, - "name": "db annotations", - "showIn": 0, + "matchAny": false, "tags": [ "$database" ], - "target": { - "limit": 100, - "matchAny": false, - "tags": [ - "$database" - ], - "type": "tags" - }, "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" }, - "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": 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" }, - { - "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" + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "text", + "mode": "fixed" }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Values" - }, - "properties": [ - { - "id": "custom.inspect", - "value": true - } - ] + "custom": { + "align": "auto", + "cellOptions": { + "type": "color-text" }, - { - "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 + "inspect": false }, - "frameIndex": 1, - "showHeader": true, - "sortBy": [] + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "string" }, - "pluginVersion": "10.0.3", - "repeat": "host", - "repeatDirection": "h", - "targets": [ + "overrides": [ { - "body": "select * from system.localstatementcache where ID='$id'\n", - "cacheDurationSeconds": 0, - "datasource": { - "type": "marcusolsson-json-datasource", - "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" + "matcher": { + "id": "byName", + "options": "Values" }, - "fields": [ + "properties": [ { - "jsonPath": "$.columns[*].text", - "name": "Field", - "type": "string" - }, + "id": "custom.inspect", + "value": true + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Field" + }, + "properties": [ { - "jsonPath": "$.rows[0][*]", - "language": "jsonpath", - "name": "Values", - "type": "string" + "id": "custom.width", + "value": 265 } - ], - "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 + ] + }, + "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": [ { - "allValue": ".*", - "current": { - "selected": true, - "text": [ - "nuoadmin-3.nuodb.internal", - "nuoadmin-2.nuodb.internal" - ], - "value": [ - "nuoadmin-3.nuodb.internal", - "nuoadmin-2.nuodb.internal" - ] - }, + "body": "select * from system.localstatementcache where ID='$id'\n", + "cacheDurationSeconds": 0, "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "type": "marcusolsson-json-datasource", + "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" }, - "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": [ + "fields": [ + { + "jsonPath": "$.columns[*].text", + "name": "Field", + "type": "string" + }, { - "selected": false, - "text": "0", - "value": "0" + "jsonPath": "$.rows[0][*]", + "language": "jsonpath", + "name": "Values", + "type": "string" } ], - "query": "0", - "skipUrlSync": false, - "type": "textbox" + "method": "POST", + "params": [ + [ + "dbname", + "$database" + ], + [ + "hostname", + "$host" + ] + ], + "queryParams": "", + "refId": "A", + "urlPath": "/query" } - ] - }, - "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": 17, - "weekStart": "" - } + "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": 17, + "weekStart": "" } diff --git a/conf/provisioning/dashboards/nuodb_client/sql-statement-executions.json b/conf/provisioning/dashboards/nuodb_client/sql-statement-executions.json index 2daeec5..f050bc8 100644 --- a/conf/provisioning/dashboards/nuodb_client/sql-statement-executions.json +++ b/conf/provisioning/dashboards/nuodb_client/sql-statement-executions.json @@ -1,598 +1,557 @@ { - "meta": { - "type": "db", - "canSave": true, - "canEdit": true, - "canAdmin": true, - "canStar": true, - "canDelete": true, - "slug": "sql-statement-executions", - "url": "/d/Qi5TDej4z/sql-statement-executions", - "expires": "0001-01-01T00:00:00Z", - "created": "2023-07-21T15:31:11Z", - "updated": "2023-07-29T16:28:26Z", - "updatedBy": "admin", - "createdBy": "admin", - "version": 29, - "hasAcl": false, - "isFolder": false, - "folderId": 20, - "folderUid": "b7c2a563-48a3-426d-be2b-0f9fffbd8a85", - "folderTitle": "nuodb_client", - "folderUrl": "/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client", - "provisioned": false, - "provisionedExternalId": "sql-statement-executions.json", - "annotationsPermissions": { - "dashboard": { - "canAdd": true, - "canEdit": true, - "canDelete": true - }, - "organization": { - "canAdd": true, - "canEdit": true, - "canDelete": true - } - }, - "publicDashboardAccessToken": "", - "publicDashboardUid": "", - "publicDashboardEnabled": false - }, - "dashboard": { - "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" - }, + "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" }, - { - "$$hashKey": "object:2934", - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "enable": true, - "hide": false, - "iconColor": "rgba(255, 96, 96, 1)", + "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, - "name": "db annotations", - "showIn": 0, + "matchAny": false, "tags": [ "$database" ], - "target": { - "limit": 100, - "matchAny": false, - "tags": [ - "$database" - ], - "type": "tags" - }, "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" }, - "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": [ + "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": "marcusolsson-json-datasource", + "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" }, - { - "asDropdown": true, - "icon": "external link", - "includeVars": true, - "keepTime": true, - "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": "super-light-blue", - "mode": "fixed" - }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "color-text" - }, - "filterable": false, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "µs" + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "super-light-blue", + "mode": "fixed" }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "ID" - }, - "properties": [ - { - "id": "custom.hidden", - "value": true - }, - { - "id": "unit", - "value": "string" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "NumExecutes" - }, - "properties": [ - { - "id": "unit", - "value": "none" - }, - { - "id": "custom.width", - "value": 118 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "ExecTime" - }, - "properties": [ - { - "id": "custom.width", - "value": 101 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "CompileTime" - }, - "properties": [ - { - "id": "custom.width", - "value": 107 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "MinExecTime" - }, - "properties": [ - { - "id": "custom.width", - "value": 106 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "AvgExecTime" - }, - "properties": [ - { - "id": "custom.width", - "value": 108 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "MaxExecTime" - }, - "properties": [ - { - "id": "custom.width", - "value": 115 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "LastExecuted" - }, - "properties": [ - { - "id": "custom.width", - "value": 175 - } - ] + "custom": { + "align": "auto", + "cellOptions": { + "type": "color-text" }, - { - "matcher": { - "id": "byName", - "options": "SqlString" - }, - "properties": [ - { - "id": "links", - "value": [ - { - "title": "Detals", - "url": "/d/f13dbb76-dc2a-42b9-af72-88700f6857b8/sql-statement-details?var-id=${__data.fields.ID}&${host:queryparam}" - } - ] - } - ] - } - ] - }, - "gridPos": { - "h": 12, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 10, - "interval": "$interval", - "maxPerRow": 2, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "enablePagination": false, - "fields": [ - "EXECTIME", - "COMPILETIME" - ], - "reducer": [ - "sum" - ], - "show": false + "filterable": false, + "inspect": false }, - "frameIndex": 1, - "showHeader": true, - "sortBy": [] + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "µs" }, - "pluginVersion": "10.0.3", - "repeat": "host", - "repeatDirection": "v", - "targets": [ + "overrides": [ { - "body": "select LASTEXECUTED\n ,NUMEXECUTES\n ,EXECTIME\n ,COMPILETIME\n ,MINEXECTIME\n ,EXECTIME/NUMEXECUTES AS AVGEXECTIME\n ,MAXEXECTIME\n ,ID\n ,SQLSTRING\n from system.LOCALSTATEMENTCACHE\nwhere LASTEXECUTED > DATE_SUB(NOW(), INTERVAL $__interval_ms/1000 second)", - "cacheDurationSeconds": 0, - "datasource": { - "type": "marcusolsson-json-datasource", - "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" + "matcher": { + "id": "byName", + "options": "ID" }, - "fields": [ - { - "jsonPath": "$.rows[*][0]", - "name": "LastExecuted", - "type": "time" - }, - { - "jsonPath": "$.rows[*][1]", - "language": "jsonpath", - "name": "NumExecutes" - }, - { - "jsonPath": "$.rows[*][2]", - "language": "jsonpath", - "name": "ExecTime" - }, + "properties": [ { - "jsonPath": "$.rows[*][3]", - "language": "jsonpath", - "name": "CompileTime" + "id": "custom.hidden", + "value": true }, { - "jsonPath": "$.rows[*][4]", - "language": "jsonpath", - "name": "MinExecTime" - }, - { - "jsonPath": "$.rows[*][5]", - "language": "jsonpath", - "name": "AvgExecTime" - }, + "id": "unit", + "value": "string" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "NumExecutes" + }, + "properties": [ { - "jsonPath": "$.rows[*][6]", - "language": "jsonpath", - "name": "MaxExecTime" + "id": "unit", + "value": "none" }, { - "jsonPath": "$.rows[*][7]", - "language": "jsonpath", - "name": "ID", - "type": "string" - }, + "id": "custom.width", + "value": 118 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "ExecTime" + }, + "properties": [ { - "jsonPath": "$.rows[*][8]", - "language": "jsonpath", - "name": "SqlString" + "id": "custom.width", + "value": 101 } - ], - "method": "POST", - "params": [ - [ - "dbname", - "$database" - ], - [ - "hostname", - "$host" - ] - ], - "queryParams": "", - "refId": "A", - "urlPath": "/query" - } - ], - "title": "Statement Executions ($host)", - "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" + { + "matcher": { + "id": "byName", + "options": "CompileTime" }, - { - "selected": true, - "text": "10s", - "value": "10s" + "properties": [ + { + "id": "custom.width", + "value": 107 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "MinExecTime" }, - { - "selected": false, - "text": "30s", - "value": "30s" + "properties": [ + { + "id": "custom.width", + "value": 106 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "AvgExecTime" }, - { - "selected": false, - "text": "1m", - "value": "1m" + "properties": [ + { + "id": "custom.width", + "value": 108 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "MaxExecTime" }, - { - "selected": false, - "text": "5m", - "value": "5m" + "properties": [ + { + "id": "custom.width", + "value": 115 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "LastExecuted" }, - { - "selected": false, - "text": "10m", - "value": "10m" + "properties": [ + { + "id": "custom.width", + "value": 175 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "SqlString" }, + "properties": [ + { + "id": "links", + "value": [ + { + "title": "Detals", + "url": "/d/f13dbb76-dc2a-42b9-af72-88700f6857b8/sql-statement-details?var-id=${__data.fields.ID}&${host:queryparam}" + } + ] + } + ] + } + ] + }, + "gridPos": { + "h": 12, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 10, + "interval": "$interval", + "maxPerRow": 2, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "enablePagination": false, + "fields": [ + "EXECTIME", + "COMPILETIME" + ], + "reducer": [ + "sum" + ], + "show": false + }, + "frameIndex": 1, + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "10.0.3", + "repeat": "host", + "repeatDirection": "v", + "targets": [ + { + "body": "select LASTEXECUTED\n ,NUMEXECUTES\n ,EXECTIME\n ,COMPILETIME\n ,MINEXECTIME\n ,EXECTIME/NUMEXECUTES AS AVGEXECTIME\n ,MAXEXECTIME\n ,ID\n ,SQLSTRING\n from system.LOCALSTATEMENTCACHE\nwhere LASTEXECUTED > DATE_SUB(NOW(), INTERVAL $__interval_ms/1000 second)", + "cacheDurationSeconds": 0, + "datasource": { + "type": "marcusolsson-json-datasource", + "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" + }, + "fields": [ { - "selected": false, - "text": "15m", - "value": "15m" + "jsonPath": "$.rows[*][0]", + "name": "LastExecuted", + "type": "time" }, { - "selected": false, - "text": "30m", - "value": "30m" + "jsonPath": "$.rows[*][1]", + "language": "jsonpath", + "name": "NumExecutes" }, { - "selected": false, - "text": "1h", - "value": "1h" + "jsonPath": "$.rows[*][2]", + "language": "jsonpath", + "name": "ExecTime" }, { - "selected": false, - "text": "6h", - "value": "6h" + "jsonPath": "$.rows[*][3]", + "language": "jsonpath", + "name": "CompileTime" }, { - "selected": false, - "text": "12h", - "value": "12h" + "jsonPath": "$.rows[*][4]", + "language": "jsonpath", + "name": "MinExecTime" }, { - "selected": false, - "text": "1d", - "value": "1d" + "jsonPath": "$.rows[*][5]", + "language": "jsonpath", + "name": "AvgExecTime" }, { - "selected": false, - "text": "7d", - "value": "7d" + "jsonPath": "$.rows[*][6]", + "language": "jsonpath", + "name": "MaxExecTime" }, { - "selected": false, - "text": "14d", - "value": "14d" + "jsonPath": "$.rows[*][7]", + "language": "jsonpath", + "name": "ID", + "type": "string" }, { - "selected": false, - "text": "30d", - "value": "30d" + "jsonPath": "$.rows[*][8]", + "language": "jsonpath", + "name": "SqlString" } ], - "query": "10s,30s,1m,5m,10m,15m,30m,1h,6h,12h,1d,7d,14d,30d", - "queryValue": "", - "refresh": 2, - "skipUrlSync": false, - "type": "interval" + "method": "POST", + "params": [ + [ + "dbname", + "$database" + ], + [ + "hostname", + "$host" + ] + ], + "queryParams": "", + "refId": "A", + "urlPath": "/query" + } + ], + "title": "Statement Executions ($host)", + "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" }, - { - "allValue": ".*", - "current": { + "hide": 0, + "label": "interval", + "name": "interval", + "options": [ + { "selected": false, - "text": "test", - "value": "test" - }, - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "text": "auto", + "value": "$__auto_interval_interval" }, - "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" - ] + "text": "10s", + "value": "10s" }, - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + { + "selected": false, + "text": "30s", + "value": "30s" }, - "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": 29, - "weekStart": "" - } + { + "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": 29, + "weekStart": "" } diff --git a/conf/provisioning/dashboards/nuodb_client/sql-statement-indexes.json b/conf/provisioning/dashboards/nuodb_client/sql-statement-indexes.json index 60ea11d..bdee9bf 100644 --- a/conf/provisioning/dashboards/nuodb_client/sql-statement-indexes.json +++ b/conf/provisioning/dashboards/nuodb_client/sql-statement-indexes.json @@ -1,679 +1,638 @@ { - "meta": { - "type": "db", - "canSave": true, - "canEdit": true, - "canAdmin": true, - "canStar": true, - "canDelete": true, - "slug": "sql-statement-indexes", - "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes", - "expires": "0001-01-01T00:00:00Z", - "created": "2023-07-21T21:53:27Z", - "updated": "2023-07-26T20:55:41Z", - "updatedBy": "Anonymous", - "createdBy": "admin", - "version": 12, - "hasAcl": false, - "isFolder": false, - "folderId": 20, - "folderUid": "b7c2a563-48a3-426d-be2b-0f9fffbd8a85", - "folderTitle": "nuodb_client", - "folderUrl": "/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client", - "provisioned": false, - "provisionedExternalId": "sql-statement-indexes.json", - "annotationsPermissions": { - "dashboard": { - "canAdd": true, - "canEdit": true, - "canDelete": true - }, - "organization": { - "canAdd": true, - "canEdit": true, - "canDelete": true - } - }, - "publicDashboardAccessToken": "", - "publicDashboardUid": "", - "publicDashboardEnabled": false - }, - "dashboard": { - "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" - }, + "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" }, - { - "$$hashKey": "object:2934", - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "enable": true, - "hide": false, - "iconColor": "rgba(255, 96, 96, 1)", + "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, - "name": "db annotations", - "showIn": 0, + "matchAny": false, "tags": [ "$database" ], - "target": { - "limit": 100, - "matchAny": false, - "tags": [ - "$database" - ], - "type": "tags" - }, "type": "tags" - } - ] + }, + "type": "tags" + } + ] + }, + "description": "NuoDB Summary", + "editable": false, + "fiscalYearStartMonth": 0, + "graphTooltip": 1, + "id": 22, + "links": [ + { + "asDropdown": true, + "icon": "external link", + "includeVars": true, + "keepTime": true, + "tags": [ + "overview" + ], + "title": "top views", + "type": "dashboards" }, - "description": "NuoDB Summary", - "editable": false, - "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": [ + "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": "marcusolsson-json-datasource", + "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" }, - { - "asDropdown": true, - "icon": "external link", - "includeVars": true, - "keepTime": true, - "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": "#C0D8FF", - "mode": "fixed" - }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "color-text" - }, - "inspect": false - }, - "links": [], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "none" + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "#C0D8FF", + "mode": "fixed" }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "ID" - }, - "properties": [ - { - "id": "custom.hidden", - "value": true - }, - { - "id": "unit", - "value": "string" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "INDEXHITS" - }, - "properties": [ - { - "id": "custom.width", - "value": 97 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "INDEXFETCHES" - }, - "properties": [ - { - "id": "custom.width", - "value": 128 - } - ] + "custom": { + "align": "auto", + "cellOptions": { + "type": "color-text" }, - { - "matcher": { - "id": "byName", - "options": "EXHAUSTIVEFETCHES" - }, - "properties": [ - { - "id": "custom.width", - "value": 169 - }, - { - "id": "displayName", - "value": "TABLEFETCHES" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "INDEXBATCHFETCHES" - }, - "properties": [ - { - "id": "custom.width", - "value": 203 - }, - { - "id": "displayName", - "value": "#INDEXSCANS" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "#INDEXSCANS" - }, - "properties": [ - { - "id": "custom.width", - "value": 120 - } - ] + "inspect": false + }, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "ID" }, - { - "matcher": { - "id": "byName", - "options": "TABLEFETCHES" + "properties": [ + { + "id": "custom.hidden", + "value": true }, - "properties": [ - { - "id": "custom.width", - "value": 128 - } - ] + { + "id": "unit", + "value": "string" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "INDEXHITS" }, - { - "matcher": { - "id": "byName", - "options": "NUMEXECUTES" - }, - "properties": [ - { - "id": "custom.width", - "value": 129 - } - ] + "properties": [ + { + "id": "custom.width", + "value": 97 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "INDEXFETCHES" }, - { - "matcher": { - "id": "byName", - "options": "LASTEXECUTED" - }, - "properties": [ - { - "id": "custom.width", - "value": 176 - } - ] + "properties": [ + { + "id": "custom.width", + "value": 128 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "EXHAUSTIVEFETCHES" }, - { - "matcher": { - "id": "byName", - "options": "EXHAUSTIVEBATCHFETCHES" + "properties": [ + { + "id": "custom.width", + "value": 169 }, - "properties": [ - { - "id": "custom.width", - "value": 120 - }, - { - "id": "displayName", - "value": "#TABLESCANS" - } - ] + { + "id": "displayName", + "value": "TABLEFETCHES" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "INDEXBATCHFETCHES" }, - { - "matcher": { - "id": "byName", - "options": "SQLSTRING" + "properties": [ + { + "id": "custom.width", + "value": 203 }, - "properties": [ - { - "id": "custom.inspect", - "value": true - }, - { - "id": "links", - "value": [ - { - "title": "Statement Details", - "url": "/d/f13dbb76-dc2a-42b9-af72-88700f6857b8/sql-statement-details?var-id=${__data.fields.ID}&${host:queryparam}" - } - ] - } - ] + { + "id": "displayName", + "value": "#INDEXSCANS" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "#INDEXSCANS" }, - { - "matcher": { - "id": "byName", - "options": "EXECTIME" - }, - "properties": [ - { - "id": "custom.width", - "value": 97 - }, - { - "id": "custom.hidden" - }, - { - "id": "unit", - "value": "µs" - } - ] + "properties": [ + { + "id": "custom.width", + "value": 120 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "TABLEFETCHES" }, - { - "matcher": { - "id": "byName", - "options": "REJECTEDINDEXHITS" - }, - "properties": [ - { - "id": "custom.width", - "value": 88 - }, - { - "id": "displayName", - "value": "REJECTED" - } - ] - } - ] - }, - "gridPos": { - "h": 12, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 10, - "interval": "$interval", - "maxPerRow": 2, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": [ - "sum" - ], - "show": true + "properties": [ + { + "id": "custom.width", + "value": 128 + } + ] }, - "frameIndex": 1, - "showHeader": true, - "sortBy": [ - { - "desc": true, - "displayName": "NUMEXECUTES" - } - ] - }, - "pluginVersion": "10.0.2", - "repeat": "host", - "repeatDirection": "v", - "targets": [ { - "body": "select LASTEXECUTED,\n NUMEXECUTES,\n EXECTIME,\n INDEXHITS,\n REJECTEDINDEXHITS,\n INDEXFETCHES,\n EXHAUSTIVEFETCHES,\n INDEXBATCHFETCHES,\n EXHAUSTIVEBATCHFETCHES,\n SQLSTRING,\n ID\n from system.LOCALSTATEMENTCACHE\n where LASTEXECUTED > DATE_SUB(now(), INTERVAL $__interval_ms/1000 second)", - "cacheDurationSeconds": 0, - "datasource": { - "type": "marcusolsson-json-datasource", - "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" + "matcher": { + "id": "byName", + "options": "NUMEXECUTES" }, - "fields": [ + "properties": [ { - "jsonPath": "$.rows[*][0]", - "name": "LASTEXECUTED", - "type": "time" - }, + "id": "custom.width", + "value": 129 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "LASTEXECUTED" + }, + "properties": [ { - "jsonPath": "$.rows[*][1]", - "language": "jsonpath", - "name": "NUMEXECUTES" - }, + "id": "custom.width", + "value": 176 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "EXHAUSTIVEBATCHFETCHES" + }, + "properties": [ { - "jsonPath": "$.rows[*][2]", - "language": "jsonpath", - "name": "EXECTIME" + "id": "custom.width", + "value": 120 }, { - "jsonPath": "$.rows[*][3]", - "language": "jsonpath", - "name": "INDEXHITS" - }, + "id": "displayName", + "value": "#TABLESCANS" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "SQLSTRING" + }, + "properties": [ { - "jsonPath": "$.rows[*][4]", - "language": "jsonpath", - "name": "REJECTEDINDEXHITS" + "id": "custom.inspect", + "value": true }, { - "jsonPath": "$.rows[*][5]", - "language": "jsonpath", - "name": "INDEXFETCHES" - }, + "id": "links", + "value": [ + { + "title": "Statement Details", + "url": "/d/f13dbb76-dc2a-42b9-af72-88700f6857b8/sql-statement-details?var-id=${__data.fields.ID}&${host:queryparam}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "EXECTIME" + }, + "properties": [ { - "jsonPath": "$.rows[*][6]", - "language": "jsonpath", - "name": "EXHAUSTIVEFETCHES" + "id": "custom.width", + "value": 97 }, { - "jsonPath": "$.rows[*][7]", - "language": "jsonpath", - "name": "INDEXBATCHFETCHES" + "id": "custom.hidden" }, { - "jsonPath": "$.rows[*][8]", - "language": "jsonpath", - "name": "EXHAUSTIVEBATCHFETCHES" - }, + "id": "unit", + "value": "µs" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "REJECTEDINDEXHITS" + }, + "properties": [ { - "jsonPath": "$.rows[*][9]", - "language": "jsonpath", - "name": "SQLSTRING", - "type": "string" + "id": "custom.width", + "value": 88 }, { - "jsonPath": "$.rows[*][10]", - "language": "jsonpath", - "name": "ID", - "type": "string" + "id": "displayName", + "value": "REJECTED" } - ], - "method": "POST", - "params": [ - [ - "dbname", - "$database" - ], - [ - "hostname", - "$host" - ] - ], - "queryParams": "", - "refId": "A", - "urlPath": "/query" + ] } - ], - "title": "Number Rows Returned/Updated ($host)", - "type": "table" - } - ], - "refresh": "30s", - "schemaVersion": 38, - "style": "dark", - "tags": [ - "sql" - ], - "templating": { - "list": [ + ] + }, + "gridPos": { + "h": 12, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 10, + "interval": "$interval", + "maxPerRow": 2, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": true + }, + "frameIndex": 1, + "showHeader": true, + "sortBy": [ + { + "desc": true, + "displayName": "NUMEXECUTES" + } + ] + }, + "pluginVersion": "10.0.2", + "repeat": "host", + "repeatDirection": "v", + "targets": [ { - "auto": true, - "auto_count": "50", - "auto_min": "10s", - "current": { - "selected": false, - "text": "10s", - "value": "10s" + "body": "select LASTEXECUTED,\n NUMEXECUTES,\n EXECTIME,\n INDEXHITS,\n REJECTEDINDEXHITS,\n INDEXFETCHES,\n EXHAUSTIVEFETCHES,\n INDEXBATCHFETCHES,\n EXHAUSTIVEBATCHFETCHES,\n SQLSTRING,\n ID\n from system.LOCALSTATEMENTCACHE\n where LASTEXECUTED > DATE_SUB(now(), INTERVAL $__interval_ms/1000 second)", + "cacheDurationSeconds": 0, + "datasource": { + "type": "marcusolsson-json-datasource", + "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" }, - "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" - }, + "fields": [ { - "selected": false, - "text": "1m", - "value": "1m" + "jsonPath": "$.rows[*][0]", + "name": "LASTEXECUTED", + "type": "time" }, { - "selected": false, - "text": "5m", - "value": "5m" + "jsonPath": "$.rows[*][1]", + "language": "jsonpath", + "name": "NUMEXECUTES" }, { - "selected": false, - "text": "10m", - "value": "10m" + "jsonPath": "$.rows[*][2]", + "language": "jsonpath", + "name": "EXECTIME" }, { - "selected": false, - "text": "15m", - "value": "15m" + "jsonPath": "$.rows[*][3]", + "language": "jsonpath", + "name": "INDEXHITS" }, { - "selected": false, - "text": "30m", - "value": "30m" + "jsonPath": "$.rows[*][4]", + "language": "jsonpath", + "name": "REJECTEDINDEXHITS" }, { - "selected": false, - "text": "1h", - "value": "1h" + "jsonPath": "$.rows[*][5]", + "language": "jsonpath", + "name": "INDEXFETCHES" }, { - "selected": false, - "text": "6h", - "value": "6h" + "jsonPath": "$.rows[*][6]", + "language": "jsonpath", + "name": "EXHAUSTIVEFETCHES" }, { - "selected": false, - "text": "12h", - "value": "12h" + "jsonPath": "$.rows[*][7]", + "language": "jsonpath", + "name": "INDEXBATCHFETCHES" }, { - "selected": false, - "text": "1d", - "value": "1d" + "jsonPath": "$.rows[*][8]", + "language": "jsonpath", + "name": "EXHAUSTIVEBATCHFETCHES" }, { - "selected": false, - "text": "7d", - "value": "7d" + "jsonPath": "$.rows[*][9]", + "language": "jsonpath", + "name": "SQLSTRING", + "type": "string" }, { - "selected": false, - "text": "14d", - "value": "14d" - }, - { - "selected": false, - "text": "30d", - "value": "30d" + "jsonPath": "$.rows[*][10]", + "language": "jsonpath", + "name": "ID", + "type": "string" } ], - "query": "10s,30s,1m,5m,10m,15m,30m,1h,6h,12h,1d,7d,14d,30d", - "queryValue": "", - "refresh": 2, - "skipUrlSync": false, - "type": "interval" + "method": "POST", + "params": [ + [ + "dbname", + "$database" + ], + [ + "hostname", + "$host" + ] + ], + "queryParams": "", + "refId": "A", + "urlPath": "/query" + } + ], + "title": "Number Rows Returned/Updated ($host)", + "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" }, - { - "allValue": ".*", - "current": { + "hide": 0, + "label": "interval", + "name": "interval", + "options": [ + { "selected": false, - "text": "test", - "value": "test" - }, - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "text": "auto", + "value": "$__auto_interval_interval" }, - "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" - ] + "text": "10s", + "value": "10s" }, - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + { + "selected": false, + "text": "30s", + "value": "30s" }, - "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 Indexes", - "uid": "c5af0e56-adeb-4e24-aab3-427e225c0559", - "version": 12, - "weekStart": "" - } + { + "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 + } + ] + }, + "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 Indexes", + "uid": "c5af0e56-adeb-4e24-aab3-427e225c0559", + "version": 12, + "weekStart": "" } diff --git a/conf/provisioning/dashboards/nuodb_client/sql-statement-operations.json b/conf/provisioning/dashboards/nuodb_client/sql-statement-operations.json index c705334..5a2eca1 100644 --- a/conf/provisioning/dashboards/nuodb_client/sql-statement-operations.json +++ b/conf/provisioning/dashboards/nuodb_client/sql-statement-operations.json @@ -1,597 +1,556 @@ { - "meta": { - "type": "db", - "canSave": true, - "canEdit": true, - "canAdmin": true, - "canStar": true, - "canDelete": true, - "slug": "sql-statement-operations", - "url": "/d/Cp_9O6C4k/sql-statement-operations", - "expires": "0001-01-01T00:00:00Z", - "created": "2023-07-21T15:56:00Z", - "updated": "2023-08-01T18:58:00Z", - "updatedBy": "admin", - "createdBy": "admin", - "version": 33, - "hasAcl": false, - "isFolder": false, - "folderId": 20, - "folderUid": "b7c2a563-48a3-426d-be2b-0f9fffbd8a85", - "folderTitle": "nuodb_client", - "folderUrl": "/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client", - "provisioned": false, - "provisionedExternalId": "sql-statement-operations.json", - "annotationsPermissions": { - "dashboard": { - "canAdd": true, - "canEdit": true, - "canDelete": true - }, - "organization": { - "canAdd": true, - "canEdit": true, - "canDelete": true - } - }, - "publicDashboardAccessToken": "", - "publicDashboardUid": "", - "publicDashboardEnabled": false - }, - "dashboard": { - "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" - }, + "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" }, - { - "$$hashKey": "object:2934", - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "enable": true, - "hide": false, - "iconColor": "rgba(255, 96, 96, 1)", + "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, - "name": "db annotations", - "showIn": 0, + "matchAny": false, "tags": [ "$database" ], - "target": { - "limit": 100, - "matchAny": false, - "tags": [ - "$database" - ], - "type": "tags" - }, "type": "tags" - } - ] + }, + "type": "tags" + } + ] + }, + "description": "NuoDB Summary", + "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" }, - "description": "NuoDB Summary", - "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": 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": "marcusolsson-json-datasource", + "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" }, - { - "asDropdown": true, - "icon": "external link", - "includeVars": true, - "keepTime": true, - "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": "super-light-blue", + "mode": "fixed" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "color-text" + }, + "inspect": false + }, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "none" }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "super-light-blue", - "mode": "fixed" + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "ID" }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "color-text" + "properties": [ + { + "id": "custom.hidden", + "value": true }, - "inspect": false - }, - "links": [], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] + { + "id": "unit", + "value": "string" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "INSERTS" }, - "unit": "none" + "properties": [ + { + "id": "custom.width", + "value": 107 + } + ] }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "ID" - }, - "properties": [ - { - "id": "custom.hidden", - "value": true - }, - { - "id": "unit", - "value": "string" - } - ] + { + "matcher": { + "id": "byName", + "options": "RECORDSRETURNED" }, - { - "matcher": { - "id": "byName", - "options": "INSERTS" - }, - "properties": [ - { - "id": "custom.width", - "value": 107 - } - ] + "properties": [ + { + "id": "custom.width", + "value": 163 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "UPDATES" }, - { - "matcher": { - "id": "byName", - "options": "RECORDSRETURNED" - }, - "properties": [ - { - "id": "custom.width", - "value": 163 - } - ] + "properties": [ + { + "id": "custom.width", + "value": 99 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "DELETIONS" }, - { - "matcher": { - "id": "byName", - "options": "UPDATES" - }, - "properties": [ - { - "id": "custom.width", - "value": 99 - } - ] + "properties": [ + { + "id": "custom.width", + "value": 100 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "REPLACES" }, - { - "matcher": { - "id": "byName", - "options": "DELETIONS" - }, - "properties": [ - { - "id": "custom.width", - "value": 100 - } - ] + "properties": [ + { + "id": "custom.width", + "value": 95 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "SQLSTRING" }, - { - "matcher": { - "id": "byName", - "options": "REPLACES" - }, - "properties": [ - { - "id": "custom.width", - "value": 95 + "properties": [ + { + "id": "custom.cellOptions", + "value": { + "type": "color-text" } - ] - }, - { - "matcher": { - "id": "byName", - "options": "SQLSTRING" }, - "properties": [ - { - "id": "custom.cellOptions", - "value": { - "type": "color-text" + { + "id": "links", + "value": [ + { + "targetBlank": false, + "title": "Details", + "url": "/d/f13dbb76-dc2a-42b9-af72-88700f6857b8/sql-statement-details?var-id=${__data.fields.ID}&${host:queryparam}" } - }, - { - "id": "links", - "value": [ - { - "targetBlank": false, - "title": "Details", - "url": "/d/f13dbb76-dc2a-42b9-af72-88700f6857b8/sql-statement-details?var-id=${__data.fields.ID}&${host:queryparam}" - } - ] - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "NUMEXECUTES" - }, - "properties": [ - { - "id": "custom.width", - "value": 127 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "LASTEXECUTED" - }, - "properties": [ - { - "id": "custom.width", - "value": 172 - } - ] - } - ] - }, - "gridPos": { - "h": 12, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 10, - "interval": "$interval", - "maxPerRow": 2, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": [ - "sum" - ], - "show": true + ] + } + ] }, - "frameIndex": 1, - "showHeader": true, - "sortBy": [] - }, - "pluginVersion": "10.0.3", - "repeat": "host", - "repeatDirection": "v", - "targets": [ { - "body": "select LASTEXECUTED\n ,NUMEXECUTES\n ,RECORDSRETURNED\n ,INSERTS\n ,UPDATES\n ,DELETIONS\n ,REPLACES\n ,SQLSTRING\n ,ID\n from system.LOCALSTATEMENTCACHE\n where LASTEXECUTED > DATE_SUB(now(), INTERVAL $__interval_ms/1000 second) and ID is not null\n", - "cacheDurationSeconds": 0, - "datasource": { - "type": "marcusolsson-json-datasource", - "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" + "matcher": { + "id": "byName", + "options": "NUMEXECUTES" }, - "fields": [ - { - "jsonPath": "$.rows[*][0]", - "name": "LASTEXECUTED", - "type": "time" - }, + "properties": [ { - "jsonPath": "$.rows[*][1]", - "language": "jsonpath", - "name": "NUMEXECUTES" - }, - { - "jsonPath": "$.rows[*][2]", - "language": "jsonpath", - "name": "RECORDSRETURNED" - }, - { - "jsonPath": "$.rows[*][3]", - "language": "jsonpath", - "name": "INSERTS" - }, - { - "jsonPath": "$.rows[*][4]", - "language": "jsonpath", - "name": "UPDATES" - }, - { - "jsonPath": "$.rows[*][5]", - "language": "jsonpath", - "name": "DELETIONS" - }, - { - "jsonPath": "$.rows[*][6]", - "language": "jsonpath", - "name": "REPLACES" - }, - { - "jsonPath": "$.rows[*][7]", - "language": "jsonpath", - "name": "SQLSTRING" - }, + "id": "custom.width", + "value": 127 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "LASTEXECUTED" + }, + "properties": [ { - "jsonPath": "$.rows[*][8]", - "language": "jsonpath", - "name": "ID", - "type": "string" + "id": "custom.width", + "value": 172 } - ], - "method": "POST", - "params": [ - [ - "dbname", - "$database" - ], - [ - "hostname", - "$host" - ] - ], - "queryParams": "", - "refId": "A", - "urlPath": "/query" + ] } - ], - "title": "Number Rows Returned/Updated ($host)", - "type": "table" - } - ], - "refresh": "", - "schemaVersion": 38, - "style": "dark", - "tags": [ - "sql" - ], - "templating": { - "list": [ + ] + }, + "gridPos": { + "h": 12, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 10, + "interval": "$interval", + "maxPerRow": 2, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": true + }, + "frameIndex": 1, + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "10.0.3", + "repeat": "host", + "repeatDirection": "v", + "targets": [ { - "auto": true, - "auto_count": "50", - "auto_min": "10s", - "current": { - "selected": false, - "text": "auto", - "value": "$__auto_interval_interval" + "body": "select LASTEXECUTED\n ,NUMEXECUTES\n ,RECORDSRETURNED\n ,INSERTS\n ,UPDATES\n ,DELETIONS\n ,REPLACES\n ,SQLSTRING\n ,ID\n from system.LOCALSTATEMENTCACHE\n where LASTEXECUTED > DATE_SUB(now(), INTERVAL $__interval_ms/1000 second) and ID is not null\n", + "cacheDurationSeconds": 0, + "datasource": { + "type": "marcusolsson-json-datasource", + "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" }, - "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" - }, + "fields": [ { - "selected": false, - "text": "1m", - "value": "1m" + "jsonPath": "$.rows[*][0]", + "name": "LASTEXECUTED", + "type": "time" }, { - "selected": false, - "text": "5m", - "value": "5m" + "jsonPath": "$.rows[*][1]", + "language": "jsonpath", + "name": "NUMEXECUTES" }, { - "selected": false, - "text": "10m", - "value": "10m" + "jsonPath": "$.rows[*][2]", + "language": "jsonpath", + "name": "RECORDSRETURNED" }, { - "selected": false, - "text": "15m", - "value": "15m" + "jsonPath": "$.rows[*][3]", + "language": "jsonpath", + "name": "INSERTS" }, { - "selected": false, - "text": "30m", - "value": "30m" + "jsonPath": "$.rows[*][4]", + "language": "jsonpath", + "name": "UPDATES" }, { - "selected": false, - "text": "1h", - "value": "1h" + "jsonPath": "$.rows[*][5]", + "language": "jsonpath", + "name": "DELETIONS" }, { - "selected": false, - "text": "6h", - "value": "6h" + "jsonPath": "$.rows[*][6]", + "language": "jsonpath", + "name": "REPLACES" }, { - "selected": false, - "text": "12h", - "value": "12h" + "jsonPath": "$.rows[*][7]", + "language": "jsonpath", + "name": "SQLSTRING" }, { - "selected": false, - "text": "1d", - "value": "1d" - }, - { - "selected": false, - "text": "7d", - "value": "7d" - }, - { - "selected": false, - "text": "14d", - "value": "14d" - }, - { - "selected": false, - "text": "30d", - "value": "30d" + "jsonPath": "$.rows[*][8]", + "language": "jsonpath", + "name": "ID", + "type": "string" } ], - "query": "10s,30s,1m,5m,10m,15m,30m,1h,6h,12h,1d,7d,14d,30d", - "queryValue": "", - "refresh": 2, - "skipUrlSync": false, - "type": "interval" + "method": "POST", + "params": [ + [ + "dbname", + "$database" + ], + [ + "hostname", + "$host" + ] + ], + "queryParams": "", + "refId": "A", + "urlPath": "/query" + } + ], + "title": "Number Rows Returned/Updated ($host)", + "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" }, - { - "allValue": ".*", - "current": { + "hide": 0, + "label": "interval", + "name": "interval", + "options": [ + { "selected": false, - "text": "test", - "value": "test" - }, - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + "text": "auto", + "value": "$__auto_interval_interval" }, - "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" - ] + "text": "10s", + "value": "10s" }, - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + { + "selected": false, + "text": "30s", + "value": "30s" }, - "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 Operations", - "uid": "Cp_9O6C4k", - "version": 33, - "weekStart": "" - } + { + "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 Operations", + "uid": "Cp_9O6C4k", + "version": 33, + "weekStart": "" } diff --git a/conf/provisioning/dashboards/nuodb_client/sql-statement-records.json b/conf/provisioning/dashboards/nuodb_client/sql-statement-records.json index f99ccdb..d66ff56 100644 --- a/conf/provisioning/dashboards/nuodb_client/sql-statement-records.json +++ b/conf/provisioning/dashboards/nuodb_client/sql-statement-records.json @@ -1,628 +1,587 @@ { - "meta": { - "type": "db", - "canSave": true, - "canEdit": true, - "canAdmin": true, - "canStar": true, - "canDelete": true, - "slug": "sql-statement-records", - "url": "/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records", - "expires": "0001-01-01T00:00:00Z", - "created": "2023-07-21T22:33:55Z", - "updated": "2023-07-26T20:55:41Z", - "updatedBy": "Anonymous", - "createdBy": "admin", - "version": 10, - "hasAcl": false, - "isFolder": false, - "folderId": 20, - "folderUid": "b7c2a563-48a3-426d-be2b-0f9fffbd8a85", - "folderTitle": "nuodb_client", - "folderUrl": "/dashboards/f/b7c2a563-48a3-426d-be2b-0f9fffbd8a85/nuodb-client", - "provisioned": false, - "provisionedExternalId": "sql-statement-records.json", - "annotationsPermissions": { - "dashboard": { - "canAdd": true, - "canEdit": true, - "canDelete": true - }, - "organization": { - "canAdd": true, - "canEdit": true, - "canDelete": true - } - }, - "publicDashboardAccessToken": "", - "publicDashboardUid": "", - "publicDashboardEnabled": false - }, - "dashboard": { - "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" - }, + "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" }, - { - "$$hashKey": "object:2934", - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "enable": true, - "hide": false, - "iconColor": "rgba(255, 96, 96, 1)", + "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, - "name": "db annotations", - "showIn": 0, + "matchAny": false, "tags": [ "$database" ], - "target": { - "limit": 100, - "matchAny": false, - "tags": [ - "$database" - ], - "type": "tags" - }, "type": "tags" - } - ] + }, + "type": "tags" + } + ] + }, + "description": "NuoDB Summary", + "editable": false, + "fiscalYearStartMonth": 0, + "graphTooltip": 1, + "id": 23, + "links": [ + { + "asDropdown": true, + "icon": "external link", + "includeVars": true, + "keepTime": true, + "tags": [ + "overview" + ], + "title": "top views", + "type": "dashboards" }, - "description": "NuoDB Summary", - "editable": false, - "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": [ + "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": "marcusolsson-json-datasource", + "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" }, - { - "asDropdown": true, - "icon": "external link", - "includeVars": true, - "keepTime": true, - "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": "#C0D8FF", - "mode": "fixed" - }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "color-text" - }, - "inspect": false - }, - "links": [], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "none" + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "#C0D8FF", + "mode": "fixed" }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "ID" - }, - "properties": [ - { - "id": "custom.hidden", - "value": true - }, - { - "id": "unit", - "value": "string" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "LOCKED" - }, - "properties": [ - { - "id": "custom.width", - "value": 115 - } - ] + "custom": { + "align": "auto", + "cellOptions": { + "type": "color-text" }, - { - "matcher": { - "id": "byName", - "options": "RECORDSFETCHED" - }, - "properties": [ - { - "id": "custom.width", - "value": 137 - }, - { - "id": "displayName", - "value": "FETCHED" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "RECORDSSORTED" - }, - "properties": [ - { - "id": "custom.width", - "value": 169 - }, - { - "id": "displayName", - "value": "SORTED" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "EVICTED" - }, - "properties": [ - { - "id": "custom.width", - "value": 119 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "NUMEXECUTES" - }, - "properties": [ - { - "id": "custom.width", - "value": 129 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "LASTEXECUTED" - }, - "properties": [ - { - "id": "custom.width", - "value": 160 - } - ] + "inspect": false + }, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "ID" }, - { - "matcher": { - "id": "byName", - "options": "SQLSTRING" + "properties": [ + { + "id": "custom.hidden", + "value": true }, - "properties": [ - { - "id": "custom.inspect", - "value": true - }, - { - "id": "links", - "value": [ - { - "title": "Statement Details", - "url": "/d/f13dbb76-dc2a-42b9-af72-88700f6857b8/sql-statement-details?var-id=${__data.fields.ID}&${host:queryparam}" - } - ] - } - ] + { + "id": "unit", + "value": "string" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "LOCKED" }, - { - "matcher": { - "id": "byName", - "options": "EXECTIME" - }, - "properties": [ - { - "id": "custom.width", - "value": 113 - }, - { - "id": "unit", - "value": "µs" - } - ] + "properties": [ + { + "id": "custom.width", + "value": 115 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "RECORDSFETCHED" }, - { - "matcher": { - "id": "byName", - "options": "SORTED" + "properties": [ + { + "id": "custom.width", + "value": 137 }, - "properties": [ - { - "id": "custom.width", - "value": 99 - } - ] + { + "id": "displayName", + "value": "FETCHED" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "RECORDSSORTED" }, - { - "matcher": { - "id": "byName", - "options": "RECORDSFETCHED" + "properties": [ + { + "id": "custom.width", + "value": 169 }, - "properties": [ - { - "id": "custom.width", - "value": 121 - } - ] - } - ] - }, - "gridPos": { - "h": 12, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 10, - "interval": "$interval", - "maxPerRow": 2, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": [ - "sum" - ], - "show": true + { + "id": "displayName", + "value": "SORTED" + } + ] }, - "frameIndex": 1, - "showHeader": true, - "sortBy": [] - }, - "pluginVersion": "10.0.2", - "repeat": "host", - "repeatDirection": "v", - "targets": [ { - "body": "select LASTEXECUTED\n ,NUMEXECUTES\n ,EXECTIME\n ,RECORDSFETCHED\n ,LOCKED\n ,RECORDSSORTED\n ,EVICTED\n ,SQLSTRING\n ,ID\n from system.LOCALSTATEMENTCACHE\nwhere LASTEXECUTED > DATE_SUB(now(), INTERVAL $__interval_ms / 1000 second)\n\n", - "cacheDurationSeconds": 0, - "datasource": { - "type": "marcusolsson-json-datasource", - "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" + "matcher": { + "id": "byName", + "options": "EVICTED" }, - "fields": [ + "properties": [ { - "jsonPath": "$.rows[*][0]", - "name": "LASTEXECUTED", - "type": "time" - }, + "id": "custom.width", + "value": 119 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "NUMEXECUTES" + }, + "properties": [ { - "jsonPath": "$.rows[*][1]", - "language": "jsonpath", - "name": "NUMEXECUTES" - }, + "id": "custom.width", + "value": 129 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "LASTEXECUTED" + }, + "properties": [ { - "jsonPath": "$.rows[*][2]", - "language": "jsonpath", - "name": "EXECTIME" - }, + "id": "custom.width", + "value": 160 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "SQLSTRING" + }, + "properties": [ { - "jsonPath": "$.rows[*][3]", - "language": "jsonpath", - "name": "RECORDSFETCHED" + "id": "custom.inspect", + "value": true }, { - "jsonPath": "$.rows[*][4]", - "language": "jsonpath", - "name": "LOCKED" - }, + "id": "links", + "value": [ + { + "title": "Statement Details", + "url": "/d/f13dbb76-dc2a-42b9-af72-88700f6857b8/sql-statement-details?var-id=${__data.fields.ID}&${host:queryparam}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "EXECTIME" + }, + "properties": [ { - "jsonPath": "$.rows[*][5]", - "language": "jsonpath", - "name": "RECORDSSORTED" + "id": "custom.width", + "value": 113 }, { - "jsonPath": "$.rows[*][6]", - "language": "jsonpath", - "name": "EVICTED" - }, + "id": "unit", + "value": "µs" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "SORTED" + }, + "properties": [ { - "jsonPath": "$.rows[*][7]", - "language": "jsonpath", - "name": "SQLSTRING" - }, + "id": "custom.width", + "value": 99 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "RECORDSFETCHED" + }, + "properties": [ { - "jsonPath": "$.rows[*][8]", - "language": "jsonpath", - "name": "ID", - "type": "string" + "id": "custom.width", + "value": 121 } - ], - "method": "POST", - "params": [ - [ - "dbname", - "$database" - ], - [ - "hostname", - "$host" - ] - ], - "queryParams": "", - "refId": "A", - "urlPath": "/query" + ] } - ], - "title": "Records ($host)", - "type": "table" - } - ], - "refresh": "30s", - "schemaVersion": 38, - "style": "dark", - "tags": [ - "sql" - ], - "templating": { - "list": [ + ] + }, + "gridPos": { + "h": 12, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 10, + "interval": "$interval", + "maxPerRow": 2, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": true + }, + "frameIndex": 1, + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "10.0.2", + "repeat": "host", + "repeatDirection": "v", + "targets": [ { - "auto": true, - "auto_count": "50", - "auto_min": "10s", - "current": { - "selected": false, - "text": "10s", - "value": "10s" + "body": "select LASTEXECUTED\n ,NUMEXECUTES\n ,EXECTIME\n ,RECORDSFETCHED\n ,LOCKED\n ,RECORDSSORTED\n ,EVICTED\n ,SQLSTRING\n ,ID\n from system.LOCALSTATEMENTCACHE\nwhere LASTEXECUTED > DATE_SUB(now(), INTERVAL $__interval_ms / 1000 second)\n\n", + "cacheDurationSeconds": 0, + "datasource": { + "type": "marcusolsson-json-datasource", + "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" }, - "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" - }, + "fields": [ { - "selected": false, - "text": "1m", - "value": "1m" + "jsonPath": "$.rows[*][0]", + "name": "LASTEXECUTED", + "type": "time" }, { - "selected": false, - "text": "5m", - "value": "5m" + "jsonPath": "$.rows[*][1]", + "language": "jsonpath", + "name": "NUMEXECUTES" }, { - "selected": false, - "text": "10m", - "value": "10m" + "jsonPath": "$.rows[*][2]", + "language": "jsonpath", + "name": "EXECTIME" }, { - "selected": false, - "text": "15m", - "value": "15m" + "jsonPath": "$.rows[*][3]", + "language": "jsonpath", + "name": "RECORDSFETCHED" }, { - "selected": false, - "text": "30m", - "value": "30m" + "jsonPath": "$.rows[*][4]", + "language": "jsonpath", + "name": "LOCKED" }, { - "selected": false, - "text": "1h", - "value": "1h" + "jsonPath": "$.rows[*][5]", + "language": "jsonpath", + "name": "RECORDSSORTED" }, { - "selected": false, - "text": "6h", - "value": "6h" + "jsonPath": "$.rows[*][6]", + "language": "jsonpath", + "name": "EVICTED" }, { - "selected": false, - "text": "12h", - "value": "12h" + "jsonPath": "$.rows[*][7]", + "language": "jsonpath", + "name": "SQLSTRING" }, { - "selected": false, - "text": "1d", - "value": "1d" - }, - { - "selected": false, - "text": "7d", - "value": "7d" - }, - { - "selected": false, - "text": "14d", - "value": "14d" - }, - { - "selected": false, - "text": "30d", - "value": "30d" + "jsonPath": "$.rows[*][8]", + "language": "jsonpath", + "name": "ID", + "type": "string" } ], - "query": "10s,30s,1m,5m,10m,15m,30m,1h,6h,12h,1d,7d,14d,30d", - "queryValue": "", - "refresh": 2, - "skipUrlSync": false, - "type": "interval" + "method": "POST", + "params": [ + [ + "dbname", + "$database" + ], + [ + "hostname", + "$host" + ] + ], + "queryParams": "", + "refId": "A", + "urlPath": "/query" + } + ], + "title": "Records ($host)", + "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" }, - { - "allValue": ".*", - "current": { + "hide": 0, + "label": "interval", + "name": "interval", + "options": [ + { "selected": false, - "text": "test", - "value": "test" + "text": "auto", + "value": "$__auto_interval_interval" }, - "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" - ] + "text": "10s", + "value": "10s" }, - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" + { + "selected": false, + "text": "30s", + "value": "30s" }, - "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 Records", - "uid": "f1af96f4-c6b6-4813-9cab-39bda6df0650", - "version": 10, - "weekStart": "" - } + { + "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 + } + ] + }, + "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 Records", + "uid": "f1af96f4-c6b6-4813-9cab-39bda6df0650", + "version": 10, + "weekStart": "" } From 0dde142070e3a4a01896388b2d7e316598b39475 Mon Sep 17 00:00:00 2001 From: Dirk Butson Date: Fri, 6 Oct 2023 18:30:12 -0400 Subject: [PATCH 11/14] fixed data link for sql client messages from nuodb sql overview --- .../nuodb_client/nuodb-sql-overview.json | 1323 +++++------------ 1 file changed, 359 insertions(+), 964 deletions(-) diff --git a/conf/provisioning/dashboards/nuodb_client/nuodb-sql-overview.json b/conf/provisioning/dashboards/nuodb_client/nuodb-sql-overview.json index 1fe2428..47a22be 100644 --- a/conf/provisioning/dashboards/nuodb_client/nuodb-sql-overview.json +++ b/conf/provisioning/dashboards/nuodb_client/nuodb-sql-overview.json @@ -38,10 +38,10 @@ } ] }, - "editable": false, + "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 1, - "id": 14, + "id": 16, "links": [ { "asDropdown": true, @@ -576,7 +576,7 @@ }, "gridPos": { "h": 5, - "w": 9, + "w": 6, "x": 0, "y": 2 }, @@ -584,8 +584,8 @@ "id": 45, "links": [ { - "title": "", - "url": "/d/z35SM6j4z/client-messages?${__all_variables}&${__url_time_range}" + "title": "message chart", + "url": "/d/f499edfc-76ed-4d7a-843d-e73e4b6a2ef4/sql-client-messages?${__url_time_range}&${__all_variables}&groups=All" } ], "options": { @@ -997,6 +997,234 @@ "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": [ + "lastNotNull" + ], + "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": [ + "lastNotNull" + ], + "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", @@ -1017,8 +1245,8 @@ "links": [ { "targetBlank": false, - "title": "Details", - "url": "/d/z35SM6j4z/client-messages" + "title": "message chart", + "url": "/d/f499edfc-76ed-4d7a-843d-e73e4b6a2ef4/sql-client-messages?${__url_time_range}&${__all_variables}&groups=All" } ], "mappings": [], @@ -1029,16 +1257,15 @@ "gridPos": { "h": 5, "w": 3, - "x": 9, + "x": 12, "y": 2 }, "hideTimeOverride": true, "id": 52, "links": [ { - "targetBlank": false, - "title": "", - "url": "/d/z35SM6j4z/client-messages?${__all_variables}&${__url_time_range}" + "title": "message chart", + "url": "/d/f499edfc-76ed-4d7a-843d-e73e4b6a2ef4/sql-client-messages?${__url_time_range}&${__all_variables}&groups=All" } ], "options": { @@ -1483,15 +1710,15 @@ "gridPos": { "h": 5, "w": 3, - "x": 12, + "x": 15, "y": 2 }, "hideTimeOverride": true, "id": 54, "links": [ { - "title": "Details", - "url": "/d/z35SM6j4z/client-messages?${__all_variables}&${__url_time_range}" + "title": "message chart", + "url": "/d/f499edfc-76ed-4d7a-843d-e73e4b6a2ef4/sql-client-messages?${__url_time_range}&${__all_variables}&groups=All" } ], "options": { @@ -1966,16 +2193,16 @@ }, "gridPos": { "h": 5, - "w": 9, - "x": 15, + "w": 6, + "x": 18, "y": 2 }, "hideTimeOverride": true, "id": 44, "links": [ { - "title": "Details", - "url": "/d/z35SM6j4z/client-messages?${__all_variables}&${__url_time_range}" + "title": "message chart", + "url": "/d/f499edfc-76ed-4d7a-843d-e73e4b6a2ef4/sql-client-messages?${__url_time_range}&${__all_variables}&groups=All" } ], "options": { @@ -2268,770 +2495,11 @@ "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": "Platform", - "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": [ - "lastNotNull" - ], - "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": [ - "lastNotNull" - ], - "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 - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 6, - "y": 8 - }, - "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": [ - "lastNotNull" - ], - "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" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "light-blue", - "value": null - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 9, - "y": 8 - }, - "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": [ - "lastNotNull" - ], - "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": "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": { - "fixedColor": "semi-dark-yellow", - "mode": "fixed" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "light-blue", - "value": null - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 12, - "y": 8 - }, - "hideTimeOverride": true, - "id": 46, - "links": [ - { - "title": "SQL Dashboard", - "url": "/d/J9fZNkr4z/sql?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "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": "SqlListenerSqlProcTime", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT SUM(R) FROM (SELECT mean(\"rate\") AS R FROM \"Commits\" 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": "Commits", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "light-blue", - "value": null - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 15, - "y": 8 - }, - "hideTimeOverride": true, - "id": 33, - "links": [ - { - "title": "SQL Dashboard", - "url": "/d/J9fZNkr4z/sql?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "10.0.3", - "targets": [ + } + ] + }, { + "alias": "Connection", "datasource": { "type": "influxdb", "uid": "P7F1571328205BBA6" @@ -3050,10 +2518,10 @@ "type": "fill" } ], - "measurement": "Inserts", + "measurement": "SqlClientConnectionTime", "orderByTime": "ASC", "policy": "default", - "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"Inserts\" WHERE (\"nodetype\" = 'Transaction' AND \"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/) AND $timeFilter GROUP BY startid, time($__interval) fill(null)) group BY time($__interval)", + "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", @@ -3076,70 +2544,17 @@ "key": "nodetype", "operator": "=", "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" } ] - } - ], - "timeShift": "10s", - "title": "Inserts", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "light-blue", - "value": null - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 18, - "y": 8 - }, - "hideTimeOverride": true, - "id": 35, - "links": [ - { - "title": "SQL Dashboard", - "url": "/d/J9fZNkr4z/sql?${__all_variables}&${__url_time_range}" - } - ], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "10.0.3", - "targets": [ { + "alias": "Database", "datasource": { "type": "influxdb", "uid": "P7F1571328205BBA6" @@ -3158,12 +2573,13 @@ "type": "fill" } ], - "measurement": "Updates", + "hide": false, + "measurement": "SqlClientConnectionTime", "orderByTime": "ASC", "policy": "default", - "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"Updates\" WHERE (\"nodetype\" = 'Transaction') AND (\"db\" =~ /^$database$/) AND (\"host\" =~ /^$host$/) AND $timeFilter GROUP BY startid, time($__interval) fill(null)) group BY time($__interval)", + "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": "A", + "refId": "B", "resultFormat": "time_series", "select": [ [ @@ -3184,13 +2600,45 @@ "key": "nodetype", "operator": "=", "value": "Transaction" + }, + { + "condition": "AND", + "key": "db", + "operator": "=~", + "value": "/^$database$/" } ] } ], "timeShift": "10s", - "title": "Updates", - "type": "stat" + "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", + "type": "row" }, { "datasource": { @@ -3207,27 +2655,27 @@ "mode": "absolute", "steps": [ { - "color": "light-blue", + "color": "super-light-blue", "value": null } ] }, - "unit": "none" + "unit": "µs" }, "overrides": [] }, "gridPos": { "h": 4, "w": 3, - "x": 21, + "x": 0, "y": 8 }, "hideTimeOverride": true, - "id": 34, + "id": 25, "links": [ { - "title": "SQL Dashboard", - "url": "/d/J9fZNkr4z/sql?${__all_variables}&${__url_time_range}" + "title": "Execute Breakdown", + "url": "/d/Qi5TDej4z/sql-statement-cache?${__all_variables}&${__url_time_range}" } ], "options": { @@ -3266,10 +2714,10 @@ "type": "fill" } ], - "measurement": "Deletes", + "measurement": "SqlStatementExecTime", "orderByTime": "ASC", "policy": "default", - "query": "SELECT sum(a) FROM (SELECT mean(\"rate\") as a FROM \"Deletes\" WHERE (\"nodetype\" = 'Transaction' AND \"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/) AND $timeFilter GROUP BY startid, time($__interval) fill(null)) group BY time($__interval)", + "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", @@ -3297,35 +2745,9 @@ } ], "timeShift": "10s", - "title": "Deletes", + "title": "Statement Exec Time", "type": "stat" }, - { - "collapsed": false, - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 12 - }, - "id": 23, - "panels": [], - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "refId": "A" - } - ], - "title": "Rows", - "type": "row" - }, { "datasource": { "type": "influxdb", @@ -3334,78 +2756,52 @@ "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" - } + "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { - "color": "light-blue", + "color": "super-light-blue", "value": null } ] - } + }, + "unit": "µs" }, "overrides": [] }, "gridPos": { "h": 4, - "w": 6, - "x": 0, - "y": 13 + "w": 3, + "x": 3, + "y": 8 }, "hideTimeOverride": true, - "id": 2, + "id": 47, "links": [ { - "title": "Details by Statement", - "url": "/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}&${__url_time_range}" + "title": "Execute Breakdown", + "url": "/d/Qi5TDej4z/sql-statement-cache?${__all_variables}&${__url_time_range}" } ], "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false }, - "tooltip": { - "mode": "single", - "sort": "none" - } + "text": {}, + "textMode": "auto" }, - "pluginVersion": "8.3.0", + "pluginVersion": "10.0.3", "targets": [ { "datasource": { @@ -3426,10 +2822,10 @@ "type": "fill" } ], - "measurement": "SqlStatementCount", + "measurement": "SqlStatementExecTime", "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)", + "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", @@ -3457,8 +2853,8 @@ } ], "timeShift": "10s", - "title": "Statements Executed", - "type": "timeseries" + "title": "Statement Compile Time", + "type": "stat" }, { "datasource": { @@ -3487,7 +2883,7 @@ "h": 4, "w": 3, "x": 6, - "y": 13 + "y": 8 }, "hideTimeOverride": true, "id": 38, @@ -3499,7 +2895,7 @@ ], "options": { "colorMode": "value", - "graphMode": "none", + "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { @@ -3641,7 +3037,7 @@ "h": 4, "w": 3, "x": 9, - "y": 13 + "y": 8 }, "hideTimeOverride": true, "id": 29, @@ -3954,7 +3350,7 @@ "h": 4, "w": 12, "x": 12, - "y": 13 + "y": 8 }, "hideTimeOverride": true, "id": 37, @@ -3965,9 +3361,9 @@ } ], "options": { - "displayMode": "basic", - "minVizHeight": 10, - "minVizWidth": 0, + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ @@ -3976,8 +3372,7 @@ "fields": "", "values": false }, - "showUnfilled": false, - "valueMode": "color" + "textMode": "auto" }, "pluginVersion": "10.0.3", "repeatDirection": "h", @@ -4234,7 +3629,7 @@ ], "timeShift": "10s", "title": "SQL Rows by Operation", - "type": "bargauge" + "type": "stat" }, { "collapsed": false, @@ -4246,7 +3641,7 @@ "h": 1, "w": 24, "x": 0, - "y": 17 + "y": 12 }, "id": 17, "panels": [], @@ -4289,7 +3684,7 @@ "h": 4, "w": 4, "x": 0, - "y": 18 + "y": 13 }, "hideTimeOverride": true, "id": 10, @@ -4396,7 +3791,7 @@ "h": 4, "w": 4, "x": 4, - "y": 18 + "y": 13 }, "hideTimeOverride": true, "id": 12, @@ -4503,7 +3898,7 @@ "h": 4, "w": 4, "x": 8, - "y": 18 + "y": 13 }, "hideTimeOverride": true, "id": 15, @@ -4610,7 +4005,7 @@ "h": 4, "w": 4, "x": 12, - "y": 18 + "y": 13 }, "hideTimeOverride": true, "id": 13, @@ -4717,7 +4112,7 @@ "h": 4, "w": 4, "x": 16, - "y": 18 + "y": 13 }, "hideTimeOverride": true, "id": 11, @@ -4825,7 +4220,7 @@ "h": 4, "w": 4, "x": 20, - "y": 18 + "y": 13 }, "hideTimeOverride": true, "id": 14, @@ -4915,7 +4310,7 @@ "h": 1, "w": 24, "x": 0, - "y": 22 + "y": 17 }, "id": 4, "panels": [], @@ -4959,7 +4354,7 @@ "h": 4, "w": 6, "x": 0, - "y": 23 + "y": 18 }, "hideTimeOverride": true, "id": 20, @@ -5065,7 +4460,7 @@ "h": 4, "w": 6, "x": 6, - "y": 23 + "y": 18 }, "hideTimeOverride": true, "id": 18, @@ -5171,7 +4566,7 @@ "h": 4, "w": 6, "x": 12, - "y": 23 + "y": 18 }, "hideTimeOverride": true, "id": 21, @@ -5277,7 +4672,7 @@ "h": 4, "w": 6, "x": 18, - "y": 23 + "y": 18 }, "hideTimeOverride": true, "id": 36, @@ -5357,7 +4752,7 @@ "type": "stat" } ], - "refresh": "10s", + "refresh": "", "schemaVersion": 38, "style": "dark", "tags": [ @@ -5370,7 +4765,7 @@ "auto_count": "50", "auto_min": "10s", "current": { - "selected": false, + "selected": true, "text": "10s", "value": "10s" }, @@ -5491,12 +4886,12 @@ { "allValue": "", "current": { - "selected": true, + "selected": false, "text": [ - "All" + "nuoadmin-2.nuodb.internal" ], "value": [ - "$__all" + "nuoadmin-2.nuodb.internal" ] }, "datasource": { @@ -5551,6 +4946,6 @@ "timezone": "utc", "title": "NuoDB SQL Overview", "uid": "cul4kM9Vz", - "version": 74, + "version": 7, "weekStart": "" } From 6b9761081e285daa2a82ec5d8d52aa29881058c9 Mon Sep 17 00:00:00 2001 From: Dirk Butson Date: Mon, 9 Oct 2023 13:24:08 -0400 Subject: [PATCH 12/14] update client dashboards. --- .../nuodb_client/nuodb-sql-overview.json | 34 +- .../nuodb_client/nuodb-sql-statements.json | 4 +- .../nuodb_client/sql-client-messages.json | 719 ++++++++++++++++-- .../nuodb_client/sql-execution-logs.json | 4 +- .../nuodb_client/sql-statement-details.json | 2 +- .../sql-statement-executions.json | 472 +++++++++--- .../nuodb_client/sql-statement-indexes.json | 632 +++++++++++---- .../sql-statement-operations.json | 583 +++++++++++--- .../nuodb_client/sql-statement-records.json | 547 +++++++++---- 9 files changed, 2385 insertions(+), 612 deletions(-) diff --git a/conf/provisioning/dashboards/nuodb_client/nuodb-sql-overview.json b/conf/provisioning/dashboards/nuodb_client/nuodb-sql-overview.json index 47a22be..15da12b 100644 --- a/conf/provisioning/dashboards/nuodb_client/nuodb-sql-overview.json +++ b/conf/provisioning/dashboards/nuodb_client/nuodb-sql-overview.json @@ -41,7 +41,7 @@ "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 1, - "id": 16, + "id": 23, "links": [ { "asDropdown": true, @@ -1245,8 +1245,8 @@ "links": [ { "targetBlank": false, - "title": "message chart", - "url": "/d/f499edfc-76ed-4d7a-843d-e73e4b6a2ef4/sql-client-messages?${__url_time_range}&${__all_variables}&groups=All" + "title": "message chart", + "url": "/d/f499edfc-76ed-4d7a-843d-e73e4b6a2ef4/sql-client-messages?${__url_time_range}&${__all_variables}&groups=All" } ], "mappings": [], @@ -2890,7 +2890,7 @@ "links": [ { "title": "Details by Statement", - "url": "/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}&${__url_time_range}" + "url": "/d/ac1c1ab9-0112-43ec-8f23-78c625345906/sql-statement-operations?${__all_variables}&${__url_time_range}" } ], "options": { @@ -3044,7 +3044,7 @@ "links": [ { "title": "Details by Statement", - "url": "/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}&${__url_time_range}" + "url": "/d/ac1c1ab9-0112-43ec-8f23-78c625345906/sql-statement-operations?${__all_variables}&${__url_time_range}" } ], "options": { @@ -3357,7 +3357,7 @@ "links": [ { "title": "Details by Statement ", - "url": "/d/Cp_9O6C4k/sql-statement-operations?${__all_variables}&${__url_time_range}" + "url": "/d/ac1c1ab9-0112-43ec-8f23-78c625345906/sql-statement-operations?${__all_variables}&${__url_time_range}" } ], "options": { @@ -3691,7 +3691,7 @@ "links": [ { "title": "Details by Statement", - "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}&${__url_time_range}" + "url": "/d/e047494e-25c5-4efe-8572-fa1551034ce4/sql-statement-indexes?${__all_variables}&${__url_time_range}" } ], "options": { @@ -3798,7 +3798,7 @@ "links": [ { "title": "Details by Statement", - "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}&${__url_time_range}" + "url": "/d/e047494e-25c5-4efe-8572-fa1551034ce4/sql-statement-indexes?${__all_variables}&${__url_time_range}" } ], "options": { @@ -3905,7 +3905,7 @@ "links": [ { "title": "Details by Statement", - "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}&${__url_time_range}" + "url": "/d/e047494e-25c5-4efe-8572-fa1551034ce4/sql-statement-indexes?${__all_variables}&${__url_time_range}" } ], "options": { @@ -4012,7 +4012,7 @@ "links": [ { "title": "Details by Statement", - "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}&${__url_time_range}" + "url": "/d/e047494e-25c5-4efe-8572-fa1551034ce4/sql-statement-indexes?${__all_variables}&${__url_time_range}" } ], "options": { @@ -4119,7 +4119,7 @@ "links": [ { "title": "Details by Statement", - "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}&${__url_time_range}" + "url": "/d/e047494e-25c5-4efe-8572-fa1551034ce4/sql-statement-indexes?${__all_variables}&${__url_time_range}" } ], "options": { @@ -4227,7 +4227,7 @@ "links": [ { "title": "Details by Statement", - "url": "/d/c5af0e56-adeb-4e24-aab3-427e225c0559/sql-statement-indexes?${__all_variables}&${__url_time_range}" + "url": "/d/e047494e-25c5-4efe-8572-fa1551034ce4/sql-statement-indexes?${__all_variables}&${__url_time_range}" } ], "options": { @@ -4361,7 +4361,7 @@ "links": [ { "title": "Details by Statement", - "url": "/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}&${__url_time_range}" + "url": "/d/bceeb9dd-e8d6-474d-8b56-934d4f8e2f25/sql-statement-records?${__all_variables}&${__url_time_range}" } ], "options": { @@ -4467,7 +4467,7 @@ "links": [ { "title": "Details by Statement", - "url": "/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}&${__url_time_range}" + "url": "/d/bceeb9dd-e8d6-474d-8b56-934d4f8e2f25/sql-statement-records?${__all_variables}&${__url_time_range}" } ], "options": { @@ -4573,7 +4573,7 @@ "links": [ { "title": "Details by Statement", - "url": "/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}&${__url_time_range}" + "url": "/d/bceeb9dd-e8d6-474d-8b56-934d4f8e2f25/sql-statement-records?${__all_variables}&${__url_time_range}" } ], "options": { @@ -4679,7 +4679,7 @@ "links": [ { "title": "Details by Statement", - "url": "/d/f1af96f4-c6b6-4813-9cab-39bda6df0650/sql-statement-records?${__all_variables}&${__url_time_range}" + "url": "/d/bceeb9dd-e8d6-474d-8b56-934d4f8e2f25/sql-statement-records?${__all_variables}&${__url_time_range}" } ], "options": { @@ -4946,6 +4946,6 @@ "timezone": "utc", "title": "NuoDB SQL Overview", "uid": "cul4kM9Vz", - "version": 7, + "version": 1, "weekStart": "" } diff --git a/conf/provisioning/dashboards/nuodb_client/nuodb-sql-statements.json b/conf/provisioning/dashboards/nuodb_client/nuodb-sql-statements.json index 7550ede..6d30106 100644 --- a/conf/provisioning/dashboards/nuodb_client/nuodb-sql-statements.json +++ b/conf/provisioning/dashboards/nuodb_client/nuodb-sql-statements.json @@ -37,7 +37,7 @@ "editable": false, "fiscalYearStartMonth": 0, "graphTooltip": 1, - "id": 35, + "id": 20, "links": [ { "asDropdown": true, @@ -5727,6 +5727,6 @@ "timezone": "", "title": "NuoDB SQL Statements", "uid": "df0d2b01-89ff-4108-bace-32f436204209", - "version": 56, + "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 index 6abec25..3702646 100644 --- a/conf/provisioning/dashboards/nuodb_client/sql-client-messages.json +++ b/conf/provisioning/dashboards/nuodb_client/sql-client-messages.json @@ -47,11 +47,11 @@ } ] }, - "description": "NuoDB Summary", - "editable": true, + "description": "Look at time spent in each sql client API for given time range", + "editable": false, "fiscalYearStartMonth": 0, "graphTooltip": 1, - "id": 17, + "id": 15, "links": [ { "asDropdown": true, @@ -94,19 +94,498 @@ "panels": [ { "datasource": { - "type": "marcusolsson-json-datasource", - "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" + "type": "influxdb", + "uid": "P7F1571328205BBA6" }, "fieldConfig": { "defaults": { "color": { - "fixedColor": "super-light-blue", - "mode": "fixed" + "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": "color-text" + "type": "auto" }, "inspect": false }, @@ -117,33 +596,52 @@ { "color": "green", "value": null + }, + { + "color": "red", + "value": 80 } ] - }, - "unit": "none" + } }, "overrides": [ { "matcher": { "id": "byName", - "options": "TypeGroup" + "options": "Duration" }, "properties": [ + { + "id": "unit", + "value": "µs" + }, { "id": "custom.width", - "value": 131 + "value": 248 } ] }, { "matcher": { "id": "byName", - "options": "MsgType" + "options": "Duration / Count" + }, + "properties": [ + { + "id": "unit", + "value": "µs" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "MsgGroup" }, "properties": [ { "id": "custom.width", - "value": 253 + "value": 118 } ] }, @@ -155,96 +653,158 @@ "properties": [ { "id": "custom.width", - "value": 118 + "value": 139 } ] }, { "matcher": { "id": "byName", - "options": "Duration" + "options": "MsgType" }, "properties": [ { - "id": "unit", - "value": "µs" + "id": "custom.width", + "value": 633 } ] } ] }, "gridPos": { - "h": 24, - "w": 12, + "h": 17, + "w": 24, "x": 0, - "y": 0 + "y": 6 }, - "id": 10, - "maxPerRow": 2, + "id": 2, "options": { "cellHeight": "sm", "footer": { "countRows": false, - "fields": "", + "enablePagination": true, + "fields": [ + "sum_count" + ], "reducer": [ "sum" ], - "show": true + "show": false }, - "frameIndex": 1, "showHeader": true, - "sortBy": [] + "sortBy": [ + { + "desc": true, + "displayName": "Duration" + } + ] }, "pluginVersion": "10.0.3", - "repeat": "host", - "repeatDirection": "h", "targets": [ { - "body": "select TYPE,\"GROUP\",COUNT,DURATION from system.localclientmessages order by DURATION desc", - "cacheDurationSeconds": 0, "datasource": { - "type": "marcusolsson-json-datasource", - "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" + "type": "influxdb", + "uid": "P948FE603F61DC036" }, - "fields": [ + "groupBy": [ { - "jsonPath": "$.rows[*][0]", - "name": "MsgType", - "type": "string" + "params": [ + "group::tag" + ], + "type": "tag" }, { - "jsonPath": "$.rows[*][1]", - "language": "jsonpath", - "name": "TypeGroup" - }, - { - "jsonPath": "$.rows[*][2]", - "language": "jsonpath", - "name": "Count" - }, - { - "jsonPath": "$.rows[*][3]", - "language": "jsonpath", - "name": "Duration" + "params": [ + "type::tag" + ], + "type": "tag" } ], - "method": "POST", - "params": [ - [ - "dbname", - "$database" - ], + "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": [ [ - "hostname", - "$host" + { + "params": [ + "count" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + } ] ], - "queryParams": "", - "refId": "A", - "urlPath": "/query" + "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" + } + } } ], - "title": "Client Messages ($host)", "type": "table" } ], @@ -410,6 +970,36 @@ "tagsQuery": "", "type": "query", "useTags": false + }, + { + "current": { + "selected": true, + "text": [ + "execute", + "connection" + ], + "value": [ + "execute", + "connection" + ] + }, + "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" } ] }, @@ -418,6 +1008,7 @@ "to": "now" }, "timepicker": { + "hidden": false, "refresh_intervals": [ "5s", "10s", @@ -443,8 +1034,8 @@ ] }, "timezone": "", - "title": "Client Messages", + "title": "SQL Client Messages", "uid": "z35SM6j4z", - "version": 21, + "version": 10, "weekStart": "" } diff --git a/conf/provisioning/dashboards/nuodb_client/sql-execution-logs.json b/conf/provisioning/dashboards/nuodb_client/sql-execution-logs.json index 014413c..41c6b63 100644 --- a/conf/provisioning/dashboards/nuodb_client/sql-execution-logs.json +++ b/conf/provisioning/dashboards/nuodb_client/sql-execution-logs.json @@ -37,7 +37,7 @@ "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 1, - "id": 34, + "id": 16, "links": [ { "asDropdown": true, @@ -863,6 +863,6 @@ "timezone": "", "title": "SQL Execution Logs", "uid": "c9081118-5230-478d-b6e8-d76614395704", - "version": 14, + "version": 1, "weekStart": "" } diff --git a/conf/provisioning/dashboards/nuodb_client/sql-statement-details.json b/conf/provisioning/dashboards/nuodb_client/sql-statement-details.json index 4722976..0319ba8 100644 --- a/conf/provisioning/dashboards/nuodb_client/sql-statement-details.json +++ b/conf/provisioning/dashboards/nuodb_client/sql-statement-details.json @@ -334,6 +334,6 @@ "timezone": "", "title": "Sql Statement Details", "uid": "f13dbb76-dc2a-42b9-af72-88700f6857b8", - "version": 17, + "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 index f050bc8..2765d87 100644 --- a/conf/provisioning/dashboards/nuodb_client/sql-statement-executions.json +++ b/conf/provisioning/dashboards/nuodb_client/sql-statement-executions.json @@ -51,7 +51,7 @@ "editable": false, "fiscalYearStartMonth": 0, "graphTooltip": 1, - "id": 18, + "id": 17, "links": [ { "asDropdown": true, @@ -94,22 +94,46 @@ "panels": [ { "datasource": { - "type": "marcusolsson-json-datasource", - "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" + "type": "influxdb", + "uid": "P948FE603F61DC036" }, "fieldConfig": { "defaults": { "color": { - "fixedColor": "super-light-blue", - "mode": "fixed" + "mode": "palette-classic" }, "custom": { - "align": "auto", - "cellOptions": { - "type": "color-text" + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 2, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false }, - "filterable": false, - "inspect": 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": { @@ -118,238 +142,444 @@ { "color": "green", "value": null + }, + { + "color": "red", + "value": 80 } ] - }, - "unit": "µs" + } }, "overrides": [ { "matcher": { "id": "byName", - "options": "ID" + "options": "total_statements.sum_deletions" }, "properties": [ { - "id": "custom.hidden", - "value": true - }, + "id": "displayName", + "value": "Deletes" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "total_statements.sum_inserts" + }, + "properties": [ { - "id": "unit", - "value": "string" + "id": "displayName", + "value": "Inserts" } ] }, { "matcher": { "id": "byName", - "options": "NumExecutes" + "options": "total_statements.sum_updates" }, "properties": [ { - "id": "unit", - "value": "none" + "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" }, { - "id": "custom.width", - "value": 118 + "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": "ExecTime" + "options": "sqlstring" }, "properties": [ { - "id": "custom.width", - "value": 101 + "id": "custom.inspect", + "value": true + }, + { + "id": "custom.filterable", + "value": true } ] }, { "matcher": { "id": "byName", - "options": "CompileTime" + "options": "Last Executed" }, "properties": [ { "id": "custom.width", - "value": 107 + "value": 126 + }, + { + "id": "unit", + "value": "dateTimeAsIsoNoDateIfToday" } ] }, { "matcher": { - "id": "byName", - "options": "MinExecTime" + "id": "byRegexp", + "options": "/.*Time/" }, "properties": [ { - "id": "custom.width", - "value": 106 + "id": "unit", + "value": "µs" } ] }, { "matcher": { "id": "byName", - "options": "AvgExecTime" + "options": "Number Executes" }, "properties": [ { "id": "custom.width", - "value": 108 + "value": 142 } ] }, { "matcher": { "id": "byName", - "options": "MaxExecTime" + "options": "CompileTime" }, "properties": [ { "id": "custom.width", - "value": 115 + "value": 104 } ] }, { "matcher": { "id": "byName", - "options": "LastExecuted" + "options": "ExecuteTime" }, "properties": [ { "id": "custom.width", - "value": 175 + "value": 126 } ] }, { "matcher": { "id": "byName", - "options": "SqlString" + "options": "AvgExecuteTime" }, "properties": [ { - "id": "links", - "value": [ - { - "title": "Detals", - "url": "/d/f13dbb76-dc2a-42b9-af72-88700f6857b8/sql-statement-details?var-id=${__data.fields.ID}&${host:queryparam}" - } - ] + "id": "custom.width", + "value": 135 } ] + }, + { + "matcher": { + "id": "byName", + "options": "SQL String" + }, + "properties": [] } ] }, "gridPos": { - "h": 12, + "h": 20, "w": 24, "x": 0, - "y": 0 + "y": 5 }, - "id": 10, - "interval": "$interval", - "maxPerRow": 2, + "id": 1, "options": { "cellHeight": "sm", "footer": { "countRows": false, - "enablePagination": false, - "fields": [ - "EXECTIME", - "COMPILETIME" - ], + "fields": "", "reducer": [ "sum" ], "show": false }, - "frameIndex": 1, + "frameIndex": 6, "showHeader": true, - "sortBy": [] + "sortBy": [ + { + "desc": true, + "displayName": "Number Executes" + } + ] }, "pluginVersion": "10.0.3", - "repeat": "host", - "repeatDirection": "v", "targets": [ { - "body": "select LASTEXECUTED\n ,NUMEXECUTES\n ,EXECTIME\n ,COMPILETIME\n ,MINEXECTIME\n ,EXECTIME/NUMEXECUTES AS AVGEXECTIME\n ,MAXEXECTIME\n ,ID\n ,SQLSTRING\n from system.LOCALSTATEMENTCACHE\nwhere LASTEXECUTED > DATE_SUB(NOW(), INTERVAL $__interval_ms/1000 second)", - "cacheDurationSeconds": 0, "datasource": { - "type": "marcusolsson-json-datasource", - "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" + "type": "influxdb", + "uid": "P948FE603F61DC036" }, - "fields": [ + "groupBy": [ { - "jsonPath": "$.rows[*][0]", - "name": "LastExecuted", + "params": [ + "$__interval" + ], "type": "time" }, { - "jsonPath": "$.rows[*][1]", - "language": "jsonpath", - "name": "NumExecutes" - }, - { - "jsonPath": "$.rows[*][2]", - "language": "jsonpath", - "name": "ExecTime" - }, - { - "jsonPath": "$.rows[*][3]", - "language": "jsonpath", - "name": "CompileTime" - }, - { - "jsonPath": "$.rows[*][4]", - "language": "jsonpath", - "name": "MinExecTime" - }, - { - "jsonPath": "$.rows[*][5]", - "language": "jsonpath", - "name": "AvgExecTime" - }, - { - "jsonPath": "$.rows[*][6]", - "language": "jsonpath", - "name": "MaxExecTime" - }, - { - "jsonPath": "$.rows[*][7]", - "language": "jsonpath", - "name": "ID", - "type": "string" - }, - { - "jsonPath": "$.rows[*][8]", - "language": "jsonpath", - "name": "SqlString" + "params": [ + "null" + ], + "type": "fill" } ], - "method": "POST", - "params": [ - [ - "dbname", - "$database" - ], + "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": [ [ - "hostname", - "$host" + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } ] ], - "queryParams": "", - "refId": "A", - "urlPath": "/query" + "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": {} + } } ], - "title": "Statement Executions ($host)", "type": "table" } ], @@ -375,12 +605,12 @@ "name": "interval", "options": [ { - "selected": false, + "selected": true, "text": "auto", "value": "$__auto_interval_interval" }, { - "selected": true, + "selected": false, "text": "10s", "value": "10s" }, @@ -552,6 +782,6 @@ "timezone": "", "title": "Sql Statement Executions", "uid": "Qi5TDej4z", - "version": 29, + "version": 9, "weekStart": "" } diff --git a/conf/provisioning/dashboards/nuodb_client/sql-statement-indexes.json b/conf/provisioning/dashboards/nuodb_client/sql-statement-indexes.json index bdee9bf..40d9a5d 100644 --- a/conf/provisioning/dashboards/nuodb_client/sql-statement-indexes.json +++ b/conf/provisioning/dashboards/nuodb_client/sql-statement-indexes.json @@ -47,11 +47,11 @@ } ] }, - "description": "NuoDB Summary", + "description": "NuoDB Records Affected", "editable": false, "fiscalYearStartMonth": 0, "graphTooltip": 1, - "id": 22, + "id": 26, "links": [ { "asDropdown": true, @@ -94,23 +94,215 @@ "panels": [ { "datasource": { - "type": "marcusolsson-json-datasource", - "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" + "type": "influxdb", + "uid": "P948FE603F61DC036" }, "fieldConfig": { "defaults": { "color": { - "fixedColor": "#C0D8FF", - "mode": "fixed" + "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": "color-text" + "type": "auto" }, "inspect": false }, - "links": [], "mappings": [], "thresholds": { "mode": "absolute", @@ -118,215 +310,276 @@ { "color": "green", "value": null + }, + { + "color": "red", + "value": 80 } ] - }, - "unit": "none" + } }, "overrides": [ { "matcher": { "id": "byName", - "options": "ID" + "options": "sqlstring" }, "properties": [ { - "id": "custom.hidden", + "id": "custom.inspect", "value": true }, { - "id": "unit", - "value": "string" + "id": "custom.filterable", + "value": true } ] }, { "matcher": { "id": "byName", - "options": "INDEXHITS" + "options": "Last Executed" }, "properties": [ { "id": "custom.width", - "value": 97 + "value": 143 + }, + { + "id": "unit", + "value": "dateTimeAsIsoNoDateIfToday" + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "/.*Time/" + }, + "properties": [ + { + "id": "unit", + "value": "µs" } ] }, { "matcher": { "id": "byName", - "options": "INDEXFETCHES" + "options": "Number Executes" }, "properties": [ { "id": "custom.width", - "value": 128 + "value": 142 } ] }, { "matcher": { "id": "byName", - "options": "EXHAUSTIVEFETCHES" + "options": "ExecuteTime" }, "properties": [ { "id": "custom.width", - "value": 169 - }, + "value": 104 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "AvgTime" + }, + "properties": [ { - "id": "displayName", - "value": "TABLEFETCHES" + "id": "custom.width", + "value": 135 } ] }, { "matcher": { "id": "byName", - "options": "INDEXBATCHFETCHES" + "options": "SQL String" }, "properties": [ { "id": "custom.width", - "value": 203 + "value": 866 }, { - "id": "displayName", - "value": "#INDEXSCANS" + "id": "custom.inspect", + "value": true } ] }, { "matcher": { "id": "byName", - "options": "#INDEXSCANS" + "options": "Fetched" }, "properties": [ { "id": "custom.width", - "value": 120 + "value": 110 } ] }, { "matcher": { "id": "byName", - "options": "TABLEFETCHES" + "options": "Sorted" }, "properties": [ { "id": "custom.width", - "value": 128 + "value": 100 } ] }, { "matcher": { "id": "byName", - "options": "NUMEXECUTES" + "options": "Locked" }, "properties": [ { "id": "custom.width", - "value": 129 + "value": 100 } ] }, { "matcher": { "id": "byName", - "options": "LASTEXECUTED" + "options": "Evicted" }, "properties": [ { "id": "custom.width", - "value": 176 + "value": 103 } ] }, { "matcher": { "id": "byName", - "options": "EXHAUSTIVEBATCHFETCHES" + "options": "Count" }, "properties": [ { "id": "custom.width", - "value": 120 - }, + "value": 98 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "TotalTime" + }, + "properties": [ { - "id": "displayName", - "value": "#TABLESCANS" + "id": "custom.width", + "value": 110 } ] }, { "matcher": { "id": "byName", - "options": "SQLSTRING" + "options": "AvgExecTime" }, "properties": [ { - "id": "custom.inspect", - "value": true - }, + "id": "custom.width", + "value": 117 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "IndexHits" + }, + "properties": [ { - "id": "links", - "value": [ - { - "title": "Statement Details", - "url": "/d/f13dbb76-dc2a-42b9-af72-88700f6857b8/sql-statement-details?var-id=${__data.fields.ID}&${host:queryparam}" - } - ] + "id": "custom.width", + "value": 93 } ] }, { "matcher": { "id": "byName", - "options": "EXECTIME" + "options": "RejectedHits" }, "properties": [ { "id": "custom.width", - "value": 97 - }, + "value": 113 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "IndexScans" + }, + "properties": [ { - "id": "custom.hidden" - }, + "id": "custom.width", + "value": 103 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "TableScans" + }, + "properties": [ { - "id": "unit", - "value": "µs" + "id": "custom.width", + "value": 97 } ] }, { "matcher": { "id": "byName", - "options": "REJECTEDINDEXHITS" + "options": "# IndexScans" }, "properties": [ { "id": "custom.width", - "value": 88 - }, + "value": 116 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "# TableScans" + }, + "properties": [ { - "id": "displayName", - "value": "REJECTED" + "id": "custom.width", + "value": 105 } ] } ] }, "gridPos": { - "h": 12, + "h": 20, "w": 24, "x": 0, - "y": 0 + "y": 4 }, - "id": 10, - "interval": "$interval", - "maxPerRow": 2, + "id": 1, "options": { "cellHeight": "sm", "footer": { @@ -335,108 +588,179 @@ "reducer": [ "sum" ], - "show": true + "show": false }, - "frameIndex": 1, + "frameIndex": 6, "showHeader": true, "sortBy": [ { "desc": true, - "displayName": "NUMEXECUTES" + "displayName": "Last Executed" } ] }, - "pluginVersion": "10.0.2", - "repeat": "host", - "repeatDirection": "v", + "pluginVersion": "10.0.3", "targets": [ { - "body": "select LASTEXECUTED,\n NUMEXECUTES,\n EXECTIME,\n INDEXHITS,\n REJECTEDINDEXHITS,\n INDEXFETCHES,\n EXHAUSTIVEFETCHES,\n INDEXBATCHFETCHES,\n EXHAUSTIVEBATCHFETCHES,\n SQLSTRING,\n ID\n from system.LOCALSTATEMENTCACHE\n where LASTEXECUTED > DATE_SUB(now(), INTERVAL $__interval_ms/1000 second)", - "cacheDurationSeconds": 0, "datasource": { - "type": "marcusolsson-json-datasource", - "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" + "type": "influxdb", + "uid": "P948FE603F61DC036" }, - "fields": [ + "groupBy": [ { - "jsonPath": "$.rows[*][0]", - "name": "LASTEXECUTED", + "params": [ + "$__interval" + ], "type": "time" }, { - "jsonPath": "$.rows[*][1]", - "language": "jsonpath", - "name": "NUMEXECUTES" - }, - { - "jsonPath": "$.rows[*][2]", - "language": "jsonpath", - "name": "EXECTIME" - }, - { - "jsonPath": "$.rows[*][3]", - "language": "jsonpath", - "name": "INDEXHITS" - }, - { - "jsonPath": "$.rows[*][4]", - "language": "jsonpath", - "name": "REJECTEDINDEXHITS" - }, - { - "jsonPath": "$.rows[*][5]", - "language": "jsonpath", - "name": "INDEXFETCHES" - }, - { - "jsonPath": "$.rows[*][6]", - "language": "jsonpath", - "name": "EXHAUSTIVEFETCHES" - }, - { - "jsonPath": "$.rows[*][7]", - "language": "jsonpath", - "name": "INDEXBATCHFETCHES" - }, - { - "jsonPath": "$.rows[*][8]", - "language": "jsonpath", - "name": "EXHAUSTIVEBATCHFETCHES" - }, - { - "jsonPath": "$.rows[*][9]", - "language": "jsonpath", - "name": "SQLSTRING", - "type": "string" - }, - { - "jsonPath": "$.rows[*][10]", - "language": "jsonpath", - "name": "ID", - "type": "string" + "params": [ + "null" + ], + "type": "fill" } ], - "method": "POST", - "params": [ - [ - "dbname", - "$database" - ], + "measurement": "nuodb_statements", + "orderByTime": "ASC", + "policy": "autogen", + "query": "SELECT last(lastexecuted),last(id),sum(/(numexecutes|exectime|index|exhaustive)/) FROM \"autogen\".\"nuodb_statements\" WHERE $timeFilter GROUP BY sqlstring", + "rawQuery": true, + "refId": "A", + "resultFormat": "table", + "select": [ [ - "hostname", - "$host" + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } ] ], - "queryParams": "", - "refId": "A", - "urlPath": "/query" + "tags": [] + } + ], + "title": "SQL Statement Records", + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "last_1": true, + "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": "# IndexScans", + "sum_indexbatchfetches": "TableScans", + "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 + }, + "indexByName": { + "# IndexScans": 8, + "# TableScans": 9, + "AvgExecTime": 3, + "Count": 1, + "ExecuteTime": 2, + "IndexHits": 4, + "IndexScans": 6, + "Last Executed": 0, + "RejectedHits": 5, + "SQL String": 10, + "TableScans": 7 + }, + "renameByName": {} + } } ], - "title": "Number Rows Returned/Updated ($host)", "type": "table" } ], - "refresh": "30s", + "refresh": "", "schemaVersion": 38, "style": "dark", "tags": [ @@ -450,20 +774,20 @@ "auto_min": "10s", "current": { "selected": false, - "text": "10s", - "value": "10s" + "text": "auto", + "value": "$__auto_interval_interval" }, "hide": 0, "label": "interval", "name": "interval", "options": [ { - "selected": false, + "selected": true, "text": "auto", "value": "$__auto_interval_interval" }, { - "selected": true, + "selected": false, "text": "10s", "value": "10s" }, @@ -572,10 +896,10 @@ "current": { "selected": true, "text": [ - "All" + "nuoadmin-2.nuodb.internal" ], "value": [ - "$__all" + "nuoadmin-2.nuodb.internal" ] }, "datasource": { @@ -602,8 +926,8 @@ ] }, "time": { - "from": "now-30m", - "to": "now" + "from": "2023-10-09T13:47:14.002Z", + "to": "2023-10-09T14:59:04.459Z" }, "timepicker": { "refresh_intervals": [ @@ -632,7 +956,7 @@ }, "timezone": "", "title": "Sql Statement Indexes", - "uid": "c5af0e56-adeb-4e24-aab3-427e225c0559", - "version": 12, + "uid": "e047494e-25c5-4efe-8572-fa1551034ce4", + "version": 2, "weekStart": "" } diff --git a/conf/provisioning/dashboards/nuodb_client/sql-statement-operations.json b/conf/provisioning/dashboards/nuodb_client/sql-statement-operations.json index 5a2eca1..2497fa7 100644 --- a/conf/provisioning/dashboards/nuodb_client/sql-statement-operations.json +++ b/conf/provisioning/dashboards/nuodb_client/sql-statement-operations.json @@ -51,7 +51,7 @@ "editable": false, "fiscalYearStartMonth": 0, "graphTooltip": 1, - "id": 19, + "id": 25, "links": [ { "asDropdown": true, @@ -94,23 +94,215 @@ "panels": [ { "datasource": { - "type": "marcusolsson-json-datasource", - "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" + "type": "influxdb", + "uid": "P948FE603F61DC036" }, "fieldConfig": { "defaults": { "color": { - "fixedColor": "super-light-blue", - "mode": "fixed" + "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": "color-text" + "type": "auto" }, "inspect": false }, - "links": [], "mappings": [], "thresholds": { "mode": "absolute", @@ -118,68 +310,118 @@ { "color": "green", "value": null + }, + { + "color": "red", + "value": 80 } ] - }, - "unit": "none" + } }, "overrides": [ { "matcher": { "id": "byName", - "options": "ID" + "options": "sqlstring" }, "properties": [ { - "id": "custom.hidden", + "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": "string" + "value": "dateTimeAsIsoNoDateIfToday" + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "/.*Time/" + }, + "properties": [ + { + "id": "unit", + "value": "µs" } ] }, { "matcher": { "id": "byName", - "options": "INSERTS" + "options": "Number Executes" }, "properties": [ { "id": "custom.width", - "value": 107 + "value": 142 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "ExecuteTime" + }, + "properties": [ + { + "id": "custom.width", + "value": 126 } ] }, { "matcher": { "id": "byName", - "options": "RECORDSRETURNED" + "options": "AvgTime" }, "properties": [ { "id": "custom.width", - "value": 163 + "value": 91 } ] }, { "matcher": { "id": "byName", - "options": "UPDATES" + "options": "SQL String" + }, + "properties": [] + }, + { + "matcher": { + "id": "byName", + "options": "Fetched" }, "properties": [ { "id": "custom.width", - "value": 99 + "value": 110 } ] }, { "matcher": { "id": "byName", - "options": "DELETIONS" + "options": "Sorted" }, "properties": [ { @@ -191,74 +433,108 @@ { "matcher": { "id": "byName", - "options": "REPLACES" + "options": "Locked" }, "properties": [ { "id": "custom.width", - "value": 95 + "value": 100 } ] }, { "matcher": { "id": "byName", - "options": "SQLSTRING" + "options": "Evicted" }, "properties": [ { - "id": "custom.cellOptions", - "value": { - "type": "color-text" - } - }, + "id": "custom.width", + "value": 103 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Count" + }, + "properties": [ + { + "id": "custom.width", + "value": 98 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "TotalTime" + }, + "properties": [ { - "id": "links", - "value": [ - { - "targetBlank": false, - "title": "Details", - "url": "/d/f13dbb76-dc2a-42b9-af72-88700f6857b8/sql-statement-details?var-id=${__data.fields.ID}&${host:queryparam}" - } - ] + "id": "custom.width", + "value": 96 } ] }, { "matcher": { "id": "byName", - "options": "NUMEXECUTES" + "options": "Selects" }, "properties": [ { "id": "custom.width", - "value": 127 + "value": 107 } ] }, { "matcher": { "id": "byName", - "options": "LASTEXECUTED" + "options": "Inserts" }, "properties": [ { "id": "custom.width", - "value": 172 + "value": 102 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Updates" + }, + "properties": [ + { + "id": "custom.width", + "value": 94 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Deletes" + }, + "properties": [ + { + "id": "custom.width", + "value": 100 } ] } ] }, "gridPos": { - "h": 12, + "h": 20, "w": 24, "x": 0, - "y": 0 + "y": 5 }, - "id": 10, - "interval": "$interval", - "maxPerRow": 2, + "id": 1, "options": { "cellHeight": "sm", "footer": { @@ -267,92 +543,171 @@ "reducer": [ "sum" ], - "show": true + "show": false }, - "frameIndex": 1, + "frameIndex": 6, "showHeader": true, "sortBy": [] }, "pluginVersion": "10.0.3", - "repeat": "host", - "repeatDirection": "v", "targets": [ { - "body": "select LASTEXECUTED\n ,NUMEXECUTES\n ,RECORDSRETURNED\n ,INSERTS\n ,UPDATES\n ,DELETIONS\n ,REPLACES\n ,SQLSTRING\n ,ID\n from system.LOCALSTATEMENTCACHE\n where LASTEXECUTED > DATE_SUB(now(), INTERVAL $__interval_ms/1000 second) and ID is not null\n", - "cacheDurationSeconds": 0, "datasource": { - "type": "marcusolsson-json-datasource", - "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" + "type": "influxdb", + "uid": "P948FE603F61DC036" }, - "fields": [ + "groupBy": [ { - "jsonPath": "$.rows[*][0]", - "name": "LASTEXECUTED", + "params": [ + "$__interval" + ], "type": "time" }, { - "jsonPath": "$.rows[*][1]", - "language": "jsonpath", - "name": "NUMEXECUTES" - }, - { - "jsonPath": "$.rows[*][2]", - "language": "jsonpath", - "name": "RECORDSRETURNED" - }, - { - "jsonPath": "$.rows[*][3]", - "language": "jsonpath", - "name": "INSERTS" - }, - { - "jsonPath": "$.rows[*][4]", - "language": "jsonpath", - "name": "UPDATES" - }, - { - "jsonPath": "$.rows[*][5]", - "language": "jsonpath", - "name": "DELETIONS" - }, - { - "jsonPath": "$.rows[*][6]", - "language": "jsonpath", - "name": "REPLACES" - }, - { - "jsonPath": "$.rows[*][7]", - "language": "jsonpath", - "name": "SQLSTRING" - }, - { - "jsonPath": "$.rows[*][8]", - "language": "jsonpath", - "name": "ID", - "type": "string" + "params": [ + "null" + ], + "type": "fill" } ], - "method": "POST", - "params": [ - [ - "dbname", - "$database" - ], + "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", + "rawQuery": true, + "refId": "A", + "resultFormat": "table", + "select": [ [ - "hostname", - "$host" + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } ] ], - "queryParams": "", - "refId": "A", - "urlPath": "/query" + "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": { + "last": "Last Executed", + "last_1": "Id", + "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": "" + } + } } ], - "title": "Number Rows Returned/Updated ($host)", "type": "table" } ], - "refresh": "", + "refresh": false, "schemaVersion": 38, "style": "dark", "tags": [ @@ -488,12 +843,10 @@ "current": { "selected": true, "text": [ - "nuoadmin-2.nuodb.internal", - "nuoadmin-3.nuodb.internal" + "nuoadmin-2.nuodb.internal" ], "value": [ - "nuoadmin-2.nuodb.internal", - "nuoadmin-3.nuodb.internal" + "nuoadmin-2.nuodb.internal" ] }, "datasource": { @@ -520,8 +873,8 @@ ] }, "time": { - "from": "now-30m", - "to": "now" + "from": "2023-10-09T13:47:14.002Z", + "to": "2023-10-09T14:59:04.459Z" }, "timepicker": { "refresh_intervals": [ @@ -550,7 +903,7 @@ }, "timezone": "", "title": "Sql Statement Operations", - "uid": "Cp_9O6C4k", - "version": 33, + "uid": "ac1c1ab9-0112-43ec-8f23-78c625345906", + "version": 6, "weekStart": "" } diff --git a/conf/provisioning/dashboards/nuodb_client/sql-statement-records.json b/conf/provisioning/dashboards/nuodb_client/sql-statement-records.json index d66ff56..e8f4cc3 100644 --- a/conf/provisioning/dashboards/nuodb_client/sql-statement-records.json +++ b/conf/provisioning/dashboards/nuodb_client/sql-statement-records.json @@ -47,11 +47,11 @@ } ] }, - "description": "NuoDB Summary", + "description": "NuoDB Records Affected", "editable": false, "fiscalYearStartMonth": 0, "graphTooltip": 1, - "id": 23, + "id": 24, "links": [ { "asDropdown": true, @@ -94,23 +94,215 @@ "panels": [ { "datasource": { - "type": "marcusolsson-json-datasource", - "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" + "type": "influxdb", + "uid": "P948FE603F61DC036" }, "fieldConfig": { "defaults": { "color": { - "fixedColor": "#C0D8FF", - "mode": "fixed" + "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": "color-text" + "type": "auto" }, "inspect": false }, - "links": [], "mappings": [], "thresholds": { "mode": "absolute", @@ -118,180 +310,183 @@ { "color": "green", "value": null + }, + { + "color": "red", + "value": 80 } ] - }, - "unit": "none" + } }, "overrides": [ { "matcher": { "id": "byName", - "options": "ID" + "options": "sqlstring" }, "properties": [ { - "id": "custom.hidden", + "id": "custom.inspect", "value": true }, { - "id": "unit", - "value": "string" + "id": "custom.filterable", + "value": true } ] }, { "matcher": { "id": "byName", - "options": "LOCKED" + "options": "Last Executed" }, "properties": [ { "id": "custom.width", - "value": 115 + "value": 163 + }, + { + "id": "unit", + "value": "dateTimeAsIsoNoDateIfToday" + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "/.*Time/" + }, + "properties": [ + { + "id": "unit", + "value": "µs" } ] }, { "matcher": { "id": "byName", - "options": "RECORDSFETCHED" + "options": "Number Executes" }, "properties": [ { "id": "custom.width", - "value": 137 - }, - { - "id": "displayName", - "value": "FETCHED" + "value": 142 } ] }, { "matcher": { "id": "byName", - "options": "RECORDSSORTED" + "options": "ExecuteTime" }, "properties": [ { "id": "custom.width", - "value": 169 - }, - { - "id": "displayName", - "value": "SORTED" + "value": 126 } ] }, { "matcher": { "id": "byName", - "options": "EVICTED" + "options": "AvgTime" }, "properties": [ { "id": "custom.width", - "value": 119 + "value": 135 } ] }, { "matcher": { "id": "byName", - "options": "NUMEXECUTES" + "options": "SQL String" + }, + "properties": [] + }, + { + "matcher": { + "id": "byName", + "options": "Fetched" }, "properties": [ { "id": "custom.width", - "value": 129 + "value": 110 } ] }, { "matcher": { "id": "byName", - "options": "LASTEXECUTED" + "options": "Sorted" }, "properties": [ { "id": "custom.width", - "value": 160 + "value": 100 } ] }, { "matcher": { "id": "byName", - "options": "SQLSTRING" + "options": "Locked" }, "properties": [ { - "id": "custom.inspect", - "value": true - }, - { - "id": "links", - "value": [ - { - "title": "Statement Details", - "url": "/d/f13dbb76-dc2a-42b9-af72-88700f6857b8/sql-statement-details?var-id=${__data.fields.ID}&${host:queryparam}" - } - ] + "id": "custom.width", + "value": 100 } ] }, { "matcher": { "id": "byName", - "options": "EXECTIME" + "options": "Evicted" }, "properties": [ { "id": "custom.width", - "value": 113 - }, - { - "id": "unit", - "value": "µs" + "value": 103 } ] }, { "matcher": { "id": "byName", - "options": "SORTED" + "options": "Count" }, "properties": [ { "id": "custom.width", - "value": 99 + "value": 98 } ] }, { "matcher": { "id": "byName", - "options": "RECORDSFETCHED" + "options": "TotalTime" }, "properties": [ { "id": "custom.width", - "value": 121 + "value": 110 } ] } ] }, "gridPos": { - "h": 12, + "h": 20, "w": 24, "x": 0, - "y": 0 + "y": 5 }, - "id": 10, - "interval": "$interval", - "maxPerRow": 2, + "id": 1, "options": { "cellHeight": "sm", "footer": { @@ -300,92 +495,172 @@ "reducer": [ "sum" ], - "show": true + "show": false }, - "frameIndex": 1, + "frameIndex": 6, "showHeader": true, - "sortBy": [] + "sortBy": [ + { + "desc": true, + "displayName": "Last Executed" + } + ] }, - "pluginVersion": "10.0.2", - "repeat": "host", - "repeatDirection": "v", + "pluginVersion": "10.0.3", "targets": [ { - "body": "select LASTEXECUTED\n ,NUMEXECUTES\n ,EXECTIME\n ,RECORDSFETCHED\n ,LOCKED\n ,RECORDSSORTED\n ,EVICTED\n ,SQLSTRING\n ,ID\n from system.LOCALSTATEMENTCACHE\nwhere LASTEXECUTED > DATE_SUB(now(), INTERVAL $__interval_ms / 1000 second)\n\n", - "cacheDurationSeconds": 0, "datasource": { - "type": "marcusolsson-json-datasource", - "uid": "fb12902f-919a-4aa9-89de-398bdfce52df" + "type": "influxdb", + "uid": "P948FE603F61DC036" }, - "fields": [ + "groupBy": [ { - "jsonPath": "$.rows[*][0]", - "name": "LASTEXECUTED", + "params": [ + "$__interval" + ], "type": "time" }, { - "jsonPath": "$.rows[*][1]", - "language": "jsonpath", - "name": "NUMEXECUTES" - }, - { - "jsonPath": "$.rows[*][2]", - "language": "jsonpath", - "name": "EXECTIME" - }, - { - "jsonPath": "$.rows[*][3]", - "language": "jsonpath", - "name": "RECORDSFETCHED" - }, - { - "jsonPath": "$.rows[*][4]", - "language": "jsonpath", - "name": "LOCKED" - }, - { - "jsonPath": "$.rows[*][5]", - "language": "jsonpath", - "name": "RECORDSSORTED" - }, - { - "jsonPath": "$.rows[*][6]", - "language": "jsonpath", - "name": "EVICTED" - }, - { - "jsonPath": "$.rows[*][7]", - "language": "jsonpath", - "name": "SQLSTRING" - }, - { - "jsonPath": "$.rows[*][8]", - "language": "jsonpath", - "name": "ID", - "type": "string" + "params": [ + "null" + ], + "type": "fill" } ], - "method": "POST", - "params": [ - [ - "dbname", - "$database" - ], + "measurement": "nuodb_statements", + "orderByTime": "ASC", + "policy": "autogen", + "query": "SELECT last(lastexecuted),last(id),sum(/(numexecutes|exectime|recordsfetched|locked|recordssorted|evicted)/) FROM \"autogen\".\"nuodb_statements\" WHERE $timeFilter GROUP BY sqlstring", + "rawQuery": true, + "refId": "A", + "resultFormat": "table", + "select": [ [ - "hostname", - "$host" + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } ] ], - "queryParams": "", - "refId": "A", - "urlPath": "/query" + "tags": [] + } + ], + "title": "SQL Statement Records", + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": { + "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": { + "last": "Last Executed", + "last_1": "Id", + "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": "" + } + } } ], - "title": "Records ($host)", "type": "table" } ], - "refresh": "30s", + "refresh": false, "schemaVersion": 38, "style": "dark", "tags": [ @@ -399,20 +674,20 @@ "auto_min": "10s", "current": { "selected": false, - "text": "10s", - "value": "10s" + "text": "auto", + "value": "$__auto_interval_interval" }, "hide": 0, "label": "interval", "name": "interval", "options": [ { - "selected": false, + "selected": true, "text": "auto", "value": "$__auto_interval_interval" }, { - "selected": true, + "selected": false, "text": "10s", "value": "10s" }, @@ -521,10 +796,10 @@ "current": { "selected": true, "text": [ - "All" + "nuoadmin-2.nuodb.internal" ], "value": [ - "$__all" + "nuoadmin-2.nuodb.internal" ] }, "datasource": { @@ -551,8 +826,8 @@ ] }, "time": { - "from": "now-30m", - "to": "now" + "from": "2023-10-09T13:47:14.002Z", + "to": "2023-10-09T14:59:04.459Z" }, "timepicker": { "refresh_intervals": [ @@ -581,7 +856,7 @@ }, "timezone": "", "title": "Sql Statement Records", - "uid": "f1af96f4-c6b6-4813-9cab-39bda6df0650", - "version": 10, + "uid": "bceeb9dd-e8d6-474d-8b56-934d4f8e2f25", + "version": 6, "weekStart": "" } From 23f2b3270cfb142a75906add826364c18ab0d736 Mon Sep 17 00:00:00 2001 From: Dirk Butson Date: Mon, 9 Oct 2023 16:25:00 -0400 Subject: [PATCH 13/14] sql-client-message uid --- .../dashboards/nuodb_client/sql-client-messages.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/provisioning/dashboards/nuodb_client/sql-client-messages.json b/conf/provisioning/dashboards/nuodb_client/sql-client-messages.json index 3702646..c419fd5 100644 --- a/conf/provisioning/dashboards/nuodb_client/sql-client-messages.json +++ b/conf/provisioning/dashboards/nuodb_client/sql-client-messages.json @@ -1035,7 +1035,7 @@ }, "timezone": "", "title": "SQL Client Messages", - "uid": "z35SM6j4z", + "uid": "f499edfc-76ed-4d7a-843d-e73e4b6a2ef4", "version": 10, "weekStart": "" } From 1976238edebb2b8d9e1f0aaae6b6f8ca60fbbf2e Mon Sep 17 00:00:00 2001 From: Dirk Butson Date: Mon, 16 Oct 2023 11:10:21 -0400 Subject: [PATCH 14/14] latest --- .../dashboards/nuodb/adhoc-query.json | 2111 +++++++++++++++++ .../dashboards/nuodb/communication.json | 6 +- conf/provisioning/dashboards/nuodb/cpu.json | 6 +- conf/provisioning/dashboards/nuodb/disk.json | 6 +- .../provisioning/dashboards/nuodb/memory.json | 4 +- .../nuodb/nuodb-ops-system-overview.json | 1569 ++++++++++++ .../dashboards/nuodb/nuodb-overview.json | 358 +-- conf/provisioning/dashboards/nuodb/sql.json | 6 +- .../nuodb_client/nuodb-sql-overview.json | 55 +- .../nuodb_client/sql-client-messages.json | 14 +- .../nuodb_client/sql-execution-logs.json | 355 +-- .../sql-statement-executions.json | 4 +- .../nuodb_client/sql-statement-indexes.json | 87 +- .../sql-statement-operations.json | 58 +- .../nuodb_client/sql-statement-records.json | 47 +- .../nuodb_client/sql-statement-viewer.json | 1296 ++++++++++ .../dashboards/nuodb_ext/message-trace.json | 844 +++++++ .../dashboards/nuodb_ext/sync-trace.json | 826 +++++++ .../dashboards/nuodb_ext/thread-usage.json | 1011 ++++++++ 19 files changed, 8141 insertions(+), 522 deletions(-) create mode 100644 conf/provisioning/dashboards/nuodb/adhoc-query.json create mode 100644 conf/provisioning/dashboards/nuodb/nuodb-ops-system-overview.json create mode 100644 conf/provisioning/dashboards/nuodb_client/sql-statement-viewer.json create mode 100644 conf/provisioning/dashboards/nuodb_ext/message-trace.json create mode 100644 conf/provisioning/dashboards/nuodb_ext/sync-trace.json create mode 100644 conf/provisioning/dashboards/nuodb_ext/thread-usage.json 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 index 15da12b..01f23a6 100644 --- a/conf/provisioning/dashboards/nuodb_client/nuodb-sql-overview.json +++ b/conf/provisioning/dashboards/nuodb_client/nuodb-sql-overview.json @@ -25,7 +25,7 @@ "uid": "grafana" }, "enable": true, - "iconColor": "red", + "iconColor": "super-light-blue", "name": "db annotations", "target": { "limit": 100, @@ -38,10 +38,10 @@ } ] }, - "editable": true, + "editable": false, "fiscalYearStartMonth": 0, "graphTooltip": 1, - "id": 23, + "id": 19, "links": [ { "asDropdown": true, @@ -1041,7 +1041,7 @@ "orientation": "auto", "reduceOptions": { "calcs": [ - "lastNotNull" + "mean" ], "fields": "", "values": false @@ -1149,7 +1149,7 @@ "orientation": "auto", "reduceOptions": { "calcs": [ - "lastNotNull" + "mean" ], "fields": "", "values": false @@ -1277,7 +1277,7 @@ "pieType": "pie", "reduceOptions": { "calcs": [ - "lastNotNull" + "mean" ], "fields": "", "values": false @@ -1730,7 +1730,7 @@ "pieType": "pie", "reduceOptions": { "calcs": [ - "lastNotNull" + "mean" ], "fields": "", "values": false @@ -2637,7 +2637,7 @@ "refId": "A" } ], - "title": "Statement / Rows", + "title": "Statement / Rows (Average 1 second rate over time range)", "type": "row" }, { @@ -2685,7 +2685,7 @@ "orientation": "auto", "reduceOptions": { "calcs": [ - "lastNotNull" + "mean" ], "fields": "", "values": false @@ -2793,7 +2793,7 @@ "orientation": "auto", "reduceOptions": { "calcs": [ - "lastNotNull" + "mean" ], "fields": "", "values": false @@ -2900,7 +2900,7 @@ "orientation": "auto", "reduceOptions": { "calcs": [ - "lastNotNull" + "mean" ], "fields": "", "values": false @@ -3056,7 +3056,7 @@ "pieType": "pie", "reduceOptions": { "calcs": [ - "lastNotNull" + "mean" ], "fields": "", "values": false @@ -3367,7 +3367,7 @@ "orientation": "auto", "reduceOptions": { "calcs": [ - "lastNotNull" + "mean" ], "fields": "", "values": false @@ -3654,7 +3654,7 @@ "refId": "A" } ], - "title": "Indexes", + "title": "Indexes (Average 1 second rate over time range)", "type": "row" }, { @@ -3701,7 +3701,7 @@ "orientation": "auto", "reduceOptions": { "calcs": [ - "lastNotNull" + "mean" ], "fields": "", "values": false @@ -3808,7 +3808,7 @@ "orientation": "auto", "reduceOptions": { "calcs": [ - "lastNotNull" + "mean" ], "fields": "", "values": false @@ -3915,7 +3915,7 @@ "orientation": "auto", "reduceOptions": { "calcs": [ - "lastNotNull" + "mean" ], "fields": "", "values": false @@ -4022,7 +4022,7 @@ "orientation": "auto", "reduceOptions": { "calcs": [ - "lastNotNull" + "mean" ], "fields": "", "values": false @@ -4129,7 +4129,7 @@ "orientation": "auto", "reduceOptions": { "calcs": [ - "lastNotNull" + "mean" ], "fields": "", "values": false @@ -4237,7 +4237,7 @@ "orientation": "auto", "reduceOptions": { "calcs": [ - "lastNotNull" + "mean" ], "fields": "", "values": false @@ -4315,6 +4315,7 @@ "id": 4, "panels": [], "repeat": "SQLStatementStats", + "repeatDirection": "h", "targets": [ { "datasource": { @@ -4324,7 +4325,7 @@ "refId": "A" } ], - "title": "Records", + "title": "Records (Average 1 second rate over time range)", "type": "row" }, { @@ -4371,7 +4372,7 @@ "orientation": "auto", "reduceOptions": { "calcs": [ - "lastNotNull" + "mean" ], "fields": "", "values": false @@ -4477,7 +4478,7 @@ "orientation": "auto", "reduceOptions": { "calcs": [ - "lastNotNull" + "mean" ], "fields": "", "values": false @@ -4583,7 +4584,7 @@ "orientation": "auto", "reduceOptions": { "calcs": [ - "lastNotNull" + "mean" ], "fields": "", "values": false @@ -4689,7 +4690,7 @@ "orientation": "auto", "reduceOptions": { "calcs": [ - "lastNotNull" + "mean" ], "fields": "", "values": false @@ -4752,7 +4753,7 @@ "type": "stat" } ], - "refresh": "", + "refresh": false, "schemaVersion": 38, "style": "dark", "tags": [ @@ -4946,6 +4947,6 @@ "timezone": "utc", "title": "NuoDB SQL Overview", "uid": "cul4kM9Vz", - "version": 1, + "version": 4, "weekStart": "" } diff --git a/conf/provisioning/dashboards/nuodb_client/sql-client-messages.json b/conf/provisioning/dashboards/nuodb_client/sql-client-messages.json index c419fd5..415762f 100644 --- a/conf/provisioning/dashboards/nuodb_client/sql-client-messages.json +++ b/conf/provisioning/dashboards/nuodb_client/sql-client-messages.json @@ -51,7 +51,7 @@ "editable": false, "fiscalYearStartMonth": 0, "graphTooltip": 1, - "id": 15, + "id": 24, "links": [ { "asDropdown": true, @@ -974,14 +974,8 @@ { "current": { "selected": true, - "text": [ - "execute", - "connection" - ], - "value": [ - "execute", - "connection" - ] + "text": [], + "value": [] }, "datasource": { "type": "influxdb", @@ -1036,6 +1030,6 @@ "timezone": "", "title": "SQL Client Messages", "uid": "f499edfc-76ed-4d7a-843d-e73e4b6a2ef4", - "version": 10, + "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 index 41c6b63..94c4f15 100644 --- a/conf/provisioning/dashboards/nuodb_client/sql-execution-logs.json +++ b/conf/provisioning/dashboards/nuodb_client/sql-execution-logs.json @@ -37,7 +37,7 @@ "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 1, - "id": 16, + "id": 22, "links": [ { "asDropdown": true, @@ -103,76 +103,95 @@ "type": "row" }, { - "aliasColors": {}, - "bars": true, - "dashLength": 10, - "dashes": false, "datasource": { "type": "influxdb", - "uid": "P7F1571328205BBA6" + "uid": "P948FE603F61DC036" }, - "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.", + "description": "", "fieldConfig": { "defaults": { - "links": [] + "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": [] }, - "fill": 1, - "fillGradient": 0, "gridPos": { "h": 4, "w": 24, "x": 0, "y": 1 }, - "hiddenSeries": false, - "id": 6, + "id": 12, "interval": "$interval", - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": false, - "linewidth": 1, - "nullPointMode": "null", + "links": [], "options": { - "alertThreshold": true + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "right", + "showLegend": false + }, + "tooltip": { + "mode": "single", + "sort": "none" + } }, - "paceLength": 10, - "percentage": false, "pluginVersion": "10.0.3", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "$$hashKey": "object:133", - "alias": "NumberCores", - "bars": false, - "color": "rgb(255, 255, 255)", - "fill": 1, - "lines": true, - "linewidth": 0, - "stack": false, - "steppedLine": true, - "yaxis": 2 - } - ], - "spaceLength": 10, - "stack": true, - "steppedLine": false, "targets": [ { - "alias": "$measurement", + "alias": "ExecTime", "datasource": { "type": "influxdb", - "uid": "P7F1571328205BBA6" + "uid": "P948FE603F61DC036" }, "groupBy": [ { @@ -188,10 +207,10 @@ "type": "fill" } ], - "hide": false, + "measurement": "nuodb_statements", "orderByTime": "ASC", - "policy": "default", - "query": "SELECT sum(nthreads) as \"nthreads\" FROM (SELECT mean(raw) / 10000. as \"nthreads\" FROM \"Summary.Fetch\",\"Summary.Commit\",\"Summary.Sync\",\"Summary.Lock\",\"Summary.NtwkSend\",\"Summary.Throttle\",\"Summary.CPU\" WHERE $timeFilter AND nodetype = 'Transaction' AND host =~ /^$host$/ AND db =~ /^$database$/ GROUP BY time($__interval), \"pid\" fill(null)) GROUP BY time($__interval)", + "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", @@ -199,51 +218,7 @@ [ { "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - }, - { - "alias": "$measurement", - "datasource": { - "type": "influxdb", - "uid": "P7F1571328205BBA6" - }, - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, - "measurement": "NumberCores", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT sum(ncores) FROM (SELECT mean(\"raw\") as ncores FROM \"NumberCores\" WHERE (\"db\" =~ /^$database$/ AND \"host\" =~ /^$host$/ AND \"nodetype\" = 'Transaction') AND $timeFilter GROUP BY time($__interval), \"startid\" fill(null)) GROUP BY time($__interval)", - "rawQuery": true, - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "raw" + "exectime" ], "type": "field" }, @@ -255,60 +230,22 @@ ], "tags": [ { - "key": "db", + "key": "db_name::tag", "operator": "=~", "value": "/^$database$/" }, { "condition": "AND", - "key": "host", + "key": "host::tag", "operator": "=~", "value": "/^$host$/" - }, - { - "condition": "AND", - "key": "nodetype", - "operator": "=", - "value": "Transaction" } ] } ], - "thresholds": [], - "timeRegions": [], - "title": "Summary", - "tooltip": { - "shared": true, - "sort": 2, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:150", - "decimals": 1, - "format": "short", - "label": "measurement relative to vCPU", - "logBase": 1, - "min": "0", - "show": true - }, - { - "$$hashKey": "object:151", - "format": "short", - "label": "total number of vCPU", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } + "title": "SQL Execute Time - ${__interval} interval", + "transformations": [], + "type": "timeseries" }, { "collapsed": false, @@ -323,122 +260,10 @@ "title": "Log", "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": 6 - }, - "id": 13, - "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": "/^$statement$/" - } - ] - } - ], - "transformations": [ - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true, - "first": true - }, - "indexByName": {}, - "renameByName": {} - } - } - ], - "type": "table" - }, { "datasource": { "type": "loki", - "uid": "ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3" + "uid": "P8E80F9AEF21F6940" }, "fieldConfig": { "defaults": { @@ -494,10 +319,10 @@ "overrides": [] }, "gridPos": { - "h": 6, + "h": 3, "w": 24, "x": 0, - "y": 8 + "y": 6 }, "id": 10, "interval": "$loginterval", @@ -520,7 +345,7 @@ { "datasource": { "type": "loki", - "uid": "ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3" + "uid": "P8E80F9AEF21F6940" }, "editorMode": "builder", "expr": "sum by(source) (count_over_time({source=\"executions\", statement=~\"$statement\", explainplan=~\"$execution\", db=\"$database\", hostname=~\"$host\"} |~ `$filter` | logfmt [$__interval]))", @@ -534,14 +359,14 @@ { "datasource": { "type": "loki", - "uid": "ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3" + "uid": "P8E80F9AEF21F6940" }, "description": "Output is limited to 2000 lines", "gridPos": { "h": 20, "w": 24, "x": 0, - "y": 14 + "y": 9 }, "id": 11, "interval": "1s", @@ -559,7 +384,7 @@ { "datasource": { "type": "loki", - "uid": "ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3" + "uid": "P8E80F9AEF21F6940" }, "editorMode": "builder", "expr": "{source=\"executions\", statement=~\"$statement\", explainplan=~\"$execution\", db=\"$database\", hostname=~\"$host\"} |~ `$filter` | logfmt", @@ -585,14 +410,14 @@ { "auto": true, "auto_count": 100, - "auto_min": "10ms", + "auto_min": "1s", "current": { "selected": false, "text": "1s", "value": "1s" }, "hide": 0, - "label": "interval", + "label": "loginterval", "name": "loginterval", "options": [], "query": "", @@ -610,7 +435,7 @@ "text": "auto", "value": "$__auto_interval_interval" }, - "hide": 2, + "hide": 0, "label": "interval", "name": "interval", "options": [ @@ -767,7 +592,7 @@ "name": "statement", "options": [ { - "selected": true, + "selected": false, "text": "undefined", "value": "undefined" } @@ -820,7 +645,7 @@ { "datasource": { "type": "loki", - "uid": "ddd2f51e-f7a2-4b0b-82fb-2c6385f3f6d3" + "uid": "P8E80F9AEF21F6940" }, "filters": [], "hide": 0, @@ -863,6 +688,6 @@ "timezone": "", "title": "SQL Execution Logs", "uid": "c9081118-5230-478d-b6e8-d76614395704", - "version": 1, + "version": 9, "weekStart": "" } diff --git a/conf/provisioning/dashboards/nuodb_client/sql-statement-executions.json b/conf/provisioning/dashboards/nuodb_client/sql-statement-executions.json index 2765d87..f345327 100644 --- a/conf/provisioning/dashboards/nuodb_client/sql-statement-executions.json +++ b/conf/provisioning/dashboards/nuodb_client/sql-statement-executions.json @@ -51,7 +51,7 @@ "editable": false, "fiscalYearStartMonth": 0, "graphTooltip": 1, - "id": 17, + "id": 16, "links": [ { "asDropdown": true, @@ -782,6 +782,6 @@ "timezone": "", "title": "Sql Statement Executions", "uid": "Qi5TDej4z", - "version": 9, + "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 index 40d9a5d..dc91a4c 100644 --- a/conf/provisioning/dashboards/nuodb_client/sql-statement-indexes.json +++ b/conf/provisioning/dashboards/nuodb_client/sql-statement-indexes.json @@ -51,7 +51,7 @@ "editable": false, "fiscalYearStartMonth": 0, "graphTooltip": 1, - "id": 26, + "id": 17, "links": [ { "asDropdown": true, @@ -412,6 +412,15 @@ { "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}" + } + ] } ] }, @@ -567,7 +576,31 @@ "properties": [ { "id": "custom.width", - "value": 105 + "value": 109 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "#IndexScans" + }, + "properties": [ + { + "id": "custom.width", + "value": 125 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "ID" + }, + "properties": [ + { + "id": "custom.hidden", + "value": true } ] } @@ -595,7 +628,7 @@ "sortBy": [ { "desc": true, - "displayName": "Last Executed" + "displayName": "ExecuteTime" } ] }, @@ -623,7 +656,7 @@ "measurement": "nuodb_statements", "orderByTime": "ASC", "policy": "autogen", - "query": "SELECT last(lastexecuted),last(id),sum(/(numexecutes|exectime|index|exhaustive)/) FROM \"autogen\".\"nuodb_statements\" WHERE $timeFilter GROUP BY sqlstring", + "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", @@ -651,7 +684,7 @@ "options": { "excludeByName": { "Time": true, - "last_1": true, + "last_1": false, "sum_collection_interval": true, "sum_deletions": true, "sum_evicted": true, @@ -687,14 +720,14 @@ }, "renameByName": { "last": "Last Executed", - "last_1": "Id", + "last_1": "ID", "sqlstring": "SQL String", "sum_compiletime": "CompileTime", "sum_evicted": "Evicted", "sum_exectime": "ExecuteTime", "sum_exhaustivebatchfetches": "# TableScans", - "sum_exhaustivefetches": "# IndexScans", - "sum_indexbatchfetches": "TableScans", + "sum_exhaustivefetches": "TableScans", + "sum_indexbatchfetches": "#IndexScans", "sum_indexfetches": "IndexScans", "sum_indexhits": "IndexHits", "sum_locked": "Locked", @@ -738,22 +771,26 @@ "id": "organize", "options": { "excludeByName": { - "AvgExecTime": true + "AvgExecTime": true, + "ID": false }, "indexByName": { - "# IndexScans": 8, - "# TableScans": 9, - "AvgExecTime": 3, - "Count": 1, - "ExecuteTime": 2, - "IndexHits": 4, - "IndexScans": 6, - "Last Executed": 0, - "RejectedHits": 5, - "SQL String": 10, - "TableScans": 7 - }, - "renameByName": {} + "# 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" + } } } ], @@ -782,12 +819,12 @@ "name": "interval", "options": [ { - "selected": true, + "selected": false, "text": "auto", "value": "$__auto_interval_interval" }, { - "selected": false, + "selected": true, "text": "10s", "value": "10s" }, @@ -957,6 +994,6 @@ "timezone": "", "title": "Sql Statement Indexes", "uid": "e047494e-25c5-4efe-8572-fa1551034ce4", - "version": 2, + "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 index 2497fa7..01dcf0a 100644 --- a/conf/provisioning/dashboards/nuodb_client/sql-statement-operations.json +++ b/conf/provisioning/dashboards/nuodb_client/sql-statement-operations.json @@ -51,7 +51,7 @@ "editable": false, "fiscalYearStartMonth": 0, "graphTooltip": 1, - "id": 25, + "id": 18, "links": [ { "asDropdown": true, @@ -116,7 +116,7 @@ "tooltip": false, "viz": false }, - "lineInterpolation": "linear", + "lineInterpolation": "stepBefore", "lineStyle": { "fill": "solid" }, @@ -332,6 +332,16 @@ { "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}" + } + ] } ] }, @@ -399,13 +409,6 @@ } ] }, - { - "matcher": { - "id": "byName", - "options": "SQL String" - }, - "properties": [] - }, { "matcher": { "id": "byName", @@ -525,6 +528,18 @@ "value": 100 } ] + }, + { + "matcher": { + "id": "byName", + "options": "ID" + }, + "properties": [ + { + "id": "custom.hidden", + "value": true + } + ] } ] }, @@ -547,7 +562,12 @@ }, "frameIndex": 6, "showHeader": true, - "sortBy": [] + "sortBy": [ + { + "desc": false, + "displayName": "AvgTime" + } + ] }, "pluginVersion": "10.0.3", "targets": [ @@ -573,7 +593,7 @@ "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", + "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", @@ -633,8 +653,9 @@ "sum_updates": 4 }, "renameByName": { + "id": "ID", "last": "Last Executed", - "last_1": "Id", + "last_1": "", "sqlstring": "SQL String", "sum_compiletime": "CompileTime", "sum_deletions": "Deletes", @@ -699,7 +720,8 @@ "renameByName": { "AvgExecTime": "AvgTime", "ExecuteTime": "TotalTime", - "Fetched": "" + "Fetched": "", + "Id": "ID" } } } @@ -721,8 +743,8 @@ "auto_min": "10s", "current": { "selected": false, - "text": "auto", - "value": "$__auto_interval_interval" + "text": "10s", + "value": "10s" }, "hide": 0, "label": "interval", @@ -873,8 +895,8 @@ ] }, "time": { - "from": "2023-10-09T13:47:14.002Z", - "to": "2023-10-09T14:59:04.459Z" + "from": "2023-10-11T19:10:03.982Z", + "to": "2023-10-11T19:25:34.247Z" }, "timepicker": { "refresh_intervals": [ @@ -904,6 +926,6 @@ "timezone": "", "title": "Sql Statement Operations", "uid": "ac1c1ab9-0112-43ec-8f23-78c625345906", - "version": 6, + "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 index e8f4cc3..ef89fc3 100644 --- a/conf/provisioning/dashboards/nuodb_client/sql-statement-records.json +++ b/conf/provisioning/dashboards/nuodb_client/sql-statement-records.json @@ -48,10 +48,10 @@ ] }, "description": "NuoDB Records Affected", - "editable": false, + "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 1, - "id": 24, + "id": 23, "links": [ { "asDropdown": true, @@ -332,6 +332,15 @@ { "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}" + } + ] } ] }, @@ -399,13 +408,6 @@ } ] }, - { - "matcher": { - "id": "byName", - "options": "SQL String" - }, - "properties": [] - }, { "matcher": { "id": "byName", @@ -466,6 +468,18 @@ } ] }, + { + "matcher": { + "id": "byName", + "options": "ID" + }, + "properties": [ + { + "id": "custom.hidden", + "value": true + } + ] + }, { "matcher": { "id": "byName", @@ -474,7 +488,7 @@ "properties": [ { "id": "custom.width", - "value": 110 + "value": 98 } ] } @@ -530,7 +544,7 @@ "measurement": "nuodb_statements", "orderByTime": "ASC", "policy": "autogen", - "query": "SELECT last(lastexecuted),last(id),sum(/(numexecutes|exectime|recordsfetched|locked|recordssorted|evicted)/) FROM \"autogen\".\"nuodb_statements\" WHERE $timeFilter GROUP BY sqlstring", + "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", @@ -557,6 +571,7 @@ "id": "organize", "options": { "excludeByName": { + "ID": false, "Time": true, "last_1": true, "sum_collection_interval": true, @@ -591,8 +606,10 @@ "sum_recordssorted": 6 }, "renameByName": { + "ID": "", + "id": "ID", "last": "Last Executed", - "last_1": "Id", + "last_1": "", "sqlstring": "SQL String", "sum_compiletime": "CompileTime", "sum_evicted": "Evicted", @@ -682,12 +699,12 @@ "name": "interval", "options": [ { - "selected": true, + "selected": false, "text": "auto", "value": "$__auto_interval_interval" }, { - "selected": false, + "selected": true, "text": "10s", "value": "10s" }, @@ -857,6 +874,6 @@ "timezone": "", "title": "Sql Statement Records", "uid": "bceeb9dd-e8d6-474d-8b56-934d4f8e2f25", - "version": 6, + "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 +}