{
"__inputs": [
{
"name": "DS_TEST-ENVIORMENT-K8S",
"label": "test-enviorment-k8s",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
},
{
"name": "DS_ZABBIX_ TEST SERVER",
"label": "zabbix test server",
"description": "",
"type": "datasource",
"pluginId": "alexanderzobnin-zabbix-datasource",
"pluginName": "Zabbix"
}
],
"__requires": [
{
"type": "datasource",
"id": "alexanderzobnin-zabbix-datasource",
"name": "Zabbix",
"version": "1.0.0"
},
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "4.4.3"
},
{
"type": "panel",
"id": "graph",
"name": "Graph",
"version": ""
},
{
"type": "datasource",
"id": "prometheus",
"name": "Prometheus",
"version": "1.0.0"
},
{
"type": "panel",
"id": "singlestat",
"name": "Singlestat",
"version": ""
}
],
"annotations": {
"list": []
},
"editable": true,
"gnetId": null,
"graphTooltip": 0,
"hideControls": false,
"id": null,
"links": [],
"refresh": false,
"rows": [
{
"collapse": false,
"height": 168,
"panels": [
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": true,
"colors": [
"rgba(50, 172, 45, 0.97)",
"rgba(237, 129, 40, 0.89)",
"rgba(245, 54, 54, 0.9)"
],
"datasource": "${DS_TEST-ENVIORMENT-K8S}",
"format": "percent",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": true,
"thresholdLabels": false,
"thresholdMarkers": true
},
"id": 14,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"span": 4,
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false
},
"tableColumn": "",
"targets": [
{
"application": {
"filter": ""
},
"expr": "(sum(container_memory_working_set_bytes{container_name=\"$PROJECT_NAME\"})/ sum(node_memory_MemTotal))*100",
"format": "time_series",
"functions": [],
"group": {
"filter": ""
},
"host": {
"filter": ""
},
"intervalFactor": 2,
"item": {
"filter": ""
},
"legendFormat": "",
"mode": 0,
"options": {
"showDisabledItems": false
},
"refId": "A",
"step": 40
}
],
"thresholds": "20,50",
"title": "内存使用集群占比",
"transparent": false,
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "avg"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"rgba(50, 172, 45, 0.97)",
"rgba(237, 129, 40, 0.89)",
"rgba(245, 54, 54, 0.9)"
],
"datasource": "${DS_TEST-ENVIORMENT-K8S}",
"decimals": 2,
"format": "percent",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": true,
"thresholdLabels": false,
"thresholdMarkers": true
},
"id": 1,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"span": 4,
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false
},
"tableColumn": "",
"targets": [
{
"application": {
"filter": ""
},
"expr": "sum (rate (container_cpu_usage_seconds_total{container_name=\"$PROJECT_NAME\"}[1m])) / sum (machine_cpu_cores{kubernetes_io_hostname=~\"^$Node$\"}) * 100",
"format": "time_series",
"functions": [],
"group": {
"filter": ""
},
"host": {
"filter": ""
},
"intervalFactor": 2,
"item": {
"filter": ""
},
"legendFormat": "",
"metric": "container_cpu_user_seconds_total",
"mode": 0,
"options": {
"showDisabledItems": false
},
"refId": "A",
"step": 40
}
],
"thresholds": "65,90",
"title": "CPU使用集群占比",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "avg"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"datasource": "${DS_TEST-ENVIORMENT-K8S}",
"decimals": 0,
"format": "short",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"id": 4,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"span": 4,
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false
},
"tableColumn": "",
"targets": [
{
"application": {
"filter": ""
},
"expr": "count(container_fs_io_current{container_name=\"$PROJECT_NAME\"})",
"format": "time_series",
"functions": [],
"group": {
"filter": ""
},
"host": {
"filter": ""
},
"interval": "",
"intervalFactor": 2,
"item": {
"filter": ""
},
"legendFormat": "",
"metric": "",
"mode": 0,
"options": {
"showDisabledItems": false
},
"refId": "A",
"step": 40
}
],
"thresholds": "",
"title": "容器数量",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "avg"
}
],
"repeat": null,
"repeatIteration": null,
"repeatRowId": null,
"showTitle": false,
"title": "Dashboard Row",
"titleSize": "h6"
},
{
"collapse": false,
"height": -925,
"panels": [
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"datasource": "${DS_TEST-ENVIORMENT-K8S}",
"decimals": null,
"format": "bytes",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"id": 3,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"span": 2,
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false
},
"tableColumn": "",
"targets": [
{
"application": {
"filter": ""
},
"expr": "sum(container_memory_usage_bytes{container_name=\"$PROJECT_NAME\"})",
"format": "time_series",
"functions": [],
"group": {
"filter": ""
},
"host": {
"filter": ""
},
"intervalFactor": 2,
"item": {
"filter": ""
},
"legendFormat": "",
"metric": "container_memory_usage_bytes",
"mode": 0,
"options": {
"showDisabledItems": false
},
"refId": "A",
"step": 40
}
],
"thresholds": "",
"title": "内存使用总量",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "avg"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"datasource": "${DS_TEST-ENVIORMENT-K8S}",
"format": "decbytes",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"id": 15,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"span": 2,
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false
},
"tableColumn": "",
"targets": [
{
"application": {
"filter": ""
},
"expr": "sum(node_memory_MemTotal)",
"format": "time_series",
"functions": [],
"group": {
"filter": ""
},
"host": {
"filter": ""
},
"intervalFactor": 2,
"item": {
"filter": ""
},
"mode": 0,
"options": {
"showDisabledItems": false
},
"refId": "A",
"step": 40
}
],
"thresholds": "",
"title": "集群总内存",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "avg"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"datasource": "${DS_TEST-ENVIORMENT-K8S}",
"decimals": 2,
"format": "none",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"id": 16,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "cores",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"span": 2,
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false
},
"tableColumn": "",
"targets": [
{
"application": {
"filter": ""
},
"expr": "sum (rate (container_cpu_usage_seconds_total{id=\"/\",kubernetes_io_hostname=~\"^$Node$\"}[1m])) / sum (machine_cpu_cores{kubernetes_io_hostname=~\"^$Node$\"}) * 100",
"format": "time_series",
"functions": [],
"group": {
"filter": ""
},
"host": {
"filter": ""
},
"intervalFactor": 2,
"item": {
"filter": ""
},
"mode": 0,
"options": {
"showDisabledItems": false
},
"refId": "A",
"step": 40
}
],
"thresholds": "",
"title": "cpu使用量",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "avg"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"datasource": "${DS_TEST-ENVIORMENT-K8S}",
"decimals": 2,
"format": "none",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"id": 17,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "cores",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"span": 2,
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false
},
"tableColumn": "",
"targets": [
{
"application": {
"filter": ""
},
"expr": "sum (machine_cpu_cores{kubernetes_io_hostname=~\"^$Node$\"})",
"format": "time_series",
"functions": [],
"group": {
"filter": ""
},
"host": {
"filter": ""
},
"intervalFactor": 2,
"item": {
"filter": ""
},
"mode": 0,
"options": {
"showDisabledItems": false
},
"refId": "A",
"step": 40
}
],
"thresholds": "",
"title": "CPU总量",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "avg"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"datasource": "${DS_ZABBIX_ TEST SERVER}",
"format": "none",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"id": 19,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"span": 2,
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false
},
"tableColumn": "",
"targets": [
{}
],
"thresholds": "",
"title": "Panel Title",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "avg"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"datasource": "${DS_ZABBIX_ TEST SERVER}",
"format": "none",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"id": 20,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"span": 2,
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false
},
"tableColumn": "",
"targets": [
{}
],
"thresholds": "",
"title": "Panel Title",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "avg"
}
],
"repeat": null,
"repeatIteration": null,
"repeatRowId": null,
"showTitle": false,
"title": "Dashboard Row",
"titleSize": "h6"
},
{
"collapse": false,
"height": 249,
"panels": [
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_TEST-ENVIORMENT-K8S}",
"fill": 1,
"id": 5,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"span": 4,
"stack": true,
"steppedLine": false,
"targets": [
{
"application": {
"filter": ""
},
"expr": "container_memory_usage_bytes{container_name=\"$PROJECT_NAME\"}",
"format": "time_series",
"functions": [],
"group": {
"filter": ""
},
"host": {
"filter": ""
},
"intervalFactor": 2,
"item": {
"filter": ""
},
"legendFormat": "{{ pod_name }}",
"metric": "container_memory_usage_bytes",
"mode": 0,
"options": {
"showDisabledItems": false
},
"refId": "A",
"step": 4
}
],
"thresholds": [],
"timeFrom": null,
"timeShift": null,
"title": "当前内存使用量",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "bytes",
"label": null,
"logBase": 1,
"max": null,
"min": "0",
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
]
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_TEST-ENVIORMENT-K8S}",
"fill": 1,
"id": 9,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"span": 4,
"stack": false,
"steppedLine": false,
"targets": [
{
"application": {
"filter": ""
},
"expr": "container_memory_working_set_bytes{container_name=\"$PROJECT_NAME\"}",
"format": "time_series",
"functions": [],
"group": {
"filter": ""
},
"host": {
"filter": ""
},
"intervalFactor": 2,
"item": {
"filter": ""
},
"legendFormat": "{{ pod_name }}",
"metric": "container_memory_working_set_bytes",
"mode": 0,
"options": {
"showDisabledItems": false
},
"refId": "A",
"step": 4
}
],
"thresholds": [],
"timeFrom": null,
"timeShift": null,
"title": "当前使用的内存",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "bytes",
"label": null,
"logBase": 1,
"max": null,
"min": "0",
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
]
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_TEST-ENVIORMENT-K8S}",
"fill": 1,
"id": 7,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"span": 4,
"stack": false,
"steppedLine": false,
"targets": [
{
"application": {
"filter": ""
},
"expr": "container_memory_cache{container_name=\"$PROJECT_NAME\"}",
"format": "time_series",
"functions": [],
"group": {
"filter": ""
},
"host": {
"filter": ""
},
"intervalFactor": 2,
"item": {
"filter": ""
},
"legendFormat": "{{ pod_name }}",
"metric": "container_memory_cache",
"mode": 0,
"options": {
"showDisabledItems": false
},
"refId": "A",
"step": 4
}
],
"thresholds": [],
"timeFrom": null,
"timeShift": null,
"title": "内存缓存使用量",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "bytes",
"label": null,
"logBase": 1,
"max": null,
"min": "0",
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
]
}
],
"repeat": null,
"repeatIteration": null,
"repeatRowId": null,
"showTitle": true,
"title": "内存使用详情",
"titleSize": "h6"
},
{
"collapse": false,
"height": 246,
"panels": [
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_TEST-ENVIORMENT-K8S}",
"fill": 1,
"id": 6,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"span": 4,
"stack": false,
"steppedLine": false,
"targets": [
{
"application": {
"filter": ""
},
"expr": "container_memory_swap{container_name=\"$PROJECT_NAME\"}",
"format": "time_series",
"functions": [],
"group": {
"filter": ""
},
"host": {
"filter": ""
},
"intervalFactor": 2,
"item": {
"filter": ""
},
"legendFormat": "{{ pod_name }}",
"mode": 0,
"options": {
"showDisabledItems": false
},
"refId": "A",
"step": 4
}
],
"thresholds": [],
"timeFrom": null,
"timeShift": null,
"title": "交换分区使用量",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "decbytes",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
]
},
{
"alert": {
"conditions": [
{
"evaluator": {
"params": [
0,
0
],
"type": "within_range"
},
"operator": {
"type": "and"
},
"query": {
"params": [
"A",
"5m",
"now"
]
},
"reducer": {
"params": [],
"type": "avg"
},
"type": "query"
}
],
"executionErrorState": "alerting",
"frequency": "60s",
"handler": 1,
"message": "test内存。",
"name": "内存缺页数量 alert",
"noDataState": "no_data",
"notifications": []
},
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_TEST-ENVIORMENT-K8S}",
"fill": 1,
"id": 8,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"span": 4,
"stack": false,
"steppedLine": false,
"targets": [
{
"application": {
"filter": ""
},
"expr": "container_memory_failcnt{container_name=\"$PROJECT_NAME\"}",
"format": "time_series",
"functions": [],
"group": {
"filter": ""
},
"host": {
"filter": ""
},
"intervalFactor": 2,
"item": {
"filter": ""
},
"legendFormat": "{{ pod_name }}",
"metric": "container_memory_failcnt",
"mode": 0,
"options": {
"showDisabledItems": false
},
"refId": "A",
"step": 4
}
],
"thresholds": [
{
"colorMode": "critical",
"fill": true,
"line": true,
"op": "gt",
"value": 0
},
{
"colorMode": "critical",
"fill": true,
"line": true,
"op": "lt",
"value": 0
}
],
"timeFrom": null,
"timeShift": null,
"title": "内存缺页数量",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
]
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_ZABBIX_ TEST SERVER}",
"fill": 1,
"id": 21,
"legend": {
"alignAsTable": true,
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"span": 4,
"stack": false,
"steppedLine": false,
"targets": [
{
"application": {
"filter": "SWAP"
},
"expr": "",
"format": "time_series",
"functions": [],
"group": {
"filter": "TEST-K8S"
},
"host": {
"filter": "/.*/"
},
"intervalFactor": 2,
"item": {
"filter": "剩余交换空间"
},
"mode": 0,
"options": {
"showDisabledItems": false
},
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeShift": null,
"title": "交换分区剩余大小",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "bytes",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
]
}
],
"repeat": null,
"repeatIteration": null,
"repeatRowId": null,
"showTitle": true,
"title": "交换分区使用详情",
"titleSize": "h6"
},
{
"collapse": false,
"height": 250,
"panels": [
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_TEST-ENVIORMENT-K8S}",
"fill": 1,
"id": 13,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"span": 6,
"stack": false,
"steppedLine": false,
"targets": [
{
"application": {
"filter": ""
},
"expr": "rate(container_cpu_system_seconds_total{container_name=\"$PROJECT_NAME\"}[1m])",
"format": "time_series",
"functions": [],
"group": {
"filter": ""
},
"host": {
"filter": ""
},
"intervalFactor": 2,
"item": {
"filter": ""
},
"legendFormat": "{{pod_name}}",
"metric": "",
"mode": 0,
"options": {
"showDisabledItems": false
},
"refId": "A",
"step": 4
},
{
"expr": "sum(rate(container_cpu_system_seconds_total{container_name=\"$PROJECT_NAME\"}[1m]))",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "total",
"refId": "B",
"step": 4
}
],
"thresholds": [],
"timeFrom": null,
"timeShift": null,
"title": "CPU内核使用",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "bytes",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
]
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_TEST-ENVIORMENT-K8S}",
"fill": 1,
"id": 22,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"span": 6,
"stack": false,
"steppedLine": false,
"targets": [
{
"application": {
"filter": ""
},
"expr": "rate(container_cpu_user_seconds_total{container_name=\"$PROJECT_NAME\"}[1m])",
"format": "time_series",
"functions": [],
"group": {
"filter": ""
},
"host": {
"filter": ""
},
"intervalFactor": 2,
"item": {
"filter": ""
},
"legendFormat": "{{pod_name}}",
"metric": "container_cpu_user_seconds_total",
"mode": 0,
"options": {
"showDisabledItems": false
},
"refId": "A",
"step": 4
},
{
"expr": "sum(rate(container_cpu_user_seconds_total{container_name=\"$PROJECT_NAME\"}[1m]))",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "Total",
"refId": "B",
"step": 4
}
],
"thresholds": [],
"timeFrom": null,
"timeShift": null,
"title": "CPU用户使用",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
]
}
],
"repeat": null,
"repeatIteration": null,
"repeatRowId": null,
"showTitle": false,
"title": "Dashboard Row",
"titleSize": "h6"
},
{
"collapse": false,
"height": 250,
"panels": [
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_TEST-ENVIORMENT-K8S}",
"fill": 1,
"id": 23,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"span": 6,
"stack": false,
"steppedLine": false,
"targets": [
{
"application": {
"filter": ""
},
"expr": "rate(container_network_transmit_bytes_total{pod_name=~\"$PROJECT_NAME.*\"}[3m])",
"format": "time_series",
"functions": [],
"group": {
"filter": ""
},
"host": {
"filter": ""
},
"intervalFactor": 2,
"item": {
"filter": ""
},
"legendFormat": "{{pod_name}}",
"metric": "container_network_transmit_bytes_total",
"mode": 0,
"options": {
"showDisabledItems": false
},
"refId": "A",
"step": 4
},
{
"expr": "sum(rate(container_network_transmit_bytes_total{pod_name=~\"$PROJECT_NAME.*\"}[1m]))",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "Total",
"refId": "B",
"step": 4
}
],
"thresholds": [],
"timeFrom": null,
"timeShift": null,
"title": "网络发送数据量",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "bytes",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
]
},
{
"aliasColors": {
"activemq-deployment-2605359794-s2c21": "#890F02"
},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_TEST-ENVIORMENT-K8S}",
"fill": 1,
"id": 24,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"span": 6,
"stack": false,
"steppedLine": false,
"targets": [
{
"application": {
"filter": ""
},
"expr": "rate(container_network_receive_bytes_total{pod_name=~\"$PROJECT_NAME.*\"}[3m])",
"format": "time_series",
"functions": [],
"group": {
"filter": ""
},
"host": {
"filter": ""
},
"intervalFactor": 2,
"item": {
"filter": ""
},
"legendFormat": "{{pod_name}}",
"metric": "container_network_receive_bytes_total",
"mode": 0,
"options": {
"showDisabledItems": false
},
"refId": "A",
"step": 4
},
{
"expr": "sum(rate(container_network_receive_bytes_total{pod_name=~\"$PROJECT_NAME.*\"}[1m]))",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "Total",
"refId": "B",
"step": 4
}
],
"thresholds": [],
"timeFrom": null,
"timeShift": null,
"title": "接收数据量",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "bytes",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
]
}
],
"repeat": null,
"repeatIteration": null,
"repeatRowId": null,
"showTitle": false,
"title": "Dashboard Row",
"titleSize": "h6"
},
{
"collapse": false,
"height": 250,
"panels": [],
"repeat": null,
"repeatIteration": null,
"repeatRowId": null,
"showTitle": false,
"title": "Dashboard Row",
"titleSize": "h6"
},
{
"collapse": false,
"height": 250,
"panels": [
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_ZABBIX_ TEST SERVER}",
"fill": 1,
"id": 25,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"links": [],
"minSpan": null,
"nullPointMode": "null",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"repeat": null,
"seriesOverrides": [],
"spaceLength": 10,
"span": 2,
"stack": false,
"steppedLine": false,
"targets": [
{
"application": {
"filter": "$Node"
},
"functions": [],
"group": {
"filter": "TEST-K8S"
},
"host": {
"filter": "192.168.7.203"
},
"item": {
"filter": "/ 的使用容量"
},
"mode": 0,
"options": {
"showDisabledItems": false
},
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeShift": null,
"title": "Panel Title",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"transparent": false,
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
]
}
],
"repeat": null,
"repeatIteration": null,
"repeatRowId": null,
"showTitle": false,
"title": "Dashboard Row",
"titleSize": "h6"
}
],
"schemaVersion": 14,
"style": "dark",
"tags": [
"prometheus"
],
"templating": {
"list": [
{
"allValue": null,
"current": {
"tags": [],
"text": "jenkins",
"value": "jenkins"
},
"hide": 0,
"includeAll": false,
"label": "container_name",
"multi": false,
"name": "PROJECT_NAME",
"options": [
{
"selected": false,
"text": "activemq",
"value": "activemq"
},
{
"selected": false,
"text": "grafana",
"value": "grafana"
},
{
"selected": true,
"text": "jenkins",
"value": "jenkins"
},
{
"selected": false,
"text": "nexus",
"value": "nexus"
},
{
"selected": false,
"text": "nginx-zhenghaohuaphpapp",
"value": "nginx-zhenghaohuaphpapp"
},
{
"selected": false,
"text": "nginx-zhenghaohuaphpweb",
"value": "nginx-zhenghaohuaphpweb"
},
{
"selected": false,
"text": "showdoc",
"value": "showdoc"
},
{
"selected": false,
"text": "tomcat-afterloanall",
"value": "tomcat-afterloanall"
},
{
"selected": false,
"text": "tomcat-afterloangit",
"value": "tomcat-afterloangit"
},
{
"selected": false,
"text": "tomcat-api",
"value": "tomcat-api"
},
{
"selected": false,
"text": "tomcat-beanstechweb",
"value": "tomcat-beanstechweb"
},
{
"selected": false,
"text": "tomcat-cas-dev",
"value": "tomcat-cas-dev"
},
{
"selected": false,
"text": "tomcat-cas",
"value": "tomcat-cas"
},
{
"selected": false,
"text": "tomcat-cashcustomersvc",
"value": "tomcat-cashcustomersvc"
},
{
"selected": false,
"text": "tomcat-cashloanapr",
"value": "tomcat-cashloanapr"
},
{
"selected": false,
"text": "tomcat-cashruleengine",
"value": "tomcat-cashruleengine"
},
{
"selected": false,
"text": "tomcat-commonservices",
"value": "tomcat-commonservices"
},
{
"selected": false,
"text": "tomcat-credit",
"value": "tomcat-credit"
},
{
"selected": false,
"text": "tomcat-financial",
"value": "tomcat-financial"
},
{
"selected": false,
"text": "tomcat-loanactivity",
"value": "tomcat-loanactivity"
},
{
"selected": false,
"text": "tomcat-loanactivity-test",
"value": "tomcat-loanactivity-test"
},
{
"selected": false,
"text": "tomcat-loanaudit-web-api-branch",
"value": "tomcat-loanaudit-web-api-branch"
},
{
"selected": false,
"text": "tomcat-loanaudit-web-api",
"value": "tomcat-loanaudit-web-api"
},
{
"selected": false,
"text": "tomcat-loanaudit-web-audit-branch",
"value": "tomcat-loanaudit-web-audit-branch"
},
{
"selected": false,
"text": "tomcat-loanaudit-web-audit",
"value": "tomcat-loanaudit-web-audit"
},
{
"selected": false,
"text": "tomcat-loanaudit-web-sale-branch",
"value": "tomcat-loanaudit-web-sale-branch"
},
{
"selected": false,
"text": "tomcat-loanaudit-web-sale",
"value": "tomcat-loanaudit-web-sale"
},
{
"selected": false,
"text": "tomcat-loanaudittask-branch",
"value": "tomcat-loanaudittask-branch"
},
{
"selected": false,
"text": "tomcat-loanaudittask",
"value": "tomcat-loanaudittask"
},
{
"selected": false,
"text": "tomcat-newsalary",
"value": "tomcat-newsalary"
},
{
"selected": false,
"text": "tomcat-operation-dev",
"value": "tomcat-operation-dev"
},
{
"selected": false,
"text": "tomcat-operation",
"value": "tomcat-operation"
},
{
"selected": false,
"text": "tomcat-paperless-ht",
"value": "tomcat-paperless-ht"
},
{
"selected": false,
"text": "tomcat-paperless-proxy",
"value": "tomcat-paperless-proxy"
},
{
"selected": false,
"text": "tomcat-paperless-server",
"value": "tomcat-paperless-server"
},
{
"selected": false,
"text": "tomcat-payment",
"value": "tomcat-payment"
},
{
"selected": false,
"text": "tomcat-reports-tester",
"value": "tomcat-reports-tester"
},
{
"selected": false,
"text": "tomcat-ruleengine",
"value": "tomcat-ruleengine"
},
{
"selected": false,
"text": "tomcat-salary-tester",
"value": "tomcat-salary-tester"
},
{
"selected": false,
"text": "tomcat-settle",
"value": "tomcat-settle"
},
{
"selected": false,
"text": "tomcat-submenu",
"value": "tomcat-submenu"
},
{
"selected": false,
"text": "tomcat-uat-cas",
"value": "tomcat-uat-cas"
},
{
"selected": false,
"text": "tomcat-uat-consumptionapproval",
"value": "tomcat-uat-consumptionapproval"
},
{
"selected": false,
"text": "tomcat-uat-consumptionsale",
"value": "tomcat-uat-consumptionsale"
},
{
"selected": false,
"text": "tomcat-uat-operation tomcat-xdapp",
"value": "tomcat-uat-operation tomcat-xdapp"
}
],
"query": "activemq ,grafana ,jenkins ,nexus ,nginx-zhenghaohuaphpapp ,nginx-zhenghaohuaphpweb ,showdoc ,tomcat-afterloanall ,tomcat-afterloangit ,tomcat-api ,tomcat-beanstechweb ,tomcat-cas-dev ,tomcat-cas ,tomcat-cashcustomersvc ,tomcat-cashloanapr ,tomcat-cashruleengine ,tomcat-commonservices ,tomcat-credit ,tomcat-financial ,tomcat-loanactivity ,tomcat-loanactivity-test ,tomcat-loanaudit-web-api-branch ,tomcat-loanaudit-web-api ,tomcat-loanaudit-web-audit-branch ,tomcat-loanaudit-web-audit ,tomcat-loanaudit-web-sale-branch ,tomcat-loanaudit-web-sale ,tomcat-loanaudittask-branch ,tomcat-loanaudittask ,tomcat-newsalary ,tomcat-operation-dev ,tomcat-operation ,tomcat-paperless-ht ,tomcat-paperless-proxy ,tomcat-paperless-server ,tomcat-payment ,tomcat-reports-tester ,tomcat-ruleengine ,tomcat-salary-tester ,tomcat-settle ,tomcat-submenu ,tomcat-uat-cas ,tomcat-uat-consumptionapproval ,tomcat-uat-consumptionsale ,tomcat-uat-operation tomcat-xdapp",
"type": "custom"
},
{
"allValue": ".*",
"current": {},
"datasource": "${DS_TEST-ENVIORMENT-K8S}",
"hide": 2,
"includeAll": true,
"label": null,
"multi": false,
"name": "Node",
"options": [],
"query": "label_values(kubernetes_io_hostname)",
"refresh": 1,
"regex": "",
"sort": 0,
"tagValuesQuery": "",
"tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
}
]
},
"time": {
"from": "now-30m",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
],
"time_options": [
"5m",
"15m",
"1h",
"6h",
"12h",
"24h",
"2d",
"7d",
"30d"
]
},
"timezone": "",
"title": "测试环境K8S集群监控",
"version": 14
}
转载于:https://www.cnblogs.com/Jt00/p/8478893.html