Files
services/deployment/modules/cloudflare/workers/cloudflare-metrics/dashboards/dns.json
T

555 lines
13 KiB
JSON

{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 1,
"links": [],
"panels": [
{
"id": 1,
"type": "row",
"title": "Queries",
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
"panels": []
},
{
"id": 2,
"type": "timeseries",
"title": "Queries",
"datasource": {
"type": "prometheus",
"uid": "36979063-5384-4eb9-8679-565a727cbc13"
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 1
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"decimals": 0,
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "short",
"custom": {
"drawStyle": "line",
"lineInterpolation": "smooth",
"lineWidth": 1,
"fillOpacity": 10,
"gradientMode": "none",
"spanNulls": true,
"showPoints": "never",
"pointSize": 5,
"stacking": {
"mode": "none",
"group": "A"
},
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"scaleDistribution": {
"type": "linear"
},
"thresholdsStyle": {
"mode": "off"
}
}
},
"overrides": []
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "36979063-5384-4eb9-8679-565a727cbc13"
},
"editorMode": "code",
"expr": "sum by (zone_name) (max_over_time(cf_dns_analytics_queries{zone_name=~\"$zone_name\"}[1m]))",
"instant": false,
"range": true,
"legendFormat": "{{zone_name}}",
"refId": "A"
}
],
"options": {
"legend": {
"calcs": [
"mean",
"max",
"lastNotNull"
],
"displayMode": "table",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
}
},
{
"id": 3,
"type": "timeseries",
"title": "By Query Type",
"datasource": {
"type": "prometheus",
"uid": "36979063-5384-4eb9-8679-565a727cbc13"
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 1
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"decimals": 0,
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "short",
"custom": {
"drawStyle": "line",
"lineInterpolation": "smooth",
"lineWidth": 1,
"fillOpacity": 10,
"gradientMode": "none",
"spanNulls": true,
"showPoints": "never",
"pointSize": 5,
"stacking": {
"mode": "none",
"group": "A"
},
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"scaleDistribution": {
"type": "linear"
},
"thresholdsStyle": {
"mode": "off"
}
}
},
"overrides": []
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "36979063-5384-4eb9-8679-565a727cbc13"
},
"editorMode": "code",
"expr": "sum by (query_type) (max_over_time(cf_dns_analytics_queries{zone_name=~\"$zone_name\"}[1m]))",
"instant": false,
"range": true,
"legendFormat": "{{query_type}}",
"refId": "A"
}
],
"options": {
"legend": {
"calcs": [
"mean",
"max",
"lastNotNull"
],
"displayMode": "table",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
}
},
{
"id": 4,
"type": "timeseries",
"title": "By Response Code",
"datasource": {
"type": "prometheus",
"uid": "36979063-5384-4eb9-8679-565a727cbc13"
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 9
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"decimals": 0,
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "short",
"custom": {
"drawStyle": "line",
"lineInterpolation": "smooth",
"lineWidth": 1,
"fillOpacity": 10,
"gradientMode": "none",
"spanNulls": true,
"showPoints": "never",
"pointSize": 5,
"stacking": {
"mode": "none",
"group": "A"
},
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"scaleDistribution": {
"type": "linear"
},
"thresholdsStyle": {
"mode": "off"
}
}
},
"overrides": []
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "36979063-5384-4eb9-8679-565a727cbc13"
},
"editorMode": "code",
"expr": "sum by (response_code) (max_over_time(cf_dns_analytics_queries{zone_name=~\"$zone_name\"}[1m]))",
"instant": false,
"range": true,
"legendFormat": "{{response_code}}",
"refId": "A"
}
],
"options": {
"legend": {
"calcs": [
"mean",
"max",
"lastNotNull"
],
"displayMode": "table",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
}
},
{
"id": 5,
"type": "timeseries",
"title": "Cache vs Uncached",
"datasource": {
"type": "prometheus",
"uid": "36979063-5384-4eb9-8679-565a727cbc13"
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 9
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"decimals": 0,
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "short",
"custom": {
"drawStyle": "line",
"lineInterpolation": "smooth",
"lineWidth": 1,
"fillOpacity": 10,
"gradientMode": "none",
"spanNulls": true,
"showPoints": "never",
"pointSize": 5,
"stacking": {
"mode": "none",
"group": "A"
},
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"scaleDistribution": {
"type": "linear"
},
"thresholdsStyle": {
"mode": "off"
}
}
},
"overrides": []
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "36979063-5384-4eb9-8679-565a727cbc13"
},
"editorMode": "code",
"expr": "sum (max_over_time(cf_dns_analytics_queries_uncached{zone_name=~\"$zone_name\"}[1m])",
"instant": false,
"range": true,
"legendFormat": "uncached",
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "36979063-5384-4eb9-8679-565a727cbc13"
},
"editorMode": "code",
"expr": "sum (max_over_time(cf_dns_analytics_queries_stale{zone_name=~\"$zone_name\"}[1m])",
"instant": false,
"range": true,
"legendFormat": "stale",
"refId": "B"
}
],
"options": {
"legend": {
"calcs": [
"mean",
"max",
"lastNotNull"
],
"displayMode": "table",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
}
},
{
"id": 6,
"type": "row",
"title": "Processing Time",
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 17
},
"panels": []
},
{
"id": 7,
"type": "timeseries",
"title": "Processing Time (avg)",
"datasource": {
"type": "prometheus",
"uid": "36979063-5384-4eb9-8679-565a727cbc13"
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 18
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"decimals": 0,
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "µs",
"custom": {
"drawStyle": "line",
"lineInterpolation": "smooth",
"lineWidth": 1,
"fillOpacity": 10,
"gradientMode": "none",
"spanNulls": true,
"showPoints": "never",
"pointSize": 5,
"stacking": {
"mode": "none",
"group": "A"
},
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"scaleDistribution": {
"type": "linear"
},
"thresholdsStyle": {
"mode": "off"
}
}
},
"overrides": []
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "36979063-5384-4eb9-8679-565a727cbc13"
},
"editorMode": "code",
"expr": "avg by (zone_name) (max_over_time(cf_dns_analytics_processing_time_us_avg{zone_name=~\"$zone_name\"}[1m]))",
"instant": false,
"range": true,
"legendFormat": "{{zone_name}}",
"refId": "A"
}
],
"options": {
"legend": {
"calcs": [
"mean",
"max",
"lastNotNull"
],
"displayMode": "table",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
}
}
],
"tags": [
"cloudflare-workers",
"cloudflare-metrics",
"cloudflare-analytics"
],
"templating": {
"list": [
{
"name": "zone_name",
"label": "Zone",
"type": "query",
"datasource": {
"type": "prometheus",
"uid": "36979063-5384-4eb9-8679-565a727cbc13"
},
"query": {
"query": "label_values(cf_dns_analytics_queries, zone_name)",
"refId": "StandardVariableQuery"
},
"refresh": 2,
"regex": "",
"sort": 1,
"includeAll": true,
"allValue": ".*",
"multi": true,
"hide": 0,
"definition": "label_values(cf_dns_analytics_queries, zone_name)",
"options": [],
"skipUrlSync": false,
"current": {
"selected": false,
"text": "All",
"value": "$__all"
}
}
]
},
"time": {
"from": "now-6h",
"to": "now"
},
"timepicker": {},
"timezone": "browser",
"title": "Cloudflare — DNS",
"uid": "cf-dns",
"version": 1,
"weekStart": ""
}