The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
grafana/public/app/plugins/datasource/azuremonitor/dashboards/postgresFlexibleServer.json

7668 lines
212 KiB

{
"__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",
"uid": "grafana"
},
"description": "",
"gridPos": {
"h": 4,
"w": 1,
"x": 0,
"y": 0
},
"id": 75,
"options": {
"code": {
"language": "plaintext",
"showLineNumbers": false,
"showMiniMap": false
},
"content": "<img src=\"https://sqltune.files.wordpress.com/2023/07/azure-database-for-postgresql-bigger.png\"/>",
"mode": "markdown"
},
"transparent": true,
"type": "text"
},
{
"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"
},
{
"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
},
{
"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": [
{
"color": "green",
"value": null
},
{
"color": "#EAB839",
"value": 60
},
{
"color": "red",
"value": 80
}
]
},
"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
}
]
}
},
"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"]
},
"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
}