add separate ov dashboard with cloudflare
This commit is contained in:
		| @@ -24,125 +24,10 @@ | ||||
|   "editable": true, | ||||
|   "fiscalYearStartMonth": 0, | ||||
|   "graphTooltip": 0, | ||||
|   "id": 25, | ||||
|   "id": 2, | ||||
|   "links": [], | ||||
|   "liveNow": false, | ||||
|   "panels": [ | ||||
|     { | ||||
|       "datasource": { | ||||
|         "type": "prometheus", | ||||
|         "uid": "yPhvsDP7k" | ||||
|       }, | ||||
|       "fieldConfig": { | ||||
|         "defaults": { | ||||
|           "color": { | ||||
|             "mode": "palette-classic" | ||||
|           }, | ||||
|           "custom": { | ||||
|             "axisCenteredZero": false, | ||||
|             "axisColorMode": "text", | ||||
|             "axisLabel": "", | ||||
|             "axisPlacement": "auto", | ||||
|             "barAlignment": 0, | ||||
|             "drawStyle": "line", | ||||
|             "fillOpacity": 30, | ||||
|             "gradientMode": "hue", | ||||
|             "hideFrom": { | ||||
|               "legend": false, | ||||
|               "tooltip": false, | ||||
|               "viz": false | ||||
|             }, | ||||
|             "lineInterpolation": "smooth", | ||||
|             "lineWidth": 1, | ||||
|             "pointSize": 5, | ||||
|             "scaleDistribution": { | ||||
|               "type": "linear" | ||||
|             }, | ||||
|             "showPoints": "never", | ||||
|             "spanNulls": false, | ||||
|             "stacking": { | ||||
|               "group": "A", | ||||
|               "mode": "none" | ||||
|             }, | ||||
|             "thresholdsStyle": { | ||||
|               "mode": "off" | ||||
|             } | ||||
|           }, | ||||
|           "links": [], | ||||
|           "mappings": [], | ||||
|           "thresholds": { | ||||
|             "mode": "absolute", | ||||
|             "steps": [ | ||||
|               { | ||||
|                 "color": "green", | ||||
|                 "value": null | ||||
|               }, | ||||
|               { | ||||
|                 "color": "red", | ||||
|                 "value": 80 | ||||
|               } | ||||
|             ] | ||||
|           }, | ||||
|           "unit": "short" | ||||
|         }, | ||||
|         "overrides": [] | ||||
|       }, | ||||
|       "gridPos": { | ||||
|         "h": 8, | ||||
|         "w": 24, | ||||
|         "x": 0, | ||||
|         "y": 0 | ||||
|       }, | ||||
|       "id": 28, | ||||
|       "options": { | ||||
|         "legend": { | ||||
|           "calcs": [ | ||||
|             "mean", | ||||
|             "lastNotNull", | ||||
|             "max", | ||||
|             "min" | ||||
|           ], | ||||
|           "displayMode": "table", | ||||
|           "placement": "right", | ||||
|           "showLegend": true | ||||
|         }, | ||||
|         "tooltip": { | ||||
|           "mode": "multi", | ||||
|           "sort": "none" | ||||
|         } | ||||
|       }, | ||||
|       "pluginVersion": "9.4.0-90864pre", | ||||
|       "targets": [ | ||||
|         { | ||||
|           "datasource": { | ||||
|             "type": "prometheus", | ||||
|             "uid": "yPhvsDP7k" | ||||
|           }, | ||||
|           "editorMode": "code", | ||||
|           "expr": "sum(rate(cloudflare_zone_requests_total{}[$__interval]))", | ||||
|           "interval": "", | ||||
|           "intervalFactor": 10, | ||||
|           "legendFormat": "total", | ||||
|           "range": true, | ||||
|           "refId": "A" | ||||
|         }, | ||||
|         { | ||||
|           "datasource": { | ||||
|             "type": "prometheus", | ||||
|             "uid": "yPhvsDP7k" | ||||
|           }, | ||||
|           "editorMode": "code", | ||||
|           "expr": "sum(rate(cloudflare_zone_requests_cached{}[$__interval]))", | ||||
|           "interval": "", | ||||
|           "intervalFactor": 10, | ||||
|           "legendFormat": "cached", | ||||
|           "range": true, | ||||
|           "refId": "B" | ||||
|         } | ||||
|       ], | ||||
|       "title": "Cloudflare Requests / second", | ||||
|       "type": "timeseries" | ||||
|     }, | ||||
|     { | ||||
|       "columns": [], | ||||
|       "datasource": { | ||||
| @@ -152,10 +37,10 @@ | ||||
|       "description": "\n\nCurrEstab: The number of TCP connections whose current status is ESTABLISHED or CLOSE-WAIT.", | ||||
|       "fontSize": "80%", | ||||
|       "gridPos": { | ||||
|         "h": 24, | ||||
|         "h": 31, | ||||
|         "w": 24, | ||||
|         "x": 0, | ||||
|         "y": 8 | ||||
|         "y": 0 | ||||
|       }, | ||||
|       "id": 24, | ||||
|       "showHeader": true, | ||||
| @@ -654,6 +539,7 @@ | ||||
|       ], | ||||
|       "title": "Resource Overview", | ||||
|       "transform": "table", | ||||
|       "transparent": true, | ||||
|       "type": "table-old" | ||||
|     } | ||||
|   ], | ||||
| @@ -716,6 +602,6 @@ | ||||
|   "timezone": "", | ||||
|   "title": "Overview", | ||||
|   "uid": "HHYqp7T4z", | ||||
|   "version": 6, | ||||
|   "version": 1, | ||||
|   "weekStart": "" | ||||
| } | ||||
|   | ||||
							
								
								
									
										721
									
								
								files/dashboards/overview_cf.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										721
									
								
								files/dashboards/overview_cf.json
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,721 @@ | ||||
| { | ||||
|   "annotations": { | ||||
|     "list": [ | ||||
|       { | ||||
|         "builtIn": 1, | ||||
|         "datasource": { | ||||
|           "type": "grafana", | ||||
|           "uid": "-- Grafana --" | ||||
|         }, | ||||
|         "enable": true, | ||||
|         "hide": true, | ||||
|         "iconColor": "rgba(0, 211, 255, 1)", | ||||
|         "name": "Annotations & Alerts", | ||||
|         "target": { | ||||
|           "limit": 100, | ||||
|           "matchAny": false, | ||||
|           "tags": [], | ||||
|           "type": "dashboard" | ||||
|         }, | ||||
|         "type": "dashboard" | ||||
|       } | ||||
|     ] | ||||
|   }, | ||||
|   "editable": true, | ||||
|   "fiscalYearStartMonth": 0, | ||||
|   "graphTooltip": 0, | ||||
|   "id": 25, | ||||
|   "links": [], | ||||
|   "liveNow": false, | ||||
|   "panels": [ | ||||
|     { | ||||
|       "datasource": { | ||||
|         "type": "prometheus", | ||||
|         "uid": "yPhvsDP7k" | ||||
|       }, | ||||
|       "fieldConfig": { | ||||
|         "defaults": { | ||||
|           "color": { | ||||
|             "mode": "palette-classic" | ||||
|           }, | ||||
|           "custom": { | ||||
|             "axisCenteredZero": false, | ||||
|             "axisColorMode": "text", | ||||
|             "axisLabel": "", | ||||
|             "axisPlacement": "auto", | ||||
|             "barAlignment": 0, | ||||
|             "drawStyle": "line", | ||||
|             "fillOpacity": 30, | ||||
|             "gradientMode": "hue", | ||||
|             "hideFrom": { | ||||
|               "legend": false, | ||||
|               "tooltip": false, | ||||
|               "viz": false | ||||
|             }, | ||||
|             "lineInterpolation": "smooth", | ||||
|             "lineWidth": 1, | ||||
|             "pointSize": 5, | ||||
|             "scaleDistribution": { | ||||
|               "type": "linear" | ||||
|             }, | ||||
|             "showPoints": "never", | ||||
|             "spanNulls": false, | ||||
|             "stacking": { | ||||
|               "group": "A", | ||||
|               "mode": "none" | ||||
|             }, | ||||
|             "thresholdsStyle": { | ||||
|               "mode": "off" | ||||
|             } | ||||
|           }, | ||||
|           "links": [], | ||||
|           "mappings": [], | ||||
|           "thresholds": { | ||||
|             "mode": "absolute", | ||||
|             "steps": [ | ||||
|               { | ||||
|                 "color": "green", | ||||
|                 "value": null | ||||
|               }, | ||||
|               { | ||||
|                 "color": "red", | ||||
|                 "value": 80 | ||||
|               } | ||||
|             ] | ||||
|           }, | ||||
|           "unit": "short" | ||||
|         }, | ||||
|         "overrides": [] | ||||
|       }, | ||||
|       "gridPos": { | ||||
|         "h": 8, | ||||
|         "w": 24, | ||||
|         "x": 0, | ||||
|         "y": 0 | ||||
|       }, | ||||
|       "id": 28, | ||||
|       "options": { | ||||
|         "legend": { | ||||
|           "calcs": [ | ||||
|             "mean", | ||||
|             "lastNotNull", | ||||
|             "max", | ||||
|             "min" | ||||
|           ], | ||||
|           "displayMode": "table", | ||||
|           "placement": "right", | ||||
|           "showLegend": true | ||||
|         }, | ||||
|         "tooltip": { | ||||
|           "mode": "multi", | ||||
|           "sort": "none" | ||||
|         } | ||||
|       }, | ||||
|       "pluginVersion": "9.4.0-90864pre", | ||||
|       "targets": [ | ||||
|         { | ||||
|           "datasource": { | ||||
|             "type": "prometheus", | ||||
|             "uid": "yPhvsDP7k" | ||||
|           }, | ||||
|           "editorMode": "code", | ||||
|           "expr": "sum(rate(cloudflare_zone_requests_total{}[$__interval]))", | ||||
|           "interval": "", | ||||
|           "intervalFactor": 10, | ||||
|           "legendFormat": "total", | ||||
|           "range": true, | ||||
|           "refId": "A" | ||||
|         }, | ||||
|         { | ||||
|           "datasource": { | ||||
|             "type": "prometheus", | ||||
|             "uid": "yPhvsDP7k" | ||||
|           }, | ||||
|           "editorMode": "code", | ||||
|           "expr": "sum(rate(cloudflare_zone_requests_cached{}[$__interval]))", | ||||
|           "interval": "", | ||||
|           "intervalFactor": 10, | ||||
|           "legendFormat": "cached", | ||||
|           "range": true, | ||||
|           "refId": "B" | ||||
|         } | ||||
|       ], | ||||
|       "title": "Cloudflare Requests / second", | ||||
|       "type": "timeseries" | ||||
|     }, | ||||
|     { | ||||
|       "columns": [], | ||||
|       "datasource": { | ||||
|         "type": "prometheus", | ||||
|         "uid": "yPhvsDP7k" | ||||
|       }, | ||||
|       "description": "\n\nCurrEstab: The number of TCP connections whose current status is ESTABLISHED or CLOSE-WAIT.", | ||||
|       "fontSize": "80%", | ||||
|       "gridPos": { | ||||
|         "h": 24, | ||||
|         "w": 24, | ||||
|         "x": 0, | ||||
|         "y": 8 | ||||
|       }, | ||||
|       "id": 24, | ||||
|       "showHeader": true, | ||||
|       "sort": { | ||||
|         "col": 31, | ||||
|         "desc": false | ||||
|       }, | ||||
|       "styles": [ | ||||
|         { | ||||
|           "$$hashKey": "object:1600", | ||||
|           "alias": "Hostname", | ||||
|           "align": "auto", | ||||
|           "colors": [ | ||||
|             "rgba(245, 54, 54, 0.9)", | ||||
|             "rgba(237, 129, 40, 0.89)", | ||||
|             "rgba(50, 172, 45, 0.97)" | ||||
|           ], | ||||
|           "dateFormat": "YYYY-MM-DD HH:mm:ss", | ||||
|           "decimals": 1, | ||||
|           "link": false, | ||||
|           "linkTooltip": "", | ||||
|           "linkUrl": "", | ||||
|           "mappingType": 1, | ||||
|           "pattern": "nodename", | ||||
|           "thresholds": [], | ||||
|           "type": "string", | ||||
|           "unit": "bytes" | ||||
|         }, | ||||
|         { | ||||
|           "$$hashKey": "object:1602", | ||||
|           "alias": "Memory", | ||||
|           "align": "auto", | ||||
|           "colors": [ | ||||
|             "rgba(245, 54, 54, 0.9)", | ||||
|             "rgba(237, 129, 40, 0.89)", | ||||
|             "rgba(50, 172, 45, 0.97)" | ||||
|           ], | ||||
|           "dateFormat": "YYYY-MM-DD HH:mm:ss", | ||||
|           "decimals": 2, | ||||
|           "link": false, | ||||
|           "mappingType": 1, | ||||
|           "pattern": "Value #B", | ||||
|           "thresholds": [], | ||||
|           "type": "number", | ||||
|           "unit": "bytes" | ||||
|         }, | ||||
|         { | ||||
|           "$$hashKey": "object:1603", | ||||
|           "alias": "CPU Cores", | ||||
|           "align": "auto", | ||||
|           "colors": [ | ||||
|             "rgba(245, 54, 54, 0.9)", | ||||
|             "rgba(237, 129, 40, 0.89)", | ||||
|             "rgba(50, 172, 45, 0.97)" | ||||
|           ], | ||||
|           "dateFormat": "YYYY-MM-DD HH:mm:ss", | ||||
|           "mappingType": 1, | ||||
|           "pattern": "Value #C", | ||||
|           "thresholds": [], | ||||
|           "type": "number", | ||||
|           "unit": "short" | ||||
|         }, | ||||
|         { | ||||
|           "$$hashKey": "object:1604", | ||||
|           "alias": " Uptime", | ||||
|           "align": "auto", | ||||
|           "colors": [ | ||||
|             "rgba(245, 54, 54, 0.9)", | ||||
|             "rgba(237, 129, 40, 0.89)", | ||||
|             "rgba(50, 172, 45, 0.97)" | ||||
|           ], | ||||
|           "dateFormat": "YYYY-MM-DD HH:mm:ss", | ||||
|           "decimals": 2, | ||||
|           "mappingType": 1, | ||||
|           "pattern": "Value #D", | ||||
|           "thresholds": [], | ||||
|           "type": "number", | ||||
|           "unit": "s" | ||||
|         }, | ||||
|         { | ||||
|           "$$hashKey": "object:1605", | ||||
|           "alias": "Partition used%*", | ||||
|           "align": "auto", | ||||
|           "colorMode": "cell", | ||||
|           "colors": [ | ||||
|             "rgba(50, 172, 45, 0.97)", | ||||
|             "rgba(237, 129, 40, 0.89)", | ||||
|             "rgba(245, 54, 54, 0.9)" | ||||
|           ], | ||||
|           "dateFormat": "YYYY-MM-DD HH:mm:ss", | ||||
|           "decimals": 2, | ||||
|           "mappingType": 1, | ||||
|           "pattern": "Value #E", | ||||
|           "thresholds": [ | ||||
|             "70", | ||||
|             "85" | ||||
|           ], | ||||
|           "type": "number", | ||||
|           "unit": "percent" | ||||
|         }, | ||||
|         { | ||||
|           "$$hashKey": "object:1606", | ||||
|           "alias": "CPU used%", | ||||
|           "align": "auto", | ||||
|           "colorMode": "cell", | ||||
|           "colors": [ | ||||
|             "rgba(50, 172, 45, 0.97)", | ||||
|             "rgba(237, 129, 40, 0.89)", | ||||
|             "rgba(245, 54, 54, 0.9)" | ||||
|           ], | ||||
|           "dateFormat": "YYYY-MM-DD HH:mm:ss", | ||||
|           "decimals": 2, | ||||
|           "mappingType": 1, | ||||
|           "pattern": "Value #F", | ||||
|           "thresholds": [ | ||||
|             "70", | ||||
|             "85" | ||||
|           ], | ||||
|           "type": "number", | ||||
|           "unit": "percent" | ||||
|         }, | ||||
|         { | ||||
|           "$$hashKey": "object:1607", | ||||
|           "alias": "Memory used%", | ||||
|           "align": "auto", | ||||
|           "colorMode": "cell", | ||||
|           "colors": [ | ||||
|             "rgba(50, 172, 45, 0.97)", | ||||
|             "rgba(237, 129, 40, 0.89)", | ||||
|             "rgba(245, 54, 54, 0.9)" | ||||
|           ], | ||||
|           "dateFormat": "YYYY-MM-DD HH:mm:ss", | ||||
|           "decimals": 2, | ||||
|           "mappingType": 1, | ||||
|           "pattern": "Value #G", | ||||
|           "thresholds": [ | ||||
|             "70", | ||||
|             "85" | ||||
|           ], | ||||
|           "type": "number", | ||||
|           "unit": "percent" | ||||
|         }, | ||||
|         { | ||||
|           "$$hashKey": "object:1608", | ||||
|           "alias": "Disk read*", | ||||
|           "align": "auto", | ||||
|           "colorMode": "cell", | ||||
|           "colors": [ | ||||
|             "rgba(50, 172, 45, 0.97)", | ||||
|             "rgba(237, 129, 40, 0.89)", | ||||
|             "rgba(245, 54, 54, 0.9)" | ||||
|           ], | ||||
|           "dateFormat": "YYYY-MM-DD HH:mm:ss", | ||||
|           "decimals": 2, | ||||
|           "mappingType": 1, | ||||
|           "pattern": "Value #H", | ||||
|           "thresholds": [ | ||||
|             "10485760", | ||||
|             "20485760" | ||||
|           ], | ||||
|           "type": "number", | ||||
|           "unit": "Bps" | ||||
|         }, | ||||
|         { | ||||
|           "$$hashKey": "object:1609", | ||||
|           "alias": "Disk write*", | ||||
|           "align": "auto", | ||||
|           "colorMode": "cell", | ||||
|           "colors": [ | ||||
|             "rgba(50, 172, 45, 0.97)", | ||||
|             "rgba(237, 129, 40, 0.89)", | ||||
|             "rgba(245, 54, 54, 0.9)" | ||||
|           ], | ||||
|           "dateFormat": "YYYY-MM-DD HH:mm:ss", | ||||
|           "decimals": 2, | ||||
|           "mappingType": 1, | ||||
|           "pattern": "Value #I", | ||||
|           "thresholds": [ | ||||
|             "10485760", | ||||
|             "20485760" | ||||
|           ], | ||||
|           "type": "number", | ||||
|           "unit": "Bps" | ||||
|         }, | ||||
|         { | ||||
|           "$$hashKey": "object:1610", | ||||
|           "alias": "Download*", | ||||
|           "align": "auto", | ||||
|           "colorMode": "cell", | ||||
|           "colors": [ | ||||
|             "rgba(50, 172, 45, 0.97)", | ||||
|             "rgba(237, 129, 40, 0.89)", | ||||
|             "rgba(245, 54, 54, 0.9)" | ||||
|           ], | ||||
|           "dateFormat": "YYYY-MM-DD HH:mm:ss", | ||||
|           "decimals": 2, | ||||
|           "mappingType": 1, | ||||
|           "pattern": "Value #J", | ||||
|           "thresholds": [ | ||||
|             "30485760", | ||||
|             "104857600" | ||||
|           ], | ||||
|           "type": "number", | ||||
|           "unit": "bps" | ||||
|         }, | ||||
|         { | ||||
|           "$$hashKey": "object:1611", | ||||
|           "alias": "Upload*", | ||||
|           "align": "auto", | ||||
|           "colorMode": "cell", | ||||
|           "colors": [ | ||||
|             "rgba(50, 172, 45, 0.97)", | ||||
|             "rgba(237, 129, 40, 0.89)", | ||||
|             "rgba(245, 54, 54, 0.9)" | ||||
|           ], | ||||
|           "dateFormat": "YYYY-MM-DD HH:mm:ss", | ||||
|           "decimals": 2, | ||||
|           "mappingType": 1, | ||||
|           "pattern": "Value #K", | ||||
|           "thresholds": [ | ||||
|             "30485760", | ||||
|             "104857600" | ||||
|           ], | ||||
|           "type": "number", | ||||
|           "unit": "bps" | ||||
|         }, | ||||
|         { | ||||
|           "$$hashKey": "object:1612", | ||||
|           "alias": "5m load", | ||||
|           "align": "auto", | ||||
|           "colors": [ | ||||
|             "rgba(245, 54, 54, 0.9)", | ||||
|             "rgba(237, 129, 40, 0.89)", | ||||
|             "rgba(50, 172, 45, 0.97)" | ||||
|           ], | ||||
|           "dateFormat": "YYYY-MM-DD HH:mm:ss", | ||||
|           "decimals": 2, | ||||
|           "mappingType": 1, | ||||
|           "pattern": "Value #L", | ||||
|           "thresholds": [], | ||||
|           "type": "number", | ||||
|           "unit": "short" | ||||
|         }, | ||||
|         { | ||||
|           "$$hashKey": "object:1613", | ||||
|           "alias": "CurrEstab", | ||||
|           "align": "auto", | ||||
|           "colorMode": "cell", | ||||
|           "colors": [ | ||||
|             "rgba(50, 172, 45, 0.97)", | ||||
|             "rgba(237, 129, 40, 0.89)", | ||||
|             "rgba(245, 54, 54, 0.9)" | ||||
|           ], | ||||
|           "dateFormat": "YYYY-MM-DD HH:mm:ss", | ||||
|           "decimals": 2, | ||||
|           "mappingType": 1, | ||||
|           "pattern": "Value #M", | ||||
|           "thresholds": [ | ||||
|             "1000", | ||||
|             "1500" | ||||
|           ], | ||||
|           "type": "string", | ||||
|           "unit": "short" | ||||
|         }, | ||||
|         { | ||||
|           "$$hashKey": "object:1614", | ||||
|           "alias": "TCP_tw", | ||||
|           "align": "center", | ||||
|           "colorMode": "cell", | ||||
|           "colors": [ | ||||
|             "rgba(50, 172, 45, 0.97)", | ||||
|             "rgba(237, 129, 40, 0.89)", | ||||
|             "rgba(245, 54, 54, 0.9)" | ||||
|           ], | ||||
|           "dateFormat": "YYYY-MM-DD HH:mm:ss", | ||||
|           "mappingType": 1, | ||||
|           "pattern": "Value #N", | ||||
|           "thresholds": [ | ||||
|             "5000", | ||||
|             "20000" | ||||
|           ], | ||||
|           "type": "number", | ||||
|           "unit": "short" | ||||
|         }, | ||||
|         { | ||||
|           "$$hashKey": "object:1615", | ||||
|           "alias": "", | ||||
|           "align": "right", | ||||
|           "colors": [ | ||||
|             "rgba(245, 54, 54, 0.9)", | ||||
|             "rgba(237, 129, 40, 0.89)", | ||||
|             "rgba(50, 172, 45, 0.97)" | ||||
|           ], | ||||
|           "decimals": 2, | ||||
|           "pattern": "/.*/", | ||||
|           "thresholds": [], | ||||
|           "type": "hidden", | ||||
|           "unit": "short" | ||||
|         } | ||||
|       ], | ||||
|       "targets": [ | ||||
|         { | ||||
|           "datasource": { | ||||
|             "type": "prometheus", | ||||
|             "uid": "yPhvsDP7k" | ||||
|           }, | ||||
|           "editorMode": "code", | ||||
|           "expr": "node_uname_info{job=~\"$job\"} - 0", | ||||
|           "format": "table", | ||||
|           "instant": true, | ||||
|           "interval": "", | ||||
|           "legendFormat": "主机名", | ||||
|           "refId": "A" | ||||
|         }, | ||||
|         { | ||||
|           "datasource": { | ||||
|             "type": "prometheus", | ||||
|             "uid": "yPhvsDP7k" | ||||
|           }, | ||||
|           "editorMode": "code", | ||||
|           "expr": "sum(time() - node_boot_time_seconds{job=~\"$job\"})by(instance)", | ||||
|           "format": "table", | ||||
|           "hide": false, | ||||
|           "instant": true, | ||||
|           "interval": "", | ||||
|           "legendFormat": "运行时间", | ||||
|           "refId": "D" | ||||
|         }, | ||||
|         { | ||||
|           "datasource": { | ||||
|             "type": "prometheus", | ||||
|             "uid": "yPhvsDP7k" | ||||
|           }, | ||||
|           "editorMode": "code", | ||||
|           "expr": "node_memory_MemTotal_bytes{job=~\"$job\"} - 0", | ||||
|           "format": "table", | ||||
|           "hide": false, | ||||
|           "instant": true, | ||||
|           "interval": "", | ||||
|           "legendFormat": "总内存", | ||||
|           "refId": "B" | ||||
|         }, | ||||
|         { | ||||
|           "datasource": { | ||||
|             "type": "prometheus", | ||||
|             "uid": "yPhvsDP7k" | ||||
|           }, | ||||
|           "editorMode": "code", | ||||
|           "expr": "count(node_cpu_seconds_total{job=~\"$job\",mode='system'}) by (instance)", | ||||
|           "format": "table", | ||||
|           "hide": false, | ||||
|           "instant": true, | ||||
|           "interval": "", | ||||
|           "legendFormat": "总核数", | ||||
|           "refId": "C" | ||||
|         }, | ||||
|         { | ||||
|           "datasource": { | ||||
|             "type": "prometheus", | ||||
|             "uid": "yPhvsDP7k" | ||||
|           }, | ||||
|           "editorMode": "code", | ||||
|           "expr": "node_load5{job=~\"$job\"}", | ||||
|           "format": "table", | ||||
|           "instant": true, | ||||
|           "interval": "", | ||||
|           "legendFormat": "5分钟负载", | ||||
|           "refId": "L" | ||||
|         }, | ||||
|         { | ||||
|           "datasource": { | ||||
|             "type": "prometheus", | ||||
|             "uid": "yPhvsDP7k" | ||||
|           }, | ||||
|           "editorMode": "code", | ||||
|           "expr": "(1 - avg(rate(node_cpu_seconds_total{job=~\"$job\",mode=\"idle\"}[$__rate_interval])) by (instance)) * 100", | ||||
|           "format": "table", | ||||
|           "hide": false, | ||||
|           "instant": true, | ||||
|           "interval": "", | ||||
|           "legendFormat": "CPU使用率", | ||||
|           "refId": "F" | ||||
|         }, | ||||
|         { | ||||
|           "datasource": { | ||||
|             "type": "prometheus", | ||||
|             "uid": "yPhvsDP7k" | ||||
|           }, | ||||
|           "editorMode": "code", | ||||
|           "expr": "(1 - (node_memory_MemAvailable_bytes{job=~\"$job\"} / (node_memory_MemTotal_bytes{job=~\"$job\"})))* 100", | ||||
|           "format": "table", | ||||
|           "hide": false, | ||||
|           "instant": true, | ||||
|           "interval": "", | ||||
|           "legendFormat": "内存使用率", | ||||
|           "refId": "G" | ||||
|         }, | ||||
|         { | ||||
|           "datasource": { | ||||
|             "type": "prometheus", | ||||
|             "uid": "yPhvsDP7k" | ||||
|           }, | ||||
|           "editorMode": "code", | ||||
|           "expr": "max((node_filesystem_size_bytes{job=~\"$job\",fstype=~\"ext.?|xfs\"}-node_filesystem_free_bytes{job=~\"$job\",fstype=~\"ext.?|xfs\"}) *100/(node_filesystem_avail_bytes {job=~\"$job\",fstype=~\"ext.?|xfs\"}+(node_filesystem_size_bytes{job=~\"$job\",fstype=~\"ext.?|xfs\"}-node_filesystem_free_bytes{job=~\"$job\",fstype=~\"ext.?|xfs\"})))by(instance)", | ||||
|           "format": "table", | ||||
|           "hide": false, | ||||
|           "instant": true, | ||||
|           "interval": "", | ||||
|           "legendFormat": "分区使用率", | ||||
|           "refId": "E" | ||||
|         }, | ||||
|         { | ||||
|           "datasource": { | ||||
|             "type": "prometheus", | ||||
|             "uid": "yPhvsDP7k" | ||||
|           }, | ||||
|           "editorMode": "code", | ||||
|           "expr": "max(rate(node_disk_read_bytes_total{job=~\"$job\"}[$__rate_interval])) by (instance)", | ||||
|           "format": "table", | ||||
|           "hide": false, | ||||
|           "instant": true, | ||||
|           "interval": "", | ||||
|           "legendFormat": "最大读取", | ||||
|           "refId": "H" | ||||
|         }, | ||||
|         { | ||||
|           "datasource": { | ||||
|             "type": "prometheus", | ||||
|             "uid": "yPhvsDP7k" | ||||
|           }, | ||||
|           "editorMode": "code", | ||||
|           "expr": "max(rate(node_disk_written_bytes_total{job=~\"$job\"}[$__rate_interval])) by (instance)", | ||||
|           "format": "table", | ||||
|           "hide": false, | ||||
|           "instant": true, | ||||
|           "interval": "", | ||||
|           "legendFormat": "最大写入", | ||||
|           "refId": "I" | ||||
|         }, | ||||
|         { | ||||
|           "datasource": { | ||||
|             "type": "prometheus", | ||||
|             "uid": "yPhvsDP7k" | ||||
|           }, | ||||
|           "editorMode": "code", | ||||
|           "expr": "node_netstat_Tcp_CurrEstab{job=~\"$job\"} - 0", | ||||
|           "format": "table", | ||||
|           "hide": false, | ||||
|           "instant": true, | ||||
|           "interval": "", | ||||
|           "legendFormat": "连接数", | ||||
|           "refId": "M" | ||||
|         }, | ||||
|         { | ||||
|           "datasource": { | ||||
|             "type": "prometheus", | ||||
|             "uid": "yPhvsDP7k" | ||||
|           }, | ||||
|           "editorMode": "code", | ||||
|           "expr": "node_sockstat_TCP_tw{job=~\"$job\"} - 0", | ||||
|           "format": "table", | ||||
|           "hide": false, | ||||
|           "instant": true, | ||||
|           "interval": "", | ||||
|           "legendFormat": "TIME_WAIT", | ||||
|           "refId": "N" | ||||
|         }, | ||||
|         { | ||||
|           "datasource": { | ||||
|             "type": "prometheus", | ||||
|             "uid": "yPhvsDP7k" | ||||
|           }, | ||||
|           "editorMode": "code", | ||||
|           "expr": "max(rate(node_network_receive_bytes_total{job=~\"$job\"}[$__rate_interval])*8) by (instance)", | ||||
|           "format": "table", | ||||
|           "hide": false, | ||||
|           "instant": true, | ||||
|           "interval": "", | ||||
|           "legendFormat": "下载带宽", | ||||
|           "refId": "J" | ||||
|         }, | ||||
|         { | ||||
|           "datasource": { | ||||
|             "type": "prometheus", | ||||
|             "uid": "yPhvsDP7k" | ||||
|           }, | ||||
|           "editorMode": "code", | ||||
|           "expr": "max(rate(node_network_transmit_bytes_total{job=~\"$job\"}[$__rate_interval])*8) by (instance)", | ||||
|           "format": "table", | ||||
|           "hide": false, | ||||
|           "instant": true, | ||||
|           "interval": "", | ||||
|           "legendFormat": "上传带宽", | ||||
|           "refId": "K" | ||||
|         } | ||||
|       ], | ||||
|       "title": "Resource Overview", | ||||
|       "transform": "table", | ||||
|       "type": "table-old" | ||||
|     } | ||||
|   ], | ||||
|   "refresh": "1m", | ||||
|   "revision": 1, | ||||
|   "schemaVersion": 38, | ||||
|   "style": "dark", | ||||
|   "tags": [ | ||||
|     "system" | ||||
|   ], | ||||
|   "templating": { | ||||
|     "list": [ | ||||
|       { | ||||
|         "current": { | ||||
|           "selected": false, | ||||
|           "text": "node", | ||||
|           "value": "node" | ||||
|         }, | ||||
|         "datasource": { | ||||
|           "type": "prometheus", | ||||
|           "uid": "yPhvsDP7k" | ||||
|         }, | ||||
|         "definition": "label_values(node_uname_info, job)", | ||||
|         "hide": 2, | ||||
|         "includeAll": false, | ||||
|         "label": "Job", | ||||
|         "multi": false, | ||||
|         "name": "job", | ||||
|         "options": [], | ||||
|         "query": { | ||||
|           "query": "label_values(node_uname_info, job)", | ||||
|           "refId": "StandardVariableQuery" | ||||
|         }, | ||||
|         "refresh": 1, | ||||
|         "regex": "", | ||||
|         "skipUrlSync": false, | ||||
|         "sort": 1, | ||||
|         "type": "query" | ||||
|       } | ||||
|     ] | ||||
|   }, | ||||
|   "time": { | ||||
|     "from": "now-24h", | ||||
|     "to": "now" | ||||
|   }, | ||||
|   "timepicker": { | ||||
|     "refresh_intervals": [ | ||||
|       "5s", | ||||
|       "10s", | ||||
|       "30s", | ||||
|       "1m", | ||||
|       "5m", | ||||
|       "15m", | ||||
|       "30m", | ||||
|       "1h", | ||||
|       "2h", | ||||
|       "1d" | ||||
|     ] | ||||
|   }, | ||||
|   "timezone": "", | ||||
|   "title": "Overview", | ||||
|   "uid": "HHYqp7T4z", | ||||
|   "version": 6, | ||||
|   "weekStart": "" | ||||
| } | ||||
							
								
								
									
										2074
									
								
								files/dashboards/plateform-overview-cf.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2074
									
								
								files/dashboards/plateform-overview-cf.json
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @@ -24,7 +24,7 @@ | ||||
|   "editable": true, | ||||
|   "fiscalYearStartMonth": 0, | ||||
|   "graphTooltip": 0, | ||||
|   "id": 5, | ||||
|   "id": 4, | ||||
|   "links": [], | ||||
|   "liveNow": false, | ||||
|   "panels": [ | ||||
| @@ -77,7 +77,7 @@ | ||||
|         }, | ||||
|         "textMode": "auto" | ||||
|       }, | ||||
|       "pluginVersion": "9.4.0-102000pre", | ||||
|       "pluginVersion": "10.1.0-124838pre", | ||||
|       "targets": [ | ||||
|         { | ||||
|           "datasource": { | ||||
| @@ -151,7 +151,7 @@ | ||||
|         }, | ||||
|         "textMode": "auto" | ||||
|       }, | ||||
|       "pluginVersion": "9.4.0-102000pre", | ||||
|       "pluginVersion": "10.1.0-124838pre", | ||||
|       "targets": [ | ||||
|         { | ||||
|           "datasource": { | ||||
| @@ -226,7 +226,7 @@ | ||||
|         }, | ||||
|         "textMode": "auto" | ||||
|       }, | ||||
|       "pluginVersion": "9.4.0-102000pre", | ||||
|       "pluginVersion": "10.1.0-124838pre", | ||||
|       "targets": [ | ||||
|         { | ||||
|           "datasource": { | ||||
| @@ -311,7 +311,7 @@ | ||||
|         }, | ||||
|         "textMode": "auto" | ||||
|       }, | ||||
|       "pluginVersion": "9.4.0-102000pre", | ||||
|       "pluginVersion": "10.1.0-124838pre", | ||||
|       "targets": [ | ||||
|         { | ||||
|           "datasource": { | ||||
| @@ -378,7 +378,7 @@ | ||||
|         }, | ||||
|         "textMode": "auto" | ||||
|       }, | ||||
|       "pluginVersion": "9.4.0-102000pre", | ||||
|       "pluginVersion": "10.1.0-124838pre", | ||||
|       "targets": [ | ||||
|         { | ||||
|           "datasource": { | ||||
| @@ -445,7 +445,7 @@ | ||||
|         }, | ||||
|         "textMode": "auto" | ||||
|       }, | ||||
|       "pluginVersion": "9.4.0-102000pre", | ||||
|       "pluginVersion": "10.1.0-124838pre", | ||||
|       "targets": [ | ||||
|         { | ||||
|           "datasource": { | ||||
| @@ -512,7 +512,7 @@ | ||||
|         }, | ||||
|         "textMode": "auto" | ||||
|       }, | ||||
|       "pluginVersion": "9.4.0-102000pre", | ||||
|       "pluginVersion": "10.1.0-124838pre", | ||||
|       "targets": [ | ||||
|         { | ||||
|           "datasource": { | ||||
| @@ -579,7 +579,7 @@ | ||||
|         }, | ||||
|         "textMode": "auto" | ||||
|       }, | ||||
|       "pluginVersion": "9.4.0-102000pre", | ||||
|       "pluginVersion": "10.1.0-124838pre", | ||||
|       "targets": [ | ||||
|         { | ||||
|           "datasource": { | ||||
| @@ -635,6 +635,7 @@ | ||||
|               "tooltip": false, | ||||
|               "viz": false | ||||
|             }, | ||||
|             "insertNulls": false, | ||||
|             "lineInterpolation": "smooth", | ||||
|             "lineWidth": 1, | ||||
|             "pointSize": 5, | ||||
| @@ -782,6 +783,7 @@ | ||||
|               "tooltip": false, | ||||
|               "viz": false | ||||
|             }, | ||||
|             "insertNulls": false, | ||||
|             "lineInterpolation": "linear", | ||||
|             "lineStyle": { | ||||
|               "fill": "solid" | ||||
| @@ -914,6 +916,7 @@ | ||||
|               "tooltip": false, | ||||
|               "viz": false | ||||
|             }, | ||||
|             "insertNulls": false, | ||||
|             "lineInterpolation": "linear", | ||||
|             "lineWidth": 1, | ||||
|             "pointSize": 5, | ||||
| @@ -1387,6 +1390,7 @@ | ||||
|               "tooltip": false, | ||||
|               "viz": false | ||||
|             }, | ||||
|             "insertNulls": false, | ||||
|             "lineInterpolation": "smooth", | ||||
|             "lineWidth": 1, | ||||
|             "pointSize": 5, | ||||
| @@ -1497,6 +1501,7 @@ | ||||
|               "tooltip": false, | ||||
|               "viz": false | ||||
|             }, | ||||
|             "insertNulls": false, | ||||
|             "lineInterpolation": "smooth", | ||||
|             "lineWidth": 1, | ||||
|             "pointSize": 5, | ||||
| @@ -1537,13 +1542,9 @@ | ||||
|       "id": 14, | ||||
|       "options": { | ||||
|         "legend": { | ||||
|           "calcs": [ | ||||
|             "lastNotNull", | ||||
|             "max", | ||||
|             "mean" | ||||
|           ], | ||||
|           "displayMode": "table", | ||||
|           "placement": "right", | ||||
|           "calcs": [], | ||||
|           "displayMode": "list", | ||||
|           "placement": "bottom", | ||||
|           "showLegend": true, | ||||
|           "sortBy": "Mean", | ||||
|           "sortDesc": true | ||||
| @@ -1595,6 +1596,7 @@ | ||||
|               "tooltip": false, | ||||
|               "viz": false | ||||
|             }, | ||||
|             "insertNulls": false, | ||||
|             "lineInterpolation": "smooth", | ||||
|             "lineWidth": 1, | ||||
|             "pointSize": 5, | ||||
| @@ -1683,7 +1685,7 @@ | ||||
|             "axisLabel": "", | ||||
|             "axisPlacement": "auto", | ||||
|             "barAlignment": 0, | ||||
|             "drawStyle": "line", | ||||
|             "drawStyle": "bars", | ||||
|             "fillOpacity": 30, | ||||
|             "gradientMode": "hue", | ||||
|             "hideFrom": { | ||||
| @@ -1691,6 +1693,7 @@ | ||||
|               "tooltip": false, | ||||
|               "viz": false | ||||
|             }, | ||||
|             "insertNulls": false, | ||||
|             "lineInterpolation": "smooth", | ||||
|             "lineWidth": 1, | ||||
|             "pointSize": 5, | ||||
| @@ -1735,18 +1738,15 @@ | ||||
|       "id": 28, | ||||
|       "options": { | ||||
|         "legend": { | ||||
|           "calcs": [ | ||||
|             "mean", | ||||
|             "lastNotNull", | ||||
|             "max", | ||||
|             "min" | ||||
|           ], | ||||
|           "displayMode": "table", | ||||
|           "placement": "right", | ||||
|           "showLegend": true | ||||
|           "calcs": [], | ||||
|           "displayMode": "list", | ||||
|           "placement": "bottom", | ||||
|           "showLegend": false, | ||||
|           "sortBy": "Mean", | ||||
|           "sortDesc": true | ||||
|         }, | ||||
|         "tooltip": { | ||||
|           "mode": "multi", | ||||
|           "mode": "single", | ||||
|           "sort": "none" | ||||
|         } | ||||
|       }, | ||||
| @@ -1758,28 +1758,15 @@ | ||||
|             "uid": "yPhvsDP7k" | ||||
|           }, | ||||
|           "editorMode": "code", | ||||
|           "expr": "sum(rate(cloudflare_zone_requests_total{}[$__interval]))", | ||||
|           "expr": "sum by (socket_path) (rate(php_fpm_slow_requests{instance=~\"$production\"} [$__rate_interval]))", | ||||
|           "interval": "", | ||||
|           "intervalFactor": 10, | ||||
|           "legendFormat": "total", | ||||
|           "legendFormat": "{{ socket_path }} ", | ||||
|           "range": true, | ||||
|           "refId": "A" | ||||
|         }, | ||||
|         { | ||||
|           "datasource": { | ||||
|             "type": "prometheus", | ||||
|             "uid": "yPhvsDP7k" | ||||
|           }, | ||||
|           "editorMode": "code", | ||||
|           "expr": "sum(rate(cloudflare_zone_requests_cached{}[$__interval]))", | ||||
|           "interval": "", | ||||
|           "intervalFactor": 10, | ||||
|           "legendFormat": "cached", | ||||
|           "range": true, | ||||
|           "refId": "B" | ||||
|         } | ||||
|       ], | ||||
|       "title": "Cloudflare Requests / second", | ||||
|       "title": "PHP-FPM Slow Requests Rate", | ||||
|       "transparent": true, | ||||
|       "type": "timeseries" | ||||
|     }, | ||||
| @@ -1808,6 +1795,7 @@ | ||||
|               "tooltip": false, | ||||
|               "viz": false | ||||
|             }, | ||||
|             "insertNulls": false, | ||||
|             "lineInterpolation": "smooth", | ||||
|             "lineWidth": 1, | ||||
|             "pointSize": 5, | ||||
| @@ -1920,14 +1908,12 @@ | ||||
|         "current": { | ||||
|           "selected": true, | ||||
|           "text": [ | ||||
|             "emzhyp03", | ||||
|             "emzhyp04", | ||||
|             "emzhyp05" | ||||
|             "cprprdcache1", | ||||
|             "cprprdcache2" | ||||
|           ], | ||||
|           "value": [ | ||||
|             "emzhyp03", | ||||
|             "emzhyp04", | ||||
|             "emzhyp05" | ||||
|             "cprprdcache1", | ||||
|             "cprprdcache2" | ||||
|           ] | ||||
|         }, | ||||
|         "datasource": { | ||||
| @@ -1955,14 +1941,10 @@ | ||||
|         "current": { | ||||
|           "selected": true, | ||||
|           "text": [ | ||||
|             "/VMs", | ||||
|             "/VMs_SSD", | ||||
|             "/home", | ||||
|             "/var/log" | ||||
|           ], | ||||
|           "value": [ | ||||
|             "/VMs", | ||||
|             "/VMs_SSD", | ||||
|             "/home", | ||||
|             "/var/log" | ||||
|           ] | ||||
| @@ -2069,6 +2051,6 @@ | ||||
|   "timezone": "", | ||||
|   "title": "Plateform Overview", | ||||
|   "uid": "pyphZNNVz", | ||||
|   "version": 18, | ||||
|   "version": 1, | ||||
|   "weekStart": "" | ||||
| } | ||||
|   | ||||
| @@ -162,7 +162,21 @@ | ||||
|     owner: '1000' | ||||
|     group: '1000' | ||||
|     mode: '0750' | ||||
|   when: prometheus_node_exporter_targets is defined | ||||
|   when: > | ||||
|     prometheus_node_exporter_targets is defined and | ||||
|     prometheus_cloudflare_exporter_targets is not defined | ||||
|   notify: "grafana-prometheus-restart" | ||||
|  | ||||
| - name: "grafana-prometheus | import grafana overview-cf dashboard" | ||||
|   copy: | ||||
|     src: dashboards/overview-cf.json | ||||
|     dest: /opt/docker-compose/grafana-prometheus/dashboards/overview.json | ||||
|     owner: '1000' | ||||
|     group: '1000' | ||||
|     mode: '0750' | ||||
|   when: > | ||||
|     prometheus_node_exporter_targets is defined and | ||||
|     prometheus_cloudflare_exporter_targets is defined | ||||
|   notify: "grafana-prometheus-restart" | ||||
|  | ||||
| - name: "grafana-prometheus | import grafana plateform-overview dashboard" | ||||
| @@ -172,7 +186,21 @@ | ||||
|     owner: '1000' | ||||
|     group: '1000' | ||||
|     mode: '0750' | ||||
|   when: prometheus_node_exporter_targets is defined | ||||
|   when: > | ||||
|     prometheus_node_exporter_targets is defined and | ||||
|     prometheus_cloudflare_exporter_targets is not defined | ||||
|   notify: "grafana-prometheus-restart" | ||||
|  | ||||
| - name: "grafana-prometheus | import grafana plateform-overview-cf dashboard" | ||||
|   copy: | ||||
|     src: dashboards/plateform-overview-cf.json | ||||
|     dest: /opt/docker-compose/grafana-prometheus/dashboards/plateform-overview.json | ||||
|     owner: '1000' | ||||
|     group: '1000' | ||||
|     mode: '0750' | ||||
|   when: > | ||||
|     prometheus_node_exporter_targets is defined and | ||||
|     prometheus_cloudflare_exporter_targets is defined | ||||
|   notify: "grafana-prometheus-restart" | ||||
|  | ||||
| - name: "grafana-prometheus | import grafana phpfpm dashboard" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user