From ef66196e1dfd08ac71de923669be7381f9f43feb Mon Sep 17 00:00:00 2001 From: kongfei Date: Thu, 24 Aug 2023 17:01:03 +0800 Subject: [PATCH] add dashboards for aliyun cdn/dcdn --- inputs/aliyun/aliyun-cdn.json | 273 +++++++++++++++++++++++++++ inputs/aliyun/aliyun-dcdn.json | 332 +++++++++++++++++++++++++++++++++ 2 files changed, 605 insertions(+) create mode 100644 inputs/aliyun/aliyun-cdn.json create mode 100644 inputs/aliyun/aliyun-dcdn.json diff --git a/inputs/aliyun/aliyun-cdn.json b/inputs/aliyun/aliyun-cdn.json new file mode 100644 index 00000000..b0d67329 --- /dev/null +++ b/inputs/aliyun/aliyun-cdn.json @@ -0,0 +1,273 @@ +{ + "name": "aliyun_cdn", + "tags": "CDN", + "ident": "", + "configs": { + "var": [ + { + "name": "datasource", + "label": "datasource", + "type": "datasource", + "definition": "prometheus", + "defaultValue": 4 + } + ], + "panels": [ + { + "type": "timeseries", + "id": "ec8fcf96-1691-4e45-9a5f-2f183021b434", + "layout": { + "h": 4, + "w": 12, + "x": 0, + "y": 0, + "i": "ec8fcf96-1691-4e45-9a5f-2f183021b434", + "isResizable": true + }, + "version": "3.0.0", + "datasourceCate": "prometheus", + "datasourceValue": "${datasource}", + "targets": [ + { + "refId": "A", + "expr": "aliyun_acs_cdn_bps_maximum", + "legend": "峰值{{instance_id}}" + }, + { + "expr": "aliyun_acs_cdn_bps_average", + "refId": "B", + "legend": "均值 {{instance_id}}" + } + ], + "transformations": [ + { + "id": "organize", + "options": {} + } + ], + "name": "带宽峰值(bps)", + "maxPerRow": 4, + "options": { + "tooltip": { + "mode": "all", + "sort": "none" + }, + "legend": { + "displayMode": "hidden" + }, + "standardOptions": {}, + "thresholds": { + "steps": [ + { + "color": "#634CD9", + "value": null, + "type": "base" + } + ] + } + }, + "custom": { + "drawStyle": "lines", + "lineInterpolation": "smooth", + "spanNulls": false, + "lineWidth": 1, + "fillOpacity": 0.5, + "gradientMode": "none", + "stack": "off", + "scaleDistribution": { + "type": "linear" + } + } + }, + { + "type": "timeseries", + "id": "0430c7e9-7372-45e3-9bb2-c5939baf6bfa", + "layout": { + "h": 4, + "w": 12, + "x": 12, + "y": 0, + "i": "0430c7e9-7372-45e3-9bb2-c5939baf6bfa", + "isResizable": true + }, + "version": "3.0.0", + "datasourceCate": "prometheus", + "datasourceValue": "${datasource}", + "targets": [ + { + "refId": "A", + "expr": "aliyun_acs_cdn_internet_out_maximum", + "legend": "峰值{{instance_id}" + }, + { + "expr": "aliyun_acs_cdn_internet_out_average", + "refId": "B", + "legend": "均值 {{instance_id}}" + } + ], + "transformations": [ + { + "id": "organize", + "options": {} + } + ], + "name": "带宽", + "maxPerRow": 4, + "options": { + "tooltip": { + "mode": "all", + "sort": "none" + }, + "legend": { + "displayMode": "hidden" + }, + "standardOptions": {}, + "thresholds": { + "steps": [ + { + "color": "#634CD9", + "value": null, + "type": "base" + } + ] + } + }, + "custom": { + "drawStyle": "lines", + "lineInterpolation": "smooth", + "spanNulls": false, + "lineWidth": 1, + "fillOpacity": 0.5, + "gradientMode": "none", + "stack": "off", + "scaleDistribution": { + "type": "linear" + } + } + }, + { + "type": "timeseries", + "id": "b72c5032-1ea0-4c87-9cfd-d21b374680f1", + "layout": { + "h": 4, + "w": 12, + "x": 0, + "y": 4, + "i": "b72c5032-1ea0-4c87-9cfd-d21b374680f1", + "isResizable": true + }, + "version": "3.0.0", + "datasourceCate": "prometheus", + "datasourceValue": "${datasource}", + "targets": [ + { + "refId": "A", + "expr": "aliyun_acs_cdn_qps_average*60", + "legend": "每分钟请求量{{instance_id}}" + } + ], + "transformations": [ + { + "id": "organize", + "options": {} + } + ], + "name": "请求量", + "maxPerRow": 4, + "options": { + "tooltip": { + "mode": "all", + "sort": "none" + }, + "legend": { + "displayMode": "hidden" + }, + "standardOptions": {}, + "thresholds": { + "steps": [ + { + "color": "#634CD9", + "value": null, + "type": "base" + } + ] + } + }, + "custom": { + "drawStyle": "lines", + "lineInterpolation": "smooth", + "spanNulls": false, + "lineWidth": 1, + "fillOpacity": 0.5, + "gradientMode": "none", + "stack": "off", + "scaleDistribution": { + "type": "linear" + } + } + }, + { + "type": "timeseries", + "id": "b438ae81-3dfc-4ed8-b66f-262a4b507e4b", + "layout": { + "h": 4, + "w": 12, + "x": 12, + "y": 4, + "i": "b438ae81-3dfc-4ed8-b66f-262a4b507e4b", + "isResizable": true + }, + "version": "3.0.0", + "datasourceCate": "prometheus", + "datasourceValue": "${datasource}", + "targets": [ + { + "refId": "A", + "expr": "aliyun_acs_cdn_qps_average", + "legend": "{{instance_id}}" + } + ], + "transformations": [ + { + "id": "organize", + "options": {} + } + ], + "name": "QPS", + "maxPerRow": 4, + "options": { + "tooltip": { + "mode": "all", + "sort": "none" + }, + "legend": { + "displayMode": "hidden" + }, + "standardOptions": {}, + "thresholds": { + "steps": [ + { + "color": "#634CD9", + "value": null, + "type": "base" + } + ] + } + }, + "custom": { + "drawStyle": "lines", + "lineInterpolation": "smooth", + "spanNulls": false, + "lineWidth": 1, + "fillOpacity": 0.5, + "gradientMode": "none", + "stack": "off", + "scaleDistribution": { + "type": "linear" + } + } + } + ], + "version": "3.0.0" + } +} diff --git a/inputs/aliyun/aliyun-dcdn.json b/inputs/aliyun/aliyun-dcdn.json new file mode 100644 index 00000000..3cd7d576 --- /dev/null +++ b/inputs/aliyun/aliyun-dcdn.json @@ -0,0 +1,332 @@ +{ + "name": "aliyun_dcdn", + "tags": "", + "ident": "", + "configs": { + "var": [ + { + "name": "datasource", + "type": "datasource", + "definition": "prometheus", + "defaultValue": 4 + } + ], + "panels": [ + { + "type": "timeseries", + "id": "3416d7ca-71c4-4a08-a57b-1950748cc816", + "layout": { + "h": 4, + "w": 12, + "x": 0, + "y": 0, + "i": "3416d7ca-71c4-4a08-a57b-1950748cc816", + "isResizable": true + }, + "version": "3.0.0", + "datasourceCate": "prometheus", + "datasourceValue": "${datasource}", + "targets": [ + { + "refId": "A", + "expr": "aliyun_acs_dcdn_bps_in_maximum", + "legend": "流入峰值{{instance_id}}" + }, + { + "expr": "aliyun_acs_dcdn_bps_out_maximum", + "refId": "B", + "legend": "留出峰值{{instance_id}}" + } + ], + "transformations": [ + { + "id": "organize", + "options": {} + } + ], + "name": "带宽峰值(bps)", + "maxPerRow": 4, + "options": { + "tooltip": { + "mode": "all", + "sort": "none" + }, + "legend": { + "displayMode": "hidden" + }, + "standardOptions": {}, + "thresholds": { + "steps": [ + { + "color": "#634CD9", + "value": null, + "type": "base" + } + ] + } + }, + "custom": { + "drawStyle": "lines", + "lineInterpolation": "smooth", + "spanNulls": false, + "lineWidth": 1, + "fillOpacity": 0.5, + "gradientMode": "none", + "stack": "off", + "scaleDistribution": { + "type": "linear" + } + } + }, + { + "type": "timeseries", + "id": "3ebab9c4-b117-4e2e-b27d-4b1fcea4ecf0", + "layout": { + "h": 4, + "w": 12, + "x": 12, + "y": 0, + "i": "3ebab9c4-b117-4e2e-b27d-4b1fcea4ecf0", + "isResizable": true + }, + "version": "3.0.0", + "datasourceCate": "prometheus", + "datasourceValue": "${datasource}", + "targets": [ + { + "refId": "A", + "expr": "aliyun_acs_dcdn_bps_in_http_maximum", + "legend": "http流入峰值{{instance_id}}" + }, + { + "expr": "aliyun_acs_dcdn_bps_out_http_maximum", + "refId": "B", + "legend": "http流出峰值{{instance_id}}" + } + ], + "transformations": [ + { + "id": "organize", + "options": {} + } + ], + "name": "HTTP 带宽峰值(bps)", + "maxPerRow": 4, + "options": { + "tooltip": { + "mode": "all", + "sort": "none" + }, + "legend": { + "displayMode": "hidden" + }, + "standardOptions": {}, + "thresholds": { + "steps": [ + { + "color": "#634CD9", + "value": null, + "type": "base" + } + ] + } + }, + "custom": { + "drawStyle": "lines", + "lineInterpolation": "smooth", + "spanNulls": false, + "lineWidth": 1, + "fillOpacity": 0.5, + "gradientMode": "none", + "stack": "off", + "scaleDistribution": { + "type": "linear" + } + } + }, + { + "type": "timeseries", + "id": "ffd380f0-33f9-46d7-b107-8deb86887645", + "layout": { + "h": 4, + "w": 12, + "x": 0, + "y": 4, + "i": "ffd380f0-33f9-46d7-b107-8deb86887645", + "isResizable": true + }, + "version": "3.0.0", + "datasourceCate": "prometheus", + "datasourceValue": "${datasource}", + "targets": [ + { + "refId": "A", + "expr": "aliyun_acs_dcdn_dcdn_qps_maximum", + "legend": "{{instance_id}}" + } + ], + "transformations": [ + { + "id": "organize", + "options": {} + } + ], + "name": "QPS", + "maxPerRow": 4, + "options": { + "tooltip": { + "mode": "all", + "sort": "none" + }, + "legend": { + "displayMode": "hidden" + }, + "standardOptions": {}, + "thresholds": { + "steps": [ + { + "color": "#634CD9", + "value": null, + "type": "base" + } + ] + } + }, + "custom": { + "drawStyle": "lines", + "lineInterpolation": "smooth", + "spanNulls": false, + "lineWidth": 1, + "fillOpacity": 0.5, + "gradientMode": "none", + "stack": "off", + "scaleDistribution": { + "type": "linear" + } + } + }, + { + "type": "timeseries", + "id": "5b929b49-0562-43f7-b19b-9a2411b2cb4c", + "layout": { + "h": 4, + "w": 12, + "x": 12, + "y": 4, + "i": "5b929b49-0562-43f7-b19b-9a2411b2cb4c", + "isResizable": true + }, + "version": "3.0.0", + "datasourceCate": "prometheus", + "datasourceValue": "${datasource}", + "targets": [ + { + "refId": "A", + "expr": "aliyun_acs_dcdn_dcdn_qps_http_maximum", + "legend": "{{instance_id}}" + } + ], + "transformations": [ + { + "id": "organize", + "options": {} + } + ], + "name": "HTTP QPS", + "maxPerRow": 4, + "options": { + "tooltip": { + "mode": "all", + "sort": "none" + }, + "legend": { + "displayMode": "hidden" + }, + "standardOptions": {}, + "thresholds": { + "steps": [ + { + "color": "#634CD9", + "value": null, + "type": "base" + } + ] + } + }, + "custom": { + "drawStyle": "lines", + "lineInterpolation": "smooth", + "spanNulls": false, + "lineWidth": 1, + "fillOpacity": 0.5, + "gradientMode": "none", + "stack": "off", + "scaleDistribution": { + "type": "linear" + } + } + }, + { + "type": "timeseries", + "id": "74963ec1-d984-47ea-86d5-b7eb55234445", + "layout": { + "x": 0, + "y": 8, + "w": 12, + "h": 4, + "i": "74963ec1-d984-47ea-86d5-b7eb55234445" + }, + "version": "3.0.0", + "datasourceCate": "prometheus", + "datasourceValue": "${datasource}", + "targets": [ + { + "refId": "A", + "expr": "aliyun_acs_dcdn_hit_rate_http_maximum", + "legend": "{{instance_id}}" + } + ], + "transformations": [ + { + "id": "organize", + "options": {} + } + ], + "name": "http命中率", + "maxPerRow": 4, + "options": { + "tooltip": { + "mode": "all", + "sort": "none" + }, + "legend": { + "displayMode": "hidden" + }, + "standardOptions": {}, + "thresholds": { + "steps": [ + { + "color": "#634CD9", + "value": null, + "type": "base" + } + ] + } + }, + "custom": { + "drawStyle": "lines", + "lineInterpolation": "smooth", + "spanNulls": false, + "lineWidth": 1, + "fillOpacity": 0.5, + "gradientMode": "none", + "stack": "off", + "scaleDistribution": { + "type": "linear" + } + } + } + ], + "version": "3.0.0" + } +}