diff --git a/public/app/plugins/datasource/azuremonitor/dashboards/postgresFlexibleServer.json b/public/app/plugins/datasource/azuremonitor/dashboards/postgresFlexibleServer.json index 4a5108bf1b5..4f9189da36b 100644 --- a/public/app/plugins/datasource/azuremonitor/dashboards/postgresFlexibleServer.json +++ b/public/app/plugins/datasource/azuremonitor/dashboards/postgresFlexibleServer.json @@ -1,8487 +1,7668 @@ { - "__inputs": [ - { - "name": "DS_EXPRESSION", - "label": "Expression", - "description": "", + "__inputs": [ + { + "name": "DS_EXPRESSION", + "label": "Expression", + "description": "", + "type": "datasource", + "pluginId": "__expr__" + } + ], + "__elements": {}, + "__requires": [ + { + "type": "datasource", + "id": "__expr__", + "version": "1.0.0" + }, + { + "type": "panel", + "id": "bargauge", + "name": "Bar gauge", + "version": "" + }, + { + "type": "panel", + "id": "gauge", + "name": "Gauge", + "version": "" + }, + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "9.5.6" + }, + { + "type": "datasource", + "id": "grafana-azure-monitor-datasource", + "name": "Azure Monitor", + "version": "1.0.0" + }, + { + "type": "panel", + "id": "piechart", + "name": "Pie chart", + "version": "" + }, + { + "type": "panel", + "id": "stat", + "name": "Stat", + "version": "" + }, + { + "type": "panel", + "id": "text", + "name": "Text", + "version": "" + }, + { + "type": "panel", + "id": "timeseries", + "name": "Time series", + "version": "" + } + ], + "description": "Azure monitor dashboard for Azure Database for PostgreSQL Flexible Server health including server health, resource usage (cpu, memory, iops, storage), connections, throughput, latency etc.", + "editable": true, + "id": null, + "links": [], + "liveNow": false, + "panels": [ + { + "datasource": { "type": "datasource", - "pluginId": "__expr__" - } - ], - "__elements": {}, - "__requires": [ - { + "uid": "grafana" + }, + "description": "", + "gridPos": { + "h": 4, + "w": 1, + "x": 0, + "y": 0 + }, + "id": 75, + "options": { + "code": { + "language": "plaintext", + "showLineNumbers": false, + "showMiniMap": false + }, + "content": "", + "mode": "markdown" + }, + "transparent": true, + "type": "text" + }, + { + "datasource": { "type": "datasource", - "id": "__expr__", - "version": "1.0.0" + "uid": "grafana" }, - { - "type": "panel", - "id": "bargauge", - "name": "Bar gauge", - "version": "" + "description": "", + "gridPos": { + "h": 5, + "w": 19, + "x": 1, + "y": 0 }, - { - "type": "panel", - "id": "gauge", - "name": "Gauge", - "version": "" - }, - { - "type": "grafana", - "id": "grafana", - "name": "Grafana", - "version": "9.5.6" - }, - { - "type": "datasource", - "id": "grafana-azure-monitor-datasource", - "name": "Azure Monitor", - "version": "1.0.0" - }, - { - "type": "panel", - "id": "piechart", - "name": "Pie chart", - "version": "" - }, - { - "type": "panel", - "id": "stat", - "name": "Stat", - "version": "" - }, - { - "type": "panel", - "id": "text", - "name": "Text", - "version": "" - }, - { - "type": "panel", - "id": "timeseries", - "name": "Time series", - "version": "" - } - ], - "description": "Azure monitor dashboard for Azure Database for PostgreSQL Flexible Server health including server health, resource usage (cpu, memory, iops, storage), connections, throughput, latency etc.", - "editable": true, - "id": null, - "links": [], - "liveNow": false, - "panels": [ - { - "datasource": { - "type": "datasource", - "uid": "grafana" + "id": 74, + "options": { + "code": { + "language": "plaintext", + "showLineNumbers": false, + "showMiniMap": false }, - "description": "", - "gridPos": { - "h": 4, - "w": 1, - "x": 0, - "y": 0 - }, - "id": 75, - "options": { - "code": { - "language": "plaintext", - "showLineNumbers": false, - "showMiniMap": false - }, - "content": "", - "mode": "markdown" - }, - "transparent": true, - "type": "text" + "content": "# Azure Database for PostgreSQL Flexible Server - Monitoring Dashboard\r\n#### - Each metric is emitted at a 1-minute interval and has up to 93 days of history.\r\n#### - For a complete list of metrics, refer to [Azure PostgreSQL Monitoring Metrics](https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/concepts-monitoring)", + "mode": "markdown" }, - { - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "description": "", - "gridPos": { - "h": 5, - "w": 19, - "x": 1, - "y": 0 - }, - "id": 74, - "options": { - "code": { - "language": "plaintext", - "showLineNumbers": false, - "showMiniMap": false - }, - "content": "# Azure Database for PostgreSQL Flexible Server - Monitoring Dashboard\r\n#### - Each metric is emitted at a 1-minute interval and has up to 93 days of history.\r\n#### - For a complete list of metrics, refer to [Azure PostgreSQL Monitoring Metrics](https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/concepts-monitoring)", - "mode": "markdown" - }, - "transparent": true, - "type": "text" + "transparent": true, + "type": "text" + }, + { + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" }, - { - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "description": "Indicates if the database is up or not", - "fieldConfig": { - "defaults": { - "mappings": [ - { - "options": { - "0": { - "color": "red", - "index": 1, - "text": "Down" - }, - "1": { - "color": "green", - "index": 0, - "text": "Up" - } - }, - "type": "value" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { + "description": "Indicates if the database is up or not", + "fieldConfig": { + "defaults": { + "mappings": [ + { + "options": { + "0": { "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 2, - "x": 0, - "y": 5 - }, - "hideTimeOverride": true, - "id": 4, - "links": [], - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "targets": [ - { - "azureMonitor": { - "aggregation": "Maximum", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [], - "metricName": "is_db_alive", - "metricNamespace": "$ns", - "region": "", - "resources": [ - { - "metricNamespace": "$ns", - "region": "", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto" - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "queryType": "Azure Monitor", - "refId": "A", - "subscription": "$sub" - } - ], - "timeShift": "1m", - "title": "Database State", - "type": "stat" - }, - { - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "description": "Percentage of CPU in use", - "fieldConfig": { - "defaults": { - "mappings": [], - "max": 100, - "thresholds": { - "mode": "absolute", - "steps": [ - { + "index": 1, + "text": "Down" + }, + "1": { "color": "green", - "value": null - }, - { - "color": "#EAB839", - "value": 60 - }, - { - "color": "red", - "value": 80 + "index": 0, + "text": "Up" } - ] - }, - "unit": "percent" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 2, - "x": 2, - "y": 5 - }, - "id": 2, - "options": { - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showThresholdLabels": false, - "showThresholdMarkers": true - }, - "targets": [ - { - "azureMonitor": { - "aggregation": "Average", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [], - "metricName": "cpu_percent", - "metricNamespace": "microsoft.dbforpostgresql/flexibleservers", - "resources": [ - { - "metricNamespace": "Microsoft.DBforPostgreSQL/flexibleServers", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto" - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "queryType": "Azure Monitor", - "refId": "A", - "subscription": "$sub" - } - ], - "title": "CPU Usage (Avg)", - "type": "gauge" - }, - { - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "description": "Percentage of memory in use", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "max": 100, - "min": 0, - "thresholds": { - "mode": "percentage", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "#EAB839", - "value": 70 - }, - { - "color": "red", - "value": 90 - } - ] - }, - "unit": "percent" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 2, - "x": 4, - "y": 5 - }, - "hideTimeOverride": true, - "id": 6, - "links": [], - "options": { - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showThresholdLabels": false, - "showThresholdMarkers": true - }, - "targets": [ - { - "azureMonitor": { - "aggregation": "Average", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [], - "metricName": "memory_percent", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto" - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "queryType": "Azure Monitor", - "refId": "A", - "subscription": "$sub" - } - ], - "timeShift": "1m", - "title": "Memory Usage (Avg)", - "type": "gauge" - }, - { - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "description": "Percent of storage space that's used. The storage that's used by the service can include database files, transaction logs, and server logs", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "max": 100, - "min": 0, - "thresholds": { - "mode": "percentage", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "orange", - "value": 70 - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "percent" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 2, - "x": 6, - "y": 5 - }, - "hideTimeOverride": true, - "id": 8, - "links": [], - "options": { - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showThresholdLabels": false, - "showThresholdMarkers": true - }, - "targets": [ - { - "azureMonitor": { - "aggregation": "Average", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [], - "metricName": "storage_percent", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto" - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "queryType": "Azure Monitor", - "refId": "A", - "subscription": "$sub" - } - ], - "timeShift": "1m", - "title": "Storage Usage Percent (Avg)", - "type": "gauge" - }, - { - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "description": "Used and Free storage. The storage that's used by the service can include the database files, transaction logs, and the server logs.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "continuous-GrYlRd" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] + }, + "type": "value" } - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 4, - "x": 8, - "y": 5 - }, - "hideTimeOverride": true, - "id": 96, - "links": [], - "maxDataPoints": 100, - "options": { - "displayMode": "basic", - "minVizHeight": 10, - "minVizWidth": 0, - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showUnfilled": true, - "valueMode": "color" - }, - "targets": [ - { - "appInsights": { - "groupBy": "none", - "metricName": "select", - "rawQuery": false, - "rawQueryString": "", - "spliton": "", - "timeGrainType": "auto", - "xaxis": "timestamp", - "yaxis": "" - }, - "azureMonitor": { - "aggOptions": [ - "None", - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "aggregation": "Average", - "alias": "{{metric}}", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [], - "dimensions": [], - "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", - "metricName": "storage_used", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto", - "timeGrains": [ - { - "text": "auto", - "value": "auto" - }, - { - "text": "1 minute", - "value": "PT1M" - }, - { - "text": "5 minutes", - "value": "PT5M" - }, - { - "text": "15 minutes", - "value": "PT15M" - }, - { - "text": "30 minutes", - "value": "PT30M" - }, - { - "text": "1 hour", - "value": "PT1H" - }, - { - "text": "6 hours", - "value": "PT6H" - }, - { - "text": "12 hours", - "value": "PT12H" - }, - { - "text": "1 day", - "value": "P1D" - } - ] - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "queryType": "Azure Monitor", - "refId": "A", - "subscription": "$sub" - }, - { - "appInsights": { - "groupBy": "none", - "metricName": "select", - "rawQuery": false, - "rawQueryString": "", - "spliton": "", - "timeGrainType": "auto", - "xaxis": "timestamp", - "yaxis": "" - }, - "azureMonitor": { - "aggOptions": [ - "None", - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "aggregation": "Average", - "alias": "{{metric}}", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [], - "dimensions": [], - "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", - "metricName": "storage_free", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto", - "timeGrains": [ - { - "text": "auto", - "value": "auto" - }, - { - "text": "1 minute", - "value": "PT1M" - }, - { - "text": "5 minutes", - "value": "PT5M" - }, - { - "text": "15 minutes", - "value": "PT15M" - }, - { - "text": "30 minutes", - "value": "PT30M" - }, - { - "text": "1 hour", - "value": "PT1H" - }, - { - "text": "6 hours", - "value": "PT6H" - }, - { - "text": "12 hours", - "value": "PT12H" - }, - { - "text": "1 day", - "value": "P1D" - } - ] - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "hide": false, - "queryType": "Azure Monitor", - "refId": "B", - "subscription": "$sub" - } - ], - "timeShift": "1m", - "title": "Storage Used/Free", - "type": "bargauge" - }, - { - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "description": "The storage you provision is the amount of storage capacity available to your Azure Database for PostgreSQL server. The storage is used for the database files, temporary files, transaction logs, and the PostgreSQL server logs", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "decbytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 2, - "x": 12, - "y": 5 - }, - "hideTimeOverride": true, - "id": 95, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "targets": [ - { - "appInsights": { - "groupBy": "none", - "metricName": "select", - "rawQuery": false, - "rawQueryString": "", - "spliton": "", - "timeGrainType": "auto", - "xaxis": "timestamp", - "yaxis": "" - }, - "azureMonitor": { - "aggOptions": [ - "None", - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "aggregation": "Average", - "alias": "{{metric}}", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [], - "dimensions": [], - "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", - "metricName": "storage_used", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto", - "timeGrains": [ - { - "text": "auto", - "value": "auto" - }, - { - "text": "1 minute", - "value": "PT1M" - }, - { - "text": "5 minutes", - "value": "PT5M" - }, - { - "text": "15 minutes", - "value": "PT15M" - }, - { - "text": "30 minutes", - "value": "PT30M" - }, - { - "text": "1 hour", - "value": "PT1H" - }, - { - "text": "6 hours", - "value": "PT6H" - }, - { - "text": "12 hours", - "value": "PT12H" - }, - { - "text": "1 day", - "value": "P1D" - } - ] - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "hide": true, - "queryType": "Azure Monitor", - "refId": "A", - "subscription": "$sub" - }, - { - "appInsights": { - "groupBy": "none", - "metricName": "select", - "rawQuery": false, - "rawQueryString": "", - "spliton": "", - "timeGrainType": "auto", - "xaxis": "timestamp", - "yaxis": "" - }, - "azureMonitor": { - "aggOptions": [ - "None", - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "aggregation": "Average", - "alias": "{{metric}}", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [], - "dimensions": [], - "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", - "metricName": "storage_free", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto", - "timeGrains": [ - { - "text": "auto", - "value": "auto" - }, - { - "text": "1 minute", - "value": "PT1M" - }, - { - "text": "5 minutes", - "value": "PT5M" - }, - { - "text": "15 minutes", - "value": "PT15M" - }, - { - "text": "30 minutes", - "value": "PT30M" - }, - { - "text": "1 hour", - "value": "PT1H" - }, - { - "text": "6 hours", - "value": "PT6H" - }, - { - "text": "12 hours", - "value": "PT12H" - }, - { - "text": "1 day", - "value": "P1D" - } - ] - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "hide": true, - "queryType": "Azure Monitor", - "refId": "B", - "subscription": "$sub" - }, - { - "datasource": { - "type": "__expr__", - "uid": "${DS_EXPRESSION}" - }, - "expression": "$A+$B", - "hide": false, - "refId": "Total Storage", - "type": "math" - } - ], - "timeShift": "1m", - "title": "Total Provisioned Storage", - "type": "stat" - }, - { - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "description": "Amount of storage space that's used by the transaction logs", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 1000000000 - } - ] - }, - "unit": "decbytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 2, - "x": 14, - "y": 5 - }, - "hideTimeOverride": true, - "id": 88, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "targets": [ - { - "appInsights": { - "groupBy": "none", - "metricName": "select", - "rawQuery": false, - "rawQueryString": "", - "spliton": "", - "timeGrainType": "auto", - "xaxis": "timestamp", - "yaxis": "" - }, - "azureMonitor": { - "aggOptions": [ - "None", - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "aggregation": "Average", - "alias": "{{metric}}", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [], - "dimensions": [], - "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", - "metricName": "txlogs_storage_used", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto", - "timeGrains": [ - { - "text": "auto", - "value": "auto" - }, - { - "text": "1 minute", - "value": "PT1M" - }, - { - "text": "5 minutes", - "value": "PT5M" - }, - { - "text": "15 minutes", - "value": "PT15M" - }, - { - "text": "30 minutes", - "value": "PT30M" - }, - { - "text": "1 hour", - "value": "PT1H" - }, - { - "text": "6 hours", - "value": "PT6H" - }, - { - "text": "12 hours", - "value": "PT12H" - }, - { - "text": "1 day", - "value": "P1D" - } - ] - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "queryType": "Azure Monitor", - "refId": "A", - "subscription": "$sub" - } - ], - "timeShift": "1m", - "title": "T-Log Storage Used (Bytes)", - "type": "stat" - }, - { - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "description": "Read Replica Configured", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null+nan", - "result": { - "color": "light-red", - "index": 0, - "text": "Non-Configured" - } - }, - "type": "special" - }, - { - "options": { - "from": 0, - "result": { - "color": "light-blue", - "index": 1, - "text": "Configured" - }, - "to": 1099511627776 - }, - "type": "range" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 1000000000 - } - ] - }, - "unit": "decbytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 2, - "x": 16, - "y": 5 - }, - "hideTimeOverride": true, - "id": 117, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "targets": [ - { - "appInsights": { - "groupBy": "none", - "metricName": "select", - "rawQuery": false, - "rawQueryString": "", - "spliton": "", - "timeGrainType": "auto", - "xaxis": "timestamp", - "yaxis": "" - }, - "azureMonitor": { - "aggOptions": [ - "None", - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "aggregation": "Average", - "alias": "{{metric}}", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [], - "dimensions": [], - "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", - "metricName": "physical_replication_delay_in_bytes", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto", - "timeGrains": [ - { - "text": "auto", - "value": "auto" - }, - { - "text": "1 minute", - "value": "PT1M" - }, - { - "text": "5 minutes", - "value": "PT5M" - }, - { - "text": "15 minutes", - "value": "PT15M" - }, - { - "text": "30 minutes", - "value": "PT30M" - }, - { - "text": "1 hour", - "value": "PT1H" - }, - { - "text": "6 hours", - "value": "PT6H" - }, - { - "text": "12 hours", - "value": "PT12H" - }, - { - "text": "1 day", - "value": "P1D" - } - ] - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "queryType": "Azure Monitor", - "refId": "A", - "subscription": "$sub" - } - ], - "timeShift": "1m", - "title": "Read-Replica", - "type": "stat" - }, - { - "datasource": { - "type": "datasource", - "uid": "-- Mixed --" - }, - "description": "Number of connections to your server", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "#EAB839", - "value": 1500 - }, - { - "color": "red", - "value": 3000 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 2, - "x": 0, - "y": 11 - }, - "hideTimeOverride": true, - "id": 22, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "targets": [ - { - "appInsights": { - "groupBy": "none", - "metricName": "select", - "rawQuery": false, - "rawQueryString": "", - "spliton": "", - "timeGrainType": "auto", - "xaxis": "timestamp", - "yaxis": "" - }, - "azureMonitor": { - "aggOptions": [ - "None", - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "aggregation": "Average", - "alias": "{{metric}}", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [], - "dimensions": [], - "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", - "metricName": "active_connections", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto", - "timeGrains": [ - { - "text": "auto", - "value": "auto" - }, - { - "text": "1 minute", - "value": "PT1M" - }, - { - "text": "5 minutes", - "value": "PT5M" - }, - { - "text": "15 minutes", - "value": "PT15M" - }, - { - "text": "30 minutes", - "value": "PT30M" - }, - { - "text": "1 hour", - "value": "PT1H" - }, - { - "text": "6 hours", - "value": "PT6H" - }, - { - "text": "12 hours", - "value": "PT12H" - }, - { - "text": "1 day", - "value": "P1D" - } - ] - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "queryType": "Azure Monitor", - "refId": "A", - "subscription": "$sub" - } - ], - "timeShift": "1m", - "title": "Active Connections", - "type": "stat" - }, - { - "datasource": { - "type": "datasource", - "uid": "-- Mixed --" - }, - "description": "Number of succeeded connections", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "#EAB839", - "value": 1500 - }, - { - "color": "red", - "value": 3000 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 2, - "x": 2, - "y": 11 - }, - "hideTimeOverride": true, - "id": 24, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "targets": [ - { - "appInsights": { - "groupBy": "none", - "metricName": "select", - "rawQuery": false, - "rawQueryString": "", - "spliton": "", - "timeGrainType": "auto", - "xaxis": "timestamp", - "yaxis": "" - }, - "azureMonitor": { - "aggOptions": [ - "None", - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "aggregation": "Total", - "alias": "{{metric}}", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [], - "dimensions": [], - "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", - "metricName": "connections_succeeded", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto", - "timeGrains": [ - { - "text": "auto", - "value": "auto" - }, - { - "text": "1 minute", - "value": "PT1M" - }, - { - "text": "5 minutes", - "value": "PT5M" - }, - { - "text": "15 minutes", - "value": "PT15M" - }, - { - "text": "30 minutes", - "value": "PT30M" - }, - { - "text": "1 hour", - "value": "PT1H" - }, - { - "text": "6 hours", - "value": "PT6H" - }, - { - "text": "12 hours", - "value": "PT12H" - }, - { - "text": "1 day", - "value": "P1D" - } - ] - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "queryType": "Azure Monitor", - "refId": "A", - "subscription": "$sub" - } - ], - "timeShift": "1m", - "title": "Succeeded Connections", - "type": "stat" - }, - { - "datasource": { - "type": "datasource", - "uid": "-- Mixed --" - }, - "description": "Number of total transactions executed in this database.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 2, - "x": 4, - "y": 11 - }, - "hideTimeOverride": true, - "id": 118, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "targets": [ - { - "appInsights": { - "groupBy": "none", - "metricName": "select", - "rawQuery": false, - "rawQueryString": "", - "spliton": "", - "timeGrainType": "auto", - "xaxis": "timestamp", - "yaxis": "" - }, - "azureMonitor": { - "aggOptions": [ - "None", - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "aggregation": "Total", - "alias": "{{metric}}", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [], - "dimensions": [], - "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", - "metricName": "xact_total", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto", - "timeGrains": [ - { - "text": "auto", - "value": "auto" - }, - { - "text": "1 minute", - "value": "PT1M" - }, - { - "text": "5 minutes", - "value": "PT5M" - }, - { - "text": "15 minutes", - "value": "PT15M" - }, - { - "text": "30 minutes", - "value": "PT30M" - }, - { - "text": "1 hour", - "value": "PT1H" - }, - { - "text": "6 hours", - "value": "PT6H" - }, - { - "text": "12 hours", - "value": "PT12H" - }, - { - "text": "1 day", - "value": "P1D" - } - ] - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "queryType": "Azure Monitor", - "refId": "A", - "subscription": "$sub" - } - ], - "timeShift": "1m", - "title": "Total Transactions", - "type": "stat" - }, - { - "datasource": { - "type": "datasource", - "uid": "-- Mixed --" - }, - "description": "Number of data disk I/O read operations per second.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "#EAB839", - "value": 1500 - }, - { - "color": "red", - "value": 3000 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 2, - "x": 6, - "y": 11 - }, - "hideTimeOverride": true, - "id": 59, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "targets": [ - { - "appInsights": { - "groupBy": "none", - "metricName": "select", - "rawQuery": false, - "rawQueryString": "", - "spliton": "", - "timeGrainType": "auto", - "xaxis": "timestamp", - "yaxis": "" - }, - "azureMonitor": { - "aggOptions": [ - "None", - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "aggregation": "Total", - "alias": "{{metric}}", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [], - "dimensions": [], - "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", - "metricName": "read_iops", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto", - "timeGrains": [ - { - "text": "auto", - "value": "auto" - }, - { - "text": "1 minute", - "value": "PT1M" - }, - { - "text": "5 minutes", - "value": "PT5M" - }, - { - "text": "15 minutes", - "value": "PT15M" - }, - { - "text": "30 minutes", - "value": "PT30M" - }, - { - "text": "1 hour", - "value": "PT1H" - }, - { - "text": "6 hours", - "value": "PT6H" - }, - { - "text": "12 hours", - "value": "PT12H" - }, - { - "text": "1 day", - "value": "P1D" - } - ] - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "queryType": "Azure Monitor", - "refId": "A", - "subscription": "$sub" - } - ], - "timeShift": "1m", - "title": "Read IOPS", - "type": "stat" - }, - { - "datasource": { - "type": "datasource", - "uid": "-- Mixed --" - }, - "description": "Number of data disk I/O write operations per second", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "#EAB839", - "value": 1500 - }, - { - "color": "red", - "value": 3000 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 2, - "x": 8, - "y": 11 - }, - "hideTimeOverride": true, - "id": 60, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "targets": [ - { - "appInsights": { - "groupBy": "none", - "metricName": "select", - "rawQuery": false, - "rawQueryString": "", - "spliton": "", - "timeGrainType": "auto", - "xaxis": "timestamp", - "yaxis": "" - }, - "azureMonitor": { - "aggOptions": [ - "None", - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "aggregation": "Average", - "alias": "{{metric}}", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [], - "dimensions": [], - "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", - "metricName": "write_iops", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto", - "timeGrains": [ - { - "text": "auto", - "value": "auto" - }, - { - "text": "1 minute", - "value": "PT1M" - }, - { - "text": "5 minutes", - "value": "PT5M" - }, - { - "text": "15 minutes", - "value": "PT15M" - }, - { - "text": "30 minutes", - "value": "PT30M" - }, - { - "text": "1 hour", - "value": "PT1H" - }, - { - "text": "6 hours", - "value": "PT6H" - }, - { - "text": "12 hours", - "value": "PT12H" - }, - { - "text": "1 day", - "value": "P1D" - } - ] - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "queryType": "Azure Monitor", - "refId": "A", - "subscription": "$sub" - } - ], - "timeShift": "1m", - "title": "Write IOPS", - "type": "stat" - }, - { - "datasource": { - "type": "datasource", - "uid": "-- Mixed --" - }, - "description": "Bytes read per second from disk", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "#EAB839", - "value": 1500 - }, - { - "color": "red", - "value": 3000 - } - ] - }, - "unit": "binBps" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 2, - "x": 10, - "y": 11 - }, - "hideTimeOverride": true, - "id": 97, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "targets": [ - { - "appInsights": { - "groupBy": "none", - "metricName": "select", - "rawQuery": false, - "rawQueryString": "", - "spliton": "", - "timeGrainType": "auto", - "xaxis": "timestamp", - "yaxis": "" - }, - "azureMonitor": { - "aggOptions": [ - "None", - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "aggregation": "Average", - "alias": "{{metric}}", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [], - "dimensions": [], - "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", - "metricName": "read_throughput", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto", - "timeGrains": [ - { - "text": "auto", - "value": "auto" - }, - { - "text": "1 minute", - "value": "PT1M" - }, - { - "text": "5 minutes", - "value": "PT5M" - }, - { - "text": "15 minutes", - "value": "PT15M" - }, - { - "text": "30 minutes", - "value": "PT30M" - }, - { - "text": "1 hour", - "value": "PT1H" - }, - { - "text": "6 hours", - "value": "PT6H" - }, - { - "text": "12 hours", - "value": "PT12H" - }, - { - "text": "1 day", - "value": "P1D" - } - ] - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "queryType": "Azure Monitor", - "refId": "A", - "subscription": "$sub" - } - ], - "timeShift": "1m", - "title": "Read Throughput", - "type": "stat" - }, - { - "datasource": { - "type": "datasource", - "uid": "-- Mixed --" - }, - "description": "Bytes written to disk per second", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "#EAB839", - "value": 1500 - }, - { - "color": "red", - "value": 3000 - } - ] - }, - "unit": "binBps" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 2, - "x": 12, - "y": 11 - }, - "hideTimeOverride": true, - "id": 98, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "targets": [ - { - "appInsights": { - "groupBy": "none", - "metricName": "select", - "rawQuery": false, - "rawQueryString": "", - "spliton": "", - "timeGrainType": "auto", - "xaxis": "timestamp", - "yaxis": "" - }, - "azureMonitor": { - "aggOptions": [ - "None", - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "aggregation": "Average", - "alias": "{{metric}}", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [], - "dimensions": [], - "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", - "metricName": "read_throughput", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto", - "timeGrains": [ - { - "text": "auto", - "value": "auto" - }, - { - "text": "1 minute", - "value": "PT1M" - }, - { - "text": "5 minutes", - "value": "PT5M" - }, - { - "text": "15 minutes", - "value": "PT15M" - }, - { - "text": "30 minutes", - "value": "PT30M" - }, - { - "text": "1 hour", - "value": "PT1H" - }, - { - "text": "6 hours", - "value": "PT6H" - }, - { - "text": "12 hours", - "value": "PT12H" - }, - { - "text": "1 day", - "value": "P1D" - } - ] - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "queryType": "Azure Monitor", - "refId": "A", - "subscription": "$sub" - } - ], - "timeShift": "1m", - "title": "Write Throughput", - "type": "stat" - }, - { - "datasource": { - "type": "datasource", - "uid": "-- Mixed --" - }, - "description": "Amount of incoming network traffic", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 2, - "x": 14, - "y": 11 - }, - "hideTimeOverride": true, - "id": 91, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "targets": [ - { - "appInsights": { - "groupBy": "none", - "metricName": "select", - "rawQuery": false, - "rawQueryString": "", - "spliton": "", - "timeGrainType": "auto", - "xaxis": "timestamp", - "yaxis": "" - }, - "azureMonitor": { - "aggOptions": [ - "None", - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "aggregation": "Average", - "alias": "{{metric}}", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [], - "dimensions": [], - "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", - "metricName": "network_bytes_ingress", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto", - "timeGrains": [ - { - "text": "auto", - "value": "auto" - }, - { - "text": "1 minute", - "value": "PT1M" - }, - { - "text": "5 minutes", - "value": "PT5M" - }, - { - "text": "15 minutes", - "value": "PT15M" - }, - { - "text": "30 minutes", - "value": "PT30M" - }, - { - "text": "1 hour", - "value": "PT1H" - }, - { - "text": "6 hours", - "value": "PT6H" - }, - { - "text": "12 hours", - "value": "PT12H" - }, - { - "text": "1 day", - "value": "P1D" - } - ] - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "queryType": "Azure Monitor", - "refId": "A", - "subscription": "$sub" - } - ], - "timeShift": "1m", - "title": "Network In (Bytes)", - "type": "stat" - }, - { - "datasource": { - "type": "datasource", - "uid": "-- Mixed --" - }, - "description": "Amount of outgoing network traffic", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 2, - "x": 16, - "y": 11 - }, - "hideTimeOverride": true, - "id": 92, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "targets": [ - { - "appInsights": { - "groupBy": "none", - "metricName": "select", - "rawQuery": false, - "rawQueryString": "", - "spliton": "", - "timeGrainType": "auto", - "xaxis": "timestamp", - "yaxis": "" - }, - "azureMonitor": { - "aggOptions": [ - "None", - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "aggregation": "Total", - "alias": "{{metric}}", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [], - "dimensions": [], - "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", - "metricName": "network_bytes_egress", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto", - "timeGrains": [ - { - "text": "auto", - "value": "auto" - }, - { - "text": "1 minute", - "value": "PT1M" - }, - { - "text": "5 minutes", - "value": "PT5M" - }, - { - "text": "15 minutes", - "value": "PT15M" - }, - { - "text": "30 minutes", - "value": "PT30M" - }, - { - "text": "1 hour", - "value": "PT1H" - }, - { - "text": "6 hours", - "value": "PT6H" - }, - { - "text": "12 hours", - "value": "PT12H" - }, - { - "text": "1 day", - "value": "P1D" - } - ] - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "queryType": "Azure Monitor", - "refId": "A", - "subscription": "$sub" - } - ], - "timeShift": "1m", - "title": "Network Out (Bytes)", - "type": "stat" - }, - { - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "description": "", - "gridPos": { - "h": 2, - "w": 18, - "x": 0, - "y": 17 - }, - "id": 113, - "options": { - "code": { - "language": "plaintext", - "showLineNumbers": false, - "showMiniMap": false - }, - "content": "#### **NOTE**: While metrics are stored for 93 days, you can only query (in the Metrics tile) for a maximum of 30 days worth of data on any single chart. If you see a blank chart or your chart displays only part of metric data, verify that the difference between start and end dates in the time picker doesn't exceed the 30-day interval. After you've selected a 30-day interval, you can pan the chart to view the full retention window.", - "mode": "markdown" - }, - "transparent": true, - "type": "text" - }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 19 - }, - "id": 66, - "panels": [], - "title": "Resource consumption", - "type": "row" - }, - { - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "description": "Percentage of CPU in use", - "fieldConfig": { - "defaults": { - "color": { - "mode": "continuous-GrYlRd" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 54, - "gradientMode": "hue", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 0, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": true, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "CPU percent" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "red", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Memory percent" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "blue", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "CPU percent" - }, - "properties": [ - { - "id": "custom.fillOpacity", - "value": 0 - }, - { - "id": "custom.lineWidth", - "value": 2 - }, - { - "id": "unit", - "value": "percent" - }, - { - "id": "min", - "value": 0 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Memory percent" - }, - "properties": [ - { - "id": "custom.showPoints", - "value": "always" - }, - { - "id": "custom.pointSize", - "value": 8 - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 18, - "x": 0, - "y": 20 - }, - "hideTimeOverride": true, - "id": 76, - "links": [], - "options": { - "legend": { - "calcs": [ - "last" - ], - "displayMode": "list", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "appInsights": { - "groupBy": "none", - "metricName": "select", - "rawQuery": false, - "rawQueryString": "", - "spliton": "", - "timeGrainType": "auto", - "xaxis": "timestamp", - "yaxis": "" - }, - "azureMonitor": { - "aggOptions": [ - "None", - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "aggregation": "Average", - "alias": "{{metric}}", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [], - "dimensions": [], - "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", - "metricName": "cpu_percent", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto", - "timeGrains": [ - { - "text": "auto", - "value": "auto" - }, - { - "text": "1 minute", - "value": "PT1M" - }, - { - "text": "5 minutes", - "value": "PT5M" - }, - { - "text": "15 minutes", - "value": "PT15M" - }, - { - "text": "30 minutes", - "value": "PT30M" - }, - { - "text": "1 hour", - "value": "PT1H" - }, - { - "text": "6 hours", - "value": "PT6H" - }, - { - "text": "12 hours", - "value": "PT12H" - }, - { - "text": "1 day", - "value": "P1D" - } - ] - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "queryType": "Azure Monitor", - "refId": "A", - "subscription": "$sub" - }, - { - "appInsights": { - "groupBy": "none", - "metricName": "select", - "rawQuery": false, - "rawQueryString": "", - "spliton": "", - "timeGrainType": "auto", - "xaxis": "timestamp", - "yaxis": "" - }, - "azureMonitor": { - "aggOptions": [ - "None", - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "aggregation": "Average", - "alias": "{{metric}}", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [], - "dimensions": [], - "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", - "metricName": "memory_percent", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto", - "timeGrains": [ - { - "text": "auto", - "value": "auto" - }, - { - "text": "1 minute", - "value": "PT1M" - }, - { - "text": "5 minutes", - "value": "PT5M" - }, - { - "text": "15 minutes", - "value": "PT15M" - }, - { - "text": "30 minutes", - "value": "PT30M" - }, - { - "text": "1 hour", - "value": "PT1H" - }, - { - "text": "6 hours", - "value": "PT6H" - }, - { - "text": "12 hours", - "value": "PT12H" - }, - { - "text": "1 day", - "value": "P1D" - } - ] - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "hide": false, - "queryType": "Azure Monitor", - "refId": "B", - "subscription": "$sub" - } - ], - "timeShift": "1m", - "title": "CPU / Memory", - "type": "timeseries" - }, - { - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "description": "Number of transactions executed within a second.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "bars", - "fillOpacity": 91, - "gradientMode": "hue", - "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": 9, - "w": 14, - "x": 0, - "y": 28 - }, - "id": 120, - "options": { - "legend": { - "calcs": [], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "azureMonitor": { - "aggregation": "Total", - "alias": "", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [ - { - "dimension": "DatabaseName", - "filters": [], - "operator": "eq" - } - ], - "metricName": "tps", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto" - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "hide": true, - "queryType": "Azure Monitor", - "refId": "A", - "subscription": "$sub" - }, - { - "datasource": { - "type": "__expr__", - "uid": "${DS_EXPRESSION}" - }, - "expression": "$A/60", - "hide": false, - "refId": "TPS", - "type": "math" - } - ], - "title": "Transactions per second (Preview)", - "type": "timeseries" - }, - { - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "description": "Number of total transactions executed in this database (by database)", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - } - }, - "mappings": [], - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 4, - "x": 14, - "y": 28 - }, - "id": 78, - "options": { - "displayLabels": [ - "percent", - "name" ], - "legend": { - "displayMode": "list", - "placement": "right", - "showLegend": true, - "values": [ - "percent" + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } ] }, - "pieType": "pie", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "tooltip": { - "mode": "single", - "sort": "none" - } + "unit": "short" }, - "targets": [ - { - "azureMonitor": { - "aggregation": "Total", - "alias": "{{dimensionvalue}}", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [ - { - "dimension": "DatabaseName", - "filters": [], - "operator": "eq" - } - ], - "metricName": "xact_total", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto", - "top": "" - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "queryType": "Azure Monitor", - "refId": "A", - "subscription": "$sub" - } - ], - "title": "Total Transactions by database (Top n)", - "type": "piechart" + "overrides": [] }, - { - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "description": "Amount of storage space that's used by the transaction logs", - "fieldConfig": { - "defaults": { - "color": { - "mode": "continuous-BlPu" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 20, - "gradientMode": "scheme", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "smooth", - "lineWidth": 2, - "pointSize": 7, - "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": 9, - "w": 18, - "x": 0, - "y": 37 - }, - "hideTimeOverride": true, - "id": 64, - "links": [], - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "appInsights": { - "groupBy": "none", - "metricName": "select", - "rawQuery": false, - "rawQueryString": "", - "spliton": "", - "timeGrainType": "auto", - "xaxis": "timestamp", - "yaxis": "" - }, - "azureMonitor": { - "aggOptions": [ - "None", - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "aggregation": "Average", - "alias": "{{metric}}", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [], - "dimensions": [], - "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", - "metricName": "txlogs_storage_used", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto", - "timeGrains": [ - { - "text": "auto", - "value": "auto" - }, - { - "text": "1 minute", - "value": "PT1M" - }, - { - "text": "5 minutes", - "value": "PT5M" - }, - { - "text": "15 minutes", - "value": "PT15M" - }, - { - "text": "30 minutes", - "value": "PT30M" - }, - { - "text": "1 hour", - "value": "PT1H" - }, - { - "text": "6 hours", - "value": "PT6H" - }, - { - "text": "12 hours", - "value": "PT12H" - }, - { - "text": "1 day", - "value": "P1D" - } - ] - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "queryType": "Azure Monitor", - "refId": "A", - "subscription": "$sub" - } - ], - "timeShift": "1m", - "title": "Transaction Log Storage Used (Bytes)", - "type": "timeseries" + "gridPos": { + "h": 6, + "w": 2, + "x": 0, + "y": 5 }, - { - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" + "hideTimeOverride": true, + "id": 4, + "links": [], + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": ["lastNotNull"], + "fields": "", + "values": false }, - "description": "Amount of storage space that's used. The storage that's used by the service can include the database files, transaction logs, and the server logs", - "fieldConfig": { - "defaults": { - "color": { - "mode": "continuous-GrYlRd" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 20, - "gradientMode": "scheme", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "smooth", - "lineWidth": 2, - "pointSize": 7, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "decmbytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 10, - "x": 0, - "y": 46 - }, - "hideTimeOverride": true, - "id": 37, - "links": [], - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "appInsights": { - "groupBy": "none", - "metricName": "select", - "rawQuery": false, - "rawQueryString": "", - "spliton": "", - "timeGrainType": "auto", - "xaxis": "timestamp", - "yaxis": "" - }, - "azureMonitor": { - "aggOptions": [ - "None", - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "aggregation": "Average", - "alias": "{{metric}}", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [], - "dimensions": [], - "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", - "metricName": "storage_used", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto", - "timeGrains": [ - { - "text": "auto", - "value": "auto" - }, - { - "text": "1 minute", - "value": "PT1M" - }, - { - "text": "5 minutes", - "value": "PT5M" - }, - { - "text": "15 minutes", - "value": "PT15M" - }, - { - "text": "30 minutes", - "value": "PT30M" - }, - { - "text": "1 hour", - "value": "PT1H" - }, - { - "text": "6 hours", - "value": "PT6H" - }, - { - "text": "12 hours", - "value": "PT12H" - }, - { - "text": "1 day", - "value": "P1D" - } - ] - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "queryType": "Azure Monitor", - "refId": "A", - "subscription": "$sub" - } - ], - "timeShift": "1m", - "title": "Storage Used (Bytes)", - "type": "timeseries" + "textMode": "auto" }, - { - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "description": "Amount of storage space that's available", - "fieldConfig": { - "defaults": { - "color": { - "mode": "continuous-GrYlRd" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 20, - "gradientMode": "scheme", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "smooth", - "lineWidth": 2, - "pointSize": 7, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "decmbytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 8, - "x": 10, - "y": 46 - }, - "hideTimeOverride": true, - "id": 63, - "links": [], - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "appInsights": { - "groupBy": "none", - "metricName": "select", - "rawQuery": false, - "rawQueryString": "", - "spliton": "", - "timeGrainType": "auto", - "xaxis": "timestamp", - "yaxis": "" - }, - "azureMonitor": { - "aggOptions": [ - "None", - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "aggregation": "Average", - "alias": "{{metric}}", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [], - "dimensions": [], - "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", - "metricName": "storage_free", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto", - "timeGrains": [ - { - "text": "auto", - "value": "auto" - }, - { - "text": "1 minute", - "value": "PT1M" - }, - { - "text": "5 minutes", - "value": "PT5M" - }, - { - "text": "15 minutes", - "value": "PT15M" - }, - { - "text": "30 minutes", - "value": "PT30M" - }, - { - "text": "1 hour", - "value": "PT1H" - }, - { - "text": "6 hours", - "value": "PT6H" - }, - { - "text": "12 hours", - "value": "PT12H" - }, - { - "text": "1 day", - "value": "P1D" - } - ] - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "queryType": "Azure Monitor", - "refId": "A", - "subscription": "$sub" - } - ], - "timeShift": "1m", - "title": "Storage Free (Bytes)", - "type": "timeseries" - }, - { - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "description": "Number of active, failed and succeeded connections to your server.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 37, - "gradientMode": "opacity", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "smooth", - "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" - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 14, - "x": 0, - "y": 54 - }, - "hideTimeOverride": true, - "id": 39, - "links": [], - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "appInsights": { - "groupBy": "none", - "metricName": "select", - "rawQuery": false, - "rawQueryString": "", - "spliton": "", - "timeGrainType": "auto", - "xaxis": "timestamp", - "yaxis": "" - }, - "azureMonitor": { - "aggOptions": [ - "None", - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "aggregation": "Maximum", - "alias": "{{metric}}", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [], - "dimensions": [], - "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", - "metricName": "active_connections", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto", - "timeGrains": [ - { - "text": "auto", - "value": "auto" - }, - { - "text": "1 minute", - "value": "PT1M" - }, - { - "text": "5 minutes", - "value": "PT5M" - }, - { - "text": "15 minutes", - "value": "PT15M" - }, - { - "text": "30 minutes", - "value": "PT30M" - }, - { - "text": "1 hour", - "value": "PT1H" - }, - { - "text": "6 hours", - "value": "PT6H" - }, - { - "text": "12 hours", - "value": "PT12H" - }, - { - "text": "1 day", - "value": "P1D" - } - ] - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "queryType": "Azure Monitor", - "refId": "A", - "subscription": "$sub" - }, - { - "appInsights": { - "groupBy": "none", - "metricName": "select", - "rawQuery": false, - "rawQueryString": "", - "spliton": "", - "timeGrainType": "auto", - "xaxis": "timestamp", - "yaxis": "" - }, - "azureMonitor": { - "aggOptions": [ - "None", - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "aggregation": "Total", - "alias": "{{metric}}", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [], - "dimensions": [], - "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", - "metricName": "connections_failed", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto", - "timeGrains": [ - { - "text": "auto", - "value": "auto" - }, - { - "text": "1 minute", - "value": "PT1M" - }, - { - "text": "5 minutes", - "value": "PT5M" - }, - { - "text": "15 minutes", - "value": "PT15M" - }, - { - "text": "30 minutes", - "value": "PT30M" - }, - { - "text": "1 hour", - "value": "PT1H" - }, - { - "text": "6 hours", - "value": "PT6H" - }, - { - "text": "12 hours", - "value": "PT12H" - }, - { - "text": "1 day", - "value": "P1D" - } - ] - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "queryType": "Azure Monitor", - "refId": "B", - "subscription": "$sub" - }, - { - "azureMonitor": { - "aggregation": "Total", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [], - "metricName": "connections_succeeded", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto" - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "hide": false, - "queryType": "Azure Monitor", - "refId": "C", - "subscription": "$sub" - } - ], - "timeShift": "1m", - "title": "Server Connections", - "type": "timeseries" - }, - { - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "description": "Max Connections represents the configured value for the _max_connections_ server parameter. This metric is pooled every 30 minutes.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "blue" - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 4, - "x": 14, - "y": 54 - }, - "id": 111, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "value" - }, - "targets": [ - { - "azureMonitor": { - "aggregation": "Maximum", - "alias": "{{dimensionvalue}}", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [], - "metricName": "max_connections", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "PT30M", - "top": "" - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "queryType": "Azure Monitor", - "refId": "A", - "subscription": "$sub" - } - ], - "timeFrom": "1h", - "title": "Max Connections Configured", - "type": "stat" - }, - { - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "description": "Bytes Read / Written to disk per second.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 25, - "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": "normal" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 10, - "x": 0, - "y": 63 - }, - "hideTimeOverride": true, - "id": 30, - "links": [], - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "appInsights": { - "groupBy": "none", - "metricName": "select", - "rawQuery": false, - "rawQueryString": "", - "spliton": "", - "timeGrainType": "auto", - "xaxis": "timestamp", - "yaxis": "" - }, - "azureMonitor": { - "aggOptions": [ - "None", - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "aggregation": "Average", - "alias": "{{metric}}", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [], - "dimensions": [], - "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", - "metricName": "read_throughput", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto", - "timeGrains": [ - { - "text": "auto", - "value": "auto" - }, - { - "text": "1 minute", - "value": "PT1M" - }, - { - "text": "5 minutes", - "value": "PT5M" - }, - { - "text": "15 minutes", - "value": "PT15M" - }, - { - "text": "30 minutes", - "value": "PT30M" - }, - { - "text": "1 hour", - "value": "PT1H" - }, - { - "text": "6 hours", - "value": "PT6H" - }, - { - "text": "12 hours", - "value": "PT12H" - }, - { - "text": "1 day", - "value": "P1D" - } - ] - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "queryType": "Azure Monitor", - "refId": "A", - "subscription": "$sub" - }, - { - "appInsights": { - "groupBy": "none", - "metricName": "select", - "rawQuery": false, - "rawQueryString": "", - "spliton": "", - "timeGrainType": "auto", - "xaxis": "timestamp", - "yaxis": "" - }, - "azureMonitor": { - "aggOptions": [ - "None", - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "aggregation": "Average", - "alias": "{{metric}}", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [], - "dimensions": [], - "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", - "metricName": "write_throughput", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto", - "timeGrains": [ - { - "text": "auto", - "value": "auto" - }, - { - "text": "1 minute", - "value": "PT1M" - }, - { - "text": "5 minutes", - "value": "PT5M" - }, - { - "text": "15 minutes", - "value": "PT15M" - }, - { - "text": "30 minutes", - "value": "PT30M" - }, - { - "text": "1 hour", - "value": "PT1H" - }, - { - "text": "6 hours", - "value": "PT6H" - }, - { - "text": "12 hours", - "value": "PT12H" - }, - { - "text": "1 day", - "value": "P1D" - } - ] - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "queryType": "Azure Monitor", - "refId": "B", - "subscription": "$sub" - } - ], - "timeShift": "1m", - "title": "Read/Write throughput", - "type": "timeseries" - }, - { - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "description": "Number of data disk IO read/write operations per second.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 25, - "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": "normal" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 8, - "x": 10, - "y": 63 - }, - "hideTimeOverride": true, - "id": 31, - "links": [], - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "appInsights": { - "groupBy": "none", - "metricName": "select", - "rawQuery": false, - "rawQueryString": "", - "spliton": "", - "timeGrainType": "auto", - "xaxis": "timestamp", - "yaxis": "" - }, - "azureMonitor": { - "aggOptions": [ - "None", - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "aggregation": "Average", - "alias": "{{metric}}", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [], - "dimensions": [], - "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", - "metricName": "read_iops", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto", - "timeGrains": [ - { - "text": "auto", - "value": "auto" - }, - { - "text": "1 minute", - "value": "PT1M" - }, - { - "text": "5 minutes", - "value": "PT5M" - }, - { - "text": "15 minutes", - "value": "PT15M" - }, - { - "text": "30 minutes", - "value": "PT30M" - }, - { - "text": "1 hour", - "value": "PT1H" - }, - { - "text": "6 hours", - "value": "PT6H" - }, - { - "text": "12 hours", - "value": "PT12H" - }, - { - "text": "1 day", - "value": "P1D" - } - ] - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "queryType": "Azure Monitor", - "refId": "A", - "subscription": "$sub" - }, - { - "appInsights": { - "groupBy": "none", - "metricName": "select", - "rawQuery": false, - "rawQueryString": "", - "spliton": "", - "timeGrainType": "auto", - "xaxis": "timestamp", - "yaxis": "" - }, - "azureMonitor": { - "aggOptions": [ - "None", - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "aggregation": "Average", - "alias": "{{metric}}", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [], - "dimensions": [], - "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", - "metricName": "write_iops", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto", - "timeGrains": [ - { - "text": "auto", - "value": "auto" - }, - { - "text": "1 minute", - "value": "PT1M" - }, - { - "text": "5 minutes", - "value": "PT5M" - }, - { - "text": "15 minutes", - "value": "PT15M" - }, - { - "text": "30 minutes", - "value": "PT30M" - }, - { - "text": "1 hour", - "value": "PT1H" - }, - { - "text": "6 hours", - "value": "PT6H" - }, - { - "text": "12 hours", - "value": "PT12H" - }, - { - "text": "1 day", - "value": "P1D" - } - ] - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "queryType": "Azure Monitor", - "refId": "B", - "subscription": "$sub" - } - ], - "timeShift": "1m", - "title": "Read/Write IOPS", - "type": "timeseries" - }, - { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 71 - }, - "id": 112, - "panels": [ - { - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "description": "", - "gridPos": { - "h": 2, - "w": 18, - "x": 0, - "y": 72 - }, - "id": 121, - "options": { - "code": { - "language": "plaintext", - "showLineNumbers": false, - "showMiniMap": false - }, - "content": "#### **NOTE**: Autovacuum metrics are emitted at a 30-minute interval. To enable these metrics, set the server parameter `metrics.autovacuum_diagnostics` to ON.", - "mode": "markdown" - }, - "transparent": true, - "type": "text" - }, - { - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "description": "Estimated number of dead rows for user-only tables in this database", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 25, - "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": "normal" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 9, - "x": 0, - "y": 74 - }, - "id": 114, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "azureMonitor": { - "aggregation": "Total", - "alias": "{{dimensionvalue}}", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [ - { - "dimension": "DatabaseName", - "filters": [], - "operator": "eq" - } - ], - "metricName": "n_dead_tup_user_tables", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "PT30M", - "top": "" - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "queryType": "Azure Monitor", - "refId": "A", - "subscription": "$sub" - } - ], - "timeFrom": "1h", - "title": "Dead Tuples", - "type": "timeseries" - }, - { - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "description": "Estimated number of live rows for user-only tables in this database.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 25, - "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": "normal" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 9, - "x": 9, - "y": 74 - }, - "id": 115, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "azureMonitor": { - "aggregation": "Maximum", - "alias": "{{dimensionvalue}}", - "allowedTimeGrainsMs": [ - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [ - { - "dimension": "DatabaseName", - "filters": [], - "operator": "eq" - } - ], - "metricName": "n_live_tup_user_tables", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto", - "top": "" - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "queryType": "Azure Monitor", - "refId": "A", - "subscription": "$sub" - } - ], - "timeFrom": "1h", - "title": "Live Tuples", - "type": "timeseries" - }, - { - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "description": "Estimated bloat percentage for user only tables.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "continuous-GrYlRd" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 20, - "gradientMode": "scheme", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "smooth", - "lineWidth": 3, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Bloat Percent (Preview)" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "red", - "mode": "fixed" - } - }, - { - "id": "custom.gradientMode", - "value": "hue" - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 18, - "x": 0, - "y": 83 - }, - "id": 119, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "azureMonitor": { - "aggregation": "Maximum", - "allowedTimeGrainsMs": [ - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [], - "metricName": "bloat_percent", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto" - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "queryType": "Azure Monitor", - "refId": "A", - "subscription": "$sub" - } - ], - "timeFrom": "1h", - "title": "Bloat Percent (Preview)", - "type": "timeseries" - } - ], - "title": "Autovacuum Metrics", - "type": "row" - }, - { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 72 - }, - "id": 41, - "panels": [ - { - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "description": "", - "gridPos": { - "h": 2, - "w": 18, - "x": 0, - "y": 73 - }, - "id": 122, - "options": { - "code": { - "language": "plaintext", - "showLineNumbers": false, - "showMiniMap": false - }, - "content": "#### **NOTE**: PgBouncer metrics are emitted at a 30-minute interval. For PgBouncer metrics to work, both the server parameters `pgbouncer.enabled` and `metrics.pgbouncer_diagnostics` must be enabled.", - "mode": "markdown" - }, - "transparent": true, - "type": "text" - }, - { - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "description": "Total number of connection pools", - "fieldConfig": { - "defaults": { - "color": { - "mode": "continuous-GrYlRd" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 20, - "gradientMode": "scheme", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "smooth", - "lineWidth": 3, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 7, - "w": 4, - "x": 0, - "y": 75 - }, - "hideTimeOverride": true, - "id": 43, - "links": [], - "maxDataPoints": 100, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "appInsights": { - "groupBy": "none", - "metricName": "select", - "rawQuery": false, - "rawQueryString": "", - "spliton": "", - "timeGrainType": "auto", - "xaxis": "timestamp", - "yaxis": "" - }, - "azureMonitor": { - "aggOptions": [ - "None", - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "aggregation": "Maximum", - "alias": "{{metric}}", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [], - "dimensions": [], - "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", - "metricName": "num_pools", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto", - "timeGrains": [ - { - "text": "auto", - "value": "auto" - }, - { - "text": "1 minute", - "value": "PT1M" - }, - { - "text": "5 minutes", - "value": "PT5M" - }, - { - "text": "15 minutes", - "value": "PT15M" - }, - { - "text": "30 minutes", - "value": "PT30M" - }, - { - "text": "1 hour", - "value": "PT1H" - }, - { - "text": "6 hours", - "value": "PT6H" - }, - { - "text": "12 hours", - "value": "PT12H" - }, - { - "text": "1 day", - "value": "P1D" - } - ] - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "queryType": "Azure Monitor", - "refId": "A", - "subscription": "$sub" - } - ], - "timeShift": "1m", - "title": "Number of connection pools", - "type": "timeseries" - }, - { - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "description": "Connections from clients that are associated with an Azure Database for PostgreSQL connection", - "fieldConfig": { - "defaults": { - "color": { - "mode": "continuous-GrYlRd" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 20, - "gradientMode": "scheme", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "smooth", - "lineWidth": 3, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 7, - "w": 4, - "x": 4, - "y": 75 - }, - "hideTimeOverride": true, - "id": 47, - "links": [], - "maxDataPoints": 100, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "appInsights": { - "groupBy": "none", - "metricName": "select", - "rawQuery": false, - "rawQueryString": "", - "spliton": "", - "timeGrainType": "auto", - "xaxis": "timestamp", - "yaxis": "" - }, - "azureMonitor": { - "aggOptions": [ - "None", - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "aggregation": "Maximum", - "alias": "{{metric}}", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [], - "dimensions": [], - "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", - "metricName": "client_connections_active", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto", - "timeGrains": [ - { - "text": "auto", - "value": "auto" - }, - { - "text": "1 minute", - "value": "PT1M" - }, - { - "text": "5 minutes", - "value": "PT5M" - }, - { - "text": "15 minutes", - "value": "PT15M" - }, - { - "text": "30 minutes", - "value": "PT30M" - }, - { - "text": "1 hour", - "value": "PT1H" - }, - { - "text": "6 hours", - "value": "PT6H" - }, - { - "text": "12 hours", - "value": "PT12H" - }, - { - "text": "1 day", - "value": "P1D" - } - ] - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "queryType": "Azure Monitor", - "refId": "A", - "subscription": "$sub" - } - ], - "timeShift": "1m", - "title": "Active client connections", - "type": "timeseries" - }, - { - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "description": "Connections to Azure Database for PostgreSQL that are in use by a client connection", - "fieldConfig": { - "defaults": { - "color": { - "mode": "continuous-GrYlRd" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 20, - "gradientMode": "scheme", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "smooth", - "lineWidth": 3, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 7, - "w": 4, - "x": 8, - "y": 75 - }, - "hideTimeOverride": true, - "id": 51, - "links": [], - "maxDataPoints": 100, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "appInsights": { - "groupBy": "none", - "metricName": "select", - "rawQuery": false, - "rawQueryString": "", - "spliton": "", - "timeGrainType": "auto", - "xaxis": "timestamp", - "yaxis": "" - }, - "azureMonitor": { - "aggOptions": [ - "None", - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "aggregation": "Maximum", - "alias": "{{metric}}", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [], - "dimensions": [], - "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", - "metricName": "server_connections_active", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto", - "timeGrains": [ - { - "text": "auto", - "value": "auto" - }, - { - "text": "1 minute", - "value": "PT1M" - }, - { - "text": "5 minutes", - "value": "PT5M" - }, - { - "text": "15 minutes", - "value": "PT15M" - }, - { - "text": "30 minutes", - "value": "PT30M" - }, - { - "text": "1 hour", - "value": "PT1H" - }, - { - "text": "6 hours", - "value": "PT6H" - }, - { - "text": "12 hours", - "value": "PT12H" - }, - { - "text": "1 day", - "value": "P1D" - } - ] - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "queryType": "Azure Monitor", - "refId": "A", - "subscription": "$sub" - } - ], - "timeShift": "1m", - "title": "Active server connections", - "type": "timeseries" - }, - { - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "description": "Current number of pooled connections", - "fieldConfig": { - "defaults": { - "color": { - "mode": "continuous-GrYlRd" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 20, - "gradientMode": "scheme", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "smooth", - "lineWidth": 3, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 7, - "w": 4, - "x": 0, - "y": 82 - }, - "hideTimeOverride": true, - "id": 45, - "links": [], - "maxDataPoints": 100, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "appInsights": { - "groupBy": "none", - "metricName": "select", - "rawQuery": false, - "rawQueryString": "", - "spliton": "", - "timeGrainType": "auto", - "xaxis": "timestamp", - "yaxis": "" - }, - "azureMonitor": { - "aggOptions": [ - "None", - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "aggregation": "Maximum", - "alias": "{{metric}}", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [], - "dimensions": [], - "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", - "metricName": "total_pooled_connections", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto", - "timeGrains": [ - { - "text": "auto", - "value": "auto" - }, - { - "text": "1 minute", - "value": "PT1M" - }, - { - "text": "5 minutes", - "value": "PT5M" - }, - { - "text": "15 minutes", - "value": "PT15M" - }, - { - "text": "30 minutes", - "value": "PT30M" - }, - { - "text": "1 hour", - "value": "PT1H" - }, - { - "text": "6 hours", - "value": "PT6H" - }, - { - "text": "12 hours", - "value": "PT12H" - }, - { - "text": "1 day", - "value": "P1D" - } - ] - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "queryType": "Azure Monitor", - "refId": "A", - "subscription": "$sub" - } - ], - "timeShift": "1m", - "title": "Total pooled connections", - "type": "timeseries" - }, - { - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "description": "Connections from clients that are waiting for an Azure Database for PostgreSQL connection to service them", - "fieldConfig": { - "defaults": { - "color": { - "mode": "continuous-GrYlRd" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 20, - "gradientMode": "scheme", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "smooth", - "lineWidth": 3, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 7, - "w": 4, - "x": 4, - "y": 82 - }, - "hideTimeOverride": true, - "id": 49, - "links": [], - "maxDataPoints": 100, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "appInsights": { - "groupBy": "none", - "metricName": "select", - "rawQuery": false, - "rawQueryString": "", - "spliton": "", - "timeGrainType": "auto", - "xaxis": "timestamp", - "yaxis": "" - }, - "azureMonitor": { - "aggOptions": [ - "None", - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "aggregation": "Maximum", - "alias": "{{metric}}", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [], - "dimensions": [], - "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", - "metricName": "client_connections_waiting", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto", - "timeGrains": [ - { - "text": "auto", - "value": "auto" - }, - { - "text": "1 minute", - "value": "PT1M" - }, - { - "text": "5 minutes", - "value": "PT5M" - }, - { - "text": "15 minutes", - "value": "PT15M" - }, - { - "text": "30 minutes", - "value": "PT30M" - }, - { - "text": "1 hour", - "value": "PT1H" - }, - { - "text": "6 hours", - "value": "PT6H" - }, - { - "text": "12 hours", - "value": "PT12H" - }, - { - "text": "1 day", - "value": "P1D" - } - ] - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "queryType": "Azure Monitor", - "refId": "A", - "subscription": "$sub" - } - ], - "timeShift": "1m", - "title": "Waiting client connections", - "type": "timeseries" - }, - { - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "description": "Connections to Azure Database for PostgreSQL that are idle and ready to service a new client connection", - "fieldConfig": { - "defaults": { - "color": { - "mode": "continuous-GrYlRd" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 20, - "gradientMode": "scheme", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "smooth", - "lineWidth": 3, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 7, - "w": 4, - "x": 8, - "y": 82 - }, - "hideTimeOverride": true, - "id": 53, - "links": [], - "maxDataPoints": 100, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "appInsights": { - "groupBy": "none", - "metricName": "select", - "rawQuery": false, - "rawQueryString": "", - "spliton": "", - "timeGrainType": "auto", - "xaxis": "timestamp", - "yaxis": "" - }, - "azureMonitor": { - "aggOptions": [ - "None", - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "aggregation": "Maximum", - "alias": "{{metric}}", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [], - "dimensions": [], - "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", - "metricName": "server_connections_idle", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto", - "timeGrains": [ - { - "text": "auto", - "value": "auto" - }, - { - "text": "1 minute", - "value": "PT1M" - }, - { - "text": "5 minutes", - "value": "PT5M" - }, - { - "text": "15 minutes", - "value": "PT15M" - }, - { - "text": "30 minutes", - "value": "PT30M" - }, - { - "text": "1 hour", - "value": "PT1H" - }, - { - "text": "6 hours", - "value": "PT6H" - }, - { - "text": "12 hours", - "value": "PT12H" - }, - { - "text": "1 day", - "value": "P1D" - } - ] - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "queryType": "Azure Monitor", - "refId": "A", - "subscription": "$sub" - } - ], - "timeShift": "1m", - "title": "Idle server connections", - "type": "timeseries" - } - ], - "title": "PgBouncer Metrics", - "type": "row" - }, - { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 73 - }, - "id": 106, - "panels": [ - { - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "description": "", - "gridPos": { - "h": 2, - "w": 24, - "x": 0, - "y": 90 - }, - "id": 123, - "options": { - "code": { - "language": "plaintext", - "showLineNumbers": false, - "showMiniMap": false - }, - "content": "#### **NOTE**: Enhanced metrics are emitted at a 1-minute interval. To enable these metrics, set the server parameter `metrics.collector_database_activity` to ON.", - "mode": "markdown" - }, - "transparent": true, - "type": "text" - }, - { - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "description": "Overall state of the backends", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 61, - "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": "normal" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Other" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "dark-blue", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Active" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "blue", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Idle" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "light-blue", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "IdleInTransaction" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "super-light-blue", - "mode": "fixed" - } - } - ] - } - ] - }, - "gridPos": { - "h": 10, - "w": 8, - "x": 0, - "y": 92 - }, - "id": 100, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "desc" - } - }, - "targets": [ - { - "azureMonitor": { - "aggregation": "Maximum", - "alias": "{{dimensionvalue}}", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [ - { - "dimension": "State", - "filters": [], - "operator": "eq" - } - ], - "metricName": "sessions_by_state", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto" - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "queryType": "Azure Monitor", - "refId": "A", - "subscription": "$sub" - } - ], - "title": "Sessions by State", - "type": "timeseries" - }, - { - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "description": "Sessions by the type of event for which the backend is waiting", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 61, - "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": "normal" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 10, - "w": 8, - "x": 8, - "y": 92 - }, - "id": 101, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "azureMonitor": { - "aggregation": "Maximum", - "alias": "{{dimensionvalue}}", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [ - { - "dimension": "WaitEventType", - "filters": [], - "operator": "eq" - } - ], - "metricName": "sessions_by_wait_event_type", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto", - "top": "" - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "queryType": "Azure Monitor", - "refId": "A", - "subscription": "$sub" - } - ], - "title": "Sessions By WaitEventType", - "type": "timeseries" - }, - { - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "description": "", - "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": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 10, - "w": 8, - "x": 16, - "y": 92 - }, - "id": 102, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "azureMonitor": { - "aggregation": "Maximum", - "alias": "", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [], - "metricName": "longest_transaction_time_sec", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto", - "top": "" - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "queryType": "Azure Monitor", - "refId": "A", - "subscription": "$sub" - }, - { - "azureMonitor": { - "aggregation": "Maximum", - "alias": "", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [], - "metricName": "longest_query_time_sec", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto", - "top": "" - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "hide": false, - "queryType": "Azure Monitor", - "refId": "B", - "subscription": "$sub" - }, - { - "azureMonitor": { - "aggregation": "Maximum", - "alias": "", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [], - "metricName": "oldest_backend_time_sec", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto", - "top": "" - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "hide": false, - "queryType": "Azure Monitor", - "refId": "C", - "subscription": "$sub" - } - ], - "title": "Session Stats", - "type": "timeseries" - }, - { - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "description": "Number of rows that were inserted by queries in this database", - "fieldConfig": { - "defaults": { - "color": { - "mode": "continuous-BlYlRd" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 39, - "gradientMode": "opacity", - "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" - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [ - { - "__systemRef": "hideSeriesFrom", - "matcher": { - "id": "byNames", - "options": { - "mode": "exclude", - "names": [ - "foo" - ], - "prefix": "All except:", - "readOnly": true - } - }, - "properties": [ - { - "id": "custom.hideFrom", - "value": { - "legend": false, - "tooltip": false, - "viz": true - } - } - ] - } - ] - }, - "gridPos": { - "h": 9, - "w": 8, - "x": 0, - "y": 102 - }, - "id": 103, - "options": { - "legend": { - "calcs": [ - "lastNotNull" - ], - "displayMode": "list", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "azureMonitor": { - "aggregation": "Total", - "alias": "{{dimensionvalue}}", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [ - { - "dimension": "DatabaseName", - "filters": [], - "operator": "eq" - } - ], - "metricName": "tup_inserted", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto", - "top": "" - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "queryType": "Azure Monitor", - "refId": "A", - "subscription": "$sub" - } - ], - "title": "Tuples Inserted", - "type": "timeseries" - }, - { - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "description": "Number of transactions in this database that have been committed", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 27, - "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" - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [ - { - "__systemRef": "hideSeriesFrom", - "matcher": { - "id": "byNames", - "options": { - "mode": "exclude", - "names": [ - "foo" - ], - "prefix": "All except:", - "readOnly": true - } - }, - "properties": [ - { - "id": "custom.hideFrom", - "value": { - "legend": false, - "tooltip": false, - "viz": true - } - } - ] - } - ] - }, - "gridPos": { - "h": 9, - "w": 8, - "x": 8, - "y": 102 - }, - "id": 109, - "options": { - "legend": { - "calcs": [ - "lastNotNull" - ], - "displayMode": "list", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "azureMonitor": { - "aggregation": "Total", - "alias": "{{dimensionvalue}}", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [ - { - "dimension": "DatabaseName", - "filters": [], - "operator": "eq" - } - ], - "metricName": "blks_read", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto", - "top": "" - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "queryType": "Azure Monitor", - "refId": "A", - "subscription": "$sub" - } - ], - "title": "Transactions Committed", - "type": "timeseries" - }, - { - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "description": "Number of transactions in this database that have been rolled back", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 30, - "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" - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [ - { - "__systemRef": "hideSeriesFrom", - "matcher": { - "id": "byNames", - "options": { - "mode": "exclude", - "names": [ - "foo" - ], - "prefix": "All except:", - "readOnly": true - } - }, - "properties": [ - { - "id": "custom.hideFrom", - "value": { - "legend": false, - "tooltip": false, - "viz": true - } - } - ] - } - ] - }, - "gridPos": { - "h": 9, - "w": 8, - "x": 16, - "y": 102 - }, - "id": 110, - "options": { - "legend": { - "calcs": [ - "lastNotNull" - ], - "displayMode": "list", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "azureMonitor": { - "aggregation": "Total", - "alias": "{{dimensionvalue}}", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [ - { - "dimension": "DatabaseName", - "filters": [], - "operator": "eq" - } - ], - "metricName": "xact_rollback", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto", - "top": "" - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "queryType": "Azure Monitor", - "refId": "A", - "subscription": "$sub" - } - ], - "title": "Transactions Rolled back", - "type": "timeseries" - }, - { - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "description": "Number of times disk blocks were found already in the buffer cache, so that a read wasn't necessary", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 26, - "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" - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [ - { - "__systemRef": "hideSeriesFrom", - "matcher": { - "id": "byNames", - "options": { - "mode": "exclude", - "names": [ - "foo" - ], - "prefix": "All except:", - "readOnly": true - } - }, - "properties": [ - { - "id": "custom.hideFrom", - "value": { - "legend": false, - "tooltip": false, - "viz": true - } - } - ] - } - ] - }, - "gridPos": { - "h": 9, - "w": 8, - "x": 0, - "y": 111 - }, - "id": 104, - "options": { - "legend": { - "calcs": [ - "lastNotNull" - ], - "displayMode": "list", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "azureMonitor": { - "aggregation": "Total", - "alias": "{{dimensionvalue}}", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [ - { - "dimension": "DatabaseName", - "filters": [], - "operator": "eq" - } - ], - "metricName": "blks_hit", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto", - "top": "" - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "queryType": "Azure Monitor", - "refId": "A", - "subscription": "$sub" - } - ], - "title": "Disk Blocks Hit", - "type": "timeseries" - }, - { - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "description": "Number of disk blocks that were read in this database", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 30, - "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" - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [ - { - "__systemRef": "hideSeriesFrom", - "matcher": { - "id": "byNames", - "options": { - "mode": "exclude", - "names": [ - "foo" - ], - "prefix": "All except:", - "readOnly": true - } - }, - "properties": [ - { - "id": "custom.hideFrom", - "value": { - "legend": false, - "tooltip": false, - "viz": true - } - } - ] - } - ] - }, - "gridPos": { - "h": 9, - "w": 8, - "x": 8, - "y": 111 - }, - "id": 105, - "options": { - "legend": { - "calcs": [ - "lastNotNull" - ], - "displayMode": "list", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "azureMonitor": { - "aggregation": "Total", - "alias": "{{dimensionvalue}}", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [ - { - "dimension": "DatabaseName", - "filters": [], - "operator": "eq" - } - ], - "metricName": "blks_read", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto", - "top": "" - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "queryType": "Azure Monitor", - "refId": "A", - "subscription": "$sub" - } - ], - "title": "Disk Blocks Read", - "type": "timeseries" - }, - { - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "description": "Maximum lag across all asynchronous physical replication slots", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "index": 0, - "text": "N/A" - } - }, - "type": "special" - }, - { - "options": { - "from": 0, - "result": { - "color": "red", - "index": 1 - }, - "to": 70 - }, - "type": "range" - }, - { - "options": { - "from": 71, - "result": { - "color": "orange", - "index": 2 - }, - "to": 89 - }, - "type": "range" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "#EAB839", - "value": 450000000000 - }, - { - "color": "red", - "value": 500000000000 - } - ] - }, - "unit": "decbytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 3, - "x": 0, - "y": 120 - }, - "hideTimeOverride": true, - "id": 16, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "value" - }, - "targets": [ - { - "azureMonitor": { - "aggregation": "Maximum", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [], - "metricName": "physical_replication_delay_in_bytes", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto" - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "queryType": "Azure Monitor", - "refId": "A", - "subscription": "$sub" - } - ], - "timeShift": "1m", - "title": "Physical Replication Lag - On Primary", - "type": "stat" - }, - { - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "description": "Read replica lag in seconds", - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 3, - "x": 3, - "y": 120 - }, - "hideTimeOverride": true, - "id": 72, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "targets": [ - { - "azureMonitor": { - "aggregation": "Maximum", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [], - "metricName": "physical_replication_delay_in_seconds", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto" - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "queryType": "Azure Monitor", - "refId": "A", - "subscription": "$sub" - } - ], - "timeShift": "1m", - "title": "Read Replica Lag - On Secondry", - "type": "stat" - } - ], - "title": "Enhanced Metrics", - "type": "row" - }, - { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 74 - }, - "id": 55, - "panels": [ - { - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "description": "Indicates if the database is up or not in the last 30 days", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "orange", - "mode": "fixed" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 25, - "gradientMode": "hue", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineStyle": { - "dash": [ - 10, - 10 - ], - "fill": "dash" - }, - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "always", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 16, - "x": 0, - "y": 92 - }, - "hideTimeOverride": true, - "id": 57, - "links": [], - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "appInsights": { - "groupBy": "none", - "metricName": "select", - "rawQuery": false, - "rawQueryString": "", - "spliton": "", - "timeGrainType": "auto", - "xaxis": "timestamp", - "yaxis": "" - }, - "azureMonitor": { - "aggOptions": [ - "None", - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "aggregation": "Maximum", - "alias": "{{metric}}", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [], - "dimensions": [], - "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", - "metricName": "is_db_alive", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto", - "timeGrains": [ - { - "text": "auto", - "value": "auto" - }, - { - "text": "1 minute", - "value": "PT1M" - }, - { - "text": "5 minutes", - "value": "PT5M" - }, - { - "text": "15 minutes", - "value": "PT15M" - }, - { - "text": "30 minutes", - "value": "PT30M" - }, - { - "text": "1 hour", - "value": "PT1H" - }, - { - "text": "6 hours", - "value": "PT6H" - }, - { - "text": "12 hours", - "value": "PT12H" - }, - { - "text": "1 day", - "value": "P1D" - } - ] - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "queryType": "Azure Monitor", - "refId": "A", - "subscription": "$sub" - } - ], - "timeFrom": "30d", - "timeShift": "1m", - "title": " Database availability (Last 30 days)", - "type": "timeseries" - }, - { - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "description": "Amount of backup storage used. This metric represents the sum of storage that's consumed by all the full backups, differential backups, and log backups that are retained based on the backup retention period that's set for the server. The frequency of the backups is service managed. For geo-redundant storage, backup storage usage is twice the usage for locally redundant storage", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "purple", - "mode": "fixed" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "bars", - "fillOpacity": 50, - "gradientMode": "hue", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "smooth", - "lineWidth": 1, - "pointSize": 12, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": true, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "decmbytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 16, - "x": 0, - "y": 100 - }, - "hideTimeOverride": true, - "id": 99, - "links": [], - "options": { - "legend": { - "calcs": [ - "last" - ], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "appInsights": { - "groupBy": "none", - "metricName": "select", - "rawQuery": false, - "rawQueryString": "", - "spliton": "", - "timeGrainType": "auto", - "xaxis": "timestamp", - "yaxis": "" - }, - "azureMonitor": { - "aggOptions": [ - "None", - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "aggregation": "Average", - "alias": "{{metric}}", - "allowedTimeGrainsMs": [ - 60000, - 300000, - 900000, - 1800000, - 3600000, - 21600000, - 43200000, - 86400000 - ], - "dimensionFilters": [], - "dimensions": [], - "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", - "metricName": "backup_storage_used", - "metricNamespace": "$ns", - "resources": [ - { - "metricNamespace": "$ns", - "resourceGroup": "$rg", - "resourceName": "$resource", - "subscription": "$sub" - } - ], - "timeGrain": "auto", - "timeGrains": [ - { - "text": "auto", - "value": "auto" - }, - { - "text": "1 minute", - "value": "PT1M" - }, - { - "text": "5 minutes", - "value": "PT5M" - }, - { - "text": "15 minutes", - "value": "PT15M" - }, - { - "text": "30 minutes", - "value": "PT30M" - }, - { - "text": "1 hour", - "value": "PT1H" - }, - { - "text": "6 hours", - "value": "PT6H" - }, - { - "text": "12 hours", - "value": "PT12H" - }, - { - "text": "1 day", - "value": "P1D" - } - ] - }, - "datasource": { - "type": "grafana-azure-monitor-datasource", - "uid": "${ds}" - }, - "queryType": "Azure Monitor", - "refId": "A", - "subscription": "$sub" - } - ], - "timeFrom": "30d", - "timeShift": "1m", - "title": "Backup Storage Used (last 30 days)", - "type": "timeseries" - } - ], - "title": "Historical Metrics (last 30 days)", - "type": "row" - } - ], - "refresh": "1m", - "revision": 1, - "schemaVersion": 38, - "style": "dark", - "tags": [], - "templating": { - "list": [ + "targets": [ { - "current": { - "selected": false, - "text": "Azure Monitor", - "value": "Azure Monitor" + "azureMonitor": { + "aggregation": "Maximum", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [], + "metricName": "is_db_alive", + "metricNamespace": "$ns", + "region": "", + "resources": [ + { + "metricNamespace": "$ns", + "region": "", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto" }, - "hide": 0, - "includeAll": false, - "label": "Datasource", - "multi": false, - "name": "ds", - "options": [], - "query": "grafana-azure-monitor-datasource", - "queryValue": "", - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "type": "datasource" - }, - { - "current": {}, "datasource": { "type": "grafana-azure-monitor-datasource", "uid": "${ds}" }, - "definition": "", - "hide": 0, - "includeAll": false, - "label": "Subscription", - "multi": false, - "name": "sub", - "options": [], - "query": { - "azureLogAnalytics": { - "query": "", - "resources": [] - }, - "queryType": "Azure Subscriptions", - "refId": "A" + "queryType": "Azure Monitor", + "refId": "A", + "subscription": "$sub" + } + ], + "timeShift": "1m", + "title": "Database State", + "type": "stat" + }, + { + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "description": "Percentage of CPU in use", + "fieldConfig": { + "defaults": { + "mappings": [], + "max": 100, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "#EAB839", + "value": 60 + }, + { + "color": "red", + "value": 80 + } + ] }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 5, - "type": "query" + "unit": "percent" }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 2, + "x": 2, + "y": 5 + }, + "id": 2, + "options": { + "orientation": "auto", + "reduceOptions": { + "calcs": ["lastNotNull"], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true + }, + "targets": [ { - "current": {}, + "azureMonitor": { + "aggregation": "Average", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [], + "metricName": "cpu_percent", + "metricNamespace": "microsoft.dbforpostgresql/flexibleservers", + "resources": [ + { + "metricNamespace": "Microsoft.DBforPostgreSQL/flexibleServers", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto" + }, "datasource": { "type": "grafana-azure-monitor-datasource", "uid": "${ds}" }, - "definition": "", - "description": "", - "hide": 0, - "includeAll": false, - "label": "Resource Group", - "multi": false, - "name": "rg", - "options": [], - "query": { - "azureLogAnalytics": { - "query": "", - "resources": [] - }, - "queryType": "Azure Resource Groups", - "refId": "A", - "subscription": "$sub" + "queryType": "Azure Monitor", + "refId": "A", + "subscription": "$sub" + } + ], + "title": "CPU Usage (Avg)", + "type": "gauge" + }, + { + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "description": "Percentage of memory in use", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 5, - "type": "query" + "mappings": [], + "max": 100, + "min": 0, + "thresholds": { + "mode": "percentage", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "#EAB839", + "value": 70 + }, + { + "color": "red", + "value": 90 + } + ] + }, + "unit": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 2, + "x": 4, + "y": 5 + }, + "hideTimeOverride": true, + "id": 6, + "links": [], + "options": { + "orientation": "auto", + "reduceOptions": { + "calcs": ["lastNotNull"], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true + }, + "targets": [ + { + "azureMonitor": { + "aggregation": "Average", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [], + "metricName": "memory_percent", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto" + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "queryType": "Azure Monitor", + "refId": "A", + "subscription": "$sub" + } + ], + "timeShift": "1m", + "title": "Memory Usage (Avg)", + "type": "gauge" + }, + { + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "description": "Percent of storage space that's used. The storage that's used by the service can include database files, transaction logs, and server logs", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "max": 100, + "min": 0, + "thresholds": { + "mode": "percentage", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "orange", + "value": 70 + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 2, + "x": 6, + "y": 5 + }, + "hideTimeOverride": true, + "id": 8, + "links": [], + "options": { + "orientation": "auto", + "reduceOptions": { + "calcs": ["lastNotNull"], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true + }, + "targets": [ + { + "azureMonitor": { + "aggregation": "Average", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [], + "metricName": "storage_percent", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto" + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "queryType": "Azure Monitor", + "refId": "A", + "subscription": "$sub" + } + ], + "timeShift": "1m", + "title": "Storage Usage Percent (Avg)", + "type": "gauge" + }, + { + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "description": "Used and Free storage. The storage that's used by the service can include the database files, transaction logs, and the server logs.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "continuous-GrYlRd" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 4, + "x": 8, + "y": 5 + }, + "hideTimeOverride": true, + "id": 96, + "links": [], + "maxDataPoints": 100, + "options": { + "displayMode": "basic", + "minVizHeight": 10, + "minVizWidth": 0, + "orientation": "horizontal", + "reduceOptions": { + "calcs": ["lastNotNull"], + "fields": "", + "values": false + }, + "showUnfilled": true, + "valueMode": "color" + }, + "targets": [ + { + "appInsights": { + "groupBy": "none", + "metricName": "select", + "rawQuery": false, + "rawQueryString": "", + "spliton": "", + "timeGrainType": "auto", + "xaxis": "timestamp", + "yaxis": "" + }, + "azureMonitor": { + "aggOptions": ["None", "Average", "Minimum", "Maximum", "Total", "Count"], + "aggregation": "Average", + "alias": "{{metric}}", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [], + "dimensions": [], + "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", + "metricName": "storage_used", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto", + "timeGrains": [ + { + "text": "auto", + "value": "auto" + }, + { + "text": "1 minute", + "value": "PT1M" + }, + { + "text": "5 minutes", + "value": "PT5M" + }, + { + "text": "15 minutes", + "value": "PT15M" + }, + { + "text": "30 minutes", + "value": "PT30M" + }, + { + "text": "1 hour", + "value": "PT1H" + }, + { + "text": "6 hours", + "value": "PT6H" + }, + { + "text": "12 hours", + "value": "PT12H" + }, + { + "text": "1 day", + "value": "P1D" + } + ] + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "queryType": "Azure Monitor", + "refId": "A", + "subscription": "$sub" }, { - "current": { - "selected": false, - "text": "Microsoft.DBforPostgreSQL/flexibleServers", - "value": "Microsoft.DBforPostgreSQL/flexibleServers" + "appInsights": { + "groupBy": "none", + "metricName": "select", + "rawQuery": false, + "rawQueryString": "", + "spliton": "", + "timeGrainType": "auto", + "xaxis": "timestamp", + "yaxis": "" }, - "hide": 2, - "includeAll": false, - "label": "Namespace", - "multi": false, - "name": "ns", - "options": [ + "azureMonitor": { + "aggOptions": ["None", "Average", "Minimum", "Maximum", "Total", "Count"], + "aggregation": "Average", + "alias": "{{metric}}", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [], + "dimensions": [], + "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", + "metricName": "storage_free", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto", + "timeGrains": [ + { + "text": "auto", + "value": "auto" + }, + { + "text": "1 minute", + "value": "PT1M" + }, + { + "text": "5 minutes", + "value": "PT5M" + }, + { + "text": "15 minutes", + "value": "PT15M" + }, + { + "text": "30 minutes", + "value": "PT30M" + }, + { + "text": "1 hour", + "value": "PT1H" + }, + { + "text": "6 hours", + "value": "PT6H" + }, + { + "text": "12 hours", + "value": "PT12H" + }, + { + "text": "1 day", + "value": "P1D" + } + ] + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "hide": false, + "queryType": "Azure Monitor", + "refId": "B", + "subscription": "$sub" + } + ], + "timeShift": "1m", + "title": "Storage Used/Free", + "type": "bargauge" + }, + { + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "description": "The storage you provision is the amount of storage capacity available to your Azure Database for PostgreSQL server. The storage is used for the database files, temporary files, transaction logs, and the PostgreSQL server logs", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ { - "selected": true, - "text": "Microsoft.DBforPostgreSQL/flexibleServers", - "value": "Microsoft.DBforPostgreSQL/flexibleServers" + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" } ], - "query": "Microsoft.DBforPostgreSQL/flexibleServers", - "queryValue": "", - "skipUrlSync": false, - "type": "custom" + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "decbytes" }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 2, + "x": 12, + "y": 5 + }, + "hideTimeOverride": true, + "id": 95, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": ["lastNotNull"], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "targets": [ { - "current": {}, + "appInsights": { + "groupBy": "none", + "metricName": "select", + "rawQuery": false, + "rawQueryString": "", + "spliton": "", + "timeGrainType": "auto", + "xaxis": "timestamp", + "yaxis": "" + }, + "azureMonitor": { + "aggOptions": ["None", "Average", "Minimum", "Maximum", "Total", "Count"], + "aggregation": "Average", + "alias": "{{metric}}", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [], + "dimensions": [], + "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", + "metricName": "storage_used", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto", + "timeGrains": [ + { + "text": "auto", + "value": "auto" + }, + { + "text": "1 minute", + "value": "PT1M" + }, + { + "text": "5 minutes", + "value": "PT5M" + }, + { + "text": "15 minutes", + "value": "PT15M" + }, + { + "text": "30 minutes", + "value": "PT30M" + }, + { + "text": "1 hour", + "value": "PT1H" + }, + { + "text": "6 hours", + "value": "PT6H" + }, + { + "text": "12 hours", + "value": "PT12H" + }, + { + "text": "1 day", + "value": "P1D" + } + ] + }, "datasource": { "type": "grafana-azure-monitor-datasource", "uid": "${ds}" }, - "definition": "", - "hide": 0, - "includeAll": false, - "label": "Resource", - "multi": false, - "name": "resource", - "options": [], - "query": { - "azureLogAnalytics": { - "query": "", - "resources": [] - }, - "namespace": "$ns", - "queryType": "Azure Resource Names", - "refId": "A", - "resourceGroup": "$rg", - "subscription": "$sub" + "hide": true, + "queryType": "Azure Monitor", + "refId": "A", + "subscription": "$sub" + }, + { + "appInsights": { + "groupBy": "none", + "metricName": "select", + "rawQuery": false, + "rawQueryString": "", + "spliton": "", + "timeGrainType": "auto", + "xaxis": "timestamp", + "yaxis": "" }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "type": "query" + "azureMonitor": { + "aggOptions": ["None", "Average", "Minimum", "Maximum", "Total", "Count"], + "aggregation": "Average", + "alias": "{{metric}}", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [], + "dimensions": [], + "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", + "metricName": "storage_free", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto", + "timeGrains": [ + { + "text": "auto", + "value": "auto" + }, + { + "text": "1 minute", + "value": "PT1M" + }, + { + "text": "5 minutes", + "value": "PT5M" + }, + { + "text": "15 minutes", + "value": "PT15M" + }, + { + "text": "30 minutes", + "value": "PT30M" + }, + { + "text": "1 hour", + "value": "PT1H" + }, + { + "text": "6 hours", + "value": "PT6H" + }, + { + "text": "12 hours", + "value": "PT12H" + }, + { + "text": "1 day", + "value": "P1D" + } + ] + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "hide": true, + "queryType": "Azure Monitor", + "refId": "B", + "subscription": "$sub" + }, + { + "datasource": { + "type": "__expr__", + "uid": "${DS_EXPRESSION}" + }, + "expression": "$A+$B", + "hide": false, + "refId": "Total Storage", + "type": "math" } - ] + ], + "timeShift": "1m", + "title": "Total Provisioned Storage", + "type": "stat" }, - "time": { - "from": "now-30m", - "to": "now" + { + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "description": "Amount of storage space that's used by the transaction logs", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 1000000000 + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 2, + "x": 14, + "y": 5 + }, + "hideTimeOverride": true, + "id": 88, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": ["lastNotNull"], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "targets": [ + { + "appInsights": { + "groupBy": "none", + "metricName": "select", + "rawQuery": false, + "rawQueryString": "", + "spliton": "", + "timeGrainType": "auto", + "xaxis": "timestamp", + "yaxis": "" + }, + "azureMonitor": { + "aggOptions": ["None", "Average", "Minimum", "Maximum", "Total", "Count"], + "aggregation": "Average", + "alias": "{{metric}}", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [], + "dimensions": [], + "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", + "metricName": "txlogs_storage_used", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto", + "timeGrains": [ + { + "text": "auto", + "value": "auto" + }, + { + "text": "1 minute", + "value": "PT1M" + }, + { + "text": "5 minutes", + "value": "PT5M" + }, + { + "text": "15 minutes", + "value": "PT15M" + }, + { + "text": "30 minutes", + "value": "PT30M" + }, + { + "text": "1 hour", + "value": "PT1H" + }, + { + "text": "6 hours", + "value": "PT6H" + }, + { + "text": "12 hours", + "value": "PT12H" + }, + { + "text": "1 day", + "value": "P1D" + } + ] + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "queryType": "Azure Monitor", + "refId": "A", + "subscription": "$sub" + } + ], + "timeShift": "1m", + "title": "T-Log Storage Used (Bytes)", + "type": "stat" }, - "timepicker": {}, - "timezone": "", - "title": "Azure / Azure PostgreSQL / Flexible Server Monitoring", - "uid": null, - "version": 191 - } \ No newline at end of file + { + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "description": "Read Replica Configured", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null+nan", + "result": { + "color": "light-red", + "index": 0, + "text": "Non-Configured" + } + }, + "type": "special" + }, + { + "options": { + "from": 0, + "result": { + "color": "light-blue", + "index": 1, + "text": "Configured" + }, + "to": 1099511627776 + }, + "type": "range" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 1000000000 + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 2, + "x": 16, + "y": 5 + }, + "hideTimeOverride": true, + "id": 117, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": ["lastNotNull"], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "targets": [ + { + "appInsights": { + "groupBy": "none", + "metricName": "select", + "rawQuery": false, + "rawQueryString": "", + "spliton": "", + "timeGrainType": "auto", + "xaxis": "timestamp", + "yaxis": "" + }, + "azureMonitor": { + "aggOptions": ["None", "Average", "Minimum", "Maximum", "Total", "Count"], + "aggregation": "Average", + "alias": "{{metric}}", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [], + "dimensions": [], + "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", + "metricName": "physical_replication_delay_in_bytes", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto", + "timeGrains": [ + { + "text": "auto", + "value": "auto" + }, + { + "text": "1 minute", + "value": "PT1M" + }, + { + "text": "5 minutes", + "value": "PT5M" + }, + { + "text": "15 minutes", + "value": "PT15M" + }, + { + "text": "30 minutes", + "value": "PT30M" + }, + { + "text": "1 hour", + "value": "PT1H" + }, + { + "text": "6 hours", + "value": "PT6H" + }, + { + "text": "12 hours", + "value": "PT12H" + }, + { + "text": "1 day", + "value": "P1D" + } + ] + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "queryType": "Azure Monitor", + "refId": "A", + "subscription": "$sub" + } + ], + "timeShift": "1m", + "title": "Read-Replica", + "type": "stat" + }, + { + "datasource": { + "type": "datasource", + "uid": "-- Mixed --" + }, + "description": "Number of connections to your server", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "#EAB839", + "value": 1500 + }, + { + "color": "red", + "value": 3000 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 2, + "x": 0, + "y": 11 + }, + "hideTimeOverride": true, + "id": 22, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": ["lastNotNull"], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "targets": [ + { + "appInsights": { + "groupBy": "none", + "metricName": "select", + "rawQuery": false, + "rawQueryString": "", + "spliton": "", + "timeGrainType": "auto", + "xaxis": "timestamp", + "yaxis": "" + }, + "azureMonitor": { + "aggOptions": ["None", "Average", "Minimum", "Maximum", "Total", "Count"], + "aggregation": "Average", + "alias": "{{metric}}", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [], + "dimensions": [], + "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", + "metricName": "active_connections", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto", + "timeGrains": [ + { + "text": "auto", + "value": "auto" + }, + { + "text": "1 minute", + "value": "PT1M" + }, + { + "text": "5 minutes", + "value": "PT5M" + }, + { + "text": "15 minutes", + "value": "PT15M" + }, + { + "text": "30 minutes", + "value": "PT30M" + }, + { + "text": "1 hour", + "value": "PT1H" + }, + { + "text": "6 hours", + "value": "PT6H" + }, + { + "text": "12 hours", + "value": "PT12H" + }, + { + "text": "1 day", + "value": "P1D" + } + ] + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "queryType": "Azure Monitor", + "refId": "A", + "subscription": "$sub" + } + ], + "timeShift": "1m", + "title": "Active Connections", + "type": "stat" + }, + { + "datasource": { + "type": "datasource", + "uid": "-- Mixed --" + }, + "description": "Number of succeeded connections", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "#EAB839", + "value": 1500 + }, + { + "color": "red", + "value": 3000 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 2, + "x": 2, + "y": 11 + }, + "hideTimeOverride": true, + "id": 24, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": ["lastNotNull"], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "targets": [ + { + "appInsights": { + "groupBy": "none", + "metricName": "select", + "rawQuery": false, + "rawQueryString": "", + "spliton": "", + "timeGrainType": "auto", + "xaxis": "timestamp", + "yaxis": "" + }, + "azureMonitor": { + "aggOptions": ["None", "Average", "Minimum", "Maximum", "Total", "Count"], + "aggregation": "Total", + "alias": "{{metric}}", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [], + "dimensions": [], + "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", + "metricName": "connections_succeeded", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto", + "timeGrains": [ + { + "text": "auto", + "value": "auto" + }, + { + "text": "1 minute", + "value": "PT1M" + }, + { + "text": "5 minutes", + "value": "PT5M" + }, + { + "text": "15 minutes", + "value": "PT15M" + }, + { + "text": "30 minutes", + "value": "PT30M" + }, + { + "text": "1 hour", + "value": "PT1H" + }, + { + "text": "6 hours", + "value": "PT6H" + }, + { + "text": "12 hours", + "value": "PT12H" + }, + { + "text": "1 day", + "value": "P1D" + } + ] + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "queryType": "Azure Monitor", + "refId": "A", + "subscription": "$sub" + } + ], + "timeShift": "1m", + "title": "Succeeded Connections", + "type": "stat" + }, + { + "datasource": { + "type": "datasource", + "uid": "-- Mixed --" + }, + "description": "Number of total transactions executed in this database.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 2, + "x": 4, + "y": 11 + }, + "hideTimeOverride": true, + "id": 118, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": ["lastNotNull"], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "targets": [ + { + "appInsights": { + "groupBy": "none", + "metricName": "select", + "rawQuery": false, + "rawQueryString": "", + "spliton": "", + "timeGrainType": "auto", + "xaxis": "timestamp", + "yaxis": "" + }, + "azureMonitor": { + "aggOptions": ["None", "Average", "Minimum", "Maximum", "Total", "Count"], + "aggregation": "Total", + "alias": "{{metric}}", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [], + "dimensions": [], + "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", + "metricName": "xact_total", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto", + "timeGrains": [ + { + "text": "auto", + "value": "auto" + }, + { + "text": "1 minute", + "value": "PT1M" + }, + { + "text": "5 minutes", + "value": "PT5M" + }, + { + "text": "15 minutes", + "value": "PT15M" + }, + { + "text": "30 minutes", + "value": "PT30M" + }, + { + "text": "1 hour", + "value": "PT1H" + }, + { + "text": "6 hours", + "value": "PT6H" + }, + { + "text": "12 hours", + "value": "PT12H" + }, + { + "text": "1 day", + "value": "P1D" + } + ] + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "queryType": "Azure Monitor", + "refId": "A", + "subscription": "$sub" + } + ], + "timeShift": "1m", + "title": "Total Transactions", + "type": "stat" + }, + { + "datasource": { + "type": "datasource", + "uid": "-- Mixed --" + }, + "description": "Number of data disk I/O read operations per second.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "#EAB839", + "value": 1500 + }, + { + "color": "red", + "value": 3000 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 2, + "x": 6, + "y": 11 + }, + "hideTimeOverride": true, + "id": 59, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": ["lastNotNull"], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "targets": [ + { + "appInsights": { + "groupBy": "none", + "metricName": "select", + "rawQuery": false, + "rawQueryString": "", + "spliton": "", + "timeGrainType": "auto", + "xaxis": "timestamp", + "yaxis": "" + }, + "azureMonitor": { + "aggOptions": ["None", "Average", "Minimum", "Maximum", "Total", "Count"], + "aggregation": "Total", + "alias": "{{metric}}", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [], + "dimensions": [], + "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", + "metricName": "read_iops", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto", + "timeGrains": [ + { + "text": "auto", + "value": "auto" + }, + { + "text": "1 minute", + "value": "PT1M" + }, + { + "text": "5 minutes", + "value": "PT5M" + }, + { + "text": "15 minutes", + "value": "PT15M" + }, + { + "text": "30 minutes", + "value": "PT30M" + }, + { + "text": "1 hour", + "value": "PT1H" + }, + { + "text": "6 hours", + "value": "PT6H" + }, + { + "text": "12 hours", + "value": "PT12H" + }, + { + "text": "1 day", + "value": "P1D" + } + ] + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "queryType": "Azure Monitor", + "refId": "A", + "subscription": "$sub" + } + ], + "timeShift": "1m", + "title": "Read IOPS", + "type": "stat" + }, + { + "datasource": { + "type": "datasource", + "uid": "-- Mixed --" + }, + "description": "Number of data disk I/O write operations per second", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "#EAB839", + "value": 1500 + }, + { + "color": "red", + "value": 3000 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 2, + "x": 8, + "y": 11 + }, + "hideTimeOverride": true, + "id": 60, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": ["lastNotNull"], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "targets": [ + { + "appInsights": { + "groupBy": "none", + "metricName": "select", + "rawQuery": false, + "rawQueryString": "", + "spliton": "", + "timeGrainType": "auto", + "xaxis": "timestamp", + "yaxis": "" + }, + "azureMonitor": { + "aggOptions": ["None", "Average", "Minimum", "Maximum", "Total", "Count"], + "aggregation": "Average", + "alias": "{{metric}}", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [], + "dimensions": [], + "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", + "metricName": "write_iops", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto", + "timeGrains": [ + { + "text": "auto", + "value": "auto" + }, + { + "text": "1 minute", + "value": "PT1M" + }, + { + "text": "5 minutes", + "value": "PT5M" + }, + { + "text": "15 minutes", + "value": "PT15M" + }, + { + "text": "30 minutes", + "value": "PT30M" + }, + { + "text": "1 hour", + "value": "PT1H" + }, + { + "text": "6 hours", + "value": "PT6H" + }, + { + "text": "12 hours", + "value": "PT12H" + }, + { + "text": "1 day", + "value": "P1D" + } + ] + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "queryType": "Azure Monitor", + "refId": "A", + "subscription": "$sub" + } + ], + "timeShift": "1m", + "title": "Write IOPS", + "type": "stat" + }, + { + "datasource": { + "type": "datasource", + "uid": "-- Mixed --" + }, + "description": "Bytes read per second from disk", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "#EAB839", + "value": 1500 + }, + { + "color": "red", + "value": 3000 + } + ] + }, + "unit": "binBps" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 2, + "x": 10, + "y": 11 + }, + "hideTimeOverride": true, + "id": 97, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": ["lastNotNull"], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "targets": [ + { + "appInsights": { + "groupBy": "none", + "metricName": "select", + "rawQuery": false, + "rawQueryString": "", + "spliton": "", + "timeGrainType": "auto", + "xaxis": "timestamp", + "yaxis": "" + }, + "azureMonitor": { + "aggOptions": ["None", "Average", "Minimum", "Maximum", "Total", "Count"], + "aggregation": "Average", + "alias": "{{metric}}", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [], + "dimensions": [], + "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", + "metricName": "read_throughput", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto", + "timeGrains": [ + { + "text": "auto", + "value": "auto" + }, + { + "text": "1 minute", + "value": "PT1M" + }, + { + "text": "5 minutes", + "value": "PT5M" + }, + { + "text": "15 minutes", + "value": "PT15M" + }, + { + "text": "30 minutes", + "value": "PT30M" + }, + { + "text": "1 hour", + "value": "PT1H" + }, + { + "text": "6 hours", + "value": "PT6H" + }, + { + "text": "12 hours", + "value": "PT12H" + }, + { + "text": "1 day", + "value": "P1D" + } + ] + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "queryType": "Azure Monitor", + "refId": "A", + "subscription": "$sub" + } + ], + "timeShift": "1m", + "title": "Read Throughput", + "type": "stat" + }, + { + "datasource": { + "type": "datasource", + "uid": "-- Mixed --" + }, + "description": "Bytes written to disk per second", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "#EAB839", + "value": 1500 + }, + { + "color": "red", + "value": 3000 + } + ] + }, + "unit": "binBps" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 2, + "x": 12, + "y": 11 + }, + "hideTimeOverride": true, + "id": 98, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": ["lastNotNull"], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "targets": [ + { + "appInsights": { + "groupBy": "none", + "metricName": "select", + "rawQuery": false, + "rawQueryString": "", + "spliton": "", + "timeGrainType": "auto", + "xaxis": "timestamp", + "yaxis": "" + }, + "azureMonitor": { + "aggOptions": ["None", "Average", "Minimum", "Maximum", "Total", "Count"], + "aggregation": "Average", + "alias": "{{metric}}", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [], + "dimensions": [], + "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", + "metricName": "read_throughput", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto", + "timeGrains": [ + { + "text": "auto", + "value": "auto" + }, + { + "text": "1 minute", + "value": "PT1M" + }, + { + "text": "5 minutes", + "value": "PT5M" + }, + { + "text": "15 minutes", + "value": "PT15M" + }, + { + "text": "30 minutes", + "value": "PT30M" + }, + { + "text": "1 hour", + "value": "PT1H" + }, + { + "text": "6 hours", + "value": "PT6H" + }, + { + "text": "12 hours", + "value": "PT12H" + }, + { + "text": "1 day", + "value": "P1D" + } + ] + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "queryType": "Azure Monitor", + "refId": "A", + "subscription": "$sub" + } + ], + "timeShift": "1m", + "title": "Write Throughput", + "type": "stat" + }, + { + "datasource": { + "type": "datasource", + "uid": "-- Mixed --" + }, + "description": "Amount of incoming network traffic", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 2, + "x": 14, + "y": 11 + }, + "hideTimeOverride": true, + "id": 91, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": ["lastNotNull"], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "targets": [ + { + "appInsights": { + "groupBy": "none", + "metricName": "select", + "rawQuery": false, + "rawQueryString": "", + "spliton": "", + "timeGrainType": "auto", + "xaxis": "timestamp", + "yaxis": "" + }, + "azureMonitor": { + "aggOptions": ["None", "Average", "Minimum", "Maximum", "Total", "Count"], + "aggregation": "Average", + "alias": "{{metric}}", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [], + "dimensions": [], + "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", + "metricName": "network_bytes_ingress", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto", + "timeGrains": [ + { + "text": "auto", + "value": "auto" + }, + { + "text": "1 minute", + "value": "PT1M" + }, + { + "text": "5 minutes", + "value": "PT5M" + }, + { + "text": "15 minutes", + "value": "PT15M" + }, + { + "text": "30 minutes", + "value": "PT30M" + }, + { + "text": "1 hour", + "value": "PT1H" + }, + { + "text": "6 hours", + "value": "PT6H" + }, + { + "text": "12 hours", + "value": "PT12H" + }, + { + "text": "1 day", + "value": "P1D" + } + ] + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "queryType": "Azure Monitor", + "refId": "A", + "subscription": "$sub" + } + ], + "timeShift": "1m", + "title": "Network In (Bytes)", + "type": "stat" + }, + { + "datasource": { + "type": "datasource", + "uid": "-- Mixed --" + }, + "description": "Amount of outgoing network traffic", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 2, + "x": 16, + "y": 11 + }, + "hideTimeOverride": true, + "id": 92, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": ["lastNotNull"], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "targets": [ + { + "appInsights": { + "groupBy": "none", + "metricName": "select", + "rawQuery": false, + "rawQueryString": "", + "spliton": "", + "timeGrainType": "auto", + "xaxis": "timestamp", + "yaxis": "" + }, + "azureMonitor": { + "aggOptions": ["None", "Average", "Minimum", "Maximum", "Total", "Count"], + "aggregation": "Total", + "alias": "{{metric}}", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [], + "dimensions": [], + "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", + "metricName": "network_bytes_egress", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto", + "timeGrains": [ + { + "text": "auto", + "value": "auto" + }, + { + "text": "1 minute", + "value": "PT1M" + }, + { + "text": "5 minutes", + "value": "PT5M" + }, + { + "text": "15 minutes", + "value": "PT15M" + }, + { + "text": "30 minutes", + "value": "PT30M" + }, + { + "text": "1 hour", + "value": "PT1H" + }, + { + "text": "6 hours", + "value": "PT6H" + }, + { + "text": "12 hours", + "value": "PT12H" + }, + { + "text": "1 day", + "value": "P1D" + } + ] + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "queryType": "Azure Monitor", + "refId": "A", + "subscription": "$sub" + } + ], + "timeShift": "1m", + "title": "Network Out (Bytes)", + "type": "stat" + }, + { + "datasource": { + "type": "datasource", + "uid": "grafana" + }, + "description": "", + "gridPos": { + "h": 2, + "w": 18, + "x": 0, + "y": 17 + }, + "id": 113, + "options": { + "code": { + "language": "plaintext", + "showLineNumbers": false, + "showMiniMap": false + }, + "content": "#### **NOTE**: While metrics are stored for 93 days, you can only query (in the Metrics tile) for a maximum of 30 days worth of data on any single chart. If you see a blank chart or your chart displays only part of metric data, verify that the difference between start and end dates in the time picker doesn't exceed the 30-day interval. After you've selected a 30-day interval, you can pan the chart to view the full retention window.", + "mode": "markdown" + }, + "transparent": true, + "type": "text" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 19 + }, + "id": 66, + "panels": [], + "title": "Resource consumption", + "type": "row" + }, + { + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "description": "Percentage of CPU in use", + "fieldConfig": { + "defaults": { + "color": { + "mode": "continuous-GrYlRd" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 54, + "gradientMode": "hue", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 0, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "bytes" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "CPU percent" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "red", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Memory percent" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "blue", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "CPU percent" + }, + "properties": [ + { + "id": "custom.fillOpacity", + "value": 0 + }, + { + "id": "custom.lineWidth", + "value": 2 + }, + { + "id": "unit", + "value": "percent" + }, + { + "id": "min", + "value": 0 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Memory percent" + }, + "properties": [ + { + "id": "custom.showPoints", + "value": "always" + }, + { + "id": "custom.pointSize", + "value": 8 + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 18, + "x": 0, + "y": 20 + }, + "hideTimeOverride": true, + "id": 76, + "links": [], + "options": { + "legend": { + "calcs": ["last"], + "displayMode": "list", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "appInsights": { + "groupBy": "none", + "metricName": "select", + "rawQuery": false, + "rawQueryString": "", + "spliton": "", + "timeGrainType": "auto", + "xaxis": "timestamp", + "yaxis": "" + }, + "azureMonitor": { + "aggOptions": ["None", "Average", "Minimum", "Maximum", "Total", "Count"], + "aggregation": "Average", + "alias": "{{metric}}", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [], + "dimensions": [], + "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", + "metricName": "cpu_percent", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto", + "timeGrains": [ + { + "text": "auto", + "value": "auto" + }, + { + "text": "1 minute", + "value": "PT1M" + }, + { + "text": "5 minutes", + "value": "PT5M" + }, + { + "text": "15 minutes", + "value": "PT15M" + }, + { + "text": "30 minutes", + "value": "PT30M" + }, + { + "text": "1 hour", + "value": "PT1H" + }, + { + "text": "6 hours", + "value": "PT6H" + }, + { + "text": "12 hours", + "value": "PT12H" + }, + { + "text": "1 day", + "value": "P1D" + } + ] + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "queryType": "Azure Monitor", + "refId": "A", + "subscription": "$sub" + }, + { + "appInsights": { + "groupBy": "none", + "metricName": "select", + "rawQuery": false, + "rawQueryString": "", + "spliton": "", + "timeGrainType": "auto", + "xaxis": "timestamp", + "yaxis": "" + }, + "azureMonitor": { + "aggOptions": ["None", "Average", "Minimum", "Maximum", "Total", "Count"], + "aggregation": "Average", + "alias": "{{metric}}", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [], + "dimensions": [], + "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", + "metricName": "memory_percent", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto", + "timeGrains": [ + { + "text": "auto", + "value": "auto" + }, + { + "text": "1 minute", + "value": "PT1M" + }, + { + "text": "5 minutes", + "value": "PT5M" + }, + { + "text": "15 minutes", + "value": "PT15M" + }, + { + "text": "30 minutes", + "value": "PT30M" + }, + { + "text": "1 hour", + "value": "PT1H" + }, + { + "text": "6 hours", + "value": "PT6H" + }, + { + "text": "12 hours", + "value": "PT12H" + }, + { + "text": "1 day", + "value": "P1D" + } + ] + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "hide": false, + "queryType": "Azure Monitor", + "refId": "B", + "subscription": "$sub" + } + ], + "timeShift": "1m", + "title": "CPU / Memory", + "type": "timeseries" + }, + { + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "description": "Number of transactions executed within a second.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "bars", + "fillOpacity": 91, + "gradientMode": "hue", + "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": 9, + "w": 14, + "x": 0, + "y": 28 + }, + "id": 120, + "options": { + "legend": { + "calcs": [], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "azureMonitor": { + "aggregation": "Total", + "alias": "", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [ + { + "dimension": "DatabaseName", + "filters": [], + "operator": "eq" + } + ], + "metricName": "tps", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto" + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "hide": true, + "queryType": "Azure Monitor", + "refId": "A", + "subscription": "$sub" + }, + { + "datasource": { + "type": "__expr__", + "uid": "${DS_EXPRESSION}" + }, + "expression": "$A/60", + "hide": false, + "refId": "TPS", + "type": "math" + } + ], + "title": "Transactions per second (Preview)", + "type": "timeseries" + }, + { + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "description": "Number of total transactions executed in this database (by database)", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "mappings": [], + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 4, + "x": 14, + "y": 28 + }, + "id": 78, + "options": { + "displayLabels": ["percent", "name"], + "legend": { + "displayMode": "list", + "placement": "right", + "showLegend": true, + "values": ["percent"] + }, + "pieType": "pie", + "reduceOptions": { + "calcs": ["lastNotNull"], + "fields": "", + "values": false + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "azureMonitor": { + "aggregation": "Total", + "alias": "{{dimensionvalue}}", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [ + { + "dimension": "DatabaseName", + "filters": [], + "operator": "eq" + } + ], + "metricName": "xact_total", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto", + "top": "" + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "queryType": "Azure Monitor", + "refId": "A", + "subscription": "$sub" + } + ], + "title": "Total Transactions by database (Top n)", + "type": "piechart" + }, + { + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "description": "Amount of storage space that's used by the transaction logs", + "fieldConfig": { + "defaults": { + "color": { + "mode": "continuous-BlPu" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "scheme", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "smooth", + "lineWidth": 2, + "pointSize": 7, + "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": 9, + "w": 18, + "x": 0, + "y": 37 + }, + "hideTimeOverride": true, + "id": 64, + "links": [], + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "appInsights": { + "groupBy": "none", + "metricName": "select", + "rawQuery": false, + "rawQueryString": "", + "spliton": "", + "timeGrainType": "auto", + "xaxis": "timestamp", + "yaxis": "" + }, + "azureMonitor": { + "aggOptions": ["None", "Average", "Minimum", "Maximum", "Total", "Count"], + "aggregation": "Average", + "alias": "{{metric}}", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [], + "dimensions": [], + "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", + "metricName": "txlogs_storage_used", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto", + "timeGrains": [ + { + "text": "auto", + "value": "auto" + }, + { + "text": "1 minute", + "value": "PT1M" + }, + { + "text": "5 minutes", + "value": "PT5M" + }, + { + "text": "15 minutes", + "value": "PT15M" + }, + { + "text": "30 minutes", + "value": "PT30M" + }, + { + "text": "1 hour", + "value": "PT1H" + }, + { + "text": "6 hours", + "value": "PT6H" + }, + { + "text": "12 hours", + "value": "PT12H" + }, + { + "text": "1 day", + "value": "P1D" + } + ] + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "queryType": "Azure Monitor", + "refId": "A", + "subscription": "$sub" + } + ], + "timeShift": "1m", + "title": "Transaction Log Storage Used (Bytes)", + "type": "timeseries" + }, + { + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "description": "Amount of storage space that's used. The storage that's used by the service can include the database files, transaction logs, and the server logs", + "fieldConfig": { + "defaults": { + "color": { + "mode": "continuous-GrYlRd" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "scheme", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "smooth", + "lineWidth": 2, + "pointSize": 7, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "decmbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 10, + "x": 0, + "y": 46 + }, + "hideTimeOverride": true, + "id": 37, + "links": [], + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "appInsights": { + "groupBy": "none", + "metricName": "select", + "rawQuery": false, + "rawQueryString": "", + "spliton": "", + "timeGrainType": "auto", + "xaxis": "timestamp", + "yaxis": "" + }, + "azureMonitor": { + "aggOptions": ["None", "Average", "Minimum", "Maximum", "Total", "Count"], + "aggregation": "Average", + "alias": "{{metric}}", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [], + "dimensions": [], + "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", + "metricName": "storage_used", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto", + "timeGrains": [ + { + "text": "auto", + "value": "auto" + }, + { + "text": "1 minute", + "value": "PT1M" + }, + { + "text": "5 minutes", + "value": "PT5M" + }, + { + "text": "15 minutes", + "value": "PT15M" + }, + { + "text": "30 minutes", + "value": "PT30M" + }, + { + "text": "1 hour", + "value": "PT1H" + }, + { + "text": "6 hours", + "value": "PT6H" + }, + { + "text": "12 hours", + "value": "PT12H" + }, + { + "text": "1 day", + "value": "P1D" + } + ] + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "queryType": "Azure Monitor", + "refId": "A", + "subscription": "$sub" + } + ], + "timeShift": "1m", + "title": "Storage Used (Bytes)", + "type": "timeseries" + }, + { + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "description": "Amount of storage space that's available", + "fieldConfig": { + "defaults": { + "color": { + "mode": "continuous-GrYlRd" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "scheme", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "smooth", + "lineWidth": 2, + "pointSize": 7, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "decmbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 8, + "x": 10, + "y": 46 + }, + "hideTimeOverride": true, + "id": 63, + "links": [], + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "appInsights": { + "groupBy": "none", + "metricName": "select", + "rawQuery": false, + "rawQueryString": "", + "spliton": "", + "timeGrainType": "auto", + "xaxis": "timestamp", + "yaxis": "" + }, + "azureMonitor": { + "aggOptions": ["None", "Average", "Minimum", "Maximum", "Total", "Count"], + "aggregation": "Average", + "alias": "{{metric}}", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [], + "dimensions": [], + "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", + "metricName": "storage_free", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto", + "timeGrains": [ + { + "text": "auto", + "value": "auto" + }, + { + "text": "1 minute", + "value": "PT1M" + }, + { + "text": "5 minutes", + "value": "PT5M" + }, + { + "text": "15 minutes", + "value": "PT15M" + }, + { + "text": "30 minutes", + "value": "PT30M" + }, + { + "text": "1 hour", + "value": "PT1H" + }, + { + "text": "6 hours", + "value": "PT6H" + }, + { + "text": "12 hours", + "value": "PT12H" + }, + { + "text": "1 day", + "value": "P1D" + } + ] + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "queryType": "Azure Monitor", + "refId": "A", + "subscription": "$sub" + } + ], + "timeShift": "1m", + "title": "Storage Free (Bytes)", + "type": "timeseries" + }, + { + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "description": "Number of active, failed and succeeded connections to your server.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 37, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "smooth", + "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" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 14, + "x": 0, + "y": 54 + }, + "hideTimeOverride": true, + "id": 39, + "links": [], + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "appInsights": { + "groupBy": "none", + "metricName": "select", + "rawQuery": false, + "rawQueryString": "", + "spliton": "", + "timeGrainType": "auto", + "xaxis": "timestamp", + "yaxis": "" + }, + "azureMonitor": { + "aggOptions": ["None", "Average", "Minimum", "Maximum", "Total", "Count"], + "aggregation": "Maximum", + "alias": "{{metric}}", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [], + "dimensions": [], + "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", + "metricName": "active_connections", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto", + "timeGrains": [ + { + "text": "auto", + "value": "auto" + }, + { + "text": "1 minute", + "value": "PT1M" + }, + { + "text": "5 minutes", + "value": "PT5M" + }, + { + "text": "15 minutes", + "value": "PT15M" + }, + { + "text": "30 minutes", + "value": "PT30M" + }, + { + "text": "1 hour", + "value": "PT1H" + }, + { + "text": "6 hours", + "value": "PT6H" + }, + { + "text": "12 hours", + "value": "PT12H" + }, + { + "text": "1 day", + "value": "P1D" + } + ] + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "queryType": "Azure Monitor", + "refId": "A", + "subscription": "$sub" + }, + { + "appInsights": { + "groupBy": "none", + "metricName": "select", + "rawQuery": false, + "rawQueryString": "", + "spliton": "", + "timeGrainType": "auto", + "xaxis": "timestamp", + "yaxis": "" + }, + "azureMonitor": { + "aggOptions": ["None", "Average", "Minimum", "Maximum", "Total", "Count"], + "aggregation": "Total", + "alias": "{{metric}}", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [], + "dimensions": [], + "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", + "metricName": "connections_failed", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto", + "timeGrains": [ + { + "text": "auto", + "value": "auto" + }, + { + "text": "1 minute", + "value": "PT1M" + }, + { + "text": "5 minutes", + "value": "PT5M" + }, + { + "text": "15 minutes", + "value": "PT15M" + }, + { + "text": "30 minutes", + "value": "PT30M" + }, + { + "text": "1 hour", + "value": "PT1H" + }, + { + "text": "6 hours", + "value": "PT6H" + }, + { + "text": "12 hours", + "value": "PT12H" + }, + { + "text": "1 day", + "value": "P1D" + } + ] + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "queryType": "Azure Monitor", + "refId": "B", + "subscription": "$sub" + }, + { + "azureMonitor": { + "aggregation": "Total", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [], + "metricName": "connections_succeeded", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto" + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "hide": false, + "queryType": "Azure Monitor", + "refId": "C", + "subscription": "$sub" + } + ], + "timeShift": "1m", + "title": "Server Connections", + "type": "timeseries" + }, + { + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "description": "Max Connections represents the configured value for the _max_connections_ server parameter. This metric is pooled every 30 minutes.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "blue" + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 4, + "x": 14, + "y": 54 + }, + "id": 111, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": ["lastNotNull"], + "fields": "", + "values": false + }, + "textMode": "value" + }, + "targets": [ + { + "azureMonitor": { + "aggregation": "Maximum", + "alias": "{{dimensionvalue}}", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [], + "metricName": "max_connections", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "PT30M", + "top": "" + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "queryType": "Azure Monitor", + "refId": "A", + "subscription": "$sub" + } + ], + "timeFrom": "1h", + "title": "Max Connections Configured", + "type": "stat" + }, + { + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "description": "Bytes Read / Written to disk per second.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 25, + "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": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 10, + "x": 0, + "y": 63 + }, + "hideTimeOverride": true, + "id": 30, + "links": [], + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "appInsights": { + "groupBy": "none", + "metricName": "select", + "rawQuery": false, + "rawQueryString": "", + "spliton": "", + "timeGrainType": "auto", + "xaxis": "timestamp", + "yaxis": "" + }, + "azureMonitor": { + "aggOptions": ["None", "Average", "Minimum", "Maximum", "Total", "Count"], + "aggregation": "Average", + "alias": "{{metric}}", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [], + "dimensions": [], + "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", + "metricName": "read_throughput", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto", + "timeGrains": [ + { + "text": "auto", + "value": "auto" + }, + { + "text": "1 minute", + "value": "PT1M" + }, + { + "text": "5 minutes", + "value": "PT5M" + }, + { + "text": "15 minutes", + "value": "PT15M" + }, + { + "text": "30 minutes", + "value": "PT30M" + }, + { + "text": "1 hour", + "value": "PT1H" + }, + { + "text": "6 hours", + "value": "PT6H" + }, + { + "text": "12 hours", + "value": "PT12H" + }, + { + "text": "1 day", + "value": "P1D" + } + ] + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "queryType": "Azure Monitor", + "refId": "A", + "subscription": "$sub" + }, + { + "appInsights": { + "groupBy": "none", + "metricName": "select", + "rawQuery": false, + "rawQueryString": "", + "spliton": "", + "timeGrainType": "auto", + "xaxis": "timestamp", + "yaxis": "" + }, + "azureMonitor": { + "aggOptions": ["None", "Average", "Minimum", "Maximum", "Total", "Count"], + "aggregation": "Average", + "alias": "{{metric}}", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [], + "dimensions": [], + "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", + "metricName": "write_throughput", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto", + "timeGrains": [ + { + "text": "auto", + "value": "auto" + }, + { + "text": "1 minute", + "value": "PT1M" + }, + { + "text": "5 minutes", + "value": "PT5M" + }, + { + "text": "15 minutes", + "value": "PT15M" + }, + { + "text": "30 minutes", + "value": "PT30M" + }, + { + "text": "1 hour", + "value": "PT1H" + }, + { + "text": "6 hours", + "value": "PT6H" + }, + { + "text": "12 hours", + "value": "PT12H" + }, + { + "text": "1 day", + "value": "P1D" + } + ] + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "queryType": "Azure Monitor", + "refId": "B", + "subscription": "$sub" + } + ], + "timeShift": "1m", + "title": "Read/Write throughput", + "type": "timeseries" + }, + { + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "description": "Number of data disk IO read/write operations per second.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 25, + "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": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 8, + "x": 10, + "y": 63 + }, + "hideTimeOverride": true, + "id": 31, + "links": [], + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "appInsights": { + "groupBy": "none", + "metricName": "select", + "rawQuery": false, + "rawQueryString": "", + "spliton": "", + "timeGrainType": "auto", + "xaxis": "timestamp", + "yaxis": "" + }, + "azureMonitor": { + "aggOptions": ["None", "Average", "Minimum", "Maximum", "Total", "Count"], + "aggregation": "Average", + "alias": "{{metric}}", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [], + "dimensions": [], + "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", + "metricName": "read_iops", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto", + "timeGrains": [ + { + "text": "auto", + "value": "auto" + }, + { + "text": "1 minute", + "value": "PT1M" + }, + { + "text": "5 minutes", + "value": "PT5M" + }, + { + "text": "15 minutes", + "value": "PT15M" + }, + { + "text": "30 minutes", + "value": "PT30M" + }, + { + "text": "1 hour", + "value": "PT1H" + }, + { + "text": "6 hours", + "value": "PT6H" + }, + { + "text": "12 hours", + "value": "PT12H" + }, + { + "text": "1 day", + "value": "P1D" + } + ] + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "queryType": "Azure Monitor", + "refId": "A", + "subscription": "$sub" + }, + { + "appInsights": { + "groupBy": "none", + "metricName": "select", + "rawQuery": false, + "rawQueryString": "", + "spliton": "", + "timeGrainType": "auto", + "xaxis": "timestamp", + "yaxis": "" + }, + "azureMonitor": { + "aggOptions": ["None", "Average", "Minimum", "Maximum", "Total", "Count"], + "aggregation": "Average", + "alias": "{{metric}}", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [], + "dimensions": [], + "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", + "metricName": "write_iops", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto", + "timeGrains": [ + { + "text": "auto", + "value": "auto" + }, + { + "text": "1 minute", + "value": "PT1M" + }, + { + "text": "5 minutes", + "value": "PT5M" + }, + { + "text": "15 minutes", + "value": "PT15M" + }, + { + "text": "30 minutes", + "value": "PT30M" + }, + { + "text": "1 hour", + "value": "PT1H" + }, + { + "text": "6 hours", + "value": "PT6H" + }, + { + "text": "12 hours", + "value": "PT12H" + }, + { + "text": "1 day", + "value": "P1D" + } + ] + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "queryType": "Azure Monitor", + "refId": "B", + "subscription": "$sub" + } + ], + "timeShift": "1m", + "title": "Read/Write IOPS", + "type": "timeseries" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 71 + }, + "id": 112, + "panels": [ + { + "datasource": { + "type": "datasource", + "uid": "grafana" + }, + "description": "", + "gridPos": { + "h": 2, + "w": 18, + "x": 0, + "y": 72 + }, + "id": 121, + "options": { + "code": { + "language": "plaintext", + "showLineNumbers": false, + "showMiniMap": false + }, + "content": "#### **NOTE**: Autovacuum metrics are emitted at a 30-minute interval. To enable these metrics, set the server parameter `metrics.autovacuum_diagnostics` to ON.", + "mode": "markdown" + }, + "transparent": true, + "type": "text" + }, + { + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "description": "Estimated number of dead rows for user-only tables in this database", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 25, + "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": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 9, + "x": 0, + "y": 74 + }, + "id": 114, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "azureMonitor": { + "aggregation": "Total", + "alias": "{{dimensionvalue}}", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [ + { + "dimension": "DatabaseName", + "filters": [], + "operator": "eq" + } + ], + "metricName": "n_dead_tup_user_tables", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "PT30M", + "top": "" + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "queryType": "Azure Monitor", + "refId": "A", + "subscription": "$sub" + } + ], + "timeFrom": "1h", + "title": "Dead Tuples", + "type": "timeseries" + }, + { + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "description": "Estimated number of live rows for user-only tables in this database.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 25, + "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": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 9, + "x": 9, + "y": 74 + }, + "id": 115, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "azureMonitor": { + "aggregation": "Maximum", + "alias": "{{dimensionvalue}}", + "allowedTimeGrainsMs": [1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [ + { + "dimension": "DatabaseName", + "filters": [], + "operator": "eq" + } + ], + "metricName": "n_live_tup_user_tables", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto", + "top": "" + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "queryType": "Azure Monitor", + "refId": "A", + "subscription": "$sub" + } + ], + "timeFrom": "1h", + "title": "Live Tuples", + "type": "timeseries" + }, + { + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "description": "Estimated bloat percentage for user only tables.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "continuous-GrYlRd" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "scheme", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "smooth", + "lineWidth": 3, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Bloat Percent (Preview)" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "red", + "mode": "fixed" + } + }, + { + "id": "custom.gradientMode", + "value": "hue" + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 18, + "x": 0, + "y": 83 + }, + "id": 119, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "azureMonitor": { + "aggregation": "Maximum", + "allowedTimeGrainsMs": [1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [], + "metricName": "bloat_percent", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto" + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "queryType": "Azure Monitor", + "refId": "A", + "subscription": "$sub" + } + ], + "timeFrom": "1h", + "title": "Bloat Percent (Preview)", + "type": "timeseries" + } + ], + "title": "Autovacuum Metrics", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 72 + }, + "id": 41, + "panels": [ + { + "datasource": { + "type": "datasource", + "uid": "grafana" + }, + "description": "", + "gridPos": { + "h": 2, + "w": 18, + "x": 0, + "y": 73 + }, + "id": 122, + "options": { + "code": { + "language": "plaintext", + "showLineNumbers": false, + "showMiniMap": false + }, + "content": "#### **NOTE**: PgBouncer metrics are emitted at a 30-minute interval. For PgBouncer metrics to work, both the server parameters `pgbouncer.enabled` and `metrics.pgbouncer_diagnostics` must be enabled.", + "mode": "markdown" + }, + "transparent": true, + "type": "text" + }, + { + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "description": "Total number of connection pools", + "fieldConfig": { + "defaults": { + "color": { + "mode": "continuous-GrYlRd" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "scheme", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "smooth", + "lineWidth": 3, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 4, + "x": 0, + "y": 75 + }, + "hideTimeOverride": true, + "id": 43, + "links": [], + "maxDataPoints": 100, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "appInsights": { + "groupBy": "none", + "metricName": "select", + "rawQuery": false, + "rawQueryString": "", + "spliton": "", + "timeGrainType": "auto", + "xaxis": "timestamp", + "yaxis": "" + }, + "azureMonitor": { + "aggOptions": ["None", "Average", "Minimum", "Maximum", "Total", "Count"], + "aggregation": "Maximum", + "alias": "{{metric}}", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [], + "dimensions": [], + "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", + "metricName": "num_pools", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto", + "timeGrains": [ + { + "text": "auto", + "value": "auto" + }, + { + "text": "1 minute", + "value": "PT1M" + }, + { + "text": "5 minutes", + "value": "PT5M" + }, + { + "text": "15 minutes", + "value": "PT15M" + }, + { + "text": "30 minutes", + "value": "PT30M" + }, + { + "text": "1 hour", + "value": "PT1H" + }, + { + "text": "6 hours", + "value": "PT6H" + }, + { + "text": "12 hours", + "value": "PT12H" + }, + { + "text": "1 day", + "value": "P1D" + } + ] + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "queryType": "Azure Monitor", + "refId": "A", + "subscription": "$sub" + } + ], + "timeShift": "1m", + "title": "Number of connection pools", + "type": "timeseries" + }, + { + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "description": "Connections from clients that are associated with an Azure Database for PostgreSQL connection", + "fieldConfig": { + "defaults": { + "color": { + "mode": "continuous-GrYlRd" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "scheme", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "smooth", + "lineWidth": 3, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 4, + "x": 4, + "y": 75 + }, + "hideTimeOverride": true, + "id": 47, + "links": [], + "maxDataPoints": 100, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "appInsights": { + "groupBy": "none", + "metricName": "select", + "rawQuery": false, + "rawQueryString": "", + "spliton": "", + "timeGrainType": "auto", + "xaxis": "timestamp", + "yaxis": "" + }, + "azureMonitor": { + "aggOptions": ["None", "Average", "Minimum", "Maximum", "Total", "Count"], + "aggregation": "Maximum", + "alias": "{{metric}}", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [], + "dimensions": [], + "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", + "metricName": "client_connections_active", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto", + "timeGrains": [ + { + "text": "auto", + "value": "auto" + }, + { + "text": "1 minute", + "value": "PT1M" + }, + { + "text": "5 minutes", + "value": "PT5M" + }, + { + "text": "15 minutes", + "value": "PT15M" + }, + { + "text": "30 minutes", + "value": "PT30M" + }, + { + "text": "1 hour", + "value": "PT1H" + }, + { + "text": "6 hours", + "value": "PT6H" + }, + { + "text": "12 hours", + "value": "PT12H" + }, + { + "text": "1 day", + "value": "P1D" + } + ] + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "queryType": "Azure Monitor", + "refId": "A", + "subscription": "$sub" + } + ], + "timeShift": "1m", + "title": "Active client connections", + "type": "timeseries" + }, + { + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "description": "Connections to Azure Database for PostgreSQL that are in use by a client connection", + "fieldConfig": { + "defaults": { + "color": { + "mode": "continuous-GrYlRd" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "scheme", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "smooth", + "lineWidth": 3, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 4, + "x": 8, + "y": 75 + }, + "hideTimeOverride": true, + "id": 51, + "links": [], + "maxDataPoints": 100, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "appInsights": { + "groupBy": "none", + "metricName": "select", + "rawQuery": false, + "rawQueryString": "", + "spliton": "", + "timeGrainType": "auto", + "xaxis": "timestamp", + "yaxis": "" + }, + "azureMonitor": { + "aggOptions": ["None", "Average", "Minimum", "Maximum", "Total", "Count"], + "aggregation": "Maximum", + "alias": "{{metric}}", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [], + "dimensions": [], + "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", + "metricName": "server_connections_active", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto", + "timeGrains": [ + { + "text": "auto", + "value": "auto" + }, + { + "text": "1 minute", + "value": "PT1M" + }, + { + "text": "5 minutes", + "value": "PT5M" + }, + { + "text": "15 minutes", + "value": "PT15M" + }, + { + "text": "30 minutes", + "value": "PT30M" + }, + { + "text": "1 hour", + "value": "PT1H" + }, + { + "text": "6 hours", + "value": "PT6H" + }, + { + "text": "12 hours", + "value": "PT12H" + }, + { + "text": "1 day", + "value": "P1D" + } + ] + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "queryType": "Azure Monitor", + "refId": "A", + "subscription": "$sub" + } + ], + "timeShift": "1m", + "title": "Active server connections", + "type": "timeseries" + }, + { + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "description": "Current number of pooled connections", + "fieldConfig": { + "defaults": { + "color": { + "mode": "continuous-GrYlRd" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "scheme", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "smooth", + "lineWidth": 3, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 4, + "x": 0, + "y": 82 + }, + "hideTimeOverride": true, + "id": 45, + "links": [], + "maxDataPoints": 100, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "appInsights": { + "groupBy": "none", + "metricName": "select", + "rawQuery": false, + "rawQueryString": "", + "spliton": "", + "timeGrainType": "auto", + "xaxis": "timestamp", + "yaxis": "" + }, + "azureMonitor": { + "aggOptions": ["None", "Average", "Minimum", "Maximum", "Total", "Count"], + "aggregation": "Maximum", + "alias": "{{metric}}", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [], + "dimensions": [], + "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", + "metricName": "total_pooled_connections", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto", + "timeGrains": [ + { + "text": "auto", + "value": "auto" + }, + { + "text": "1 minute", + "value": "PT1M" + }, + { + "text": "5 minutes", + "value": "PT5M" + }, + { + "text": "15 minutes", + "value": "PT15M" + }, + { + "text": "30 minutes", + "value": "PT30M" + }, + { + "text": "1 hour", + "value": "PT1H" + }, + { + "text": "6 hours", + "value": "PT6H" + }, + { + "text": "12 hours", + "value": "PT12H" + }, + { + "text": "1 day", + "value": "P1D" + } + ] + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "queryType": "Azure Monitor", + "refId": "A", + "subscription": "$sub" + } + ], + "timeShift": "1m", + "title": "Total pooled connections", + "type": "timeseries" + }, + { + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "description": "Connections from clients that are waiting for an Azure Database for PostgreSQL connection to service them", + "fieldConfig": { + "defaults": { + "color": { + "mode": "continuous-GrYlRd" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "scheme", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "smooth", + "lineWidth": 3, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 4, + "x": 4, + "y": 82 + }, + "hideTimeOverride": true, + "id": 49, + "links": [], + "maxDataPoints": 100, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "appInsights": { + "groupBy": "none", + "metricName": "select", + "rawQuery": false, + "rawQueryString": "", + "spliton": "", + "timeGrainType": "auto", + "xaxis": "timestamp", + "yaxis": "" + }, + "azureMonitor": { + "aggOptions": ["None", "Average", "Minimum", "Maximum", "Total", "Count"], + "aggregation": "Maximum", + "alias": "{{metric}}", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [], + "dimensions": [], + "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", + "metricName": "client_connections_waiting", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto", + "timeGrains": [ + { + "text": "auto", + "value": "auto" + }, + { + "text": "1 minute", + "value": "PT1M" + }, + { + "text": "5 minutes", + "value": "PT5M" + }, + { + "text": "15 minutes", + "value": "PT15M" + }, + { + "text": "30 minutes", + "value": "PT30M" + }, + { + "text": "1 hour", + "value": "PT1H" + }, + { + "text": "6 hours", + "value": "PT6H" + }, + { + "text": "12 hours", + "value": "PT12H" + }, + { + "text": "1 day", + "value": "P1D" + } + ] + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "queryType": "Azure Monitor", + "refId": "A", + "subscription": "$sub" + } + ], + "timeShift": "1m", + "title": "Waiting client connections", + "type": "timeseries" + }, + { + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "description": "Connections to Azure Database for PostgreSQL that are idle and ready to service a new client connection", + "fieldConfig": { + "defaults": { + "color": { + "mode": "continuous-GrYlRd" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "scheme", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "smooth", + "lineWidth": 3, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 4, + "x": 8, + "y": 82 + }, + "hideTimeOverride": true, + "id": 53, + "links": [], + "maxDataPoints": 100, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "appInsights": { + "groupBy": "none", + "metricName": "select", + "rawQuery": false, + "rawQueryString": "", + "spliton": "", + "timeGrainType": "auto", + "xaxis": "timestamp", + "yaxis": "" + }, + "azureMonitor": { + "aggOptions": ["None", "Average", "Minimum", "Maximum", "Total", "Count"], + "aggregation": "Maximum", + "alias": "{{metric}}", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [], + "dimensions": [], + "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", + "metricName": "server_connections_idle", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto", + "timeGrains": [ + { + "text": "auto", + "value": "auto" + }, + { + "text": "1 minute", + "value": "PT1M" + }, + { + "text": "5 minutes", + "value": "PT5M" + }, + { + "text": "15 minutes", + "value": "PT15M" + }, + { + "text": "30 minutes", + "value": "PT30M" + }, + { + "text": "1 hour", + "value": "PT1H" + }, + { + "text": "6 hours", + "value": "PT6H" + }, + { + "text": "12 hours", + "value": "PT12H" + }, + { + "text": "1 day", + "value": "P1D" + } + ] + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "queryType": "Azure Monitor", + "refId": "A", + "subscription": "$sub" + } + ], + "timeShift": "1m", + "title": "Idle server connections", + "type": "timeseries" + } + ], + "title": "PgBouncer Metrics", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 73 + }, + "id": 106, + "panels": [ + { + "datasource": { + "type": "datasource", + "uid": "grafana" + }, + "description": "", + "gridPos": { + "h": 2, + "w": 24, + "x": 0, + "y": 90 + }, + "id": 123, + "options": { + "code": { + "language": "plaintext", + "showLineNumbers": false, + "showMiniMap": false + }, + "content": "#### **NOTE**: Enhanced metrics are emitted at a 1-minute interval. To enable these metrics, set the server parameter `metrics.collector_database_activity` to ON.", + "mode": "markdown" + }, + "transparent": true, + "type": "text" + }, + { + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "description": "Overall state of the backends", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 61, + "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": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Other" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "dark-blue", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Active" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "blue", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Idle" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "light-blue", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "IdleInTransaction" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "super-light-blue", + "mode": "fixed" + } + } + ] + } + ] + }, + "gridPos": { + "h": 10, + "w": 8, + "x": 0, + "y": 92 + }, + "id": 100, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "desc" + } + }, + "targets": [ + { + "azureMonitor": { + "aggregation": "Maximum", + "alias": "{{dimensionvalue}}", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [ + { + "dimension": "State", + "filters": [], + "operator": "eq" + } + ], + "metricName": "sessions_by_state", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto" + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "queryType": "Azure Monitor", + "refId": "A", + "subscription": "$sub" + } + ], + "title": "Sessions by State", + "type": "timeseries" + }, + { + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "description": "Sessions by the type of event for which the backend is waiting", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 61, + "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": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 10, + "w": 8, + "x": 8, + "y": 92 + }, + "id": 101, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "azureMonitor": { + "aggregation": "Maximum", + "alias": "{{dimensionvalue}}", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [ + { + "dimension": "WaitEventType", + "filters": [], + "operator": "eq" + } + ], + "metricName": "sessions_by_wait_event_type", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto", + "top": "" + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "queryType": "Azure Monitor", + "refId": "A", + "subscription": "$sub" + } + ], + "title": "Sessions By WaitEventType", + "type": "timeseries" + }, + { + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "description": "", + "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": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 10, + "w": 8, + "x": 16, + "y": 92 + }, + "id": 102, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "azureMonitor": { + "aggregation": "Maximum", + "alias": "", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [], + "metricName": "longest_transaction_time_sec", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto", + "top": "" + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "queryType": "Azure Monitor", + "refId": "A", + "subscription": "$sub" + }, + { + "azureMonitor": { + "aggregation": "Maximum", + "alias": "", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [], + "metricName": "longest_query_time_sec", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto", + "top": "" + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "hide": false, + "queryType": "Azure Monitor", + "refId": "B", + "subscription": "$sub" + }, + { + "azureMonitor": { + "aggregation": "Maximum", + "alias": "", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [], + "metricName": "oldest_backend_time_sec", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto", + "top": "" + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "hide": false, + "queryType": "Azure Monitor", + "refId": "C", + "subscription": "$sub" + } + ], + "title": "Session Stats", + "type": "timeseries" + }, + { + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "description": "Number of rows that were inserted by queries in this database", + "fieldConfig": { + "defaults": { + "color": { + "mode": "continuous-BlYlRd" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 39, + "gradientMode": "opacity", + "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" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "__systemRef": "hideSeriesFrom", + "matcher": { + "id": "byNames", + "options": { + "mode": "exclude", + "names": ["foo"], + "prefix": "All except:", + "readOnly": true + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": false, + "tooltip": false, + "viz": true + } + } + ] + } + ] + }, + "gridPos": { + "h": 9, + "w": 8, + "x": 0, + "y": 102 + }, + "id": 103, + "options": { + "legend": { + "calcs": ["lastNotNull"], + "displayMode": "list", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "azureMonitor": { + "aggregation": "Total", + "alias": "{{dimensionvalue}}", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [ + { + "dimension": "DatabaseName", + "filters": [], + "operator": "eq" + } + ], + "metricName": "tup_inserted", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto", + "top": "" + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "queryType": "Azure Monitor", + "refId": "A", + "subscription": "$sub" + } + ], + "title": "Tuples Inserted", + "type": "timeseries" + }, + { + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "description": "Number of transactions in this database that have been committed", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 27, + "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" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "__systemRef": "hideSeriesFrom", + "matcher": { + "id": "byNames", + "options": { + "mode": "exclude", + "names": ["foo"], + "prefix": "All except:", + "readOnly": true + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": false, + "tooltip": false, + "viz": true + } + } + ] + } + ] + }, + "gridPos": { + "h": 9, + "w": 8, + "x": 8, + "y": 102 + }, + "id": 109, + "options": { + "legend": { + "calcs": ["lastNotNull"], + "displayMode": "list", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "azureMonitor": { + "aggregation": "Total", + "alias": "{{dimensionvalue}}", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [ + { + "dimension": "DatabaseName", + "filters": [], + "operator": "eq" + } + ], + "metricName": "blks_read", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto", + "top": "" + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "queryType": "Azure Monitor", + "refId": "A", + "subscription": "$sub" + } + ], + "title": "Transactions Committed", + "type": "timeseries" + }, + { + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "description": "Number of transactions in this database that have been rolled back", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 30, + "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" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "__systemRef": "hideSeriesFrom", + "matcher": { + "id": "byNames", + "options": { + "mode": "exclude", + "names": ["foo"], + "prefix": "All except:", + "readOnly": true + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": false, + "tooltip": false, + "viz": true + } + } + ] + } + ] + }, + "gridPos": { + "h": 9, + "w": 8, + "x": 16, + "y": 102 + }, + "id": 110, + "options": { + "legend": { + "calcs": ["lastNotNull"], + "displayMode": "list", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "azureMonitor": { + "aggregation": "Total", + "alias": "{{dimensionvalue}}", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [ + { + "dimension": "DatabaseName", + "filters": [], + "operator": "eq" + } + ], + "metricName": "xact_rollback", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto", + "top": "" + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "queryType": "Azure Monitor", + "refId": "A", + "subscription": "$sub" + } + ], + "title": "Transactions Rolled back", + "type": "timeseries" + }, + { + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "description": "Number of times disk blocks were found already in the buffer cache, so that a read wasn't necessary", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 26, + "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" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "__systemRef": "hideSeriesFrom", + "matcher": { + "id": "byNames", + "options": { + "mode": "exclude", + "names": ["foo"], + "prefix": "All except:", + "readOnly": true + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": false, + "tooltip": false, + "viz": true + } + } + ] + } + ] + }, + "gridPos": { + "h": 9, + "w": 8, + "x": 0, + "y": 111 + }, + "id": 104, + "options": { + "legend": { + "calcs": ["lastNotNull"], + "displayMode": "list", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "azureMonitor": { + "aggregation": "Total", + "alias": "{{dimensionvalue}}", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [ + { + "dimension": "DatabaseName", + "filters": [], + "operator": "eq" + } + ], + "metricName": "blks_hit", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto", + "top": "" + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "queryType": "Azure Monitor", + "refId": "A", + "subscription": "$sub" + } + ], + "title": "Disk Blocks Hit", + "type": "timeseries" + }, + { + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "description": "Number of disk blocks that were read in this database", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 30, + "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" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "__systemRef": "hideSeriesFrom", + "matcher": { + "id": "byNames", + "options": { + "mode": "exclude", + "names": ["foo"], + "prefix": "All except:", + "readOnly": true + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": false, + "tooltip": false, + "viz": true + } + } + ] + } + ] + }, + "gridPos": { + "h": 9, + "w": 8, + "x": 8, + "y": 111 + }, + "id": 105, + "options": { + "legend": { + "calcs": ["lastNotNull"], + "displayMode": "list", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "azureMonitor": { + "aggregation": "Total", + "alias": "{{dimensionvalue}}", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [ + { + "dimension": "DatabaseName", + "filters": [], + "operator": "eq" + } + ], + "metricName": "blks_read", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto", + "top": "" + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "queryType": "Azure Monitor", + "refId": "A", + "subscription": "$sub" + } + ], + "title": "Disk Blocks Read", + "type": "timeseries" + }, + { + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "description": "Maximum lag across all asynchronous physical replication slots", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "index": 0, + "text": "N/A" + } + }, + "type": "special" + }, + { + "options": { + "from": 0, + "result": { + "color": "red", + "index": 1 + }, + "to": 70 + }, + "type": "range" + }, + { + "options": { + "from": 71, + "result": { + "color": "orange", + "index": 2 + }, + "to": 89 + }, + "type": "range" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "#EAB839", + "value": 450000000000 + }, + { + "color": "red", + "value": 500000000000 + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 3, + "x": 0, + "y": 120 + }, + "hideTimeOverride": true, + "id": 16, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": ["lastNotNull"], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "value" + }, + "targets": [ + { + "azureMonitor": { + "aggregation": "Maximum", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [], + "metricName": "physical_replication_delay_in_bytes", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto" + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "queryType": "Azure Monitor", + "refId": "A", + "subscription": "$sub" + } + ], + "timeShift": "1m", + "title": "Physical Replication Lag - On Primary", + "type": "stat" + }, + { + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "description": "Read replica lag in seconds", + "fieldConfig": { + "defaults": { + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 3, + "x": 3, + "y": 120 + }, + "hideTimeOverride": true, + "id": 72, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": ["lastNotNull"], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "targets": [ + { + "azureMonitor": { + "aggregation": "Maximum", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [], + "metricName": "physical_replication_delay_in_seconds", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto" + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "queryType": "Azure Monitor", + "refId": "A", + "subscription": "$sub" + } + ], + "timeShift": "1m", + "title": "Read Replica Lag - On Secondry", + "type": "stat" + } + ], + "title": "Enhanced Metrics", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 74 + }, + "id": 55, + "panels": [ + { + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "description": "Indicates if the database is up or not in the last 30 days", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "orange", + "mode": "fixed" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 25, + "gradientMode": "hue", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineStyle": { + "dash": [10, 10], + "fill": "dash" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "always", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 16, + "x": 0, + "y": 92 + }, + "hideTimeOverride": true, + "id": 57, + "links": [], + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "appInsights": { + "groupBy": "none", + "metricName": "select", + "rawQuery": false, + "rawQueryString": "", + "spliton": "", + "timeGrainType": "auto", + "xaxis": "timestamp", + "yaxis": "" + }, + "azureMonitor": { + "aggOptions": ["None", "Average", "Minimum", "Maximum", "Total", "Count"], + "aggregation": "Maximum", + "alias": "{{metric}}", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [], + "dimensions": [], + "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", + "metricName": "is_db_alive", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto", + "timeGrains": [ + { + "text": "auto", + "value": "auto" + }, + { + "text": "1 minute", + "value": "PT1M" + }, + { + "text": "5 minutes", + "value": "PT5M" + }, + { + "text": "15 minutes", + "value": "PT15M" + }, + { + "text": "30 minutes", + "value": "PT30M" + }, + { + "text": "1 hour", + "value": "PT1H" + }, + { + "text": "6 hours", + "value": "PT6H" + }, + { + "text": "12 hours", + "value": "PT12H" + }, + { + "text": "1 day", + "value": "P1D" + } + ] + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "queryType": "Azure Monitor", + "refId": "A", + "subscription": "$sub" + } + ], + "timeFrom": "30d", + "timeShift": "1m", + "title": " Database availability (Last 30 days)", + "type": "timeseries" + }, + { + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "description": "Amount of backup storage used. This metric represents the sum of storage that's consumed by all the full backups, differential backups, and log backups that are retained based on the backup retention period that's set for the server. The frequency of the backups is service managed. For geo-redundant storage, backup storage usage is twice the usage for locally redundant storage", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "purple", + "mode": "fixed" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "bars", + "fillOpacity": 50, + "gradientMode": "hue", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 12, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "decmbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 16, + "x": 0, + "y": 100 + }, + "hideTimeOverride": true, + "id": 99, + "links": [], + "options": { + "legend": { + "calcs": ["last"], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "appInsights": { + "groupBy": "none", + "metricName": "select", + "rawQuery": false, + "rawQueryString": "", + "spliton": "", + "timeGrainType": "auto", + "xaxis": "timestamp", + "yaxis": "" + }, + "azureMonitor": { + "aggOptions": ["None", "Average", "Minimum", "Maximum", "Total", "Count"], + "aggregation": "Average", + "alias": "{{metric}}", + "allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000], + "dimensionFilters": [], + "dimensions": [], + "metricDefinition": "Microsoft.DBforPostgreSQL/flexibleServers", + "metricName": "backup_storage_used", + "metricNamespace": "$ns", + "resources": [ + { + "metricNamespace": "$ns", + "resourceGroup": "$rg", + "resourceName": "$resource", + "subscription": "$sub" + } + ], + "timeGrain": "auto", + "timeGrains": [ + { + "text": "auto", + "value": "auto" + }, + { + "text": "1 minute", + "value": "PT1M" + }, + { + "text": "5 minutes", + "value": "PT5M" + }, + { + "text": "15 minutes", + "value": "PT15M" + }, + { + "text": "30 minutes", + "value": "PT30M" + }, + { + "text": "1 hour", + "value": "PT1H" + }, + { + "text": "6 hours", + "value": "PT6H" + }, + { + "text": "12 hours", + "value": "PT12H" + }, + { + "text": "1 day", + "value": "P1D" + } + ] + }, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "queryType": "Azure Monitor", + "refId": "A", + "subscription": "$sub" + } + ], + "timeFrom": "30d", + "timeShift": "1m", + "title": "Backup Storage Used (last 30 days)", + "type": "timeseries" + } + ], + "title": "Historical Metrics (last 30 days)", + "type": "row" + } + ], + "refresh": "1m", + "revision": 1, + "schemaVersion": 38, + "style": "dark", + "tags": [], + "templating": { + "list": [ + { + "current": { + "selected": false, + "text": "Azure Monitor", + "value": "Azure Monitor" + }, + "hide": 0, + "includeAll": false, + "label": "Datasource", + "multi": false, + "name": "ds", + "options": [], + "query": "grafana-azure-monitor-datasource", + "queryValue": "", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "type": "datasource" + }, + { + "current": {}, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "definition": "", + "hide": 0, + "includeAll": false, + "label": "Subscription", + "multi": false, + "name": "sub", + "options": [], + "query": { + "azureLogAnalytics": { + "query": "", + "resources": [] + }, + "queryType": "Azure Subscriptions", + "refId": "A" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 5, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "definition": "", + "description": "", + "hide": 0, + "includeAll": false, + "label": "Resource Group", + "multi": false, + "name": "rg", + "options": [], + "query": { + "azureLogAnalytics": { + "query": "", + "resources": [] + }, + "queryType": "Azure Resource Groups", + "refId": "A", + "subscription": "$sub" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 5, + "type": "query" + }, + { + "current": { + "selected": false, + "text": "Microsoft.DBforPostgreSQL/flexibleServers", + "value": "Microsoft.DBforPostgreSQL/flexibleServers" + }, + "hide": 2, + "includeAll": false, + "label": "Namespace", + "multi": false, + "name": "ns", + "options": [ + { + "selected": true, + "text": "Microsoft.DBforPostgreSQL/flexibleServers", + "value": "Microsoft.DBforPostgreSQL/flexibleServers" + } + ], + "query": "Microsoft.DBforPostgreSQL/flexibleServers", + "queryValue": "", + "skipUrlSync": false, + "type": "custom" + }, + { + "current": {}, + "datasource": { + "type": "grafana-azure-monitor-datasource", + "uid": "${ds}" + }, + "definition": "", + "hide": 0, + "includeAll": false, + "label": "Resource", + "multi": false, + "name": "resource", + "options": [], + "query": { + "azureLogAnalytics": { + "query": "", + "resources": [] + }, + "namespace": "$ns", + "queryType": "Azure Resource Names", + "refId": "A", + "resourceGroup": "$rg", + "subscription": "$sub" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + } + ] + }, + "time": { + "from": "now-30m", + "to": "now" + }, + "timepicker": {}, + "timezone": "", + "title": "Azure / Azure PostgreSQL / Flexible Server Monitoring", + "uid": null, + "version": 191 +} diff --git a/public/app/plugins/datasource/loki/components/LokiQueryEditor.tsx b/public/app/plugins/datasource/loki/components/LokiQueryEditor.tsx index 291e3cadf1c..ca0a1da6a14 100644 --- a/public/app/plugins/datasource/loki/components/LokiQueryEditor.tsx +++ b/public/app/plugins/datasource/loki/components/LokiQueryEditor.tsx @@ -29,7 +29,7 @@ export const testIds = { }; export const LokiQueryEditor = React.memo((props) => { - const { onChange, onRunQuery, onAddQuery, data, app, queries, datasource } = props; + const { onChange, onRunQuery, onAddQuery, data, app, queries, datasource, range: timeRange } = props; const [parseModalOpen, setParseModalOpen] = useState(false); const [queryPatternsModalOpen, setQueryPatternsModalOpen] = useState(false); const [dataIsStale, setDataIsStale] = useState(false); @@ -37,9 +37,8 @@ export const LokiQueryEditor = React.memo((props) => { const [queryStats, setQueryStats] = useState(null); const { flag: explain, setFlag: setExplain } = useFlag(lokiQueryEditorExplainKey); - const timerange = datasource.getTimeRange(); const predefinedOperations = datasource.predefinedOperations; - const previousTimerange = usePrevious(timerange); + const previousTimeRange = usePrevious(timeRange); const query = getQueryWithDefaults(props.query); if (config.featureToggles.lokiPredefinedOperations && !query.expr && predefinedOperations) { @@ -100,8 +99,8 @@ export const LokiQueryEditor = React.memo((props) => { const update = shouldUpdateStats( query.expr, previousQueryExpr, - timerange, - previousTimerange, + timeRange, + previousTimeRange, query.queryType, previousQueryType ); @@ -112,7 +111,7 @@ export const LokiQueryEditor = React.memo((props) => { }; makeAsyncRequest(); } - }, [datasource, timerange, previousTimerange, query, previousQueryExpr, previousQueryType, setQueryStats]); + }, [datasource, timeRange, previousTimeRange, query, previousQueryExpr, previousQueryType, setQueryStats]); return ( <> diff --git a/public/app/plugins/datasource/loki/components/stats.ts b/public/app/plugins/datasource/loki/components/stats.ts index 232b33e9a81..1b35497c67f 100644 --- a/public/app/plugins/datasource/loki/components/stats.ts +++ b/public/app/plugins/datasource/loki/components/stats.ts @@ -8,7 +8,11 @@ import { LokiQueryType } from '../types'; * @param {(DateTime | string)} time1 * @param {(DateTime | string | undefined)} time2 */ -function compareTime(time1: DateTime | string, time2: DateTime | string | undefined) { +function compareTime(time1: DateTime | string | undefined, time2: DateTime | string | undefined) { + if (!time1 || !time2) { + return false; + } + const isAbsolute = isDateTime(time1); if (isAbsolute) { @@ -21,8 +25,8 @@ function compareTime(time1: DateTime | string, time2: DateTime | string | undefi export function shouldUpdateStats( query: string, prevQuery: string | undefined, - timerange: TimeRange, - prevTimerange: TimeRange | undefined, + timeRange: TimeRange | undefined, + prevTimeRange: TimeRange | undefined, queryType: LokiQueryType | undefined, prevQueryType: LokiQueryType | undefined ): boolean { @@ -31,8 +35,8 @@ export function shouldUpdateStats( } if ( - compareTime(timerange.raw.from, prevTimerange?.raw.from) && - compareTime(timerange.raw.to, prevTimerange?.raw.to) + compareTime(timeRange?.raw.from, prevTimeRange?.raw.from) && + compareTime(timeRange?.raw.to, prevTimeRange?.raw.to) ) { return false; } diff --git a/public/app/plugins/datasource/loki/datasource.ts b/public/app/plugins/datasource/loki/datasource.ts index 8ca0dfdae5e..4dd89da4de3 100644 --- a/public/app/plugins/datasource/loki/datasource.ts +++ b/public/app/plugins/datasource/loki/datasource.ts @@ -9,7 +9,6 @@ import { CoreApp, DataFrame, DataFrameView, - DataQueryError, DataQueryRequest, DataQueryResponse, DataSourceInstanceSettings, @@ -18,8 +17,6 @@ import { SupplementaryQueryType, DataSourceWithQueryExportSupport, DataSourceWithQueryImportSupport, - dateMath, - DateTime, FieldCache, FieldType, Labels, @@ -40,7 +37,7 @@ import { } from '@grafana/data'; import { intervalToMs } from '@grafana/data/src/datetime/rangeutil'; import { Duration } from '@grafana/lezer-logql'; -import { BackendSrvRequest, config, DataSourceWithBackend, FetchError } from '@grafana/runtime'; +import { BackendSrvRequest, config, DataSourceWithBackend } from '@grafana/runtime'; import { DataQuery } from '@grafana/schema'; import { convertToWebSocketUrl } from 'app/core/utils/explore'; import { getTimeSrv, TimeSrv } from 'app/features/dashboard/services/TimeSrv'; @@ -141,8 +138,8 @@ export class LokiDatasource DataSourceWithToggleableQueryFiltersSupport { private streams = new LiveStreams(); + private logContextProvider: LogContextProvider; languageProvider: LanguageProvider; - logContextProvider: LogContextProvider; maxLines: number; predefinedOperations: string; @@ -229,7 +226,7 @@ export class LokiDatasource } } - getLogsVolumeDataProvider(request: DataQueryRequest): Observable | undefined { + private getLogsVolumeDataProvider(request: DataQueryRequest): Observable | undefined { const logsVolumeRequest = cloneDeep(request); const targets = logsVolumeRequest.targets .map((query) => this.getSupplementaryQuery({ type: SupplementaryQueryType.LogsVolume }, query)) @@ -250,7 +247,7 @@ export class LokiDatasource ); } - getLogsSampleDataProvider(request: DataQueryRequest): Observable | undefined { + private getLogsSampleDataProvider(request: DataQueryRequest): Observable | undefined { const logsSampleRequest = cloneDeep(request); const targets = logsSampleRequest.targets .map((query) => this.getSupplementaryQuery({ type: SupplementaryQueryType.LogsSample, limit: 100 }, query)) @@ -321,7 +318,7 @@ export class LokiDatasource ); } - runLiveQueryThroughBackend(request: DataQueryRequest): Observable { + private runLiveQueryThroughBackend(request: DataQueryRequest): Observable { // this only works in explore-mode, so variables don't need to be handled, // and only for logs-queries, not metric queries const logsQueries = request.targets.filter((query) => query.expr !== '' && isLogsQuery(query.expr)); @@ -342,7 +339,7 @@ export class LokiDatasource return merge(...subQueries); } - createLiveTarget(target: LokiQuery, maxDataPoints: number): LokiLiveTarget { + private createLiveTarget(target: LokiQuery, maxDataPoints: number): LokiLiveTarget { const query = target.expr; const baseUrl = this.instanceSettings.url; const params = serializeParams({ query }); @@ -361,7 +358,7 @@ export class LokiDatasource * Loki streams, sets only common labels on dataframe.labels and has additional dataframe.fields.labels for unique * labels per row. */ - runLiveQuery = (target: LokiQuery, maxDataPoints: number): Observable => { + private runLiveQuery = (target: LokiQuery, maxDataPoints: number): Observable => { const liveTarget = this.createLiveTarget(target, maxDataPoints); return this.streams.getStream(liveTarget).pipe( @@ -376,16 +373,6 @@ export class LokiDatasource ); }; - getRangeScopedVars(range: TimeRange = this.getTimeRange()) { - const msRange = range.to.diff(range.from); - const sRange = Math.round(msRange / 1000); - return { - __range_ms: { text: msRange, value: msRange }, - __range_s: { text: sRange, value: sRange }, - __range: { text: sRange + 's', value: sRange + 's' }, - }; - } - interpolateVariablesInQueries(queries: LokiQuery[], scopedVars: ScopedVars): LokiQuery[] { let expandedQueries = queries; if (queries && queries.length) { @@ -571,7 +558,7 @@ export class LokiDatasource return await this.processMetricFindQuery(interpolatedQuery); } - async processMetricFindQuery(query: LokiVariableQuery) { + private async processMetricFindQuery(query: LokiVariableQuery) { if (query.type === LokiVariableQueryType.LabelNames) { return this.labelNamesQuery(); } @@ -613,14 +600,14 @@ export class LokiDatasource return result.map((value: string) => ({ text: value })); } - async labelValuesQuery(label: string) { + private async labelValuesQuery(label: string) { const params = this.getTimeRangeParams(); const url = `label/${label}/values`; const result = await this.metadataRequest(url, params); return result.map((value: string) => ({ text: value })); } - async labelValuesSeriesQuery(expr: string, label: string) { + private async labelValuesSeriesQuery(expr: string, label: string) { const timeParams = this.getTimeRangeParams(); const params = { ...timeParams, @@ -798,14 +785,6 @@ export class LokiDatasource return { ...query, expr: expression }; } - getTime(date: string | DateTime, roundUp: boolean) { - if (typeof date === 'string') { - date = dateMath.parse(date, roundUp)!; - } - - return Math.ceil(date.valueOf() * 1e6); - } - getLogRowContext = async ( row: LogRowModel, options?: LogRowContextOptions, @@ -892,17 +871,6 @@ export class LokiDatasource return true; } - processError(err: FetchError, target: LokiQuery) { - let error: DataQueryError = cloneDeep(err); - error.refId = target.refId; - - if (error.data && err.data.message.includes('escape') && target.expr.includes('\\')) { - error.data.message = `Error: ${err.data.message}. Make sure that all special characters are escaped with \\. For more information on escaping of special characters visit LogQL documentation at https://grafana.com/docs/loki/latest/logql/.`; - } - - return error; - } - addAdHocFilters(queryExpr: string) { const adhocFilters = this.templateSrv.getAdhocFilters(this.name); let expr = replaceVariables(queryExpr); diff --git a/public/app/plugins/datasource/loki/types.ts b/public/app/plugins/datasource/loki/types.ts index 2d06d3ac1f6..730d127d158 100644 --- a/public/app/plugins/datasource/loki/types.ts +++ b/public/app/plugins/datasource/loki/types.ts @@ -1,25 +1,9 @@ -import { DataQuery, DataQueryRequest, DataSourceJsonData, QueryResultMeta, ScopedVars, TimeRange } from '@grafana/data'; +import { DataQuery, DataQueryRequest, DataSourceJsonData, TimeRange } from '@grafana/data'; import { Loki as LokiQueryFromSchema, LokiQueryType, SupportingQueryType, LokiQueryDirection } from './dataquery.gen'; export { LokiQueryDirection, LokiQueryType, SupportingQueryType }; -export interface LokiInstantQueryRequest { - query: string; - limit?: number; - time?: string; - direction?: LokiQueryDirection; -} - -export interface LokiRangeQueryRequest { - query: string; - limit?: number; - start?: number; - end?: number; - step?: number; - direction?: LokiQueryDirection; -} - export enum LokiResultType { Stream = 'streams', Vector = 'vector', @@ -51,54 +35,11 @@ export interface LokiOptions extends DataSourceJsonData { predefinedOperations?: string; } -export interface LokiStats { - [component: string]: { - [label: string]: number; - }; -} - -export interface LokiVectorResult { - metric: { [label: string]: string }; - value: [number, string]; -} - -export interface LokiVectorResponse { - status: string; - data: { - resultType: LokiResultType.Vector; - result: LokiVectorResult[]; - stats?: LokiStats; - }; -} - -export interface LokiMatrixResult { - metric: Record; - values: Array<[number, string]>; -} - -export interface LokiMatrixResponse { - status: string; - data: { - resultType: LokiResultType.Matrix; - result: LokiMatrixResult[]; - stats?: LokiStats; - }; -} - export interface LokiStreamResult { stream: Record; values: Array<[string, string]>; } -export interface LokiStreamResponse { - status: string; - data: { - resultType: LokiResultType.Stream; - result: LokiStreamResult[]; - stats?: LokiStats; - }; -} - export interface LokiTailResponse { streams: LokiStreamResult[]; dropped_entries?: Array<{ @@ -107,19 +48,6 @@ export interface LokiTailResponse { }> | null; } -export type LokiResult = LokiVectorResult | LokiMatrixResult | LokiStreamResult; -export type LokiResponse = LokiVectorResponse | LokiMatrixResponse | LokiStreamResponse; - -export interface LokiLogsStreamEntry { - line: string; - ts: string; -} - -export interface LokiExpression { - regexp: string; - query: string; -} - export type DerivedFieldConfig = { matcherRegex: string; name: string; @@ -128,14 +56,6 @@ export type DerivedFieldConfig = { datasourceUid?: string; }; -export interface TransformerOptions { - legendFormat?: string; - query: string; - refId: string; - scopedVars: ScopedVars; - meta?: QueryResultMeta; -} - export enum LokiVariableQueryType { LabelNames, LabelValues,