1 Zabbix+Grafana案例概述
由于最近发生了几次服务器系统盘满,导致业务受影响的事件,打算研究一下运维管理系统,把各种服务器整体做个监控,安装过程中遇到不少问题,参考了很多文档,最终安装成功,所以写篇文章记录一下我的安装过程。
我更倾向于做一些案例类文章,从头到尾跟着操作就能出效果,同时弄清楚整个过程,放到生产环境中使用也比较放心,如果大家在操作过程中发现有地方写的不清楚,请私信我,我会及时完善。
文章打算分三个阶段,本篇是第一阶段:
- 第一阶段:Zabbix+Grafana安装、对接,监控Windows和Linux。
- 第二阶段:本篇文章,Grafana面板分享、创建面板、数据展现。
- 第三阶段:Zabbix实现告警到邮件、钉钉和微信。
2 导入Grafana面板方法
分享一下我自己制作的面板,后续将更新自定义面板内容
-
点击”仪表板“—“新建”—“导入”
-
复制下面的json代码,粘贴后,点击“加载”即可
3 面板json分享
效果展示
{
"__inputs": [
{
"name": "DS_ZABBIX",
"label": "zabbix",
"description": "",
"type": "datasource",
"pluginId": "alexanderzobnin-zabbix-datasource",
"pluginName": "Zabbix"
}
],
"__elements": {},
"__requires": [
{
"type": "datasource",
"id": "alexanderzobnin-zabbix-datasource",
"name": "Zabbix",
"version": "1.0.0"
},
{
"type": "panel",
"id": "alexanderzobnin-zabbix-triggers-panel",
"name": "Zabbix Problems",
"version": ""
},
{
"type": "panel",
"id": "gauge",
"name": "Gauge",
"version": ""
},
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "10.4.0"
},
{
"type": "panel",
"id": "stat",
"name": "Stat",
"version": ""
},
{
"type": "panel",
"id": "status-history",
"name": "Status history",
"version": ""
},
{
"type": "panel",
"id": "table",
"name": "Table",
"version": ""
},
{
"type": "panel",
"id": "timeseries",
"name": "Time series",
"version": ""
}
],
"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": 0,
"id": null,
"links": [
{
"asDropdown": false,
"icon": "external link",
"includeVars": false,
"keepTime": false,
"tags": [],
"targetBlank": false,
"title": "New link",
"tooltip": "",
"type": "dashboards",
"url": ""
}
],
"panels": [
{
"datasource": {
"type": "alexanderzobnin-zabbix-datasource",
"uid": "${DS_ZABBIX}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "#6ED0E0",
"value": 50
},
{
"color": "#EAB839",
"value": 80
},
{
"color": "red",
"value": 90
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 6,
"w": 4,
"x": 0,
"y": 0
},
"id": 3,
"options": {
"minVizHeight": 75,
"minVizWidth": 75,
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showThresholdLabels": false,
"showThresholdMarkers": true,
"sizing": "auto"
},
"pluginVersion": "10.4.0",
"targets": [
{
"application": {
"filter": ""
},
"countTriggersBy": "",
"datasource": {
"type": "alexanderzobnin-zabbix-datasource",
"uid": "${DS_ZABBIX}"
},
"evaltype": "0",
"functions": [],
"group": {
"filter": "$groups"
},
"host": {
"filter": "$hosts"
},
"item": {
"filter": "/.*CPU utilization/"
},
"itemTag": {
"filter": ""
},
"macro": {
"filter": ""
},
"options": {
"count": false,
"disableDataAlignment": false,
"showDisabledItems": false,
"skipEmptyValues": false,
"useTrends": "default",
"useZabbixValueMapping": false
},
"proxy": {
"filter": ""
},
"queryType": "0",
"refId": "A",
"resultFormat": "time_series",
"schema": 12,
"table": {
"skipEmptyValues": false
},
"tags": {
"filter": ""
},
"textFilter": "",
"trigger": {
"filter": ""
}
}
],
"title": "CPU使用率",
"type": "gauge"
},
{
"datasource": {
"type": "alexanderzobnin-zabbix-datasource",
"uid": "${DS_ZABBIX}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "#6ED0E0",
"value": 50
},
{
"color": "#EAB839",
"value": 80
},
{
"color": "red",
"value": 90
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 6,
"w": 4,
"x": 4,
"y": 0
},
"id": 5,
"options": {
"minVizHeight": 75,
"minVizWidth": 75,
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showThresholdLabels": false,
"showThresholdMarkers": true,
"sizing": "auto"
},
"pluginVersion": "10.4.0",
"targets": [
{
"application": {
"filter": ""
},
"countTriggersBy": "",
"datasource": {
"type": "alexanderzobnin-zabbix-datasource",
"uid": "${DS_ZABBIX}"
},
"evaltype": "0",
"functions": [],
"group": {
"filter": "$groups"
},
"host": {
"filter": "$hosts"
},
"item": {
"filter": "/.*Memory utilization/"
},
"itemTag": {
"filter": ""
},
"macro": {
"filter": ""
},
"options": {
"count": false,
"disableDataAlignment": false,
"showDisabledItems": false,
"skipEmptyValues": false,
"useTrends": "default",
"useZabbixValueMapping": false
},
"proxy": {
"filter": ""
},
"queryType": "0",
"refId": "A",
"resultFormat": "time_series",
"schema": 12,
"table": {
"skipEmptyValues": false
},
"tags": {
"filter": ""
},
"textFilter": "",
"trigger": {
"filter": ""
}
}
],
"title": "内存使用率",
"type": "gauge"
},
{
"datasource": {
"type": "alexanderzobnin-zabbix-datasource",
"uid": "${DS_ZABBIX}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "#6ED0E0",
"value": 50
},
{
"color": "#EAB839",
"value": 80
},
{
"color": "red",
"value": 90
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 6,
"w": 4,
"x": 8,
"y": 0
},
"id": 6,
"options": {
"minVizHeight": 75,
"minVizWidth": 75,
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showThresholdLabels": false,
"showThresholdMarkers": true,
"sizing": "auto"
},
"pluginVersion": "10.4.0",
"targets": [
{
"application": {
"filter": ""
},
"countTriggersBy": "",
"datasource": {
"type": "alexanderzobnin-zabbix-datasource",
"uid": "${DS_ZABBIX}"
},
"evaltype": "0",
"functions": [],
"group": {
"filter": "$groups"
},
"host": {
"filter": "$hosts"
},
"item": {
"filter": "/(\\/: Space utilization|\\(C:\\): Space utilization)/"
},
"itemTag": {
"filter": ""
},
"macro": {
"filter": ""
},
"options": {
"count": false,
"disableDataAlignment": false,
"showDisabledItems": false,
"skipEmptyValues": false,
"useTrends": "default",
"useZabbixValueMapping": false
},
"proxy": {
"filter": ""
},
"queryType": "0",
"refId": "A",
"resultFormat": "time_series",
"schema": 12,
"table": {
"skipEmptyValues": false
},
"tags": {
"filter": ""
},
"textFilter": "",
"trigger": {
"filter": ""
}
}
],
"title": "系统分区使用率",
"type": "gauge"
},
{
"datasource": {
"type": "alexanderzobnin-zabbix-datasource",
"uid": "${DS_ZABBIX}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "percentage",
"steps": [
{
"color": "red",
"value": null
},
{
"color": "semi-dark-yellow",
"value": 10
},
{
"color": "#4ec4be",
"value": 20
},
{
"color": "green",
"value": 50
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 6,
"w": 4,
"x": 12,
"y": 0
},
"id": 12,
"options": {
"minVizHeight": 75,
"minVizWidth": 75,
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showThresholdLabels": false,
"showThresholdMarkers": true,
"sizing": "auto"
},
"pluginVersion": "10.4.0",
"targets": [
{
"application": {
"filter": ""
},
"countTriggersBy": "",
"datasource": {
"type": "alexanderzobnin-zabbix-datasource",
"uid": "${DS_ZABBIX}"
},
"evaltype": "0",
"functions": [],
"group": {
"filter": "$groups"
},
"host": {
"filter": "$hosts"
},
"item": {
"filter": "/.*Free swap space in %/"
},
"itemTag": {
"filter": ""
},
"macro": {
"filter": ""
},
"options": {
"count": false,
"disableDataAlignment": false,
"showDisabledItems": false,
"skipEmptyValues": false,
"useTrends": "default",
"useZabbixValueMapping": false
},
"proxy": {
"filter": ""
},
"queryType": "0",
"refId": "A",
"resultFormat": "time_series",
"schema": 12,
"table": {
"skipEmptyValues": false
},
"tags": {
"filter": ""
},
"textFilter": "",
"trigger": {
"filter": ""
}
}
],
"title": "SWAP空闲率",
"type": "gauge"
},
{
"datasource": {
"type": "alexanderzobnin-zabbix-datasource",
"uid": "${DS_ZABBIX}"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"fieldMinMax": false,
"mappings": [
{
"options": {
"0": {
"color": "red",
"index": 1,
"text": "DOWN"
},
"1": {
"color": "green",
"index": 0,
"text": "UP"
},
"2": {
"color": "yellow",
"index": 2,
"text": "11"
}
},
"type": "value"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 6,
"w": 4,
"x": 16,
"y": 0
},
"id": 11,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.4.0",
"targets": [
{
"application": {
"filter": ""
},
"countTriggersBy": "",
"datasource": {
"type": "alexanderzobnin-zabbix-datasource",
"uid": "${DS_ZABBIX}"
},
"evaltype": "0",
"functions": [],
"group": {
"filter": "$groups"
},
"host": {
"filter": "$hosts"
},
"item": {
"filter": "/.*Zabbix agent ping/"
},
"itemTag": {
"filter": ""
},
"macro": {
"filter": ""
},
"options": {
"count": false,
"disableDataAlignment": false,
"showDisabledItems": false,
"skipEmptyValues": false,
"useTrends": "default",
"useZabbixValueMapping": false
},
"proxy": {
"filter": ""
},
"queryType": "0",
"refId": "A",
"resultFormat": "time_series",
"schema": 12,
"table": {
"skipEmptyValues": false
},
"tags": {
"filter": ""
},
"textFilter": "",
"trigger": {
"filter": ""
}
}
],
"title": "系统可达性",
"type": "stat"
},
{
"datasource": {
"type": "alexanderzobnin-zabbix-datasource",
"uid": "${DS_ZABBIX}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 6,
"w": 4,
"x": 20,
"y": 0
},
"id": 10,
"options": {
"colorMode": "value",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.4.0",
"targets": [
{
"application": {
"filter": ""
},
"countTriggersBy": "",
"datasource": {
"type": "alexanderzobnin-zabbix-datasource",
"uid": "${DS_ZABBIX}"
},
"evaltype": "0",
"functions": [],
"group": {
"filter": "$groups"
},
"host": {
"filter": "$hosts"
},
"item": {
"filter": "/.*Uptime|.*System uptime/"
},
"itemTag": {
"filter": ""
},
"macro": {
"filter": ""
},
"options": {
"count": false,
"disableDataAlignment": false,
"showDisabledItems": false,
"skipEmptyValues": false,
"useTrends": "default",
"useZabbixValueMapping": false
},
"proxy": {
"filter": ""
},
"queryType": "0",
"refId": "A",
"resultFormat": "time_series",
"schema": 12,
"table": {
"skipEmptyValues": false
},
"tags": {
"filter": ""
},
"textFilter": "",
"trigger": {
"filter": ""
}
}
],
"title": "系统运行时长",
"type": "stat"
},
{
"datasource": {
"type": "alexanderzobnin-zabbix-datasource",
"uid": "${DS_ZABBIX}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 20,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "smooth",
"lineWidth": 2,
"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": 7,
"w": 8,
"x": 0,
"y": 6
},
"id": 8,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"application": {
"filter": ""
},
"countTriggersBy": "",
"datasource": {
"type": "alexanderzobnin-zabbix-datasource",
"uid": "${DS_ZABBIX}"
},
"evaltype": "0",
"functions": [],
"group": {
"filter": "$groups"
},
"host": {
"filter": "$hosts"
},
"item": {
"filter": "/.*CPU utilization/"
},
"itemTag": {
"filter": ""
},
"macro": {
"filter": ""
},
"options": {
"count": false,
"disableDataAlignment": false,
"showDisabledItems": false,
"skipEmptyValues": false,
"useTrends": "default",
"useZabbixValueMapping": false
},
"proxy": {
"filter": ""
},
"queryType": "0",
"refId": "A",
"resultFormat": "time_series",
"schema": 12,
"table": {
"skipEmptyValues": false
},
"tags": {
"filter": ""
},
"textFilter": "",
"trigger": {
"filter": ""
}
}
],
"title": "CPU使用趋势",
"type": "timeseries"
},
{
"datasource": {
"type": "alexanderzobnin-zabbix-datasource",
"uid": "${DS_ZABBIX}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 20,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "smooth",
"lineWidth": 2,
"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": 7,
"w": 8,
"x": 8,
"y": 6
},
"id": 9,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"application": {
"filter": ""
},
"countTriggersBy": "",
"datasource": {
"type": "alexanderzobnin-zabbix-datasource",
"uid": "${DS_ZABBIX}"
},
"evaltype": "0",
"functions": [],
"group": {
"filter": "$groups"
},
"host": {
"filter": "$hosts"
},
"item": {
"filter": "/.*Memory utilization/"
},
"itemTag": {
"filter": ""
},
"macro": {
"filter": ""
},
"options": {
"count": false,
"disableDataAlignment": false,
"showDisabledItems": false,
"skipEmptyValues": false,
"useTrends": "default",
"useZabbixValueMapping": false
},
"proxy": {
"filter": ""
},
"queryType": "0",
"refId": "A",
"resultFormat": "time_series",
"schema": 12,
"table": {
"skipEmptyValues": false
},
"tags": {
"filter": ""
},
"textFilter": "",
"trigger": {
"filter": ""
}
}
],
"title": "内存使用趋势",
"type": "timeseries"
},
{
"datasource": {
"type": "alexanderzobnin-zabbix-datasource",
"uid": "${DS_ZABBIX}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 20,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "smooth",
"lineWidth": 2,
"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": 7,
"w": 8,
"x": 16,
"y": 6
},
"id": 17,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"application": {
"filter": ""
},
"countTriggersBy": "",
"datasource": {
"type": "alexanderzobnin-zabbix-datasource",
"uid": "${DS_ZABBIX}"
},
"evaltype": "0",
"functions": [],
"group": {
"filter": "$groups"
},
"host": {
"filter": "$hosts"
},
"item": {
"filter": "/(\\/: Space utilization|\\(C:\\): Space utilization)/"
},
"itemTag": {
"filter": ""
},
"macro": {
"filter": ""
},
"options": {
"count": false,
"disableDataAlignment": false,
"showDisabledItems": false,
"skipEmptyValues": false,
"useTrends": "default",
"useZabbixValueMapping": false
},
"proxy": {
"filter": ""
},
"queryType": "0",
"refId": "A",
"resultFormat": "time_series",
"schema": 12,
"table": {
"skipEmptyValues": false
},
"tags": {
"filter": ""
},
"textFilter": "",
"trigger": {
"filter": ""
}
}
],
"title": "系统分区使用趋势",
"type": "timeseries"
},
{
"datasource": {
"type": "alexanderzobnin-zabbix-datasource",
"uid": "${DS_ZABBIX}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 20,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "smooth",
"lineWidth": 2,
"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": 7,
"w": 12,
"x": 0,
"y": 13
},
"id": 1,
"options": {
"legend": {
"calcs": [
"last",
"mean",
"max"
],
"displayMode": "table",
"placement": "bottom",
"showLegend": true,
"sortBy": "Last",
"sortDesc": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"application": {
"filter": ""
},
"countTriggersBy": "",
"datasource": {
"type": "alexanderzobnin-zabbix-datasource",
"uid": "${DS_ZABBIX}"
},
"evaltype": "0",
"functions": [],
"group": {
"filter": "$groups"
},
"host": {
"filter": "$hosts"
},
"item": {
"filter": "/Interface [A-Za-z0-9\\u4e00-\\u9fa5\\w\\W\\s]+: Bits received/"
},
"itemTag": {
"filter": ""
},
"macro": {
"filter": ""
},
"options": {
"count": false,
"disableDataAlignment": false,
"showDisabledItems": false,
"skipEmptyValues": false,
"useTrends": "default",
"useZabbixValueMapping": false
},
"proxy": {
"filter": ""
},
"queryType": "0",
"refId": "A",
"resultFormat": "time_series",
"schema": 12,
"table": {
"skipEmptyValues": false
},
"tags": {
"filter": ""
},
"textFilter": "",
"trigger": {
"filter": ""
}
},
{
"application": {
"filter": ""
},
"countTriggersBy": "",
"datasource": {
"type": "alexanderzobnin-zabbix-datasource",
"uid": "${DS_ZABBIX}"
},
"evaltype": "0",
"functions": [],
"group": {
"filter": "$groups"
},
"hide": false,
"host": {
"filter": "$hosts"
},
"item": {
"filter": "/Interface [A-Za-z0-9\\u4e00-\\u9fa5\\w\\W\\s]+: Bits sent/"
},
"itemTag": {
"filter": ""
},
"macro": {
"filter": ""
},
"options": {
"count": false,
"disableDataAlignment": false,
"showDisabledItems": false,
"skipEmptyValues": false,
"useTrends": "default",
"useZabbixValueMapping": false
},
"proxy": {
"filter": ""
},
"queryType": "0",
"refId": "B",
"resultFormat": "time_series",
"schema": 12,
"table": {
"skipEmptyValues": false
},
"tags": {
"filter": ""
},
"textFilter": "",
"trigger": {
"filter": ""
}
}
],
"title": "网络流量",
"type": "timeseries"
},
{
"datasource": {
"type": "alexanderzobnin-zabbix-datasource",
"uid": "${DS_ZABBIX}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 20,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "smooth",
"lineWidth": 2,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"fieldMinMax": false,
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "ms"
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 12,
"x": 12,
"y": 13
},
"id": 7,
"options": {
"legend": {
"calcs": [
"last",
"mean",
"max"
],
"displayMode": "table",
"placement": "bottom",
"showLegend": true,
"sortBy": "Last",
"sortDesc": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"application": {
"filter": ""
},
"countTriggersBy": "",
"datasource": {
"type": "alexanderzobnin-zabbix-datasource",
"uid": "${DS_ZABBIX}"
},
"evaltype": "0",
"functions": [],
"group": {
"filter": "$groups"
},
"host": {
"filter": "$hosts"
},
"item": {
"filter": "/[A-Za-z0-9\\s\\w\\W]+Disk write request avg waiting time \\(r_await\\)|[A-Za-z0-9\\s\\w\\W]+Disk write request avg waiting time/"
},
"itemTag": {
"filter": ""
},
"macro": {
"filter": ""
},
"options": {
"count": false,
"disableDataAlignment": false,
"showDisabledItems": false,
"skipEmptyValues": false,
"useTrends": "default",
"useZabbixValueMapping": false
},
"proxy": {
"filter": ""
},
"queryType": "0",
"refId": "A",
"resultFormat": "time_series",
"schema": 12,
"table": {
"skipEmptyValues": false
},
"tags": {
"filter": ""
},
"textFilter": "",
"trigger": {
"filter": ""
}
},
{
"application": {
"filter": ""
},
"countTriggersBy": "",
"datasource": {
"type": "alexanderzobnin-zabbix-datasource",
"uid": "${DS_ZABBIX}"
},
"evaltype": "0",
"functions": [],
"group": {
"filter": "$groups"
},
"hide": false,
"host": {
"filter": "$hosts"
},
"item": {
"filter": "/[A-Za-z0-9\\s\\w\\W]+Disk read request avg waiting time \\(r_await\\)|[A-Za-z0-9\\s\\w\\W]+Disk read request avg waiting time/"
},
"itemTag": {
"filter": ""
},
"macro": {
"filter": ""
},
"options": {
"count": false,
"disableDataAlignment": false,
"showDisabledItems": false,
"skipEmptyValues": false,
"useTrends": "default",
"useZabbixValueMapping": false
},
"proxy": {
"filter": ""
},
"queryType": "0",
"refId": "B",
"resultFormat": "time_series",
"schema": 12,
"table": {
"skipEmptyValues": false
},
"tags": {
"filter": ""
},
"textFilter": "",
"trigger": {
"filter": ""
}
}
],
"title": "磁盘IO延迟",
"type": "timeseries"
},
{
"datasource": {
"type": "alexanderzobnin-zabbix-datasource",
"uid": "${DS_ZABBIX}"
},
"gridPos": {
"h": 7,
"w": 17,
"x": 0,
"y": 20
},
"id": 4,
"options": {
"ackEventColor": "rgb(56, 219, 156)",
"ackField": true,
"ageField": false,
"allowDangerousHTML": false,
"customLastChangeFormat": false,
"descriptionAtNewLine": false,
"descriptionField": true,
"fontSize": "100%",
"highlightBackground": false,
"highlightNewEvents": false,
"highlightNewerThan": "1h",
"hostField": true,
"hostGroups": false,
"hostProxy": false,
"hostTechNameField": false,
"lastChangeFormat": "",
"layout": "table",
"markAckEvents": false,
"okEventColor": "rgb(56, 189, 113)",
"opdataField": false,
"pageSize": 10,
"problemTimeline": true,
"resizedColumns": [
{
"id": "host",
"value": 119.328125
},
{
"id": "severity",
"value": 100
},
{
"id": "value",
"value": 95
},
{
"id": "lastchange",
"value": 171
},
{
"id": "ack",
"value": 62
},
{
"id": "name",
"value": 696.671875
}
],
"severityField": true,
"showTags": false,
"sortProblems": "lastchange",
"statusField": true,
"statusIcon": false,
"triggerSeverity": [
{
"color": "rgb(108, 108, 108)",
"priority": 0,
"severity": "Not classified",
"show": true
},
{
"color": "rgb(120, 158, 183)",
"priority": 1,
"severity": "Information",
"show": true
},
{
"color": "rgb(175, 180, 36)",
"priority": 2,
"severity": "Warning",
"show": true
},
{
"color": "rgb(255, 137, 30)",
"priority": 3,
"severity": "Average",
"show": true
},
{
"color": "rgb(255, 101, 72)",
"priority": 4,
"severity": "High",
"show": true
},
{
"color": "rgb(215, 0, 0)",
"priority": 5,
"severity": "Disaster",
"show": true
}
]
},
"pluginVersion": "10.4.0",
"targets": [
{
"application": {
"filter": ""
},
"countTriggersBy": "",
"datasource": {
"type": "alexanderzobnin-zabbix-datasource",
"uid": "${DS_ZABBIX}"
},
"evaltype": "0",
"functions": [],
"group": {
"filter": "$groups"
},
"host": {
"filter": "$hosts"
},
"item": {
"filter": ""
},
"itemTag": {
"filter": ""
},
"macro": {
"filter": "/.*/"
},
"options": {
"acknowledged": 2,
"count": false,
"disableDataAlignment": false,
"hostProxy": false,
"hostsInMaintenance": false,
"limit": 1001,
"minSeverity": 0,
"showDisabledItems": false,
"skipEmptyValues": false,
"sortProblems": "default",
"useTimeRange": false,
"useTrends": "default",
"useZabbixValueMapping": false
},
"proxy": {
"filter": ""
},
"queryType": "5",
"refId": "A",
"resultFormat": "time_series",
"schema": 12,
"showProblems": "problems",
"table": {
"skipEmptyValues": false
},
"tags": {
"filter": ""
},
"textFilter": "",
"trigger": {
"filter": ""
}
}
],
"title": "告警信息(当前主机)",
"type": "alexanderzobnin-zabbix-triggers-panel"
},
{
"datasource": {
"type": "alexanderzobnin-zabbix-datasource",
"uid": "${DS_ZABBIX}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "auto",
"cellOptions": {
"type": "auto"
},
"filterable": false,
"inspect": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
}
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "Time"
},
"properties": [
{
"id": "custom.width",
"value": 203
}
]
}
]
},
"gridPos": {
"h": 7,
"w": 7,
"x": 17,
"y": 20
},
"id": 13,
"options": {
"cellHeight": "sm",
"footer": {
"countRows": false,
"fields": "",
"reducer": [
"sum"
],
"show": false
},
"showHeader": true,
"sortBy": []
},
"pluginVersion": "10.4.0",
"targets": [
{
"application": {
"filter": ""
},
"countTriggersBy": "",
"datasource": {
"type": "alexanderzobnin-zabbix-datasource",
"uid": "${DS_ZABBIX}"
},
"evaltype": "0",
"functions": [],
"group": {
"filter": "$groups"
},
"host": {
"filter": "$hosts"
},
"itServiceFilter": "$groups",
"item": {
"filter": "/.*Host name of Zabbix agent running/"
},
"itemTag": {
"filter": ""
},
"itemids": "",
"macro": {
"filter": ""
},
"options": {
"acknowledged": 2,
"count": false,
"disableDataAlignment": false,
"hostProxy": false,
"hostsInMaintenance": false,
"limit": 1001,
"minSeverity": 0,
"showDisabledItems": false,
"skipEmptyValues": false,
"sortProblems": "default",
"useTimeRange": false,
"useTrends": "default",
"useZabbixValueMapping": false
},
"proxy": {
"filter": ""
},
"queryType": "2",
"refId": "A",
"resultFormat": "time_series",
"schema": 12,
"showProblems": "problems",
"slaFilter": "",
"slaInterval": "auto",
"slaProperty": "uptime",
"table": {
"skipEmptyValues": false
},
"tags": {
"filter": ""
},
"textFilter": "",
"trigger": {
"filter": ""
},
"useCaptureGroups": false
}
],
"title": "系统信息",
"type": "table"
},
{
"datasource": {
"type": "alexanderzobnin-zabbix-datasource",
"uid": "${DS_ZABBIX}"
},
"gridPos": {
"h": 9,
"w": 24,
"x": 0,
"y": 27
},
"id": 16,
"options": {
"ackEventColor": "rgb(56, 219, 156)",
"ackField": true,
"ageField": false,
"allowDangerousHTML": false,
"customLastChangeFormat": false,
"descriptionAtNewLine": false,
"descriptionField": true,
"fontSize": "100%",
"highlightBackground": false,
"highlightNewEvents": false,
"highlightNewerThan": "1h",
"hostField": true,
"hostGroups": false,
"hostProxy": false,
"hostTechNameField": false,
"lastChangeFormat": "",
"layout": "table",
"markAckEvents": false,
"okEventColor": "rgb(56, 189, 113)",
"opdataField": false,
"pageSize": 10,
"problemTimeline": true,
"resizedColumns": [
{
"id": "host",
"value": 119.328125
},
{
"id": "severity",
"value": 100
},
{
"id": "value",
"value": 95
},
{
"id": "lastchange",
"value": 171
},
{
"id": "ack",
"value": 62
},
{
"id": "name",
"value": 696.671875
}
],
"severityField": true,
"showTags": false,
"sortProblems": "lastchange",
"statusField": true,
"statusIcon": false,
"triggerSeverity": [
{
"color": "rgb(108, 108, 108)",
"priority": 0,
"severity": "Not classified",
"show": true
},
{
"color": "rgb(120, 158, 183)",
"priority": 1,
"severity": "Information",
"show": true
},
{
"color": "rgb(175, 180, 36)",
"priority": 2,
"severity": "Warning",
"show": true
},
{
"color": "rgb(255, 137, 30)",
"priority": 3,
"severity": "Average",
"show": true
},
{
"color": "rgb(255, 101, 72)",
"priority": 4,
"severity": "High",
"show": true
},
{
"color": "rgb(215, 0, 0)",
"priority": 5,
"severity": "Disaster",
"show": true
}
]
},
"pluginVersion": "10.4.0",
"targets": [
{
"application": {
"filter": ""
},
"countTriggersBy": "",
"datasource": {
"type": "alexanderzobnin-zabbix-datasource",
"uid": "${DS_ZABBIX}"
},
"evaltype": "0",
"functions": [],
"group": {
"filter": ""
},
"host": {
"filter": ""
},
"item": {
"filter": ""
},
"itemTag": {
"filter": ""
},
"macro": {
"filter": "/.*/"
},
"options": {
"acknowledged": 2,
"count": false,
"disableDataAlignment": false,
"hostProxy": false,
"hostsInMaintenance": false,
"limit": 1001,
"minSeverity": 0,
"showDisabledItems": false,
"skipEmptyValues": false,
"sortProblems": "default",
"useTimeRange": false,
"useTrends": "default",
"useZabbixValueMapping": false
},
"proxy": {
"filter": ""
},
"queryType": "5",
"refId": "A",
"resultFormat": "time_series",
"schema": 12,
"showProblems": "problems",
"table": {
"skipEmptyValues": false
},
"tags": {
"filter": ""
},
"textFilter": "",
"trigger": {
"filter": ""
}
}
],
"title": "告警信息(全部主机)",
"type": "alexanderzobnin-zabbix-triggers-panel"
},
{
"datasource": {
"type": "alexanderzobnin-zabbix-datasource",
"uid": "${DS_ZABBIX}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"fillOpacity": 70,
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineWidth": 1
},
"mappings": [
{
"options": {
"0": {
"color": "red",
"index": 0,
"text": "不可用"
}
},
"type": "value"
},
{
"options": {
"from": 1,
"result": {
"color": "green",
"index": 1,
"text": "可用"
},
"to": 10000
},
"type": "range"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 36
},
"id": 14,
"options": {
"colWidth": 0.9,
"legend": {
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"rowHeight": 0.9,
"showValue": "never",
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "10.4.0",
"targets": [
{
"application": {
"filter": ""
},
"countTriggersBy": "",
"datasource": {
"type": "alexanderzobnin-zabbix-datasource",
"uid": "${DS_ZABBIX}"
},
"evaltype": "0",
"functions": [],
"group": {
"filter": "$groups"
},
"host": {
"filter": "$hosts"
},
"item": {
"filter": "/^(tcp|udp)[a-zA-Z0-9]+$/"
},
"itemTag": {
"filter": ""
},
"macro": {
"filter": ""
},
"options": {
"count": false,
"disableDataAlignment": false,
"showDisabledItems": false,
"skipEmptyValues": false,
"useTrends": "default",
"useZabbixValueMapping": false
},
"proxy": {
"filter": ""
},
"queryType": "0",
"refId": "A",
"resultFormat": "time_series",
"schema": 12,
"table": {
"skipEmptyValues": false
},
"tags": {
"filter": ""
},
"textFilter": "",
"trigger": {
"filter": ""
}
}
],
"title": "端口状态(自定义)",
"type": "status-history"
},
{
"datasource": {
"type": "alexanderzobnin-zabbix-datasource",
"uid": "${DS_ZABBIX}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"fillOpacity": 70,
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineWidth": 1
},
"mappings": [
{
"options": {
"0": {
"color": "red",
"index": 0,
"text": "不可用"
}
},
"type": "value"
},
{
"options": {
"from": 1,
"result": {
"color": "green",
"index": 1,
"text": "可用"
},
"to": 10000
},
"type": "range"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 36
},
"id": 15,
"options": {
"colWidth": 0.9,
"legend": {
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"rowHeight": 0.9,
"showValue": "never",
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "10.4.0",
"targets": [
{
"application": {
"filter": ""
},
"countTriggersBy": "",
"datasource": {
"type": "alexanderzobnin-zabbix-datasource",
"uid": "${DS_ZABBIX}"
},
"evaltype": "0",
"functions": [],
"group": {
"filter": "$groups"
},
"host": {
"filter": "$hosts"
},
"item": {
"filter": "/^Service[a-zA-Z0-9]+$/"
},
"itemTag": {
"filter": ""
},
"macro": {
"filter": ""
},
"options": {
"count": false,
"disableDataAlignment": false,
"showDisabledItems": false,
"skipEmptyValues": false,
"useTrends": "default",
"useZabbixValueMapping": false
},
"proxy": {
"filter": ""
},
"queryType": "0",
"refId": "A",
"resultFormat": "time_series",
"schema": 12,
"table": {
"skipEmptyValues": false
},
"tags": {
"filter": ""
},
"textFilter": "",
"trigger": {
"filter": ""
}
}
],
"title": "服务状态(自定义)",
"type": "status-history"
}
],
"refresh": "",
"schemaVersion": 39,
"tags": [],
"templating": {
"list": [
{
"current": {},
"datasource": {
"type": "alexanderzobnin-zabbix-datasource",
"uid": "${DS_ZABBIX}"
},
"definition": "Zabbix - group",
"hide": 0,
"includeAll": false,
"multi": false,
"name": "groups",
"options": [],
"query": {
"application": "",
"group": "/.*/",
"host": "",
"item": "",
"itemTag": "",
"queryType": "group"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {},
"datasource": {
"type": "alexanderzobnin-zabbix-datasource",
"uid": "${DS_ZABBIX}"
},
"definition": "Zabbix - host",
"hide": 0,
"includeAll": false,
"multi": false,
"name": "hosts",
"options": [],
"query": {
"application": "",
"group": "$groups",
"host": "/.*/",
"item": "",
"itemTag": "",
"queryType": "host"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {},
"datasource": {
"type": "alexanderzobnin-zabbix-datasource",
"uid": "${DS_ZABBIX}"
},
"definition": "Zabbix - item",
"hide": 0,
"includeAll": false,
"multi": false,
"name": "interface",
"options": [],
"query": {
"application": "",
"group": "$groups",
"host": "$hosts",
"item": "/Interface .*: Bits.*/",
"itemTag": "",
"queryType": "item"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
}
]
},
"time": {
"from": "now-3h",
"to": "now"
},
"timepicker": {
"hidden": false
},
"timezone": "browser",
"title": "服务器监控",
"uid": "fdgau8u3aww00d",
"version": 70,
"weekStart": ""
}