38230 lines
1.4 MiB
38230 lines
1.4 MiB
apiVersion: v1
|
||
items:
|
||
- apiVersion: v1
|
||
data:
|
||
rocketmq.json: |-
|
||
{
|
||
"__inputs": [
|
||
],
|
||
"__requires": [
|
||
{
|
||
"type": "panel",
|
||
"id": "gauge",
|
||
"name": "Gauge",
|
||
"version": ""
|
||
},
|
||
{
|
||
"type": "grafana",
|
||
"id": "grafana",
|
||
"name": "Grafana",
|
||
"version": "7.5.3"
|
||
},
|
||
{
|
||
"type": "panel",
|
||
"id": "graph",
|
||
"name": "Graph",
|
||
"version": ""
|
||
},
|
||
{
|
||
"type": "datasource",
|
||
"id": "prometheus",
|
||
"name": "Prometheus",
|
||
"version": "1.0.0"
|
||
},
|
||
{
|
||
"type": "panel",
|
||
"id": "table",
|
||
"name": "Table",
|
||
"version": ""
|
||
}
|
||
],
|
||
"annotations": {
|
||
"list": [
|
||
{
|
||
"builtIn": 1,
|
||
"datasource": "-- Grafana --",
|
||
"enable": true,
|
||
"hide": true,
|
||
"iconColor": "rgba(0, 211, 255, 1)",
|
||
"name": "Annotations & Alerts",
|
||
"type": "dashboard"
|
||
}
|
||
]
|
||
},
|
||
"editable": true,
|
||
"gnetId": 14612,
|
||
"graphTooltip": 0,
|
||
"id": null,
|
||
"links": [],
|
||
"panels": [
|
||
{
|
||
"aliasColors": {},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fieldConfig": {
|
||
"defaults": {
|
||
"links": []
|
||
},
|
||
"overrides": []
|
||
},
|
||
"fill": 1,
|
||
"fillGradient": 0,
|
||
"gridPos": {
|
||
"h": 13,
|
||
"w": 16,
|
||
"x": 0,
|
||
"y": 0
|
||
},
|
||
"hiddenSeries": false,
|
||
"id": 6,
|
||
"legend": {
|
||
"alignAsTable": true,
|
||
"avg": true,
|
||
"current": true,
|
||
"max": true,
|
||
"min": true,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": true
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"nullPointMode": "null",
|
||
"options": {
|
||
"alertThreshold": true
|
||
},
|
||
"percentage": false,
|
||
"pluginVersion": "7.5.3",
|
||
"pointradius": 2,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [],
|
||
"spaceLength": 10,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "rocketmq_broker_tps",
|
||
"interval": "",
|
||
"legendFormat": "Broker-TPS-{{broker}}-{{brokerIP}}",
|
||
"refId": "A"
|
||
},
|
||
{
|
||
"expr": "rocketmq_broker_qps",
|
||
"interval": "",
|
||
"legendFormat": "Broker-QPS-{{broker}}-{{brokerIP}}",
|
||
"refId": "B"
|
||
}
|
||
],
|
||
"thresholds": [],
|
||
"timeFrom": null,
|
||
"timeRegions": [],
|
||
"timeShift": null,
|
||
"title": "Broker TPS/QPS",
|
||
"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
|
||
}
|
||
],
|
||
"yaxis": {
|
||
"align": false,
|
||
"alignLevel": null
|
||
}
|
||
},
|
||
{
|
||
"datasource": "${datasource}",
|
||
"fieldConfig": {
|
||
"defaults": {
|
||
"mappings": [],
|
||
"thresholds": {
|
||
"mode": "absolute",
|
||
"steps": [
|
||
{
|
||
"color": "green",
|
||
"value": null
|
||
},
|
||
{
|
||
"color": "red",
|
||
"value": 70
|
||
}
|
||
]
|
||
},
|
||
"unit": "percent"
|
||
},
|
||
"overrides": []
|
||
},
|
||
"gridPos": {
|
||
"h": 13,
|
||
"w": 8,
|
||
"x": 16,
|
||
"y": 0
|
||
},
|
||
"id": 2,
|
||
"options": {
|
||
"orientation": "auto",
|
||
"reduceOptions": {
|
||
"calcs": [
|
||
"mean"
|
||
],
|
||
"fields": "",
|
||
"values": false
|
||
},
|
||
"showThresholdLabels": false,
|
||
"showThresholdMarkers": true,
|
||
"text": {}
|
||
},
|
||
"pluginVersion": "7.5.3",
|
||
"targets": [
|
||
{
|
||
"expr": "sum(rocketmq_brokeruntime_commitlog_disk_ratio) by (brokerIP) * 100",
|
||
"instant": false,
|
||
"interval": "",
|
||
"legendFormat": "{{brokerIP}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "磁盘使用率",
|
||
"type": "gauge"
|
||
},
|
||
{
|
||
"datasource": "${datasource}",
|
||
"fieldConfig": {
|
||
"defaults": {
|
||
"custom": {
|
||
"align": "left",
|
||
"displayMode": "gradient-gauge",
|
||
"filterable": false
|
||
},
|
||
"mappings": [],
|
||
"thresholds": {
|
||
"mode": "absolute",
|
||
"steps": [
|
||
{
|
||
"color": "green",
|
||
"value": null
|
||
},
|
||
{
|
||
"color": "red",
|
||
"value": 80
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"overrides": []
|
||
},
|
||
"gridPos": {
|
||
"h": 12,
|
||
"w": 12,
|
||
"x": 0,
|
||
"y": 13
|
||
},
|
||
"id": 16,
|
||
"options": {
|
||
"frameIndex": 2,
|
||
"showHeader": true,
|
||
"sortBy": [
|
||
{
|
||
"desc": true,
|
||
"displayName": "Value"
|
||
}
|
||
]
|
||
},
|
||
"pluginVersion": "7.5.3",
|
||
"targets": [
|
||
{
|
||
"expr": "sum(rocketmq_producer_offset) by (topic) - on(topic) group_right sum(rocketmq_consumer_offset) by (group,topic) and (sum(rocketmq_producer_offset) by (topic) - on(topic) group_right sum(rocketmq_consumer_offset) by (group,topic) > 0)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"interval": "",
|
||
"legendFormat": "",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "消息积压",
|
||
"transformations": [
|
||
{
|
||
"id": "filterFieldsByName",
|
||
"options": {
|
||
"include": {
|
||
"names": [
|
||
"group",
|
||
"topic",
|
||
"Value"
|
||
]
|
||
}
|
||
}
|
||
}
|
||
],
|
||
"type": "table"
|
||
},
|
||
{
|
||
"aliasColors": {},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "${datasource}",
|
||
"fieldConfig": {
|
||
"defaults": {
|
||
"links": []
|
||
},
|
||
"overrides": []
|
||
},
|
||
"fill": 1,
|
||
"fillGradient": 0,
|
||
"gridPos": {
|
||
"h": 12,
|
||
"w": 12,
|
||
"x": 12,
|
||
"y": 13
|
||
},
|
||
"hiddenSeries": false,
|
||
"id": 4,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"nullPointMode": "null",
|
||
"options": {
|
||
"alertThreshold": true
|
||
},
|
||
"percentage": false,
|
||
"pluginVersion": "7.5.3",
|
||
"pointradius": 2,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [],
|
||
"spaceLength": 10,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(rocketmq_producer_offset) by (topic) - on(topic) group_right sum(rocketmq_consumer_offset) by (group,topic) and (sum(rocketmq_producer_offset) by (topic) - on(topic) group_right sum(rocketmq_consumer_offset) by (group,topic) > 0)",
|
||
"interval": "",
|
||
"legendFormat": "",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [],
|
||
"timeFrom": null,
|
||
"timeRegions": [],
|
||
"timeShift": null,
|
||
"title": "消息积压",
|
||
"tooltip": {
|
||
"shared": true,
|
||
"sort": 2,
|
||
"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": "0",
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": true
|
||
}
|
||
],
|
||
"yaxis": {
|
||
"align": false,
|
||
"alignLevel": null
|
||
}
|
||
},
|
||
{
|
||
"aliasColors": {},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "${datasource}",
|
||
"fieldConfig": {
|
||
"defaults": {
|
||
"links": []
|
||
},
|
||
"overrides": []
|
||
},
|
||
"fill": 1,
|
||
"fillGradient": 0,
|
||
"gridPos": {
|
||
"h": 11,
|
||
"w": 12,
|
||
"x": 0,
|
||
"y": 25
|
||
},
|
||
"hiddenSeries": false,
|
||
"id": 8,
|
||
"legend": {
|
||
"alignAsTable": true,
|
||
"avg": true,
|
||
"current": true,
|
||
"max": true,
|
||
"min": true,
|
||
"show": true,
|
||
"sort": "max",
|
||
"sortDesc": true,
|
||
"total": false,
|
||
"values": true
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"nullPointMode": "null",
|
||
"options": {
|
||
"alertThreshold": true
|
||
},
|
||
"percentage": false,
|
||
"pluginVersion": "7.5.3",
|
||
"pointradius": 2,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [],
|
||
"spaceLength": 10,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(rocketmq_producer_tps) by (topic)",
|
||
"interval": "",
|
||
"legendFormat": "生产者-TPS-{{topic}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [],
|
||
"timeFrom": null,
|
||
"timeRegions": [],
|
||
"timeShift": null,
|
||
"title": "生产者TPS",
|
||
"tooltip": {
|
||
"shared": true,
|
||
"sort": 2,
|
||
"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": "0",
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": true
|
||
}
|
||
],
|
||
"yaxis": {
|
||
"align": false,
|
||
"alignLevel": null
|
||
}
|
||
},
|
||
{
|
||
"aliasColors": {},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "${datasource}",
|
||
"fieldConfig": {
|
||
"defaults": {
|
||
"links": []
|
||
},
|
||
"overrides": []
|
||
},
|
||
"fill": 1,
|
||
"fillGradient": 0,
|
||
"gridPos": {
|
||
"h": 11,
|
||
"w": 12,
|
||
"x": 12,
|
||
"y": 25
|
||
},
|
||
"hiddenSeries": false,
|
||
"id": 20,
|
||
"legend": {
|
||
"alignAsTable": true,
|
||
"avg": true,
|
||
"current": true,
|
||
"max": true,
|
||
"min": true,
|
||
"show": true,
|
||
"total": false,
|
||
"values": true
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"nullPointMode": "null",
|
||
"options": {
|
||
"alertThreshold": true
|
||
},
|
||
"percentage": false,
|
||
"pluginVersion": "7.5.3",
|
||
"pointradius": 2,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [],
|
||
"spaceLength": 10,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(rocketmq_consumer_tps) by (topic)",
|
||
"interval": "",
|
||
"legendFormat": "消费者-TPS-{{topic}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [],
|
||
"timeFrom": null,
|
||
"timeRegions": [],
|
||
"timeShift": null,
|
||
"title": "消费者TPS",
|
||
"tooltip": {
|
||
"shared": true,
|
||
"sort": 2,
|
||
"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
|
||
}
|
||
],
|
||
"yaxis": {
|
||
"align": false,
|
||
"alignLevel": null
|
||
}
|
||
},
|
||
{
|
||
"aliasColors": {},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "${datasource}",
|
||
"fieldConfig": {
|
||
"defaults": {
|
||
"links": [],
|
||
"unit": "bytes"
|
||
},
|
||
"overrides": []
|
||
},
|
||
"fill": 1,
|
||
"fillGradient": 0,
|
||
"gridPos": {
|
||
"h": 9,
|
||
"w": 12,
|
||
"x": 0,
|
||
"y": 36
|
||
},
|
||
"hiddenSeries": false,
|
||
"id": 12,
|
||
"legend": {
|
||
"alignAsTable": true,
|
||
"avg": true,
|
||
"current": true,
|
||
"max": true,
|
||
"min": true,
|
||
"show": true,
|
||
"total": false,
|
||
"values": true
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"nullPointMode": "null",
|
||
"options": {
|
||
"alertThreshold": true
|
||
},
|
||
"percentage": false,
|
||
"pluginVersion": "7.5.3",
|
||
"pointradius": 2,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [],
|
||
"spaceLength": 10,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(rocketmq_producer_message_size) by (topic)",
|
||
"instant": false,
|
||
"interval": "",
|
||
"legendFormat": "生产者-{{topic}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [],
|
||
"timeFrom": null,
|
||
"timeRegions": [],
|
||
"timeShift": null,
|
||
"title": "生产者每秒消息大小",
|
||
"tooltip": {
|
||
"shared": true,
|
||
"sort": 2,
|
||
"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": "0",
|
||
"show": true
|
||
}
|
||
],
|
||
"yaxis": {
|
||
"align": false,
|
||
"alignLevel": null
|
||
}
|
||
},
|
||
{
|
||
"aliasColors": {},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "${datasource}",
|
||
"fieldConfig": {
|
||
"defaults": {
|
||
"links": [],
|
||
"unit": "bytes"
|
||
},
|
||
"overrides": []
|
||
},
|
||
"fill": 1,
|
||
"fillGradient": 0,
|
||
"gridPos": {
|
||
"h": 9,
|
||
"w": 12,
|
||
"x": 12,
|
||
"y": 36
|
||
},
|
||
"hiddenSeries": false,
|
||
"id": 22,
|
||
"legend": {
|
||
"alignAsTable": true,
|
||
"avg": true,
|
||
"current": true,
|
||
"max": true,
|
||
"min": true,
|
||
"show": true,
|
||
"total": false,
|
||
"values": true
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"nullPointMode": "null",
|
||
"options": {
|
||
"alertThreshold": true
|
||
},
|
||
"percentage": false,
|
||
"pluginVersion": "7.5.3",
|
||
"pointradius": 2,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [],
|
||
"spaceLength": 10,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(rocketmq_consumer_message_size) by (topic)",
|
||
"interval": "",
|
||
"legendFormat": "消费者-{{topic}}",
|
||
"refId": "B"
|
||
}
|
||
],
|
||
"thresholds": [],
|
||
"timeFrom": null,
|
||
"timeRegions": [],
|
||
"timeShift": null,
|
||
"title": "消费者每秒消息大小",
|
||
"tooltip": {
|
||
"shared": true,
|
||
"sort": 2,
|
||
"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": "0",
|
||
"show": true
|
||
}
|
||
],
|
||
"yaxis": {
|
||
"align": false,
|
||
"alignLevel": null
|
||
}
|
||
},
|
||
{
|
||
"aliasColors": {},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "${datasource}",
|
||
"fieldConfig": {
|
||
"defaults": {
|
||
"links": []
|
||
},
|
||
"overrides": []
|
||
},
|
||
"fill": 1,
|
||
"fillGradient": 0,
|
||
"gridPos": {
|
||
"h": 11,
|
||
"w": 12,
|
||
"x": 0,
|
||
"y": 45
|
||
},
|
||
"hiddenSeries": false,
|
||
"id": 14,
|
||
"legend": {
|
||
"alignAsTable": true,
|
||
"avg": true,
|
||
"current": true,
|
||
"max": true,
|
||
"min": true,
|
||
"show": true,
|
||
"total": false,
|
||
"values": true
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"nullPointMode": "null",
|
||
"options": {
|
||
"alertThreshold": true
|
||
},
|
||
"percentage": false,
|
||
"pluginVersion": "7.5.3",
|
||
"pointradius": 2,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [],
|
||
"spaceLength": 10,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(rocketmq_producer_offset) by (broker,topic)",
|
||
"interval": "",
|
||
"legendFormat": "生产者-{{topic}}-{{broker}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [],
|
||
"timeFrom": null,
|
||
"timeRegions": [],
|
||
"timeShift": null,
|
||
"title": "生产消息进度-Offset",
|
||
"tooltip": {
|
||
"shared": true,
|
||
"sort": 2,
|
||
"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
|
||
}
|
||
],
|
||
"yaxis": {
|
||
"align": false,
|
||
"alignLevel": null
|
||
}
|
||
},
|
||
{
|
||
"aliasColors": {},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "${datasource}",
|
||
"fieldConfig": {
|
||
"defaults": {
|
||
"links": []
|
||
},
|
||
"overrides": []
|
||
},
|
||
"fill": 1,
|
||
"fillGradient": 0,
|
||
"gridPos": {
|
||
"h": 11,
|
||
"w": 12,
|
||
"x": 12,
|
||
"y": 45
|
||
},
|
||
"hiddenSeries": false,
|
||
"id": 21,
|
||
"legend": {
|
||
"alignAsTable": true,
|
||
"avg": true,
|
||
"current": true,
|
||
"max": true,
|
||
"min": true,
|
||
"show": true,
|
||
"total": false,
|
||
"values": true
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"nullPointMode": "null",
|
||
"options": {
|
||
"alertThreshold": true
|
||
},
|
||
"percentage": false,
|
||
"pluginVersion": "7.5.3",
|
||
"pointradius": 2,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [],
|
||
"spaceLength": 10,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(rocketmq_consumer_offset) by (broker,topic)",
|
||
"interval": "",
|
||
"legendFormat": "消费者-{{topic}}-{{broker}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [],
|
||
"timeFrom": null,
|
||
"timeRegions": [],
|
||
"timeShift": null,
|
||
"title": "消费消息进度-Offset",
|
||
"tooltip": {
|
||
"shared": true,
|
||
"sort": 2,
|
||
"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
|
||
}
|
||
],
|
||
"yaxis": {
|
||
"align": false,
|
||
"alignLevel": null
|
||
}
|
||
},
|
||
{
|
||
"aliasColors": {},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "${datasource}",
|
||
"fieldConfig": {
|
||
"defaults": {
|
||
"links": [],
|
||
"unit": "ms"
|
||
},
|
||
"overrides": []
|
||
},
|
||
"fill": 1,
|
||
"fillGradient": 0,
|
||
"gridPos": {
|
||
"h": 11,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 56
|
||
},
|
||
"hiddenSeries": false,
|
||
"id": 18,
|
||
"legend": {
|
||
"alignAsTable": true,
|
||
"avg": true,
|
||
"current": true,
|
||
"max": true,
|
||
"min": true,
|
||
"show": true,
|
||
"total": false,
|
||
"values": true
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"nullPointMode": "null",
|
||
"options": {
|
||
"alertThreshold": true
|
||
},
|
||
"percentage": false,
|
||
"pluginVersion": "7.5.3",
|
||
"pointradius": 2,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [],
|
||
"spaceLength": 10,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sort_desc(sum(rocketmq_group_get_latency_by_storetime) by (broker,group,topic)) and (sum(rocketmq_group_get_latency_by_storetime) by (broker,group,topic) > 0)",
|
||
"interval": "",
|
||
"legendFormat": "",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [],
|
||
"timeFrom": null,
|
||
"timeRegions": [],
|
||
"timeShift": null,
|
||
"title": "消费组的消费延时时间",
|
||
"tooltip": {
|
||
"shared": true,
|
||
"sort": 2,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": []
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "ms",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": true
|
||
}
|
||
],
|
||
"yaxis": {
|
||
"align": false,
|
||
"alignLevel": null
|
||
}
|
||
}
|
||
],
|
||
"refresh": false,
|
||
"schemaVersion": 27,
|
||
"style": "dark",
|
||
"tags": [],
|
||
"templating": {
|
||
"list": [
|
||
{
|
||
"current": {
|
||
"text": "Prometheus",
|
||
"value": "Prometheus"
|
||
},
|
||
"hide": 0,
|
||
"includeAll": false,
|
||
"label": "Data source",
|
||
"multi": false,
|
||
"name": "datasource",
|
||
"options": [],
|
||
"query": "prometheus",
|
||
"refresh": 1,
|
||
"regex": "",
|
||
"skipUrlSync": false,
|
||
"type": "datasource"
|
||
}
|
||
]
|
||
},
|
||
"time": {
|
||
"from": "now-6h",
|
||
"to": "now"
|
||
},
|
||
"timepicker": {
|
||
"refresh_intervals": [
|
||
"10s",
|
||
"30s",
|
||
"1m",
|
||
"5m",
|
||
"15m",
|
||
"30m",
|
||
"1h",
|
||
"2h",
|
||
"1d"
|
||
]
|
||
},
|
||
"timezone": "",
|
||
"title": "RocketMQ监控",
|
||
"uid": "WQS4SOFMz",
|
||
"version": 1,
|
||
"description": "Monitor RocketMQ by Prometheus, use RocketMQ Exporter"
|
||
}
|
||
kind: ConfigMap
|
||
metadata:
|
||
name: grafana-dashboard-rocketmq
|
||
namespace: monitoring
|
||
- apiVersion: v1
|
||
data:
|
||
mysql.json: |-
|
||
{
|
||
"__inputs": [
|
||
],
|
||
"__requires": [
|
||
{
|
||
"type": "grafana",
|
||
"id": "grafana",
|
||
"name": "Grafana",
|
||
"version": "5.2.1"
|
||
},
|
||
{
|
||
"type": "panel",
|
||
"id": "graph",
|
||
"name": "Graph",
|
||
"version": "5.0.0"
|
||
},
|
||
{
|
||
"type": "datasource",
|
||
"id": "prometheus",
|
||
"name": "Prometheus",
|
||
"version": "5.0.0"
|
||
},
|
||
{
|
||
"type": "panel",
|
||
"id": "singlestat",
|
||
"name": "Singlestat",
|
||
"version": "5.0.0"
|
||
}
|
||
],
|
||
"annotations": {
|
||
"list": [
|
||
{
|
||
"builtIn": 1,
|
||
"datasource": "-- Grafana --",
|
||
"enable": true,
|
||
"hide": false,
|
||
"iconColor": "#e0752d",
|
||
"limit": 100,
|
||
"name": "PMM Annotations",
|
||
"showIn": 0,
|
||
"tags": [
|
||
"pmm_annotation"
|
||
],
|
||
"type": "tags"
|
||
}
|
||
]
|
||
},
|
||
"editable": true,
|
||
"gnetId": 7362,
|
||
"graphTooltip": 1,
|
||
"id": null,
|
||
"iteration": 1529322446915,
|
||
"links": [
|
||
{
|
||
"icon": "dashboard",
|
||
"includeVars": true,
|
||
"keepTime": true,
|
||
"tags": [
|
||
"QAN"
|
||
],
|
||
"targetBlank": false,
|
||
"title": "Query Analytics",
|
||
"type": "link",
|
||
"url": "/graph/dashboard/db/_pmm-query-analytics"
|
||
},
|
||
{
|
||
"asDropdown": true,
|
||
"includeVars": true,
|
||
"keepTime": true,
|
||
"tags": [
|
||
"OS"
|
||
],
|
||
"targetBlank": false,
|
||
"title": "OS",
|
||
"type": "dashboards"
|
||
},
|
||
{
|
||
"asDropdown": true,
|
||
"includeVars": true,
|
||
"keepTime": true,
|
||
"tags": [
|
||
"MySQL"
|
||
],
|
||
"targetBlank": false,
|
||
"title": "MySQL",
|
||
"type": "dashboards"
|
||
},
|
||
{
|
||
"asDropdown": true,
|
||
"includeVars": true,
|
||
"keepTime": true,
|
||
"tags": [
|
||
"MongoDB"
|
||
],
|
||
"targetBlank": false,
|
||
"title": "MongoDB",
|
||
"type": "dashboards"
|
||
},
|
||
{
|
||
"asDropdown": true,
|
||
"includeVars": true,
|
||
"keepTime": true,
|
||
"tags": [
|
||
"HA"
|
||
],
|
||
"targetBlank": false,
|
||
"title": "HA",
|
||
"type": "dashboards"
|
||
},
|
||
{
|
||
"asDropdown": true,
|
||
"includeVars": true,
|
||
"keepTime": true,
|
||
"tags": [
|
||
"Cloud"
|
||
],
|
||
"targetBlank": false,
|
||
"title": "Cloud",
|
||
"type": "dashboards"
|
||
},
|
||
{
|
||
"asDropdown": true,
|
||
"includeVars": true,
|
||
"keepTime": true,
|
||
"tags": [
|
||
"Insight"
|
||
],
|
||
"targetBlank": false,
|
||
"title": "Insight",
|
||
"type": "dashboards"
|
||
},
|
||
{
|
||
"asDropdown": true,
|
||
"includeVars": true,
|
||
"keepTime": true,
|
||
"tags": [
|
||
"PMM"
|
||
],
|
||
"targetBlank": false,
|
||
"title": "PMM",
|
||
"type": "dashboards"
|
||
}
|
||
],
|
||
"panels": [
|
||
{
|
||
"collapsed": false,
|
||
"gridPos": {
|
||
"h": 1,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 0
|
||
},
|
||
"id": 382,
|
||
"panels": [],
|
||
"repeat": null,
|
||
"title": "",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"cacheTimeout": null,
|
||
"colorBackground": false,
|
||
"colorValue": true,
|
||
"colors": [
|
||
"rgba(245, 54, 54, 0.9)",
|
||
"rgba(237, 129, 40, 0.89)",
|
||
"rgba(50, 172, 45, 0.97)"
|
||
],
|
||
"datasource": "${datasource}",
|
||
"decimals": 1,
|
||
"description": "**MySQL Uptime**\n\nThe amount of time since the last restart of the MySQL server process.",
|
||
"editable": true,
|
||
"error": false,
|
||
"format": "s",
|
||
"gauge": {
|
||
"maxValue": 100,
|
||
"minValue": 0,
|
||
"show": false,
|
||
"thresholdLabels": false,
|
||
"thresholdMarkers": true
|
||
},
|
||
"gridPos": {
|
||
"h": 4,
|
||
"w": 6,
|
||
"x": 0,
|
||
"y": 1
|
||
},
|
||
"height": "125px",
|
||
"id": 12,
|
||
"interval": "$interval",
|
||
"links": [],
|
||
"mappingType": 1,
|
||
"mappingTypes": [
|
||
{
|
||
"name": "value to text",
|
||
"value": 1
|
||
},
|
||
{
|
||
"name": "range to text",
|
||
"value": 2
|
||
}
|
||
],
|
||
"maxDataPoints": 100,
|
||
"nullPointMode": "connected",
|
||
"nullText": null,
|
||
"postfix": "s",
|
||
"postfixFontSize": "80%",
|
||
"prefix": "",
|
||
"prefixFontSize": "80%",
|
||
"rangeMaps": [
|
||
{
|
||
"from": "null",
|
||
"text": "N/A",
|
||
"to": "null"
|
||
}
|
||
],
|
||
"sparkline": {
|
||
"fillColor": "rgba(31, 118, 189, 0.18)",
|
||
"full": false,
|
||
"lineColor": "rgb(31, 120, 193)",
|
||
"show": false
|
||
},
|
||
"tableColumn": "",
|
||
"targets": [
|
||
{
|
||
"calculatedInterval": "10m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "mysql_global_status_uptime{instance=\"$host\"}",
|
||
"format": "time_series",
|
||
"interval": "5m",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "",
|
||
"metric": "",
|
||
"refId": "A",
|
||
"step": 300
|
||
}
|
||
],
|
||
"thresholds": "300,3600",
|
||
"title": "MySQL Uptime",
|
||
"transparent": false,
|
||
"type": "singlestat",
|
||
"valueFontSize": "80%",
|
||
"valueMaps": [],
|
||
"valueName": "current"
|
||
},
|
||
{
|
||
"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": "${datasource}",
|
||
"decimals": 2,
|
||
"description": "**Current QPS**\n\nBased on the queries reported by MySQL's ``SHOW STATUS`` command, it is the number of statements executed by the server within the last second. This variable includes statements executed within stored programs, unlike the Questions variable. It does not count \n``COM_PING`` or ``COM_STATISTICS`` commands.",
|
||
"editable": true,
|
||
"error": false,
|
||
"format": "short",
|
||
"gauge": {
|
||
"maxValue": 100,
|
||
"minValue": 0,
|
||
"show": false,
|
||
"thresholdLabels": false,
|
||
"thresholdMarkers": true
|
||
},
|
||
"gridPos": {
|
||
"h": 4,
|
||
"w": 6,
|
||
"x": 6,
|
||
"y": 1
|
||
},
|
||
"height": "125px",
|
||
"id": 13,
|
||
"interval": "$interval",
|
||
"links": [
|
||
{
|
||
"targetBlank": true,
|
||
"title": "MySQL Server Status Variables",
|
||
"type": "absolute",
|
||
"url": "https://dev.mysql.com/doc/refman/5.7/en/server-status-variables.html#statvar_Queries"
|
||
}
|
||
],
|
||
"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": "80%",
|
||
"rangeMaps": [
|
||
{
|
||
"from": "null",
|
||
"text": "N/A",
|
||
"to": "null"
|
||
}
|
||
],
|
||
"sparkline": {
|
||
"fillColor": "rgba(31, 118, 189, 0.18)",
|
||
"full": false,
|
||
"lineColor": "rgb(31, 120, 193)",
|
||
"show": true
|
||
},
|
||
"tableColumn": "",
|
||
"targets": [
|
||
{
|
||
"calculatedInterval": "10m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "rate(mysql_global_status_queries{instance=\"$host\"}[$interval]) or irate(mysql_global_status_queries{instance=\"$host\"}[5m])",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "",
|
||
"metric": "",
|
||
"refId": "A",
|
||
"step": 20
|
||
}
|
||
],
|
||
"thresholds": "35,75",
|
||
"title": "Current QPS",
|
||
"transparent": false,
|
||
"type": "singlestat",
|
||
"valueFontSize": "80%",
|
||
"valueMaps": [],
|
||
"valueName": "current"
|
||
},
|
||
{
|
||
"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": "${datasource}",
|
||
"decimals": 0,
|
||
"description": "**InnoDB Buffer Pool Size**\n\nInnoDB maintains a storage area called the buffer pool for caching data and indexes in memory. Knowing how the InnoDB buffer pool works, and taking advantage of it to keep frequently accessed data in memory, is one of the most important aspects of MySQL tuning. The goal is to keep the working set in memory. In most cases, this should be between 60%-90% of available memory on a dedicated database host, but depends on many factors.",
|
||
"editable": true,
|
||
"error": false,
|
||
"format": "bytes",
|
||
"gauge": {
|
||
"maxValue": 100,
|
||
"minValue": 0,
|
||
"show": false,
|
||
"thresholdLabels": false,
|
||
"thresholdMarkers": true
|
||
},
|
||
"gridPos": {
|
||
"h": 4,
|
||
"w": 6,
|
||
"x": 12,
|
||
"y": 1
|
||
},
|
||
"height": "125px",
|
||
"id": 51,
|
||
"interval": "$interval",
|
||
"links": [
|
||
{
|
||
"targetBlank": true,
|
||
"title": "Tuning the InnoDB Buffer Pool Size",
|
||
"type": "absolute",
|
||
"url": "https://www.percona.com/blog/2015/06/02/80-ram-tune-innodb_buffer_pool_size/"
|
||
}
|
||
],
|
||
"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": "80%",
|
||
"rangeMaps": [
|
||
{
|
||
"from": "null",
|
||
"text": "N/A",
|
||
"to": "null"
|
||
}
|
||
],
|
||
"sparkline": {
|
||
"fillColor": "rgba(31, 118, 189, 0.18)",
|
||
"full": false,
|
||
"lineColor": "rgb(31, 120, 193)",
|
||
"show": false
|
||
},
|
||
"tableColumn": "",
|
||
"targets": [
|
||
{
|
||
"calculatedInterval": "10m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "mysql_global_variables_innodb_buffer_pool_size{instance=\"$host\"}",
|
||
"format": "time_series",
|
||
"interval": "5m",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "",
|
||
"metric": "",
|
||
"refId": "A",
|
||
"step": 300
|
||
}
|
||
],
|
||
"thresholds": "90,95",
|
||
"title": "InnoDB Buffer Pool Size",
|
||
"transparent": false,
|
||
"type": "singlestat",
|
||
"valueFontSize": "80%",
|
||
"valueMaps": [],
|
||
"valueName": "current"
|
||
},
|
||
{
|
||
"cacheTimeout": null,
|
||
"colorBackground": false,
|
||
"colorValue": true,
|
||
"colors": [
|
||
"rgba(245, 54, 54, 0.9)",
|
||
"rgba(237, 129, 40, 0.89)",
|
||
"rgba(50, 172, 45, 0.97)"
|
||
],
|
||
"datasource": "${datasource}",
|
||
"decimals": 0,
|
||
"description": "**InnoDB Buffer Pool Size % of Total RAM**\n\nInnoDB maintains a storage area called the buffer pool for caching data and indexes in memory. Knowing how the InnoDB buffer pool works, and taking advantage of it to keep frequently accessed data in memory, is one of the most important aspects of MySQL tuning. The goal is to keep the working set in memory. In most cases, this should be between 60%-90% of available memory on a dedicated database host, but depends on many factors.",
|
||
"editable": true,
|
||
"error": false,
|
||
"format": "percent",
|
||
"gauge": {
|
||
"maxValue": 100,
|
||
"minValue": 0,
|
||
"show": false,
|
||
"thresholdLabels": false,
|
||
"thresholdMarkers": true
|
||
},
|
||
"gridPos": {
|
||
"h": 4,
|
||
"w": 6,
|
||
"x": 18,
|
||
"y": 1
|
||
},
|
||
"height": "125px",
|
||
"id": 52,
|
||
"interval": "$interval",
|
||
"links": [
|
||
{
|
||
"targetBlank": true,
|
||
"title": "Tuning the InnoDB Buffer Pool Size",
|
||
"type": "absolute",
|
||
"url": "https://www.percona.com/blog/2015/06/02/80-ram-tune-innodb_buffer_pool_size/"
|
||
}
|
||
],
|
||
"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": "80%",
|
||
"rangeMaps": [
|
||
{
|
||
"from": "null",
|
||
"text": "N/A",
|
||
"to": "null"
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"sparkline": {
|
||
"fillColor": "rgba(31, 118, 189, 0.18)",
|
||
"full": false,
|
||
"lineColor": "rgb(31, 120, 193)",
|
||
"maxValue": 100,
|
||
"minValue": 0,
|
||
"show": true
|
||
},
|
||
"tableColumn": "",
|
||
"targets": [
|
||
{
|
||
"calculatedInterval": "10m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "(mysql_global_variables_innodb_buffer_pool_size{instance=\"$host\"} * 100) / on (instance) node_memory_MemTotal_bytes{instance=\"$host\"}",
|
||
"format": "time_series",
|
||
"interval": "5m",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "",
|
||
"metric": "",
|
||
"refId": "A",
|
||
"step": 300
|
||
}
|
||
],
|
||
"thresholds": "40,80",
|
||
"title": "Buffer Pool Size of Total RAM",
|
||
"transparent": false,
|
||
"type": "singlestat",
|
||
"valueFontSize": "80%",
|
||
"valueMaps": [],
|
||
"valueName": "current"
|
||
},
|
||
{
|
||
"collapsed": false,
|
||
"gridPos": {
|
||
"h": 1,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 5
|
||
},
|
||
"id": 383,
|
||
"panels": [],
|
||
"repeat": null,
|
||
"title": "Connections",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"aliasColors": {},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "${datasource}",
|
||
"decimals": 0,
|
||
"description": "**Max Connections** \n\nMax Connections is the maximum permitted number of simultaneous client connections. By default, this is 151. Increasing this value increases the number of file descriptors that mysqld requires. If the required number of descriptors are not available, the server reduces the value of Max Connections.\n\nmysqld actually permits Max Connections + 1 clients to connect. The extra connection is reserved for use by accounts that have the SUPER privilege, such as root.\n\nMax Used Connections is the maximum number of connections that have been in use simultaneously since the server started.\n\nConnections is the number of connection attempts (successful or not) to the MySQL server.",
|
||
"editable": true,
|
||
"error": false,
|
||
"fill": 2,
|
||
"grid": {},
|
||
"gridPos": {
|
||
"h": 7,
|
||
"w": 12,
|
||
"x": 0,
|
||
"y": 6
|
||
},
|
||
"height": "250px",
|
||
"id": 92,
|
||
"legend": {
|
||
"alignAsTable": true,
|
||
"avg": true,
|
||
"current": false,
|
||
"max": true,
|
||
"min": true,
|
||
"show": true,
|
||
"sort": "avg",
|
||
"sortDesc": true,
|
||
"total": false,
|
||
"values": true
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [
|
||
{
|
||
"targetBlank": true,
|
||
"title": "MySQL Server System Variables",
|
||
"type": "absolute",
|
||
"url": "https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_max_connections"
|
||
}
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
{
|
||
"alias": "Max Connections",
|
||
"fill": 0
|
||
}
|
||
],
|
||
"spaceLength": 10,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "max(max_over_time(mysql_global_status_threads_connected{instance=\"$host\"}[$interval]) or mysql_global_status_threads_connected{instance=\"$host\"} )",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Connections",
|
||
"metric": "",
|
||
"refId": "A",
|
||
"step": 20
|
||
},
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "mysql_global_status_max_used_connections{instance=\"$host\"}",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Max Used Connections",
|
||
"metric": "",
|
||
"refId": "C",
|
||
"step": 20,
|
||
"target": ""
|
||
},
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "mysql_global_variables_max_connections{instance=\"$host\"}",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Max Connections",
|
||
"metric": "",
|
||
"refId": "B",
|
||
"step": 20,
|
||
"target": ""
|
||
}
|
||
],
|
||
"thresholds": [],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "MySQL Connections",
|
||
"tooltip": {
|
||
"msResolution": false,
|
||
"shared": true,
|
||
"sort": 0,
|
||
"value_type": "cumulative"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": []
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "short",
|
||
"label": "",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": "",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
],
|
||
"yaxis": {
|
||
"align": false,
|
||
"alignLevel": null
|
||
}
|
||
},
|
||
{
|
||
"aliasColors": {},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "${datasource}",
|
||
"decimals": 2,
|
||
"description": "**MySQL Active Threads**\n\nThreads Connected is the number of open connections, while Threads Running is the number of threads not sleeping.",
|
||
"editable": true,
|
||
"error": false,
|
||
"fill": 2,
|
||
"grid": {},
|
||
"gridPos": {
|
||
"h": 7,
|
||
"w": 12,
|
||
"x": 12,
|
||
"y": 6
|
||
},
|
||
"id": 10,
|
||
"legend": {
|
||
"alignAsTable": true,
|
||
"avg": true,
|
||
"current": true,
|
||
"max": true,
|
||
"min": true,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"sortDesc": true,
|
||
"total": false,
|
||
"values": true
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
{
|
||
"alias": "Peak Threads Running",
|
||
"color": "#E24D42",
|
||
"lines": false,
|
||
"pointradius": 1,
|
||
"points": true
|
||
},
|
||
{
|
||
"alias": "Peak Threads Connected",
|
||
"color": "#1F78C1"
|
||
},
|
||
{
|
||
"alias": "Avg Threads Running",
|
||
"color": "#EAB839"
|
||
}
|
||
],
|
||
"spaceLength": 10,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "max_over_time(mysql_global_status_threads_connected{instance=\"$host\"}[$interval]) or\nmax_over_time(mysql_global_status_threads_connected{instance=\"$host\"}[5m])",
|
||
"format": "time_series",
|
||
"hide": false,
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Peak Threads Connected",
|
||
"metric": "",
|
||
"refId": "A",
|
||
"step": 20
|
||
},
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "max_over_time(mysql_global_status_threads_running{instance=\"$host\"}[$interval]) or\nmax_over_time(mysql_global_status_threads_running{instance=\"$host\"}[5m])",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Peak Threads Running",
|
||
"metric": "",
|
||
"refId": "B",
|
||
"step": 20
|
||
},
|
||
{
|
||
"expr": "avg_over_time(mysql_global_status_threads_running{instance=\"$host\"}[$interval]) or \navg_over_time(mysql_global_status_threads_running{instance=\"$host\"}[5m])",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Avg Threads Running",
|
||
"refId": "C",
|
||
"step": 20
|
||
}
|
||
],
|
||
"thresholds": [],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "MySQL Client Thread Activity",
|
||
"tooltip": {
|
||
"msResolution": false,
|
||
"shared": true,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
"total"
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "short",
|
||
"label": "Threads",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": "",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": false
|
||
}
|
||
],
|
||
"yaxis": {
|
||
"align": false,
|
||
"alignLevel": null
|
||
}
|
||
},
|
||
{
|
||
"collapsed": false,
|
||
"gridPos": {
|
||
"h": 1,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 13
|
||
},
|
||
"id": 384,
|
||
"panels": [],
|
||
"repeat": null,
|
||
"title": "Table Locks",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"aliasColors": {},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "${datasource}",
|
||
"decimals": null,
|
||
"description": "**MySQL Questions**\n\nThe number of statements executed by the server. This includes only statements sent to the server by clients and not statements executed within stored programs, unlike the Queries used in the QPS calculation. \n\nThis variable does not count the following commands:\n* ``COM_PING``\n* ``COM_STATISTICS``\n* ``COM_STMT_PREPARE``\n* ``COM_STMT_CLOSE``\n* ``COM_STMT_RESET``",
|
||
"editable": true,
|
||
"error": false,
|
||
"fill": 2,
|
||
"grid": {},
|
||
"gridPos": {
|
||
"h": 7,
|
||
"w": 12,
|
||
"x": 0,
|
||
"y": 14
|
||
},
|
||
"id": 53,
|
||
"legend": {
|
||
"alignAsTable": true,
|
||
"avg": true,
|
||
"current": false,
|
||
"max": true,
|
||
"min": true,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": true
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [
|
||
{
|
||
"targetBlank": true,
|
||
"title": "MySQL Queries and Questions",
|
||
"type": "absolute",
|
||
"url": "https://www.percona.com/blog/2014/05/29/how-mysql-queries-and-questions-are-measured/"
|
||
}
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [],
|
||
"spaceLength": 10,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "rate(mysql_global_status_questions{instance=\"$host\"}[$interval]) or irate(mysql_global_status_questions{instance=\"$host\"}[5m])",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Questions",
|
||
"metric": "",
|
||
"refId": "A",
|
||
"step": 20
|
||
}
|
||
],
|
||
"thresholds": [],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "MySQL Questions",
|
||
"tooltip": {
|
||
"msResolution": false,
|
||
"shared": true,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": []
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "short",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
],
|
||
"yaxis": {
|
||
"align": false,
|
||
"alignLevel": null
|
||
}
|
||
},
|
||
{
|
||
"aliasColors": {},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "${datasource}",
|
||
"decimals": 2,
|
||
"description": "**MySQL Thread Cache**\n\nThe thread_cache_size variable sets how many threads the server should cache to reuse. When a client disconnects, the client's threads are put in the cache if the cache is not full. It is autosized in MySQL 5.6.8 and above (capped to 100). Requests for threads are satisfied by reusing threads taken from the cache if possible, and only when the cache is empty is a new thread created.\n\n* *Threads_created*: The number of threads created to handle connections.\n* *Threads_cached*: The number of threads in the thread cache.",
|
||
"editable": true,
|
||
"error": false,
|
||
"fill": 2,
|
||
"grid": {},
|
||
"gridPos": {
|
||
"h": 7,
|
||
"w": 12,
|
||
"x": 12,
|
||
"y": 14
|
||
},
|
||
"id": 11,
|
||
"legend": {
|
||
"alignAsTable": true,
|
||
"avg": true,
|
||
"current": false,
|
||
"max": true,
|
||
"min": true,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"sort": "avg",
|
||
"sortDesc": true,
|
||
"total": false,
|
||
"values": true
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [
|
||
{
|
||
"title": "Tuning information",
|
||
"type": "absolute",
|
||
"url": "https://dev.mysql.com/doc/refman/5.6/en/server-system-variables.html#sysvar_thread_cache_size"
|
||
}
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
{
|
||
"alias": "Threads Created",
|
||
"fill": 0
|
||
}
|
||
],
|
||
"spaceLength": 10,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "mysql_global_variables_thread_cache_size{instance=\"$host\"}",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Thread Cache Size",
|
||
"metric": "",
|
||
"refId": "B",
|
||
"step": 20
|
||
},
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "mysql_global_status_threads_cached{instance=\"$host\"}",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Threads Cached",
|
||
"metric": "",
|
||
"refId": "C",
|
||
"step": 20
|
||
},
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "rate(mysql_global_status_threads_created{instance=\"$host\"}[$interval]) or irate(mysql_global_status_threads_created{instance=\"$host\"}[5m])",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Threads Created",
|
||
"metric": "",
|
||
"refId": "A",
|
||
"step": 20
|
||
}
|
||
],
|
||
"thresholds": [],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "MySQL Thread Cache",
|
||
"tooltip": {
|
||
"msResolution": false,
|
||
"shared": true,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"transparent": false,
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": []
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "short",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
],
|
||
"yaxis": {
|
||
"align": false,
|
||
"alignLevel": null
|
||
}
|
||
},
|
||
{
|
||
"collapsed": false,
|
||
"gridPos": {
|
||
"h": 1,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 21
|
||
},
|
||
"id": 385,
|
||
"panels": [],
|
||
"repeat": null,
|
||
"title": "Temporary Objects",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"aliasColors": {},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "${datasource}",
|
||
"decimals": 2,
|
||
"editable": true,
|
||
"error": false,
|
||
"fill": 2,
|
||
"grid": {},
|
||
"gridPos": {
|
||
"h": 7,
|
||
"w": 12,
|
||
"x": 0,
|
||
"y": 22
|
||
},
|
||
"id": 22,
|
||
"legend": {
|
||
"alignAsTable": true,
|
||
"avg": true,
|
||
"current": false,
|
||
"max": true,
|
||
"min": true,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"sort": "avg",
|
||
"sortDesc": true,
|
||
"total": false,
|
||
"values": true
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [],
|
||
"spaceLength": 10,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "rate(mysql_global_status_created_tmp_tables{instance=\"$host\"}[$interval]) or irate(mysql_global_status_created_tmp_tables{instance=\"$host\"}[5m])",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Created Tmp Tables",
|
||
"metric": "",
|
||
"refId": "A",
|
||
"step": 20
|
||
},
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "rate(mysql_global_status_created_tmp_disk_tables{instance=\"$host\"}[$interval]) or irate(mysql_global_status_created_tmp_disk_tables{instance=\"$host\"}[5m])",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Created Tmp Disk Tables",
|
||
"metric": "",
|
||
"refId": "B",
|
||
"step": 20
|
||
},
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "rate(mysql_global_status_created_tmp_files{instance=\"$host\"}[$interval]) or irate(mysql_global_status_created_tmp_files{instance=\"$host\"}[5m])",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Created Tmp Files",
|
||
"metric": "",
|
||
"refId": "C",
|
||
"step": 20
|
||
}
|
||
],
|
||
"thresholds": [],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "MySQL Temporary Objects",
|
||
"tooltip": {
|
||
"msResolution": false,
|
||
"shared": true,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": []
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "short",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
],
|
||
"yaxis": {
|
||
"align": false,
|
||
"alignLevel": null
|
||
}
|
||
},
|
||
{
|
||
"aliasColors": {},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "${datasource}",
|
||
"decimals": 2,
|
||
"description": "**MySQL Select Types**\n\nAs with most relational databases, selecting based on indexes is more efficient than scanning an entire table's data. Here we see the counters for selects not done with indexes.\n\n* ***Select Scan*** is how many queries caused full table scans, in which all the data in the table had to be read and either discarded or returned.\n* ***Select Range*** is how many queries used a range scan, which means MySQL scanned all rows in a given range.\n* ***Select Full Join*** is the number of joins that are not joined on an index, this is usually a huge performance hit.",
|
||
"editable": true,
|
||
"error": false,
|
||
"fill": 2,
|
||
"grid": {},
|
||
"gridPos": {
|
||
"h": 7,
|
||
"w": 12,
|
||
"x": 12,
|
||
"y": 22
|
||
},
|
||
"height": "250px",
|
||
"id": 311,
|
||
"legend": {
|
||
"alignAsTable": true,
|
||
"avg": true,
|
||
"current": false,
|
||
"hideZero": true,
|
||
"max": true,
|
||
"min": true,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"sort": "avg",
|
||
"sortDesc": true,
|
||
"total": false,
|
||
"values": true
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [],
|
||
"spaceLength": 10,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "rate(mysql_global_status_select_full_join{instance=\"$host\"}[$interval]) or irate(mysql_global_status_select_full_join{instance=\"$host\"}[5m])",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Select Full Join",
|
||
"metric": "",
|
||
"refId": "A",
|
||
"step": 20
|
||
},
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "rate(mysql_global_status_select_full_range_join{instance=\"$host\"}[$interval]) or irate(mysql_global_status_select_full_range_join{instance=\"$host\"}[5m])",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Select Full Range Join",
|
||
"metric": "",
|
||
"refId": "B",
|
||
"step": 20
|
||
},
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "rate(mysql_global_status_select_range{instance=\"$host\"}[$interval]) or irate(mysql_global_status_select_range{instance=\"$host\"}[5m])",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Select Range",
|
||
"metric": "",
|
||
"refId": "C",
|
||
"step": 20
|
||
},
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "rate(mysql_global_status_select_range_check{instance=\"$host\"}[$interval]) or irate(mysql_global_status_select_range_check{instance=\"$host\"}[5m])",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Select Range Check",
|
||
"metric": "",
|
||
"refId": "D",
|
||
"step": 20
|
||
},
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "rate(mysql_global_status_select_scan{instance=\"$host\"}[$interval]) or irate(mysql_global_status_select_scan{instance=\"$host\"}[5m])",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Select Scan",
|
||
"metric": "",
|
||
"refId": "E",
|
||
"step": 20
|
||
}
|
||
],
|
||
"thresholds": [],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "MySQL Select Types",
|
||
"tooltip": {
|
||
"msResolution": false,
|
||
"shared": true,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": []
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "short",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
],
|
||
"yaxis": {
|
||
"align": false,
|
||
"alignLevel": null
|
||
}
|
||
},
|
||
{
|
||
"collapsed": false,
|
||
"gridPos": {
|
||
"h": 1,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 29
|
||
},
|
||
"id": 386,
|
||
"panels": [],
|
||
"repeat": null,
|
||
"title": "Sorts",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"aliasColors": {},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "${datasource}",
|
||
"decimals": 2,
|
||
"description": "**MySQL Sorts**\n\nDue to a query's structure, order, or other requirements, MySQL sorts the rows before returning them. For example, if a table is ordered 1 to 10 but you want the results reversed, MySQL then has to sort the rows to return 10 to 1.\n\nThis graph also shows when sorts had to scan a whole table or a given range of a table in order to return the results and which could not have been sorted via an index.",
|
||
"editable": true,
|
||
"error": false,
|
||
"fill": 2,
|
||
"grid": {},
|
||
"gridPos": {
|
||
"h": 7,
|
||
"w": 12,
|
||
"x": 0,
|
||
"y": 30
|
||
},
|
||
"id": 30,
|
||
"legend": {
|
||
"alignAsTable": true,
|
||
"avg": true,
|
||
"current": false,
|
||
"hideZero": true,
|
||
"max": true,
|
||
"min": true,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"sort": "avg",
|
||
"sortDesc": true,
|
||
"total": false,
|
||
"values": true
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [],
|
||
"spaceLength": 10,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "rate(mysql_global_status_sort_rows{instance=\"$host\"}[$interval]) or irate(mysql_global_status_sort_rows{instance=\"$host\"}[5m])",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Sort Rows",
|
||
"metric": "",
|
||
"refId": "A",
|
||
"step": 20
|
||
},
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "rate(mysql_global_status_sort_range{instance=\"$host\"}[$interval]) or irate(mysql_global_status_sort_range{instance=\"$host\"}[5m])",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Sort Range",
|
||
"metric": "",
|
||
"refId": "B",
|
||
"step": 20
|
||
},
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "rate(mysql_global_status_sort_merge_passes{instance=\"$host\"}[$interval]) or irate(mysql_global_status_sort_merge_passes{instance=\"$host\"}[5m])",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Sort Merge Passes",
|
||
"metric": "",
|
||
"refId": "C",
|
||
"step": 20
|
||
},
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "rate(mysql_global_status_sort_scan{instance=\"$host\"}[$interval]) or irate(mysql_global_status_sort_scan{instance=\"$host\"}[5m])",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Sort Scan",
|
||
"metric": "",
|
||
"refId": "D",
|
||
"step": 20
|
||
}
|
||
],
|
||
"thresholds": [],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "MySQL Sorts",
|
||
"tooltip": {
|
||
"msResolution": false,
|
||
"shared": true,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": []
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "short",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
],
|
||
"yaxis": {
|
||
"align": false,
|
||
"alignLevel": null
|
||
}
|
||
},
|
||
{
|
||
"aliasColors": {},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "${datasource}",
|
||
"decimals": 2,
|
||
"description": "**MySQL Slow Queries**\n\nSlow queries are defined as queries being slower than the long_query_time setting. For example, if you have long_query_time set to 3, all queries that take longer than 3 seconds to complete will show on this graph.",
|
||
"editable": true,
|
||
"error": false,
|
||
"fill": 2,
|
||
"grid": {},
|
||
"gridPos": {
|
||
"h": 7,
|
||
"w": 12,
|
||
"x": 12,
|
||
"y": 30
|
||
},
|
||
"id": 48,
|
||
"legend": {
|
||
"alignAsTable": true,
|
||
"avg": true,
|
||
"current": false,
|
||
"max": true,
|
||
"min": true,
|
||
"show": true,
|
||
"total": false,
|
||
"values": true
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [],
|
||
"spaceLength": 10,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "rate(mysql_global_status_slow_queries{instance=\"$host\"}[$interval]) or irate(mysql_global_status_slow_queries{instance=\"$host\"}[5m])",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Slow Queries",
|
||
"metric": "",
|
||
"refId": "A",
|
||
"step": 20
|
||
}
|
||
],
|
||
"thresholds": [],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "MySQL Slow Queries",
|
||
"tooltip": {
|
||
"msResolution": false,
|
||
"shared": true,
|
||
"sort": 0,
|
||
"value_type": "cumulative"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": []
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "short",
|
||
"label": "",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": "",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
],
|
||
"yaxis": {
|
||
"align": false,
|
||
"alignLevel": null
|
||
}
|
||
},
|
||
{
|
||
"collapsed": false,
|
||
"gridPos": {
|
||
"h": 1,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 37
|
||
},
|
||
"id": 387,
|
||
"panels": [],
|
||
"repeat": null,
|
||
"title": "Aborted",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"aliasColors": {},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "${datasource}",
|
||
"decimals": 2,
|
||
"description": "**Aborted Connections**\n\nWhen a given host connects to MySQL and the connection is interrupted in the middle (for example due to bad credentials), MySQL keeps that info in a system table (since 5.6 this table is exposed in performance_schema).\n\nIf the amount of failed requests without a successful connection reaches the value of max_connect_errors, mysqld assumes that something is wrong and blocks the host from further connection.\n\nTo allow connections from that host again, you need to issue the ``FLUSH HOSTS`` statement.",
|
||
"editable": true,
|
||
"error": false,
|
||
"fill": 2,
|
||
"grid": {},
|
||
"gridPos": {
|
||
"h": 7,
|
||
"w": 12,
|
||
"x": 0,
|
||
"y": 38
|
||
},
|
||
"id": 47,
|
||
"legend": {
|
||
"alignAsTable": true,
|
||
"avg": true,
|
||
"current": false,
|
||
"max": true,
|
||
"min": true,
|
||
"show": true,
|
||
"sort": "avg",
|
||
"sortDesc": true,
|
||
"total": false,
|
||
"values": true
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [],
|
||
"spaceLength": 10,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "rate(mysql_global_status_aborted_connects{instance=\"$host\"}[$interval]) or irate(mysql_global_status_aborted_connects{instance=\"$host\"}[5m])",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Aborted Connects (attempts)",
|
||
"metric": "",
|
||
"refId": "A",
|
||
"step": 20
|
||
},
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "rate(mysql_global_status_aborted_clients{instance=\"$host\"}[$interval]) or irate(mysql_global_status_aborted_clients{instance=\"$host\"}[5m])",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Aborted Clients (timeout)",
|
||
"metric": "",
|
||
"refId": "B",
|
||
"step": 20,
|
||
"target": ""
|
||
}
|
||
],
|
||
"thresholds": [],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "MySQL Aborted Connections",
|
||
"tooltip": {
|
||
"msResolution": false,
|
||
"shared": true,
|
||
"sort": 0,
|
||
"value_type": "cumulative"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": []
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "short",
|
||
"label": "",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": "",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
],
|
||
"yaxis": {
|
||
"align": false,
|
||
"alignLevel": null
|
||
}
|
||
},
|
||
{
|
||
"aliasColors": {},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "${datasource}",
|
||
"decimals": 2,
|
||
"description": "**Table Locks**\n\nMySQL takes a number of different locks for varying reasons. In this graph we see how many Table level locks MySQL has requested from the storage engine. In the case of InnoDB, many times the locks could actually be row locks as it only takes table level locks in a few specific cases.\n\nIt is most useful to compare Locks Immediate and Locks Waited. If Locks waited is rising, it means you have lock contention. Otherwise, Locks Immediate rising and falling is normal activity.",
|
||
"editable": true,
|
||
"error": false,
|
||
"fill": 2,
|
||
"grid": {},
|
||
"gridPos": {
|
||
"h": 7,
|
||
"w": 12,
|
||
"x": 12,
|
||
"y": 38
|
||
},
|
||
"id": 32,
|
||
"legend": {
|
||
"alignAsTable": true,
|
||
"avg": true,
|
||
"current": false,
|
||
"max": true,
|
||
"min": true,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"sort": "avg",
|
||
"sortDesc": true,
|
||
"total": false,
|
||
"values": true
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [],
|
||
"spaceLength": 10,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "rate(mysql_global_status_table_locks_immediate{instance=\"$host\"}[$interval]) or irate(mysql_global_status_table_locks_immediate{instance=\"$host\"}[5m])",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Table Locks Immediate",
|
||
"metric": "",
|
||
"refId": "A",
|
||
"step": 20
|
||
},
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "rate(mysql_global_status_table_locks_waited{instance=\"$host\"}[$interval]) or irate(mysql_global_status_table_locks_waited{instance=\"$host\"}[5m])",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Table Locks Waited",
|
||
"metric": "",
|
||
"refId": "B",
|
||
"step": 20
|
||
}
|
||
],
|
||
"thresholds": [],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "MySQL Table Locks",
|
||
"tooltip": {
|
||
"msResolution": false,
|
||
"shared": true,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": []
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "short",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
],
|
||
"yaxis": {
|
||
"align": false,
|
||
"alignLevel": null
|
||
}
|
||
},
|
||
{
|
||
"collapsed": false,
|
||
"gridPos": {
|
||
"h": 1,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 45
|
||
},
|
||
"id": 388,
|
||
"panels": [],
|
||
"repeat": null,
|
||
"title": "Network",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"aliasColors": {},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "${datasource}",
|
||
"decimals": 2,
|
||
"description": "**MySQL Network Traffic**\n\nHere we can see how much network traffic is generated by MySQL. Outbound is network traffic sent from MySQL and Inbound is network traffic MySQL has received.",
|
||
"editable": true,
|
||
"error": false,
|
||
"fill": 6,
|
||
"grid": {},
|
||
"gridPos": {
|
||
"h": 7,
|
||
"w": 12,
|
||
"x": 0,
|
||
"y": 46
|
||
},
|
||
"id": 9,
|
||
"legend": {
|
||
"alignAsTable": true,
|
||
"avg": true,
|
||
"current": false,
|
||
"max": true,
|
||
"min": true,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"sort": "avg",
|
||
"sortDesc": true,
|
||
"total": false,
|
||
"values": true
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [],
|
||
"spaceLength": 10,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "rate(mysql_global_status_bytes_received{instance=\"$host\"}[$interval]) or irate(mysql_global_status_bytes_received{instance=\"$host\"}[5m])",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Inbound",
|
||
"metric": "",
|
||
"refId": "A",
|
||
"step": 20
|
||
},
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "rate(mysql_global_status_bytes_sent{instance=\"$host\"}[$interval]) or irate(mysql_global_status_bytes_sent{instance=\"$host\"}[5m])",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Outbound",
|
||
"metric": "",
|
||
"refId": "B",
|
||
"step": 20
|
||
}
|
||
],
|
||
"thresholds": [],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "MySQL Network Traffic",
|
||
"tooltip": {
|
||
"msResolution": false,
|
||
"shared": true,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": []
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "Bps",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "none",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
],
|
||
"yaxis": {
|
||
"align": false,
|
||
"alignLevel": null
|
||
}
|
||
},
|
||
{
|
||
"aliasColors": {},
|
||
"bars": true,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "${datasource}",
|
||
"decimals": 2,
|
||
"description": "**MySQL Network Usage Hourly**\n\nHere we can see how much network traffic is generated by MySQL per hour. You can use the bar graph to compare data sent by MySQL and data received by MySQL.",
|
||
"editable": true,
|
||
"error": false,
|
||
"fill": 6,
|
||
"grid": {},
|
||
"gridPos": {
|
||
"h": 7,
|
||
"w": 12,
|
||
"x": 12,
|
||
"y": 46
|
||
},
|
||
"height": "250px",
|
||
"id": 381,
|
||
"legend": {
|
||
"alignAsTable": true,
|
||
"avg": true,
|
||
"current": false,
|
||
"max": true,
|
||
"min": true,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"sort": "avg",
|
||
"sortDesc": true,
|
||
"total": false,
|
||
"values": true
|
||
},
|
||
"lines": false,
|
||
"linewidth": 2,
|
||
"links": [],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [],
|
||
"spaceLength": 10,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "increase(mysql_global_status_bytes_received{instance=\"$host\"}[1h])",
|
||
"format": "time_series",
|
||
"interval": "1h",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Received",
|
||
"metric": "",
|
||
"refId": "A",
|
||
"step": 3600
|
||
},
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "increase(mysql_global_status_bytes_sent{instance=\"$host\"}[1h])",
|
||
"format": "time_series",
|
||
"interval": "1h",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Sent",
|
||
"metric": "",
|
||
"refId": "B",
|
||
"step": 3600
|
||
}
|
||
],
|
||
"thresholds": [],
|
||
"timeFrom": "24h",
|
||
"timeShift": null,
|
||
"title": "MySQL Network Usage Hourly",
|
||
"tooltip": {
|
||
"msResolution": false,
|
||
"shared": true,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": []
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "bytes",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "none",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
],
|
||
"yaxis": {
|
||
"align": false,
|
||
"alignLevel": null
|
||
}
|
||
},
|
||
{
|
||
"collapsed": false,
|
||
"gridPos": {
|
||
"h": 1,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 53
|
||
},
|
||
"id": 389,
|
||
"panels": [],
|
||
"repeat": null,
|
||
"title": "Memory",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"aliasColors": {},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "${datasource}",
|
||
"decimals": 0,
|
||
"description": "***System Memory***: Total Memory for the system.\\\n***InnoDB Buffer Pool Data***: InnoDB maintains a storage area called the buffer pool for caching data and indexes in memory.\\\n***TokuDB Cache Size***: Similar in function to the InnoDB Buffer Pool, TokuDB will allocate 50% of the installed RAM for its own cache.\\\n***Key Buffer Size***: Index blocks for MYISAM tables are buffered and are shared by all threads. key_buffer_size is the size of the buffer used for index blocks.\\\n***Adaptive Hash Index Size***: When InnoDB notices that some index values are being accessed very frequently, it builds a hash index for them in memory on top of B-Tree indexes.\\\n ***Query Cache Size***: The query cache stores the text of a SELECT statement together with the corresponding result that was sent to the client. The query cache has huge scalability problems in that only one thread can do an operation in the query cache at the same time.\\\n***InnoDB Dictionary Size***: The data dictionary is InnoDB ‘s internal catalog of tables. InnoDB stores the data dictionary on disk, and loads entries into memory while the server is running.\\\n***InnoDB Log Buffer Size***: The MySQL InnoDB log buffer allows transactions to run without having to write the log to disk before the transactions commit.",
|
||
"editable": true,
|
||
"error": false,
|
||
"fill": 6,
|
||
"grid": {},
|
||
"gridPos": {
|
||
"h": 7,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 54
|
||
},
|
||
"id": 50,
|
||
"legend": {
|
||
"alignAsTable": true,
|
||
"avg": true,
|
||
"current": false,
|
||
"hideEmpty": true,
|
||
"hideZero": true,
|
||
"max": true,
|
||
"min": true,
|
||
"rightSide": true,
|
||
"show": true,
|
||
"sort": "avg",
|
||
"sortDesc": true,
|
||
"total": false,
|
||
"values": true
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [
|
||
{
|
||
"title": "Detailed descriptions about metrics",
|
||
"type": "absolute",
|
||
"url": "https://www.percona.com/doc/percona-monitoring-and-management/dashboard.mysql-overview.html#mysql-internal-memory-overview"
|
||
}
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
{
|
||
"alias": "System Memory",
|
||
"fill": 0,
|
||
"stack": false
|
||
}
|
||
],
|
||
"spaceLength": 10,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "node_memory_MemTotal_bytes{instance=\"$host\"}",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "System Memory",
|
||
"refId": "G",
|
||
"step": 4
|
||
},
|
||
{
|
||
"expr": "mysql_global_status_innodb_page_size{instance=\"$host\"} * on (instance) mysql_global_status_buffer_pool_pages{instance=\"$host\",state=\"data\"}",
|
||
"format": "time_series",
|
||
"hide": false,
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "InnoDB Buffer Pool Data",
|
||
"refId": "A",
|
||
"step": 20
|
||
},
|
||
{
|
||
"expr": "mysql_global_variables_innodb_log_buffer_size{instance=\"$host\"}",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "InnoDB Log Buffer Size",
|
||
"refId": "D",
|
||
"step": 20
|
||
},
|
||
{
|
||
"expr": "mysql_global_variables_innodb_additional_mem_pool_size{instance=\"$host\"}",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "InnoDB Additional Memory Pool Size",
|
||
"refId": "H",
|
||
"step": 40
|
||
},
|
||
{
|
||
"expr": "mysql_global_status_innodb_mem_dictionary{instance=\"$host\"}",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "InnoDB Dictionary Size",
|
||
"refId": "F",
|
||
"step": 20
|
||
},
|
||
{
|
||
"expr": "mysql_global_variables_key_buffer_size{instance=\"$host\"}",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Key Buffer Size",
|
||
"refId": "B",
|
||
"step": 20
|
||
},
|
||
{
|
||
"expr": "mysql_global_variables_query_cache_size{instance=\"$host\"}",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Query Cache Size",
|
||
"refId": "C",
|
||
"step": 20
|
||
},
|
||
{
|
||
"expr": "mysql_global_status_innodb_mem_adaptive_hash{instance=\"$host\"}",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Adaptive Hash Index Size",
|
||
"refId": "E",
|
||
"step": 20
|
||
},
|
||
{
|
||
"expr": "mysql_global_variables_tokudb_cache_size{instance=\"$host\"}",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "TokuDB Cache Size",
|
||
"refId": "I",
|
||
"step": 20
|
||
}
|
||
],
|
||
"thresholds": [],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "MySQL Internal Memory Overview",
|
||
"tooltip": {
|
||
"msResolution": false,
|
||
"shared": true,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": []
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "bytes",
|
||
"label": "",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": true
|
||
}
|
||
],
|
||
"yaxis": {
|
||
"align": false,
|
||
"alignLevel": null
|
||
}
|
||
},
|
||
{
|
||
"collapsed": false,
|
||
"gridPos": {
|
||
"h": 1,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 61
|
||
},
|
||
"id": 390,
|
||
"panels": [],
|
||
"repeat": null,
|
||
"title": "Command, Handlers, Processes",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"aliasColors": {},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "${datasource}",
|
||
"decimals": 2,
|
||
"description": "**Top Command Counters**\n\nThe Com_{{xxx}} statement counter variables indicate the number of times each xxx statement has been executed. There is one status variable for each type of statement. For example, Com_delete and Com_update count [``DELETE``](https://dev.mysql.com/doc/refman/5.7/en/delete.html) and [``UPDATE``](https://dev.mysql.com/doc/refman/5.7/en/update.html) statements, respectively. Com_delete_multi and Com_update_multi are similar but apply to [``DELETE``](https://dev.mysql.com/doc/refman/5.7/en/delete.html) and [``UPDATE``](https://dev.mysql.com/doc/refman/5.7/en/update.html) statements that use multiple-table syntax.",
|
||
"editable": true,
|
||
"error": false,
|
||
"fill": 2,
|
||
"grid": {},
|
||
"gridPos": {
|
||
"h": 7,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 62
|
||
},
|
||
"id": 14,
|
||
"legend": {
|
||
"alignAsTable": true,
|
||
"avg": true,
|
||
"current": false,
|
||
"hideEmpty": false,
|
||
"hideZero": false,
|
||
"max": true,
|
||
"min": true,
|
||
"rightSide": true,
|
||
"show": true,
|
||
"sort": "avg",
|
||
"sortDesc": true,
|
||
"total": false,
|
||
"values": true
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [
|
||
{
|
||
"title": "Server Status Variables (Com_xxx)",
|
||
"type": "absolute",
|
||
"url": "https://dev.mysql.com/doc/refman/5.7/en/server-status-variables.html#statvar_Com_xxx"
|
||
}
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [],
|
||
"spaceLength": 10,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "topk(5, rate(mysql_global_status_commands_total{instance=\"$host\"}[$interval])>0) or topk(5, irate(mysql_global_status_commands_total{instance=\"$host\"}[5m])>0)",
|
||
"format": "time_series",
|
||
"hide": false,
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Com_{{ command }}",
|
||
"metric": "",
|
||
"refId": "B",
|
||
"step": 20
|
||
}
|
||
],
|
||
"thresholds": [],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Top Command Counters",
|
||
"tooltip": {
|
||
"msResolution": false,
|
||
"shared": true,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": []
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "short",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
],
|
||
"yaxis": {
|
||
"align": false,
|
||
"alignLevel": null
|
||
}
|
||
},
|
||
{
|
||
"aliasColors": {},
|
||
"bars": true,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "${datasource}",
|
||
"decimals": 2,
|
||
"description": "**Top Command Counters Hourly**\n\nThe Com_{{xxx}} statement counter variables indicate the number of times each xxx statement has been executed. There is one status variable for each type of statement. For example, Com_delete and Com_update count [``DELETE``](https://dev.mysql.com/doc/refman/5.7/en/delete.html) and [``UPDATE``](https://dev.mysql.com/doc/refman/5.7/en/update.html) statements, respectively. Com_delete_multi and Com_update_multi are similar but apply to [``DELETE``](https://dev.mysql.com/doc/refman/5.7/en/delete.html) and [``UPDATE``](https://dev.mysql.com/doc/refman/5.7/en/update.html) statements that use multiple-table syntax.",
|
||
"editable": true,
|
||
"error": false,
|
||
"fill": 6,
|
||
"grid": {},
|
||
"gridPos": {
|
||
"h": 7,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 69
|
||
},
|
||
"id": 39,
|
||
"legend": {
|
||
"alignAsTable": true,
|
||
"avg": true,
|
||
"current": false,
|
||
"max": true,
|
||
"min": true,
|
||
"rightSide": true,
|
||
"show": true,
|
||
"sort": "avg",
|
||
"sortDesc": true,
|
||
"total": false,
|
||
"values": true
|
||
},
|
||
"lines": false,
|
||
"linewidth": 2,
|
||
"links": [
|
||
{
|
||
"dashboard": "https://dev.mysql.com/doc/refman/5.7/en/server-status-variables.html#statvar_Com_xxx",
|
||
"title": "Server Status Variables (Com_xxx)",
|
||
"type": "absolute",
|
||
"url": "https://dev.mysql.com/doc/refman/5.7/en/server-status-variables.html#statvar_Com_xxx"
|
||
}
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [],
|
||
"spaceLength": 10,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "topk(5, increase(mysql_global_status_commands_total{instance=\"$host\"}[1h])>0)",
|
||
"format": "time_series",
|
||
"interval": "1h",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Com_{{ command }}",
|
||
"metric": "",
|
||
"refId": "A",
|
||
"step": 3600
|
||
}
|
||
],
|
||
"thresholds": [],
|
||
"timeFrom": "24h",
|
||
"timeShift": null,
|
||
"title": "Top Command Counters Hourly",
|
||
"tooltip": {
|
||
"msResolution": false,
|
||
"shared": true,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": []
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "short",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
],
|
||
"yaxis": {
|
||
"align": false,
|
||
"alignLevel": null
|
||
}
|
||
},
|
||
{
|
||
"aliasColors": {},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "${datasource}",
|
||
"decimals": 2,
|
||
"description": "**MySQL Handlers**\n\nHandler statistics are internal statistics on how MySQL is selecting, updating, inserting, and modifying rows, tables, and indexes.\n\nThis is in fact the layer between the Storage Engine and MySQL.\n\n* `read_rnd_next` is incremented when the server performs a full table scan and this is a counter you don't really want to see with a high value.\n* `read_key` is incremented when a read is done with an index.\n* `read_next` is incremented when the storage engine is asked to 'read the next index entry'. A high value means a lot of index scans are being done.",
|
||
"editable": true,
|
||
"error": false,
|
||
"fill": 2,
|
||
"grid": {},
|
||
"gridPos": {
|
||
"h": 7,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 76
|
||
},
|
||
"id": 8,
|
||
"legend": {
|
||
"alignAsTable": true,
|
||
"avg": true,
|
||
"current": false,
|
||
"hideZero": true,
|
||
"max": true,
|
||
"min": true,
|
||
"rightSide": true,
|
||
"show": true,
|
||
"sort": "avg",
|
||
"sortDesc": true,
|
||
"total": false,
|
||
"values": true
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [],
|
||
"spaceLength": 10,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "rate(mysql_global_status_handlers_total{instance=\"$host\", handler!~\"commit|rollback|savepoint.*|prepare\"}[$interval]) or irate(mysql_global_status_handlers_total{instance=\"$host\", handler!~\"commit|rollback|savepoint.*|prepare\"}[5m])",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "{{ handler }}",
|
||
"metric": "",
|
||
"refId": "J",
|
||
"step": 20
|
||
}
|
||
],
|
||
"thresholds": [],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "MySQL Handlers",
|
||
"tooltip": {
|
||
"msResolution": false,
|
||
"shared": true,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": []
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "short",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
],
|
||
"yaxis": {
|
||
"align": false,
|
||
"alignLevel": null
|
||
}
|
||
},
|
||
{
|
||
"aliasColors": {},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "${datasource}",
|
||
"decimals": 2,
|
||
"editable": true,
|
||
"error": false,
|
||
"fill": 2,
|
||
"grid": {},
|
||
"gridPos": {
|
||
"h": 7,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 83
|
||
},
|
||
"id": 28,
|
||
"legend": {
|
||
"alignAsTable": true,
|
||
"avg": true,
|
||
"current": false,
|
||
"hideZero": true,
|
||
"max": true,
|
||
"min": true,
|
||
"rightSide": true,
|
||
"show": true,
|
||
"sort": "avg",
|
||
"sortDesc": true,
|
||
"total": false,
|
||
"values": true
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [],
|
||
"spaceLength": 10,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "rate(mysql_global_status_handlers_total{instance=\"$host\", handler=~\"commit|rollback|savepoint.*|prepare\"}[$interval]) or irate(mysql_global_status_handlers_total{instance=\"$host\", handler=~\"commit|rollback|savepoint.*|prepare\"}[5m])",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "{{ handler }}",
|
||
"metric": "",
|
||
"refId": "A",
|
||
"step": 20
|
||
}
|
||
],
|
||
"thresholds": [],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "MySQL Transaction Handlers",
|
||
"tooltip": {
|
||
"msResolution": false,
|
||
"shared": true,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": []
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "short",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
],
|
||
"yaxis": {
|
||
"align": false,
|
||
"alignLevel": null
|
||
}
|
||
},
|
||
{
|
||
"aliasColors": {},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "${datasource}",
|
||
"decimals": 2,
|
||
"editable": true,
|
||
"error": false,
|
||
"fill": 0,
|
||
"grid": {},
|
||
"gridPos": {
|
||
"h": 7,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 90
|
||
},
|
||
"id": 40,
|
||
"legend": {
|
||
"alignAsTable": true,
|
||
"avg": true,
|
||
"current": false,
|
||
"hideZero": true,
|
||
"max": true,
|
||
"min": false,
|
||
"rightSide": true,
|
||
"show": true,
|
||
"sort": "avg",
|
||
"sortDesc": true,
|
||
"total": false,
|
||
"values": true
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [],
|
||
"spaceLength": 10,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "mysql_info_schema_threads{instance=\"$host\"}",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "{{ state }}",
|
||
"metric": "",
|
||
"refId": "A",
|
||
"step": 20
|
||
}
|
||
],
|
||
"thresholds": [],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Process States",
|
||
"tooltip": {
|
||
"msResolution": false,
|
||
"shared": true,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": []
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "short",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
],
|
||
"yaxis": {
|
||
"align": false,
|
||
"alignLevel": null
|
||
}
|
||
},
|
||
{
|
||
"aliasColors": {},
|
||
"bars": true,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "${datasource}",
|
||
"decimals": 2,
|
||
"editable": true,
|
||
"error": false,
|
||
"fill": 6,
|
||
"grid": {},
|
||
"gridPos": {
|
||
"h": 7,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 97
|
||
},
|
||
"id": 49,
|
||
"legend": {
|
||
"alignAsTable": true,
|
||
"avg": true,
|
||
"current": false,
|
||
"hideZero": true,
|
||
"max": true,
|
||
"min": false,
|
||
"rightSide": true,
|
||
"show": true,
|
||
"sort": "avg",
|
||
"sortDesc": true,
|
||
"total": false,
|
||
"values": true
|
||
},
|
||
"lines": false,
|
||
"linewidth": 2,
|
||
"links": [],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [],
|
||
"spaceLength": 10,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "topk(5, avg_over_time(mysql_info_schema_threads{instance=\"$host\"}[1h]))",
|
||
"interval": "1h",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "{{ state }}",
|
||
"metric": "",
|
||
"refId": "A",
|
||
"step": 3600
|
||
}
|
||
],
|
||
"thresholds": [],
|
||
"timeFrom": "24h",
|
||
"timeShift": null,
|
||
"title": "Top Process States Hourly",
|
||
"tooltip": {
|
||
"msResolution": false,
|
||
"shared": true,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": []
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "short",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
],
|
||
"yaxis": {
|
||
"align": false,
|
||
"alignLevel": null
|
||
}
|
||
},
|
||
{
|
||
"collapsed": false,
|
||
"gridPos": {
|
||
"h": 1,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 104
|
||
},
|
||
"id": 391,
|
||
"panels": [],
|
||
"repeat": null,
|
||
"title": "Query Cache",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"aliasColors": {},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "${datasource}",
|
||
"decimals": 2,
|
||
"description": "**MySQL Query Cache Memory**\n\nThe query cache has huge scalability problems in that only one thread can do an operation in the query cache at the same time. This serialization is true not only for SELECTs, but also for INSERT/UPDATE/DELETE.\n\nThis also means that the larger the `query_cache_size` is set to, the slower those operations become. In concurrent environments, the MySQL Query Cache quickly becomes a contention point, decreasing performance. MariaDB and AWS Aurora have done work to try and eliminate the query cache contention in their flavors of MySQL, while MySQL 8.0 has eliminated the query cache feature.\n\nThe recommended settings for most environments is to set:\n ``query_cache_type=0``\n ``query_cache_size=0``\n\nNote that while you can dynamically change these values, to completely remove the contention point you have to restart the database.",
|
||
"editable": true,
|
||
"error": false,
|
||
"fill": 2,
|
||
"grid": {},
|
||
"gridPos": {
|
||
"h": 7,
|
||
"w": 12,
|
||
"x": 0,
|
||
"y": 105
|
||
},
|
||
"id": 46,
|
||
"legend": {
|
||
"alignAsTable": true,
|
||
"avg": true,
|
||
"current": false,
|
||
"max": true,
|
||
"min": true,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"sort": "avg",
|
||
"sortDesc": true,
|
||
"total": false,
|
||
"values": true
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [],
|
||
"spaceLength": 10,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "mysql_global_status_qcache_free_memory{instance=\"$host\"}",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Free Memory",
|
||
"metric": "",
|
||
"refId": "F",
|
||
"step": 20
|
||
},
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "mysql_global_variables_query_cache_size{instance=\"$host\"}",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Query Cache Size",
|
||
"metric": "",
|
||
"refId": "E",
|
||
"step": 20
|
||
}
|
||
],
|
||
"thresholds": [],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "MySQL Query Cache Memory",
|
||
"tooltip": {
|
||
"msResolution": false,
|
||
"shared": true,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": []
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "bytes",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
],
|
||
"yaxis": {
|
||
"align": false,
|
||
"alignLevel": null
|
||
}
|
||
},
|
||
{
|
||
"aliasColors": {},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "${datasource}",
|
||
"decimals": 2,
|
||
"description": "**MySQL Query Cache Activity**\n\nThe query cache has huge scalability problems in that only one thread can do an operation in the query cache at the same time. This serialization is true not only for SELECTs, but also for INSERT/UPDATE/DELETE.\n\nThis also means that the larger the `query_cache_size` is set to, the slower those operations become. In concurrent environments, the MySQL Query Cache quickly becomes a contention point, decreasing performance. MariaDB and AWS Aurora have done work to try and eliminate the query cache contention in their flavors of MySQL, while MySQL 8.0 has eliminated the query cache feature.\n\nThe recommended settings for most environments is to set:\n``query_cache_type=0``\n``query_cache_size=0``\n\nNote that while you can dynamically change these values, to completely remove the contention point you have to restart the database.",
|
||
"editable": true,
|
||
"error": false,
|
||
"fill": 2,
|
||
"grid": {},
|
||
"gridPos": {
|
||
"h": 7,
|
||
"w": 12,
|
||
"x": 12,
|
||
"y": 105
|
||
},
|
||
"height": "",
|
||
"id": 45,
|
||
"legend": {
|
||
"alignAsTable": true,
|
||
"avg": true,
|
||
"current": false,
|
||
"max": true,
|
||
"min": true,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"sort": "avg",
|
||
"sortDesc": true,
|
||
"total": false,
|
||
"values": true
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [],
|
||
"spaceLength": 10,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "rate(mysql_global_status_qcache_hits{instance=\"$host\"}[$interval]) or irate(mysql_global_status_qcache_hits{instance=\"$host\"}[5m])",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Hits",
|
||
"metric": "",
|
||
"refId": "B",
|
||
"step": 20
|
||
},
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "rate(mysql_global_status_qcache_inserts{instance=\"$host\"}[$interval]) or irate(mysql_global_status_qcache_inserts{instance=\"$host\"}[5m])",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Inserts",
|
||
"metric": "",
|
||
"refId": "C",
|
||
"step": 20
|
||
},
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "rate(mysql_global_status_qcache_not_cached{instance=\"$host\"}[$interval]) or irate(mysql_global_status_qcache_not_cached{instance=\"$host\"}[5m])",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Not Cached",
|
||
"metric": "",
|
||
"refId": "D",
|
||
"step": 20
|
||
},
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "rate(mysql_global_status_qcache_lowmem_prunes{instance=\"$host\"}[$interval]) or irate(mysql_global_status_qcache_lowmem_prunes{instance=\"$host\"}[5m])",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Prunes",
|
||
"metric": "",
|
||
"refId": "F",
|
||
"step": 20
|
||
},
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "mysql_global_status_qcache_queries_in_cache{instance=\"$host\"}",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Queries in Cache",
|
||
"metric": "",
|
||
"refId": "E",
|
||
"step": 20
|
||
}
|
||
],
|
||
"thresholds": [],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "MySQL Query Cache Activity",
|
||
"tooltip": {
|
||
"msResolution": false,
|
||
"shared": true,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": []
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "short",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
],
|
||
"yaxis": {
|
||
"align": false,
|
||
"alignLevel": null
|
||
}
|
||
},
|
||
{
|
||
"collapsed": false,
|
||
"gridPos": {
|
||
"h": 1,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 112
|
||
},
|
||
"id": 392,
|
||
"panels": [],
|
||
"repeat": null,
|
||
"title": "Files and Tables",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"aliasColors": {},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "${datasource}",
|
||
"decimals": 2,
|
||
"editable": true,
|
||
"error": false,
|
||
"fill": 2,
|
||
"grid": {},
|
||
"gridPos": {
|
||
"h": 7,
|
||
"w": 12,
|
||
"x": 0,
|
||
"y": 113
|
||
},
|
||
"id": 43,
|
||
"legend": {
|
||
"alignAsTable": true,
|
||
"avg": true,
|
||
"current": false,
|
||
"max": true,
|
||
"min": true,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": true
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [],
|
||
"spaceLength": 10,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "rate(mysql_global_status_opened_files{instance=\"$host\"}[$interval]) or irate(mysql_global_status_opened_files{instance=\"$host\"}[5m])",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Openings",
|
||
"metric": "",
|
||
"refId": "A",
|
||
"step": 20
|
||
}
|
||
],
|
||
"thresholds": [],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "MySQL File Openings",
|
||
"tooltip": {
|
||
"msResolution": false,
|
||
"shared": true,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": []
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "short",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
],
|
||
"yaxis": {
|
||
"align": false,
|
||
"alignLevel": null
|
||
}
|
||
},
|
||
{
|
||
"aliasColors": {},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "${datasource}",
|
||
"decimals": 2,
|
||
"editable": true,
|
||
"error": false,
|
||
"fill": 2,
|
||
"grid": {},
|
||
"gridPos": {
|
||
"h": 7,
|
||
"w": 12,
|
||
"x": 12,
|
||
"y": 113
|
||
},
|
||
"id": 41,
|
||
"legend": {
|
||
"alignAsTable": true,
|
||
"avg": true,
|
||
"current": false,
|
||
"max": true,
|
||
"min": true,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"sortDesc": true,
|
||
"total": false,
|
||
"values": true
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [],
|
||
"spaceLength": 10,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "mysql_global_status_open_files{instance=\"$host\"}",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Open Files",
|
||
"metric": "",
|
||
"refId": "A",
|
||
"step": 20
|
||
},
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "mysql_global_variables_open_files_limit{instance=\"$host\"}",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Open Files Limit",
|
||
"metric": "",
|
||
"refId": "D",
|
||
"step": 20
|
||
},
|
||
{
|
||
"expr": "mysql_global_status_innodb_num_open_files{instance=\"$host\"}",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "InnoDB Open Files",
|
||
"refId": "B",
|
||
"step": 20
|
||
}
|
||
],
|
||
"thresholds": [],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "MySQL Open Files",
|
||
"tooltip": {
|
||
"msResolution": false,
|
||
"shared": true,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": []
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "short",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
],
|
||
"yaxis": {
|
||
"align": false,
|
||
"alignLevel": null
|
||
}
|
||
},
|
||
{
|
||
"collapsed": false,
|
||
"gridPos": {
|
||
"h": 1,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 120
|
||
},
|
||
"id": 393,
|
||
"panels": [],
|
||
"repeat": null,
|
||
"title": "Table Openings",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"aliasColors": {},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "${datasource}",
|
||
"decimals": 2,
|
||
"description": "**MySQL Table Open Cache Status**\n\nThe recommendation is to set the `table_open_cache_instances` to a loose correlation to virtual CPUs, keeping in mind that more instances means the cache is split more times. If you have a cache set to 500 but it has 10 instances, each cache will only have 50 cached.\n\nThe `table_definition_cache` and `table_open_cache` can be left as default as they are auto-sized MySQL 5.6 and above (ie: do not set them to any value).",
|
||
"editable": true,
|
||
"error": false,
|
||
"fill": 2,
|
||
"grid": {},
|
||
"gridPos": {
|
||
"h": 7,
|
||
"w": 12,
|
||
"x": 0,
|
||
"y": 121
|
||
},
|
||
"id": 44,
|
||
"legend": {
|
||
"alignAsTable": true,
|
||
"avg": true,
|
||
"current": false,
|
||
"max": true,
|
||
"min": true,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"sort": "avg",
|
||
"sortDesc": true,
|
||
"total": false,
|
||
"values": true
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [
|
||
{
|
||
"title": "Server Status Variables (table_open_cache)",
|
||
"type": "absolute",
|
||
"url": "http://dev.mysql.com/doc/refman/5.6/en/server-system-variables.html#sysvar_table_open_cache"
|
||
}
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
{
|
||
"alias": "Table Open Cache Hit Ratio",
|
||
"yaxis": 2
|
||
}
|
||
],
|
||
"spaceLength": 10,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "rate(mysql_global_status_opened_tables{instance=\"$host\"}[$interval]) or irate(mysql_global_status_opened_tables{instance=\"$host\"}[5m])",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Openings",
|
||
"metric": "",
|
||
"refId": "A",
|
||
"step": 20
|
||
},
|
||
{
|
||
"expr": "rate(mysql_global_status_table_open_cache_hits{instance=\"$host\"}[$interval]) or irate(mysql_global_status_table_open_cache_hits{instance=\"$host\"}[5m])",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Hits",
|
||
"refId": "B",
|
||
"step": 20
|
||
},
|
||
{
|
||
"expr": "rate(mysql_global_status_table_open_cache_misses{instance=\"$host\"}[$interval]) or irate(mysql_global_status_table_open_cache_misses{instance=\"$host\"}[5m])",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Misses",
|
||
"refId": "C",
|
||
"step": 20
|
||
},
|
||
{
|
||
"expr": "rate(mysql_global_status_table_open_cache_overflows{instance=\"$host\"}[$interval]) or irate(mysql_global_status_table_open_cache_overflows{instance=\"$host\"}[5m])",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Misses due to Overflows",
|
||
"refId": "D",
|
||
"step": 20
|
||
},
|
||
{
|
||
"expr": "(rate(mysql_global_status_table_open_cache_hits{instance=\"$host\"}[$interval]) or irate(mysql_global_status_table_open_cache_hits{instance=\"$host\"}[5m]))/((rate(mysql_global_status_table_open_cache_hits{instance=\"$host\"}[$interval]) or irate(mysql_global_status_table_open_cache_hits{instance=\"$host\"}[5m]))+(rate(mysql_global_status_table_open_cache_misses{instance=\"$host\"}[$interval]) or irate(mysql_global_status_table_open_cache_misses{instance=\"$host\"}[5m])))",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Table Open Cache Hit Ratio",
|
||
"refId": "E",
|
||
"step": 20
|
||
}
|
||
],
|
||
"thresholds": [],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "MySQL Table Open Cache Status",
|
||
"tooltip": {
|
||
"msResolution": false,
|
||
"shared": true,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": []
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "short",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "percentunit",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
],
|
||
"yaxis": {
|
||
"align": false,
|
||
"alignLevel": null
|
||
}
|
||
},
|
||
{
|
||
"aliasColors": {},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "${datasource}",
|
||
"decimals": 2,
|
||
"description": "**MySQL Open Tables**\n\nThe recommendation is to set the `table_open_cache_instances` to a loose correlation to virtual CPUs, keeping in mind that more instances means the cache is split more times. If you have a cache set to 500 but it has 10 instances, each cache will only have 50 cached.\n\nThe `table_definition_cache` and `table_open_cache` can be left as default as they are auto-sized MySQL 5.6 and above (ie: do not set them to any value).",
|
||
"editable": true,
|
||
"error": false,
|
||
"fill": 2,
|
||
"grid": {},
|
||
"gridPos": {
|
||
"h": 7,
|
||
"w": 12,
|
||
"x": 12,
|
||
"y": 121
|
||
},
|
||
"id": 42,
|
||
"legend": {
|
||
"alignAsTable": true,
|
||
"avg": true,
|
||
"current": false,
|
||
"max": true,
|
||
"min": true,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"sort": "avg",
|
||
"sortDesc": true,
|
||
"total": false,
|
||
"values": true
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [
|
||
{
|
||
"title": "Server Status Variables (table_open_cache)",
|
||
"type": "absolute",
|
||
"url": "http://dev.mysql.com/doc/refman/5.6/en/server-system-variables.html#sysvar_table_open_cache"
|
||
}
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [],
|
||
"spaceLength": 10,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "mysql_global_status_open_tables{instance=\"$host\"}",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Open Tables",
|
||
"metric": "",
|
||
"refId": "B",
|
||
"step": 20
|
||
},
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "mysql_global_variables_table_open_cache{instance=\"$host\"}",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Table Open Cache",
|
||
"metric": "",
|
||
"refId": "C",
|
||
"step": 20
|
||
}
|
||
],
|
||
"thresholds": [],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "MySQL Open Tables",
|
||
"tooltip": {
|
||
"msResolution": false,
|
||
"shared": true,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": []
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "short",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
],
|
||
"yaxis": {
|
||
"align": false,
|
||
"alignLevel": null
|
||
}
|
||
},
|
||
{
|
||
"collapsed": false,
|
||
"gridPos": {
|
||
"h": 1,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 128
|
||
},
|
||
"id": 394,
|
||
"panels": [],
|
||
"repeat": null,
|
||
"title": "MySQL Table Definition Cache",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"aliasColors": {},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "${datasource}",
|
||
"decimals": 2,
|
||
"description": "**MySQL Table Definition Cache**\n\nThe recommendation is to set the `table_open_cache_instances` to a loose correlation to virtual CPUs, keeping in mind that more instances means the cache is split more times. If you have a cache set to 500 but it has 10 instances, each cache will only have 50 cached.\n\nThe `table_definition_cache` and `table_open_cache` can be left as default as they are auto-sized MySQL 5.6 and above (ie: do not set them to any value).",
|
||
"editable": true,
|
||
"error": false,
|
||
"fill": 2,
|
||
"grid": {},
|
||
"gridPos": {
|
||
"h": 7,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 129
|
||
},
|
||
"id": 54,
|
||
"legend": {
|
||
"alignAsTable": true,
|
||
"avg": true,
|
||
"current": false,
|
||
"max": true,
|
||
"min": true,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"sort": "avg",
|
||
"sortDesc": true,
|
||
"total": false,
|
||
"values": true
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [
|
||
{
|
||
"title": "Server Status Variables (table_open_cache)",
|
||
"type": "absolute",
|
||
"url": "http://dev.mysql.com/doc/refman/5.6/en/server-system-variables.html#sysvar_table_open_cache"
|
||
}
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
{
|
||
"alias": "Opened Table Definitions",
|
||
"yaxis": 2
|
||
}
|
||
],
|
||
"spaceLength": 10,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "mysql_global_status_open_table_definitions{instance=\"$host\"}",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Open Table Definitions",
|
||
"metric": "",
|
||
"refId": "B",
|
||
"step": 20
|
||
},
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "mysql_global_variables_table_definition_cache{instance=\"$host\"}",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Table Definitions Cache Size",
|
||
"metric": "",
|
||
"refId": "C",
|
||
"step": 20
|
||
},
|
||
{
|
||
"expr": "rate(mysql_global_status_opened_table_definitions{instance=\"$host\"}[$interval]) or irate(mysql_global_status_opened_table_definitions{instance=\"$host\"}[5m])",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Opened Table Definitions",
|
||
"refId": "A",
|
||
"step": 20
|
||
}
|
||
],
|
||
"thresholds": [],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "MySQL Table Definition Cache",
|
||
"tooltip": {
|
||
"msResolution": false,
|
||
"shared": true,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": []
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "short",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
],
|
||
"yaxis": {
|
||
"align": false,
|
||
"alignLevel": null
|
||
}
|
||
},
|
||
{
|
||
"collapsed": false,
|
||
"gridPos": {
|
||
"h": 1,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 136
|
||
},
|
||
"id": 395,
|
||
"panels": [],
|
||
"repeat": null,
|
||
"title": "System Charts",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"aliasColors": {},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "${datasource}",
|
||
"decimals": null,
|
||
"editable": true,
|
||
"error": false,
|
||
"fill": 2,
|
||
"grid": {},
|
||
"gridPos": {
|
||
"h": 7,
|
||
"w": 8,
|
||
"x": 0,
|
||
"y": 137
|
||
},
|
||
"id": 31,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": true,
|
||
"current": false,
|
||
"hideEmpty": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"sort": "avg",
|
||
"sortDesc": true,
|
||
"total": false,
|
||
"values": true
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [],
|
||
"spaceLength": 10,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"calculatedInterval": "2s",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "rate(node_vmstat_pgpgin{instance=\"$host\"}[$interval]) * 1024 or irate(node_vmstat_pgpgin{instance=\"$host\"}[5m]) * 1024",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Page In",
|
||
"metric": "",
|
||
"refId": "A",
|
||
"step": 20,
|
||
"target": ""
|
||
},
|
||
{
|
||
"calculatedInterval": "2s",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "rate(node_vmstat_pgpgout{instance=\"$host\"}[$interval]) * 1024 or irate(node_vmstat_pgpgout{instance=\"$host\"}[5m]) * 1024",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Page Out",
|
||
"metric": "",
|
||
"refId": "B",
|
||
"step": 20,
|
||
"target": ""
|
||
}
|
||
],
|
||
"thresholds": [],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "I/O Activity",
|
||
"tooltip": {
|
||
"msResolution": false,
|
||
"shared": true,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"transparent": false,
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": []
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "Bps",
|
||
"label": "",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "bytes",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
],
|
||
"yaxis": {
|
||
"align": false,
|
||
"alignLevel": null
|
||
}
|
||
},
|
||
{
|
||
"aliasColors": {},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "${datasource}",
|
||
"decimals": null,
|
||
"editable": true,
|
||
"error": false,
|
||
"fill": 6,
|
||
"grid": {},
|
||
"gridPos": {
|
||
"h": 7,
|
||
"w": 8,
|
||
"x": 8,
|
||
"y": 137
|
||
},
|
||
"height": "250px",
|
||
"id": 37,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": true,
|
||
"current": false,
|
||
"hideEmpty": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"sort": "avg",
|
||
"sortDesc": true,
|
||
"total": false,
|
||
"values": true
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [],
|
||
"spaceLength": 10,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"calculatedInterval": "2s",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "node_memory_MemTotal_bytes{instance=\"$host\"} - (node_memory_MemFree_bytes{instance=\"$host\"} + node_memory_Buffers{instance=\"$host\"} + node_memory_Cached{instance=\"$host\"})",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Used",
|
||
"metric": "",
|
||
"refId": "A",
|
||
"step": 20,
|
||
"target": ""
|
||
},
|
||
{
|
||
"calculatedInterval": "2s",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "node_memory_MemFree_bytes{instance=\"$host\"}",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Free",
|
||
"metric": "",
|
||
"refId": "B",
|
||
"step": 20,
|
||
"target": ""
|
||
},
|
||
{
|
||
"calculatedInterval": "2s",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "node_memory_Buffers{instance=\"$host\"}",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Buffers",
|
||
"metric": "",
|
||
"refId": "D",
|
||
"step": 20,
|
||
"target": ""
|
||
},
|
||
{
|
||
"calculatedInterval": "2s",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "node_memory_Cached{instance=\"$host\"}",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Cached",
|
||
"metric": "",
|
||
"refId": "E",
|
||
"step": 20,
|
||
"target": ""
|
||
}
|
||
],
|
||
"thresholds": [],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Memory Distribution",
|
||
"tooltip": {
|
||
"msResolution": false,
|
||
"shared": true,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"transparent": false,
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": []
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "bytes",
|
||
"label": "",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "bytes",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
],
|
||
"yaxis": {
|
||
"align": false,
|
||
"alignLevel": null
|
||
}
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
"Load 1m": "#58140C",
|
||
"Max Core Utilization": "#bf1b00",
|
||
"iowait": "#e24d42",
|
||
"nice": "#1f78c1",
|
||
"softirq": "#806eb7",
|
||
"system": "#eab839",
|
||
"user": "#508642"
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "${datasource}",
|
||
"decimals": null,
|
||
"editable": true,
|
||
"error": false,
|
||
"fill": 6,
|
||
"grid": {},
|
||
"gridPos": {
|
||
"h": 7,
|
||
"w": 8,
|
||
"x": 16,
|
||
"y": 137
|
||
},
|
||
"height": "",
|
||
"id": 2,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": true,
|
||
"current": false,
|
||
"hideEmpty": true,
|
||
"hideZero": true,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"sort": "avg",
|
||
"sortDesc": true,
|
||
"total": false,
|
||
"values": true
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
{
|
||
"alias": "Max Core Utilization",
|
||
"lines": false,
|
||
"pointradius": 1,
|
||
"points": true,
|
||
"stack": false
|
||
},
|
||
{
|
||
"alias": "Load 1m",
|
||
"color": "#58140C",
|
||
"fill": 2,
|
||
"stack": false,
|
||
"yaxis": 2
|
||
}
|
||
],
|
||
"spaceLength": 10,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"calculatedInterval": "2s",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "clamp_max(((avg by (mode) ( (clamp_max(rate(node_cpu_seconds_total{instance=\"$host\",mode!=\"idle\"}[$interval]),1)) or (clamp_max(irate(node_cpu_seconds_total{instance=\"$host\",mode!=\"idle\"}[5m]),1)) ))*100 or (avg_over_time(node_cpu_seconds_total_average{instance=~\"$host\", mode!=\"total\", mode!=\"idle\"}[$interval]) or avg_over_time(node_cpu_seconds_total_average{instance=~\"$host\", mode!=\"total\", mode!=\"idle\"}[5m]))),100)",
|
||
"format": "time_series",
|
||
"hide": false,
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "{{ mode }}",
|
||
"metric": "",
|
||
"refId": "A",
|
||
"step": 20
|
||
},
|
||
{
|
||
"expr": "clamp_max(max by () (sum by (cpu) ( (clamp_max(rate(node_cpu_seconds_total{instance=\"$host\",mode!=\"idle\",mode!=\"iowait\"}[$interval]),1)) or (clamp_max(irate(node_cpu_seconds_total{instance=\"$host\",mode!=\"idle\",mode!=\"iowait\"}[5m]),1)) ))*100,100)",
|
||
"format": "time_series",
|
||
"hide": true,
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Max Core Utilization",
|
||
"refId": "B",
|
||
"step": 20
|
||
},
|
||
{
|
||
"expr": "node_load1{instance=\"$host\"}",
|
||
"format": "time_series",
|
||
"hide": false,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "Load 1m",
|
||
"refId": "C"
|
||
}
|
||
],
|
||
"thresholds": [],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "CPU Usage / Load",
|
||
"tooltip": {
|
||
"msResolution": false,
|
||
"shared": true,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": []
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"decimals": 1,
|
||
"format": "percent",
|
||
"label": "",
|
||
"logBase": 1,
|
||
"max": 100,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "none",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
],
|
||
"yaxis": {
|
||
"align": false,
|
||
"alignLevel": null
|
||
}
|
||
},
|
||
{
|
||
"aliasColors": {},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "${datasource}",
|
||
"decimals": 2,
|
||
"editable": true,
|
||
"error": false,
|
||
"fill": 2,
|
||
"grid": {},
|
||
"gridPos": {
|
||
"h": 7,
|
||
"w": 8,
|
||
"x": 0,
|
||
"y": 144
|
||
},
|
||
"height": "250px",
|
||
"id": 36,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": true,
|
||
"current": false,
|
||
"hideEmpty": true,
|
||
"hideZero": true,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": true
|
||
},
|
||
"lines": false,
|
||
"linewidth": 2,
|
||
"links": [],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 1,
|
||
"points": true,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [],
|
||
"spaceLength": 10,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "sum((rate(node_disk_read_time_seconds_total{device!~\"dm-.+\", instance=\"$host\"}[$interval]) / rate(node_disk_reads_completed_total{device!~\"dm-.+\", instance=\"$host\"}[$interval])) or (irate(node_disk_read_time_seconds_total{device!~\"dm-.+\", instance=\"$host\"}[5m]) / irate(node_disk_reads_completed_total{device!~\"dm-.+\", instance=\"$host\"}[5m]))\nor avg_over_time(aws_rds_read_latency_average{instance=\"$host\"}[$interval]) or avg_over_time(aws_rds_read_latency_average{instance=\"$host\"}[5m]))",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Read",
|
||
"metric": "",
|
||
"refId": "A",
|
||
"step": 20,
|
||
"target": ""
|
||
},
|
||
{
|
||
"calculatedInterval": "2m",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "sum((rate(node_disk_write_time_seconds_total{device!~\"dm-.+\", instance=\"$host\"}[$interval]) / rate(node_disk_writes_completed_total{device!~\"dm-.+\", instance=\"$host\"}[$interval])) or (irate(node_disk_write_time_seconds_total{device!~\"dm-.+\", instance=\"$host\"}[5m]) / irate(node_disk_writes_completed_total{device!~\"dm-.+\", instance=\"$host\"}[5m])) or \navg_over_time(aws_rds_write_latency_average{instance=\"$host\"}[$interval]) or avg_over_time(aws_rds_write_latency_average{instance=\"$host\"}[5m]))",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Write",
|
||
"metric": "",
|
||
"refId": "B",
|
||
"step": 20,
|
||
"target": ""
|
||
}
|
||
],
|
||
"thresholds": [],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Disk Latency",
|
||
"tooltip": {
|
||
"msResolution": false,
|
||
"shared": true,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"transparent": false,
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": []
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "ms",
|
||
"label": "",
|
||
"logBase": 2,
|
||
"max": null,
|
||
"min": null,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "ms",
|
||
"label": "",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
],
|
||
"yaxis": {
|
||
"align": false,
|
||
"alignLevel": null
|
||
}
|
||
},
|
||
{
|
||
"aliasColors": {},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "${datasource}",
|
||
"decimals": null,
|
||
"editable": true,
|
||
"error": false,
|
||
"fill": 2,
|
||
"grid": {},
|
||
"gridPos": {
|
||
"h": 7,
|
||
"w": 8,
|
||
"x": 8,
|
||
"y": 144
|
||
},
|
||
"height": "250px",
|
||
"id": 21,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": true,
|
||
"current": false,
|
||
"hideEmpty": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"sort": "avg",
|
||
"sortDesc": true,
|
||
"total": false,
|
||
"values": true
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
{
|
||
"alias": "Outbound",
|
||
"transform": "negative-Y"
|
||
}
|
||
],
|
||
"spaceLength": 10,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"calculatedInterval": "2s",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "sum(rate(node_network_receive_bytes_total{instance=\"$host\", device!=\"lo\"}[$interval])) or sum(irate(node_network_receive_bytes_total{instance=\"$host\", device!=\"lo\"}[5m])) or sum(max_over_time(rdsosmetrics_network_rx{instance=\"$host\"}[$interval])) or sum(max_over_time(rdsosmetrics_network_rx{instance=\"$host\"}[5m])) ",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Inbound",
|
||
"metric": "",
|
||
"refId": "B",
|
||
"step": 20,
|
||
"target": ""
|
||
},
|
||
{
|
||
"calculatedInterval": "2s",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "sum(rate(node_network_transmit_bytes_total{instance=\"$host\", device!=\"lo\"}[$interval])) or sum(irate(node_network_transmit_bytes_total{instance=\"$host\", device!=\"lo\"}[5m])) or\nsum(max_over_time(rdsosmetrics_network_tx{instance=\"$host\"}[$interval])) or sum(max_over_time(rdsosmetrics_network_tx{instance=\"$host\"}[5m]))",
|
||
"format": "time_series",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Outbound",
|
||
"metric": "",
|
||
"refId": "A",
|
||
"step": 20,
|
||
"target": ""
|
||
}
|
||
],
|
||
"thresholds": [],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Network Traffic",
|
||
"tooltip": {
|
||
"msResolution": false,
|
||
"shared": true,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"transparent": false,
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": []
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "Bps",
|
||
"label": "",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "bytes",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
],
|
||
"yaxis": {
|
||
"align": false,
|
||
"alignLevel": null
|
||
}
|
||
},
|
||
{
|
||
"aliasColors": {},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "${datasource}",
|
||
"decimals": null,
|
||
"editable": true,
|
||
"error": false,
|
||
"fill": 2,
|
||
"grid": {},
|
||
"gridPos": {
|
||
"h": 7,
|
||
"w": 8,
|
||
"x": 16,
|
||
"y": 144
|
||
},
|
||
"id": 38,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": true,
|
||
"current": false,
|
||
"hideEmpty": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"sort": "avg",
|
||
"sortDesc": true,
|
||
"total": false,
|
||
"values": true
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [],
|
||
"spaceLength": 10,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"calculatedInterval": "2s",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "rate(node_vmstat_pswpin{instance=\"$host\"}[$interval]) * 4096 or irate(node_vmstat_pswpin{instance=\"$host\"}[5m]) * 4096",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Swap In (Reads)",
|
||
"metric": "",
|
||
"refId": "A",
|
||
"step": 20,
|
||
"target": ""
|
||
},
|
||
{
|
||
"calculatedInterval": "2s",
|
||
"datasourceErrors": {},
|
||
"errors": {},
|
||
"expr": "rate(node_vmstat_pswpout{instance=\"$host\"}[$interval]) * 4096 or irate(node_vmstat_pswpout{instance=\"$host\"}[5m]) * 4096",
|
||
"interval": "$interval",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Swap Out (Writes)",
|
||
"metric": "",
|
||
"refId": "B",
|
||
"step": 20,
|
||
"target": ""
|
||
}
|
||
],
|
||
"thresholds": [],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Swap Activity",
|
||
"tooltip": {
|
||
"msResolution": false,
|
||
"shared": true,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"transparent": false,
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": []
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "Bps",
|
||
"label": "",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "bytes",
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
],
|
||
"yaxis": {
|
||
"align": false,
|
||
"alignLevel": null
|
||
}
|
||
}
|
||
],
|
||
"refresh": "1m",
|
||
"schemaVersion": 16,
|
||
"style": "dark",
|
||
"tags": [
|
||
"Percona",
|
||
"MySQL"
|
||
],
|
||
"templating": {
|
||
"list": [
|
||
{
|
||
"current": {
|
||
"text": "Prometheus",
|
||
"value": "Prometheus"
|
||
},
|
||
"hide": 0,
|
||
"includeAll": false,
|
||
"label": "Data source",
|
||
"multi": false,
|
||
"name": "datasource",
|
||
"options": [],
|
||
"query": "prometheus",
|
||
"refresh": 1,
|
||
"regex": "",
|
||
"skipUrlSync": false,
|
||
"type": "datasource"
|
||
},
|
||
{
|
||
"allFormat": "glob",
|
||
"auto": true,
|
||
"auto_count": 200,
|
||
"auto_min": "1s",
|
||
"current": {
|
||
"text": "auto",
|
||
"value": "$__auto_interval_interval"
|
||
},
|
||
"datasource": "prometheus",
|
||
"hide": 0,
|
||
"includeAll": false,
|
||
"label": "Interval",
|
||
"multi": false,
|
||
"multiFormat": "glob",
|
||
"name": "interval",
|
||
"options": [
|
||
{
|
||
"selected": true,
|
||
"text": "auto",
|
||
"value": "$__auto_interval_interval"
|
||
},
|
||
{
|
||
"selected": false,
|
||
"text": "1s",
|
||
"value": "1s"
|
||
},
|
||
{
|
||
"selected": false,
|
||
"text": "5s",
|
||
"value": "5s"
|
||
},
|
||
{
|
||
"selected": false,
|
||
"text": "1m",
|
||
"value": "1m"
|
||
},
|
||
{
|
||
"selected": false,
|
||
"text": "5m",
|
||
"value": "5m"
|
||
},
|
||
{
|
||
"selected": false,
|
||
"text": "1h",
|
||
"value": "1h"
|
||
},
|
||
{
|
||
"selected": false,
|
||
"text": "6h",
|
||
"value": "6h"
|
||
},
|
||
{
|
||
"selected": false,
|
||
"text": "1d",
|
||
"value": "1d"
|
||
}
|
||
],
|
||
"query": "1s,5s,1m,5m,1h,6h,1d",
|
||
"refresh": 2,
|
||
"type": "interval"
|
||
},
|
||
{
|
||
"allFormat": "glob",
|
||
"allValue": null,
|
||
"current": {},
|
||
"datasource": "prometheus",
|
||
"hide": 0,
|
||
"includeAll": false,
|
||
"label": "Host",
|
||
"multi": false,
|
||
"multiFormat": "regex values",
|
||
"name": "host",
|
||
"options": [],
|
||
"query": "label_values(mysql_up, instance)",
|
||
"refresh": 1,
|
||
"refresh_on_load": false,
|
||
"regex": "",
|
||
"sort": 1,
|
||
"tagValuesQuery": null,
|
||
"tags": [],
|
||
"tagsQuery": null,
|
||
"type": "query",
|
||
"useTags": false
|
||
}
|
||
]
|
||
},
|
||
"time": {
|
||
"from": "now-12h",
|
||
"to": "now"
|
||
},
|
||
"timepicker": {
|
||
"collapse": false,
|
||
"enable": true,
|
||
"hidden": false,
|
||
"notice": false,
|
||
"now": true,
|
||
"refresh_intervals": [
|
||
"5s",
|
||
"10s",
|
||
"30s",
|
||
"1m",
|
||
"5m",
|
||
"15m",
|
||
"30m",
|
||
"1h",
|
||
"2h",
|
||
"1d"
|
||
],
|
||
"status": "Stable",
|
||
"time_options": [
|
||
"5m",
|
||
"15m",
|
||
"1h",
|
||
"6h",
|
||
"12h",
|
||
"24h",
|
||
"2d",
|
||
"7d",
|
||
"30d"
|
||
],
|
||
"type": "timepicker"
|
||
},
|
||
"timezone": "browser",
|
||
"title": "MySQL Overview",
|
||
"uid": "MQWgroiiz",
|
||
"version": 1,
|
||
"description": "Dashboard from Percona Monitoring and Management project. "
|
||
|
||
}
|
||
kind: ConfigMap
|
||
metadata:
|
||
name: grafana-dashboard-mysql
|
||
namespace: monitoring
|
||
- apiVersion: v1
|
||
data:
|
||
apiserver.json: |-
|
||
{
|
||
"__inputs": [
|
||
|
||
],
|
||
"__requires": [
|
||
|
||
],
|
||
"annotations": {
|
||
"list": [
|
||
|
||
]
|
||
},
|
||
"editable": false,
|
||
"gnetId": null,
|
||
"graphTooltip": 0,
|
||
"hideControls": false,
|
||
"id": null,
|
||
"links": [
|
||
|
||
],
|
||
"refresh": "",
|
||
"rows": [
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"panels": [
|
||
{
|
||
"cacheTimeout": null,
|
||
"colorBackground": false,
|
||
"colorValue": false,
|
||
"colors": [
|
||
"#299c46",
|
||
"rgba(237, 129, 40, 0.89)",
|
||
"#d44a3a"
|
||
],
|
||
"datasource": "$datasource",
|
||
"format": "none",
|
||
"gauge": {
|
||
"maxValue": 100,
|
||
"minValue": 0,
|
||
"show": false,
|
||
"thresholdLabels": false,
|
||
"thresholdMarkers": true
|
||
},
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 2,
|
||
"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": [
|
||
{
|
||
"expr": "sum(up{job=\"apiserver\"})",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": "",
|
||
"title": "Up",
|
||
"tooltip": {
|
||
"shared": false
|
||
},
|
||
"type": "singlestat",
|
||
"valueFontSize": "80%",
|
||
"valueMaps": [
|
||
{
|
||
"op": "=",
|
||
"text": "N/A",
|
||
"value": "null"
|
||
}
|
||
],
|
||
"valueName": "min"
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 3,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 5,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(rate(apiserver_request_total{job=\"apiserver\", instance=~\"$instance\",code=~\"2..\"}[5m]))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "2xx",
|
||
"refId": "A"
|
||
},
|
||
{
|
||
"expr": "sum(rate(apiserver_request_total{job=\"apiserver\", instance=~\"$instance\",code=~\"3..\"}[5m]))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "3xx",
|
||
"refId": "B"
|
||
},
|
||
{
|
||
"expr": "sum(rate(apiserver_request_total{job=\"apiserver\", instance=~\"$instance\",code=~\"4..\"}[5m]))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "4xx",
|
||
"refId": "C"
|
||
},
|
||
{
|
||
"expr": "sum(rate(apiserver_request_total{job=\"apiserver\", instance=~\"$instance\",code=~\"5..\"}[5m]))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "5xx",
|
||
"refId": "D"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "RPC Rate",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "ops",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "ops",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 4,
|
||
"legend": {
|
||
"alignAsTable": "true",
|
||
"avg": false,
|
||
"current": "true",
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": "true",
|
||
"show": "true",
|
||
"total": false,
|
||
"values": "true"
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 5,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "histogram_quantile(0.99, sum(rate(apiserver_request_duration_seconds_bucket{job=\"apiserver\", instance=~\"$instance\"}[5m])) by (verb, le))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{verb}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Request duration 99th quantile",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "s",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "s",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": true
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": false,
|
||
"title": "Dashboard Row",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 5,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": false,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 6,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(rate(workqueue_adds_total{job=\"apiserver\", instance=~\"$instance\"}[5m])) by (instance, name)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}} {{name}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Work Queue Add Rate",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "ops",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "ops",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 6,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": false,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 6,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(rate(workqueue_depth{job=\"apiserver\", instance=~\"$instance\"}[5m])) by (instance, name)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}} {{name}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Work Queue Depth",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"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": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 7,
|
||
"legend": {
|
||
"alignAsTable": "true",
|
||
"avg": false,
|
||
"current": "true",
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": "true",
|
||
"show": "true",
|
||
"total": false,
|
||
"values": "true"
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "histogram_quantile(0.99, sum(rate(workqueue_queue_duration_seconds_bucket{job=\"apiserver\", instance=~\"$instance\"}[5m])) by (instance, name, le))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}} {{name}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Work Queue Latency",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "s",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "s",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": true
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": false,
|
||
"title": "Dashboard Row",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 8,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 4,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "etcd_helper_cache_entry_total{job=\"apiserver\", instance=~\"$instance\"}",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "ETCD Cache Entry Total",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"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": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 9,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 4,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(rate(etcd_helper_cache_hit_total{job=\"apiserver\",instance=~\"$instance\"}[5m])) by (intance)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}} hit",
|
||
"refId": "A"
|
||
},
|
||
{
|
||
"expr": "sum(rate(etcd_helper_cache_miss_total{job=\"apiserver\",instance=~\"$instance\"}[5m])) by (instance)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}} miss",
|
||
"refId": "B"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "ETCD Cache Hit/Miss Rate",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "ops",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "ops",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 10,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 4,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "histogram_quantile(0.99,sum(rate(etcd_request_cache_get_duration_seconds_bucket{job=\"apiserver\",instance=~\"$instance\"}[5m])) by (instance, le))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}} get",
|
||
"refId": "A"
|
||
},
|
||
{
|
||
"expr": "histogram_quantile(0.99,sum(rate(etcd_request_cache_add_duration_seconds_bucket{job=\"apiserver\",instance=~\"$instance\"}[5m])) by (instance, le))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}} miss",
|
||
"refId": "B"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "ETCD Cache Duration 99th Quantile",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "s",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "s",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": false,
|
||
"title": "Dashboard Row",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 11,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 4,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "process_resident_memory_bytes{job=\"apiserver\",instance=~\"$instance\"}",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Memory",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"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": "bytes",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 12,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 4,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "rate(process_cpu_seconds_total{job=\"apiserver\",instance=~\"$instance\"}[5m])",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "CPU usage",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"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": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 13,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 4,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "go_goroutines{job=\"apiserver\",instance=~\"$instance\"}",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Goroutines",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"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",
|
||
"type": "row"
|
||
}
|
||
],
|
||
"schemaVersion": 14,
|
||
"style": "dark",
|
||
"tags": [
|
||
"kubernetes-mixin"
|
||
],
|
||
"templating": {
|
||
"list": [
|
||
{
|
||
"current": {
|
||
"text": "Prometheus",
|
||
"value": "Prometheus"
|
||
},
|
||
"hide": 0,
|
||
"label": null,
|
||
"name": "datasource",
|
||
"options": [
|
||
|
||
],
|
||
"query": "prometheus",
|
||
"refresh": 1,
|
||
"regex": "",
|
||
"type": "datasource"
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"current": {
|
||
|
||
},
|
||
"datasource": "$datasource",
|
||
"hide": 0,
|
||
"includeAll": true,
|
||
"label": null,
|
||
"multi": false,
|
||
"name": "instance",
|
||
"options": [
|
||
|
||
],
|
||
"query": "label_values(apiserver_request_total{job=\"apiserver\"}, instance)",
|
||
"refresh": 2,
|
||
"regex": "",
|
||
"sort": 1,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "query",
|
||
"useTags": false
|
||
}
|
||
]
|
||
},
|
||
"time": {
|
||
"from": "now-1h",
|
||
"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": "Kubernetes / API server",
|
||
"uid": "09ec8aa1e996d6ffcd6817bbaff4db1b",
|
||
"version": 0
|
||
}
|
||
kind: ConfigMap
|
||
metadata:
|
||
name: grafana-dashboard-apiserver
|
||
namespace: monitoring
|
||
- apiVersion: v1
|
||
data:
|
||
cluster-total.json: |-
|
||
{
|
||
"__inputs": [
|
||
|
||
],
|
||
"__requires": [
|
||
|
||
],
|
||
"annotations": {
|
||
"list": [
|
||
{
|
||
"builtIn": 1,
|
||
"datasource": "-- Grafana --",
|
||
"enable": true,
|
||
"hide": true,
|
||
"iconColor": "rgba(0, 211, 255, 1)",
|
||
"name": "Annotations & Alerts",
|
||
"type": "dashboard"
|
||
}
|
||
]
|
||
},
|
||
"editable": true,
|
||
"gnetId": null,
|
||
"graphTooltip": 0,
|
||
"hideControls": false,
|
||
"id": null,
|
||
"links": [
|
||
|
||
],
|
||
"panels": [
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"gridPos": {
|
||
"h": 1,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 0
|
||
},
|
||
"id": 2,
|
||
"panels": [
|
||
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Current Bandwidth",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"breakpoint": "50%",
|
||
"cacheTimeout": null,
|
||
"combine": {
|
||
"label": "Others",
|
||
"threshold": 0
|
||
},
|
||
"datasource": "prometheus",
|
||
"fontSize": "80%",
|
||
"format": "Bps",
|
||
"gridPos": {
|
||
"h": 9,
|
||
"w": 12,
|
||
"x": 0,
|
||
"y": 1
|
||
},
|
||
"id": 3,
|
||
"interval": null,
|
||
"legend": {
|
||
"percentage": true,
|
||
"percentageDecimals": null,
|
||
"show": true,
|
||
"values": true
|
||
},
|
||
"legendType": "Right side",
|
||
"maxDataPoints": 3,
|
||
"nullPointMode": "connected",
|
||
"pieType": "donut",
|
||
"targets": [
|
||
{
|
||
"expr": "sort_desc(sum(irate(container_network_receive_bytes_total{namespace=~\".+\"}[$interval:$resolution])) by (namespace))",
|
||
"format": "time_series",
|
||
"instant": null,
|
||
"intervalFactor": 1,
|
||
"legendFormat": "{{namespace}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"title": "Current Rate of Bytes Received",
|
||
"type": "grafana-piechart-panel",
|
||
"valueName": "current"
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"breakpoint": "50%",
|
||
"cacheTimeout": null,
|
||
"combine": {
|
||
"label": "Others",
|
||
"threshold": 0
|
||
},
|
||
"datasource": "prometheus",
|
||
"fontSize": "80%",
|
||
"format": "Bps",
|
||
"gridPos": {
|
||
"h": 9,
|
||
"w": 12,
|
||
"x": 12,
|
||
"y": 1
|
||
},
|
||
"id": 4,
|
||
"interval": null,
|
||
"legend": {
|
||
"percentage": true,
|
||
"percentageDecimals": null,
|
||
"show": true,
|
||
"values": true
|
||
},
|
||
"legendType": "Right side",
|
||
"maxDataPoints": 3,
|
||
"nullPointMode": "connected",
|
||
"pieType": "donut",
|
||
"targets": [
|
||
{
|
||
"expr": "sort_desc(sum(irate(container_network_transmit_bytes_total{namespace=~\".+\"}[$interval:$resolution])) by (namespace))",
|
||
"format": "time_series",
|
||
"instant": null,
|
||
"intervalFactor": 1,
|
||
"legendFormat": "{{namespace}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"title": "Current Rate of Bytes Transmitted",
|
||
"type": "grafana-piechart-panel",
|
||
"valueName": "current"
|
||
},
|
||
{
|
||
"columns": [
|
||
{
|
||
"text": "",
|
||
"value": ""
|
||
},
|
||
{
|
||
"text": "",
|
||
"value": ""
|
||
},
|
||
{
|
||
"text": "",
|
||
"value": ""
|
||
},
|
||
{
|
||
"text": "",
|
||
"value": ""
|
||
},
|
||
{
|
||
"text": "",
|
||
"value": ""
|
||
},
|
||
{
|
||
"text": "",
|
||
"value": ""
|
||
},
|
||
{
|
||
"text": "",
|
||
"value": ""
|
||
},
|
||
{
|
||
"text": "",
|
||
"value": ""
|
||
},
|
||
{
|
||
"text": "",
|
||
"value": ""
|
||
},
|
||
{
|
||
"text": "",
|
||
"value": ""
|
||
}
|
||
],
|
||
"datasource": "prometheus",
|
||
"fill": 1,
|
||
"fontSize": "90%",
|
||
"gridPos": {
|
||
"h": 9,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 10
|
||
},
|
||
"id": 5,
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"minSpan": 24,
|
||
"nullPointMode": "null as zero",
|
||
"renderer": "flot",
|
||
"scroll": true,
|
||
"showHeader": true,
|
||
"sort": {
|
||
"col": 0,
|
||
"desc": false
|
||
},
|
||
"spaceLength": 10,
|
||
"span": 24,
|
||
"styles": [
|
||
{
|
||
"alias": "Time",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "hidden",
|
||
"unit": "short"
|
||
},
|
||
{
|
||
"alias": "Current Bandwidth Received",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "Bps"
|
||
},
|
||
{
|
||
"alias": "Current Bandwidth Transmitted",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "Bps"
|
||
},
|
||
{
|
||
"alias": "Average Bandwidth Received",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "Bps"
|
||
},
|
||
{
|
||
"alias": "Average Bandwidth Transmitted",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "Bps"
|
||
},
|
||
{
|
||
"alias": "Rate of Received Packets",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "pps"
|
||
},
|
||
{
|
||
"alias": "Rate of Transmitted Packets",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "pps"
|
||
},
|
||
{
|
||
"alias": "Rate of Received Packets Dropped",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "pps"
|
||
},
|
||
{
|
||
"alias": "Rate of Transmitted Packets Dropped",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "pps"
|
||
},
|
||
{
|
||
"alias": "Namespace",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": true,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "d/8b7a8b326d7a6f1f04244066368c67af/kubernetes-networking-namespace-pods?orgId=1&refresh=30s&var-namespace=$__cell",
|
||
"pattern": "",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "short"
|
||
}
|
||
],
|
||
"targets": [
|
||
{
|
||
"expr": "sort_desc(sum(irate(container_network_receive_bytes_total{namespace=~\".+\"}[$interval:$resolution])) by (namespace))",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "A",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sort_desc(sum(irate(container_network_transmit_bytes_total{namespace=~\".+\"}[$interval:$resolution])) by (namespace))",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "B",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sort_desc(avg(irate(container_network_receive_bytes_total{namespace=~\".+\"}[$interval:$resolution])) by (namespace))",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "C",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sort_desc(avg(irate(container_network_transmit_bytes_total{namespace=~\".+\"}[$interval:$resolution])) by (namespace))",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "D",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sort_desc(sum(irate(container_network_receive_packets_total{namespace=~\".+\"}[$interval:$resolution])) by (namespace))",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "E",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sort_desc(sum(irate(container_network_transmit_packets_total{namespace=~\".+\"}[$interval:$resolution])) by (namespace))",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "F",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sort_desc(sum(irate(container_network_receive_packets_dropped_total{namespace=~\".+\"}[$interval:$resolution])) by (namespace))",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "G",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sort_desc(sum(irate(container_network_transmit_packets_dropped_total{namespace=~\".+\"}[$interval:$resolution])) by (namespace))",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "H",
|
||
"step": 10
|
||
}
|
||
],
|
||
"title": "Current Status",
|
||
"type": "table"
|
||
},
|
||
{
|
||
"collapse": true,
|
||
"collapsed": true,
|
||
"gridPos": {
|
||
"h": 1,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 10
|
||
},
|
||
"id": 6,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"breakpoint": "50%",
|
||
"cacheTimeout": null,
|
||
"combine": {
|
||
"label": "Others",
|
||
"threshold": 0
|
||
},
|
||
"datasource": "prometheus",
|
||
"fontSize": "80%",
|
||
"format": "Bps",
|
||
"gridPos": {
|
||
"h": 9,
|
||
"w": 12,
|
||
"x": 0,
|
||
"y": 11
|
||
},
|
||
"id": 7,
|
||
"interval": null,
|
||
"legend": {
|
||
"percentage": true,
|
||
"percentageDecimals": null,
|
||
"show": true,
|
||
"values": true
|
||
},
|
||
"legendType": "Right side",
|
||
"maxDataPoints": 3,
|
||
"nullPointMode": "connected",
|
||
"pieType": "donut",
|
||
"targets": [
|
||
{
|
||
"expr": "sort_desc(avg(irate(container_network_receive_bytes_total{namespace=~\".+\"}[$interval:$resolution])) by (namespace))",
|
||
"format": "time_series",
|
||
"instant": null,
|
||
"intervalFactor": 1,
|
||
"legendFormat": "{{namespace}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"title": "Average Rate of Bytes Received",
|
||
"type": "grafana-piechart-panel",
|
||
"valueName": "current"
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"breakpoint": "50%",
|
||
"cacheTimeout": null,
|
||
"combine": {
|
||
"label": "Others",
|
||
"threshold": 0
|
||
},
|
||
"datasource": "prometheus",
|
||
"fontSize": "80%",
|
||
"format": "Bps",
|
||
"gridPos": {
|
||
"h": 9,
|
||
"w": 12,
|
||
"x": 12,
|
||
"y": 11
|
||
},
|
||
"id": 8,
|
||
"interval": null,
|
||
"legend": {
|
||
"percentage": true,
|
||
"percentageDecimals": null,
|
||
"show": true,
|
||
"values": true
|
||
},
|
||
"legendType": "Right side",
|
||
"maxDataPoints": 3,
|
||
"nullPointMode": "connected",
|
||
"pieType": "donut",
|
||
"targets": [
|
||
{
|
||
"expr": "sort_desc(avg(irate(container_network_transmit_bytes_total{namespace=~\".+\"}[$interval:$resolution])) by (namespace))",
|
||
"format": "time_series",
|
||
"instant": null,
|
||
"intervalFactor": 1,
|
||
"legendFormat": "{{namespace}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"title": "Average Rate of Bytes Transmitted",
|
||
"type": "grafana-piechart-panel",
|
||
"valueName": "current"
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Average Bandwidth",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"gridPos": {
|
||
"h": 1,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 11
|
||
},
|
||
"id": 9,
|
||
"panels": [
|
||
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Bandwidth History",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "prometheus",
|
||
"fill": 2,
|
||
"gridPos": {
|
||
"h": 9,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 12
|
||
},
|
||
"id": 10,
|
||
"legend": {
|
||
"alignAsTable": true,
|
||
"avg": true,
|
||
"current": true,
|
||
"hideEmpty": true,
|
||
"hideZero": true,
|
||
"max": true,
|
||
"min": true,
|
||
"rightSide": true,
|
||
"show": true,
|
||
"total": false,
|
||
"values": true
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [
|
||
|
||
],
|
||
"minSpan": 24,
|
||
"nullPointMode": "connected",
|
||
"paceLength": 10,
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 24,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sort_desc(sum(irate(container_network_receive_bytes_total{namespace=~\".+\"}[$interval:$resolution])) by (namespace))",
|
||
"format": "time_series",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "{{namespace}}",
|
||
"refId": "A",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Receive Bandwidth",
|
||
"tooltip": {
|
||
"shared": true,
|
||
"sort": 2,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "prometheus",
|
||
"fill": 2,
|
||
"gridPos": {
|
||
"h": 9,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 21
|
||
},
|
||
"id": 11,
|
||
"legend": {
|
||
"alignAsTable": true,
|
||
"avg": true,
|
||
"current": true,
|
||
"hideEmpty": true,
|
||
"hideZero": true,
|
||
"max": true,
|
||
"min": true,
|
||
"rightSide": true,
|
||
"show": true,
|
||
"total": false,
|
||
"values": true
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [
|
||
|
||
],
|
||
"minSpan": 24,
|
||
"nullPointMode": "connected",
|
||
"paceLength": 10,
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 24,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sort_desc(sum(irate(container_network_transmit_bytes_total{namespace=~\".+\"}[$interval:$resolution])) by (namespace))",
|
||
"format": "time_series",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "{{namespace}}",
|
||
"refId": "A",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Transmit Bandwidth",
|
||
"tooltip": {
|
||
"shared": true,
|
||
"sort": 2,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"collapse": true,
|
||
"collapsed": true,
|
||
"gridPos": {
|
||
"h": 1,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 30
|
||
},
|
||
"id": 12,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "prometheus",
|
||
"fill": 2,
|
||
"gridPos": {
|
||
"h": 9,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 31
|
||
},
|
||
"id": 13,
|
||
"legend": {
|
||
"alignAsTable": true,
|
||
"avg": true,
|
||
"current": true,
|
||
"hideEmpty": true,
|
||
"hideZero": true,
|
||
"max": true,
|
||
"min": true,
|
||
"rightSide": true,
|
||
"show": true,
|
||
"total": false,
|
||
"values": true
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [
|
||
|
||
],
|
||
"minSpan": 24,
|
||
"nullPointMode": "connected",
|
||
"paceLength": 10,
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 24,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sort_desc(sum(irate(container_network_receive_packets_total{namespace=~\".+\"}[$interval:$resolution])) by (namespace))",
|
||
"format": "time_series",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "{{namespace}}",
|
||
"refId": "A",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Rate of Received Packets",
|
||
"tooltip": {
|
||
"shared": true,
|
||
"sort": 2,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "pps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "pps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "prometheus",
|
||
"fill": 2,
|
||
"gridPos": {
|
||
"h": 9,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 40
|
||
},
|
||
"id": 14,
|
||
"legend": {
|
||
"alignAsTable": true,
|
||
"avg": true,
|
||
"current": true,
|
||
"hideEmpty": true,
|
||
"hideZero": true,
|
||
"max": true,
|
||
"min": true,
|
||
"rightSide": true,
|
||
"show": true,
|
||
"total": false,
|
||
"values": true
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [
|
||
|
||
],
|
||
"minSpan": 24,
|
||
"nullPointMode": "connected",
|
||
"paceLength": 10,
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 24,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sort_desc(sum(irate(container_network_transmit_packets_total{namespace=~\".+\"}[$interval:$resolution])) by (namespace))",
|
||
"format": "time_series",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "{{namespace}}",
|
||
"refId": "A",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Rate of Transmitted Packets",
|
||
"tooltip": {
|
||
"shared": true,
|
||
"sort": 2,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "pps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "pps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Packets",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"collapse": true,
|
||
"collapsed": true,
|
||
"gridPos": {
|
||
"h": 1,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 31
|
||
},
|
||
"id": 15,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "prometheus",
|
||
"fill": 2,
|
||
"gridPos": {
|
||
"h": 9,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 50
|
||
},
|
||
"id": 16,
|
||
"legend": {
|
||
"alignAsTable": true,
|
||
"avg": true,
|
||
"current": true,
|
||
"hideEmpty": true,
|
||
"hideZero": true,
|
||
"max": true,
|
||
"min": true,
|
||
"rightSide": true,
|
||
"show": true,
|
||
"total": false,
|
||
"values": true
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [
|
||
|
||
],
|
||
"minSpan": 24,
|
||
"nullPointMode": "connected",
|
||
"paceLength": 10,
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 24,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sort_desc(sum(irate(container_network_receive_packets_dropped_total{namespace=~\".+\"}[$interval:$resolution])) by (namespace))",
|
||
"format": "time_series",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "{{namespace}}",
|
||
"refId": "A",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Rate of Received Packets Dropped",
|
||
"tooltip": {
|
||
"shared": true,
|
||
"sort": 2,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "pps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "pps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "prometheus",
|
||
"fill": 2,
|
||
"gridPos": {
|
||
"h": 9,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 59
|
||
},
|
||
"id": 17,
|
||
"legend": {
|
||
"alignAsTable": true,
|
||
"avg": true,
|
||
"current": true,
|
||
"hideEmpty": true,
|
||
"hideZero": true,
|
||
"max": true,
|
||
"min": true,
|
||
"rightSide": true,
|
||
"show": true,
|
||
"total": false,
|
||
"values": true
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [
|
||
|
||
],
|
||
"minSpan": 24,
|
||
"nullPointMode": "connected",
|
||
"paceLength": 10,
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 24,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sort_desc(sum(irate(container_network_transmit_packets_dropped_total{namespace=~\".+\"}[$interval:$resolution])) by (namespace))",
|
||
"format": "time_series",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "{{namespace}}",
|
||
"refId": "A",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Rate of Transmitted Packets Dropped",
|
||
"tooltip": {
|
||
"shared": true,
|
||
"sort": 2,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "pps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "pps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Errors",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
}
|
||
],
|
||
"refresh": "30s",
|
||
"rows": [
|
||
|
||
],
|
||
"schemaVersion": 18,
|
||
"style": "dark",
|
||
"tags": [
|
||
"kubernetes-mixin"
|
||
],
|
||
"templating": {
|
||
"list": [
|
||
{
|
||
"allValue": null,
|
||
"auto": false,
|
||
"auto_count": 30,
|
||
"auto_min": "10s",
|
||
"current": {
|
||
"text": "5m",
|
||
"value": "5m"
|
||
},
|
||
"datasource": "prometheus",
|
||
"hide": 0,
|
||
"includeAll": false,
|
||
"label": null,
|
||
"multi": false,
|
||
"name": "resolution",
|
||
"options": [
|
||
{
|
||
"selected": false,
|
||
"text": "30s",
|
||
"value": "30s"
|
||
},
|
||
{
|
||
"selected": true,
|
||
"text": "5m",
|
||
"value": "5m"
|
||
},
|
||
{
|
||
"selected": false,
|
||
"text": "1h",
|
||
"value": "1h"
|
||
}
|
||
],
|
||
"query": "30s,5m,1h",
|
||
"refresh": 2,
|
||
"regex": "",
|
||
"skipUrlSync": false,
|
||
"sort": 1,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "interval",
|
||
"useTags": false
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"auto": false,
|
||
"auto_count": 30,
|
||
"auto_min": "10s",
|
||
"current": {
|
||
"text": "5m",
|
||
"value": "5m"
|
||
},
|
||
"datasource": "prometheus",
|
||
"hide": 2,
|
||
"includeAll": false,
|
||
"label": null,
|
||
"multi": false,
|
||
"name": "interval",
|
||
"options": [
|
||
{
|
||
"selected": true,
|
||
"text": "4h",
|
||
"value": "4h"
|
||
}
|
||
],
|
||
"query": "4h",
|
||
"refresh": 2,
|
||
"regex": "",
|
||
"skipUrlSync": false,
|
||
"sort": 1,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "interval",
|
||
"useTags": false
|
||
}
|
||
]
|
||
},
|
||
"time": {
|
||
"from": "now-1h",
|
||
"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": "Kubernetes / Networking / Cluster",
|
||
"uid": "ff635a025bcfea7bc3dd4f508990a3e9",
|
||
"version": 0
|
||
}
|
||
kind: ConfigMap
|
||
metadata:
|
||
name: grafana-dashboard-cluster-total
|
||
namespace: monitoring
|
||
- apiVersion: v1
|
||
data:
|
||
controller-manager.json: |-
|
||
{
|
||
"__inputs": [
|
||
|
||
],
|
||
"__requires": [
|
||
|
||
],
|
||
"annotations": {
|
||
"list": [
|
||
|
||
]
|
||
},
|
||
"editable": false,
|
||
"gnetId": null,
|
||
"graphTooltip": 0,
|
||
"hideControls": false,
|
||
"id": null,
|
||
"links": [
|
||
|
||
],
|
||
"refresh": "",
|
||
"rows": [
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"panels": [
|
||
{
|
||
"cacheTimeout": null,
|
||
"colorBackground": false,
|
||
"colorValue": false,
|
||
"colors": [
|
||
"#299c46",
|
||
"rgba(237, 129, 40, 0.89)",
|
||
"#d44a3a"
|
||
],
|
||
"datasource": "$datasource",
|
||
"format": "none",
|
||
"gauge": {
|
||
"maxValue": 100,
|
||
"minValue": 0,
|
||
"show": false,
|
||
"thresholdLabels": false,
|
||
"thresholdMarkers": true
|
||
},
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 2,
|
||
"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": [
|
||
{
|
||
"expr": "sum(up{job=\"kube-controller-manager\"})",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": "",
|
||
"title": "Up",
|
||
"tooltip": {
|
||
"shared": false
|
||
},
|
||
"type": "singlestat",
|
||
"valueFontSize": "80%",
|
||
"valueMaps": [
|
||
{
|
||
"op": "=",
|
||
"text": "N/A",
|
||
"value": "null"
|
||
}
|
||
],
|
||
"valueName": "min"
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 3,
|
||
"legend": {
|
||
"alignAsTable": "true",
|
||
"avg": false,
|
||
"current": "true",
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": "true",
|
||
"show": "true",
|
||
"total": false,
|
||
"values": "true"
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 10,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(rate(workqueue_adds_total{job=\"kube-controller-manager\", instance=~\"$instance\"}[5m])) by (instance, name)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}} {{name}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Work Queue Add Rate",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "ops",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "ops",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": true
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": false,
|
||
"title": "Dashboard Row",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 4,
|
||
"legend": {
|
||
"alignAsTable": "true",
|
||
"avg": false,
|
||
"current": "true",
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": "true",
|
||
"show": "true",
|
||
"total": false,
|
||
"values": "true"
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(rate(workqueue_depth{job=\"kube-controller-manager\", instance=~\"$instance\"}[5m])) by (instance, name)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}} {{name}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Work Queue Depth",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"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": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": false,
|
||
"title": "Dashboard Row",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 5,
|
||
"legend": {
|
||
"alignAsTable": "true",
|
||
"avg": false,
|
||
"current": "true",
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": "true",
|
||
"show": "true",
|
||
"total": false,
|
||
"values": "true"
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "histogram_quantile(0.99, sum(rate(workqueue_queue_duration_seconds_bucket{job=\"kube-controller-manager\", instance=~\"$instance\"}[5m])) by (instance, name, le))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}} {{name}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Work Queue Latency",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "s",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "s",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": true
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": false,
|
||
"title": "Dashboard Row",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 6,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 4,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(rate(rest_client_requests_total{job=\"kube-controller-manager\", instance=~\"$instance\",code=~\"2..\"}[5m]))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "2xx",
|
||
"refId": "A"
|
||
},
|
||
{
|
||
"expr": "sum(rate(rest_client_requests_total{job=\"kube-controller-manager\", instance=~\"$instance\",code=~\"3..\"}[5m]))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "3xx",
|
||
"refId": "B"
|
||
},
|
||
{
|
||
"expr": "sum(rate(rest_client_requests_total{job=\"kube-controller-manager\", instance=~\"$instance\",code=~\"4..\"}[5m]))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "4xx",
|
||
"refId": "C"
|
||
},
|
||
{
|
||
"expr": "sum(rate(rest_client_requests_total{job=\"kube-controller-manager\", instance=~\"$instance\",code=~\"5..\"}[5m]))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "5xx",
|
||
"refId": "D"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Kube API Request Rate",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "ops",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "ops",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 7,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 8,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "histogram_quantile(0.99, sum(rate(rest_client_request_latency_seconds_bucket{job=\"kube-controller-manager\", instance=~\"$instance\", verb=\"POST\"}[5m])) by (verb, url, le))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{verb}} {{url}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Post Request Latency 99th Quantile",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "s",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "s",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": false,
|
||
"title": "Dashboard Row",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 8,
|
||
"legend": {
|
||
"alignAsTable": "true",
|
||
"avg": false,
|
||
"current": "true",
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": "true",
|
||
"show": "true",
|
||
"total": false,
|
||
"values": "true"
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "histogram_quantile(0.99, sum(rate(rest_client_request_latency_seconds_bucket{job=\"kube-controller-manager\", instance=~\"$instance\", verb=\"GET\"}[5m])) by (verb, url, le))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{verb}} {{url}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Get Request Latency 99th Quantile",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "s",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "s",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": false,
|
||
"title": "Dashboard Row",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 9,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 4,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "process_resident_memory_bytes{job=\"kube-controller-manager\",instance=~\"$instance\"}",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Memory",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"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": "bytes",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 10,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 4,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "rate(process_cpu_seconds_total{job=\"kube-controller-manager\",instance=~\"$instance\"}[5m])",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "CPU usage",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"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": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 11,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 4,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "go_goroutines{job=\"kube-controller-manager\",instance=~\"$instance\"}",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Goroutines",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"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",
|
||
"type": "row"
|
||
}
|
||
],
|
||
"schemaVersion": 14,
|
||
"style": "dark",
|
||
"tags": [
|
||
"kubernetes-mixin"
|
||
],
|
||
"templating": {
|
||
"list": [
|
||
{
|
||
"current": {
|
||
"text": "Prometheus",
|
||
"value": "Prometheus"
|
||
},
|
||
"hide": 0,
|
||
"label": null,
|
||
"name": "datasource",
|
||
"options": [
|
||
|
||
],
|
||
"query": "prometheus",
|
||
"refresh": 1,
|
||
"regex": "",
|
||
"type": "datasource"
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"current": {
|
||
|
||
},
|
||
"datasource": "$datasource",
|
||
"hide": 0,
|
||
"includeAll": true,
|
||
"label": null,
|
||
"multi": false,
|
||
"name": "instance",
|
||
"options": [
|
||
|
||
],
|
||
"query": "label_values(process_cpu_seconds_total{job=\"kube-controller-manager\"}, instance)",
|
||
"refresh": 2,
|
||
"regex": "",
|
||
"sort": 1,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "query",
|
||
"useTags": false
|
||
}
|
||
]
|
||
},
|
||
"time": {
|
||
"from": "now-1h",
|
||
"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": "Kubernetes / Controller Manager",
|
||
"uid": "72e0e05bef5099e5f049b05fdc429ed4",
|
||
"version": 0
|
||
}
|
||
kind: ConfigMap
|
||
metadata:
|
||
name: grafana-dashboard-controller-manager
|
||
namespace: monitoring
|
||
- apiVersion: v1
|
||
data:
|
||
k8s-resources-cluster.json: |-
|
||
{
|
||
"annotations": {
|
||
"list": [
|
||
|
||
]
|
||
},
|
||
"editable": true,
|
||
"gnetId": null,
|
||
"graphTooltip": 0,
|
||
"hideControls": false,
|
||
"links": [
|
||
|
||
],
|
||
"refresh": "10s",
|
||
"rows": [
|
||
{
|
||
"collapse": false,
|
||
"height": "100px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"format": "percentunit",
|
||
"id": 1,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 2,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "1 - avg(rate(node_cpu_seconds_total{mode=\"idle\", cluster=\"$cluster\"}[1m]))",
|
||
"format": "time_series",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": "70,80",
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "CPU Utilisation",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "singlestat",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"format": "percentunit",
|
||
"id": 2,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 2,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(kube_pod_container_resource_requests_cpu_cores{cluster=\"$cluster\"}) / sum(kube_node_status_allocatable_cpu_cores{cluster=\"$cluster\"})",
|
||
"format": "time_series",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": "70,80",
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "CPU Requests Commitment",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "singlestat",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"format": "percentunit",
|
||
"id": 3,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 2,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(kube_pod_container_resource_limits_cpu_cores{cluster=\"$cluster\"}) / sum(kube_node_status_allocatable_cpu_cores{cluster=\"$cluster\"})",
|
||
"format": "time_series",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": "70,80",
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "CPU Limits Commitment",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "singlestat",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"format": "percentunit",
|
||
"id": 4,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 2,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "1 - sum(:node_memory_MemAvailable_bytes:sum{cluster=\"$cluster\"}) / sum(kube_node_status_allocatable_memory_bytes{cluster=\"$cluster\"})",
|
||
"format": "time_series",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": "70,80",
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Memory Utilisation",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "singlestat",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"format": "percentunit",
|
||
"id": 5,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 2,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(kube_pod_container_resource_requests_memory_bytes{cluster=\"$cluster\"}) / sum(kube_node_status_allocatable_memory_bytes{cluster=\"$cluster\"})",
|
||
"format": "time_series",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": "70,80",
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Memory Requests Commitment",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "singlestat",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"format": "percentunit",
|
||
"id": 6,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 2,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(kube_pod_container_resource_limits_memory_bytes{cluster=\"$cluster\"}) / sum(kube_node_status_allocatable_memory_bytes{cluster=\"$cluster\"})",
|
||
"format": "time_series",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": "70,80",
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Memory Limits Commitment",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "singlestat",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": false,
|
||
"title": "Headlines",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 7,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\"}) by (namespace)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{namespace}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "CPU Usage",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"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": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "CPU",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"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 as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"styles": [
|
||
{
|
||
"alias": "Time",
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"pattern": "Time",
|
||
"type": "hidden"
|
||
},
|
||
{
|
||
"alias": "Pods",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 0,
|
||
"link": true,
|
||
"linkTooltip": "Drill down to pods",
|
||
"linkUrl": "./d/85a562078cdf77779eaa1add43ccec1e/k8s-resources-namespace?var-datasource=$datasource&var-cluster=$cluster&var-namespace=$__cell_1",
|
||
"pattern": "Value #A",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "short"
|
||
},
|
||
{
|
||
"alias": "Workloads",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 0,
|
||
"link": true,
|
||
"linkTooltip": "Drill down to workloads",
|
||
"linkUrl": "./d/a87fb0d919ec0ea5f6543124e16c42a5/k8s-resources-workloads-namespace?var-datasource=$datasource&var-cluster=$cluster&var-namespace=$__cell_1",
|
||
"pattern": "Value #B",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "short"
|
||
},
|
||
{
|
||
"alias": "CPU Usage",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #C",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "short"
|
||
},
|
||
{
|
||
"alias": "CPU Requests",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #D",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "short"
|
||
},
|
||
{
|
||
"alias": "CPU Requests %",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #E",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "percentunit"
|
||
},
|
||
{
|
||
"alias": "CPU Limits",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #F",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "short"
|
||
},
|
||
{
|
||
"alias": "CPU Limits %",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #G",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "percentunit"
|
||
},
|
||
{
|
||
"alias": "Namespace",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": true,
|
||
"linkTooltip": "Drill down to pods",
|
||
"linkUrl": "./d/85a562078cdf77779eaa1add43ccec1e/k8s-resources-namespace?var-datasource=$datasource&var-cluster=$cluster&var-namespace=$__cell",
|
||
"pattern": "namespace",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "short"
|
||
},
|
||
{
|
||
"alias": "",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"pattern": "/.*/",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "string",
|
||
"unit": "short"
|
||
}
|
||
],
|
||
"targets": [
|
||
{
|
||
"expr": "count(mixin_pod_workload{cluster=\"$cluster\"}) by (namespace)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "A",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "count(avg(mixin_pod_workload{cluster=\"$cluster\"}) by (workload, namespace)) by (namespace)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "B",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\"}) by (namespace)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "C",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(kube_pod_container_resource_requests_cpu_cores{cluster=\"$cluster\"}) by (namespace)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "D",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\"}) by (namespace) / sum(kube_pod_container_resource_requests_cpu_cores{cluster=\"$cluster\"}) by (namespace)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "E",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(kube_pod_container_resource_limits_cpu_cores{cluster=\"$cluster\"}) by (namespace)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "F",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\"}) by (namespace) / sum(kube_pod_container_resource_limits_cpu_cores{cluster=\"$cluster\"}) by (namespace)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "G",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "CPU Quota",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"transform": "table",
|
||
"type": "table",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "CPU Quota",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 9,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(container_memory_rss{cluster=\"$cluster\", container!=\"\"}) by (namespace)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{namespace}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Memory Usage (w/o cache)",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"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": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Memory",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"id": 10,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"styles": [
|
||
{
|
||
"alias": "Time",
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"pattern": "Time",
|
||
"type": "hidden"
|
||
},
|
||
{
|
||
"alias": "Pods",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 0,
|
||
"link": true,
|
||
"linkTooltip": "Drill down to pods",
|
||
"linkUrl": "./d/85a562078cdf77779eaa1add43ccec1e/k8s-resources-namespace?var-datasource=$datasource&var-cluster=$cluster&var-namespace=$__cell_1",
|
||
"pattern": "Value #A",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "short"
|
||
},
|
||
{
|
||
"alias": "Workloads",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 0,
|
||
"link": true,
|
||
"linkTooltip": "Drill down to workloads",
|
||
"linkUrl": "./d/a87fb0d919ec0ea5f6543124e16c42a5/k8s-resources-workloads-namespace?var-datasource=$datasource&var-cluster=$cluster&var-namespace=$__cell_1",
|
||
"pattern": "Value #B",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "short"
|
||
},
|
||
{
|
||
"alias": "Memory Usage",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #C",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "bytes"
|
||
},
|
||
{
|
||
"alias": "Memory Requests",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #D",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "bytes"
|
||
},
|
||
{
|
||
"alias": "Memory Requests %",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #E",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "percentunit"
|
||
},
|
||
{
|
||
"alias": "Memory Limits",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #F",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "bytes"
|
||
},
|
||
{
|
||
"alias": "Memory Limits %",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #G",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "percentunit"
|
||
},
|
||
{
|
||
"alias": "Namespace",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": true,
|
||
"linkTooltip": "Drill down to pods",
|
||
"linkUrl": "./d/85a562078cdf77779eaa1add43ccec1e/k8s-resources-namespace?var-datasource=$datasource&var-cluster=$cluster&var-namespace=$__cell",
|
||
"pattern": "namespace",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "short"
|
||
},
|
||
{
|
||
"alias": "",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"pattern": "/.*/",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "string",
|
||
"unit": "short"
|
||
}
|
||
],
|
||
"targets": [
|
||
{
|
||
"expr": "count(mixin_pod_workload{cluster=\"$cluster\"}) by (namespace)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "A",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "count(avg(mixin_pod_workload{cluster=\"$cluster\"}) by (workload, namespace)) by (namespace)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "B",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(container_memory_rss{cluster=\"$cluster\", container!=\"\"}) by (namespace)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "C",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(kube_pod_container_resource_requests_memory_bytes{cluster=\"$cluster\"}) by (namespace)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "D",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(container_memory_rss{cluster=\"$cluster\", container!=\"\"}) by (namespace) / sum(kube_pod_container_resource_requests_memory_bytes{cluster=\"$cluster\"}) by (namespace)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "E",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(kube_pod_container_resource_limits_memory_bytes{cluster=\"$cluster\"}) by (namespace)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "F",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(container_memory_rss{cluster=\"$cluster\", container!=\"\"}) by (namespace) / sum(kube_pod_container_resource_limits_memory_bytes{cluster=\"$cluster\"}) by (namespace)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "G",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Requests by Namespace",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"transform": "table",
|
||
"type": "table",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Memory Requests",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"id": 11,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"styles": [
|
||
{
|
||
"alias": "Time",
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"pattern": "Time",
|
||
"type": "hidden"
|
||
},
|
||
{
|
||
"alias": "Current Receive Bandwidth",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #A",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "Bps"
|
||
},
|
||
{
|
||
"alias": "Current Transmit Bandwidth",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #B",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "Bps"
|
||
},
|
||
{
|
||
"alias": "Rate of Received Packets",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #C",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "pps"
|
||
},
|
||
{
|
||
"alias": "Rate of Transmitted Packets",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #D",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "pps"
|
||
},
|
||
{
|
||
"alias": "Rate of Received Packets Dropped",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #E",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "pps"
|
||
},
|
||
{
|
||
"alias": "Rate of Transmitted Packets Dropped",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #F",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "pps"
|
||
},
|
||
{
|
||
"alias": "Namespace",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": true,
|
||
"linkTooltip": "Drill down to pods",
|
||
"linkUrl": "./d/85a562078cdf77779eaa1add43ccec1e/k8s-resources-namespace?var-datasource=$datasource&var-cluster=$cluster&var-namespace=$__cell",
|
||
"pattern": "namespace",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "short"
|
||
},
|
||
{
|
||
"alias": "",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"pattern": "/.*/",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "string",
|
||
"unit": "short"
|
||
}
|
||
],
|
||
"targets": [
|
||
{
|
||
"expr": "sum(irate(container_network_receive_bytes_total{cluster=\"$cluster\", namespace=~\".+\"}[$interval])) by (namespace)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "A",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(irate(container_network_transmit_bytes_total{cluster=\"$cluster\", namespace=~\".+\"}[$interval])) by (namespace)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "B",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(irate(container_network_receive_packets_total{cluster=\"$cluster\", namespace=~\".+\"}[$interval])) by (namespace)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "C",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(irate(container_network_transmit_packets_total{cluster=\"$cluster\", namespace=~\".+\"}[$interval])) by (namespace)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "D",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(irate(container_network_receive_packets_dropped_total{cluster=\"$cluster\", namespace=~\".+\"}[$interval])) by (namespace)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "E",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(irate(container_network_transmit_packets_dropped_total{cluster=\"$cluster\", namespace=~\".+\"}[$interval])) by (namespace)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "F",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Current Network Usage",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"transform": "table",
|
||
"type": "table",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Network",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 12,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(irate(container_network_receive_bytes_total{cluster=\"$cluster\", namespace=~\".+\"}[$interval])) by (namespace)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{namespace}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Receive Bandwidth",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Network",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 13,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(irate(container_network_transmit_bytes_total{cluster=\"$cluster\", namespace=~\".+\"}[$interval])) by (namespace)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{namespace}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Transmit Bandwidth",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Network",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 14,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "avg(irate(container_network_receive_bytes_total{cluster=\"$cluster\", namespace=~\".+\"}[$interval])) by (namespace)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{namespace}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Average Container Bandwidth by Namespace: Received",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Network",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 15,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "avg(irate(container_network_transmit_bytes_total{cluster=\"$cluster\", namespace=~\".+\"}[$interval])) by (namespace)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{namespace}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Average Container Bandwidth by Namespace: Transmitted",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Network",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 16,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(irate(container_network_receive_packets_total{cluster=\"$cluster\", namespace=~\".+\"}[$interval])) by (namespace)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{namespace}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Rate of Received Packets",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Network",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 17,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(irate(container_network_receive_packets_total{cluster=\"$cluster\", namespace=~\".+\"}[$interval])) by (namespace)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{namespace}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Rate of Transmitted Packets",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Network",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 18,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(irate(container_network_receive_packets_dropped_total{cluster=\"$cluster\", namespace=~\".+\"}[$interval])) by (namespace)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{namespace}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Rate of Received Packets Dropped",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Network",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 19,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(irate(container_network_transmit_packets_dropped_total{cluster=\"$cluster\", namespace=~\".+\"}[$interval])) by (namespace)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{namespace}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Rate of Transmitted Packets Dropped",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Network",
|
||
"titleSize": "h6"
|
||
}
|
||
],
|
||
"schemaVersion": 14,
|
||
"style": "dark",
|
||
"tags": [
|
||
"kubernetes-mixin"
|
||
],
|
||
"templating": {
|
||
"list": [
|
||
{
|
||
"current": {
|
||
"text": "Prometheus",
|
||
"value": "Prometheus"
|
||
},
|
||
"hide": 0,
|
||
"label": null,
|
||
"name": "datasource",
|
||
"options": [
|
||
|
||
],
|
||
"query": "prometheus",
|
||
"refresh": 1,
|
||
"regex": "",
|
||
"type": "datasource"
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"current": {
|
||
"text": "prod",
|
||
"value": "prod"
|
||
},
|
||
"datasource": "$datasource",
|
||
"hide": 2,
|
||
"includeAll": false,
|
||
"label": "cluster",
|
||
"multi": false,
|
||
"name": "cluster",
|
||
"options": [
|
||
|
||
],
|
||
"query": "label_values(node_cpu_seconds_total, cluster)",
|
||
"refresh": 1,
|
||
"regex": "",
|
||
"sort": 2,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "query",
|
||
"useTags": false
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"auto": false,
|
||
"auto_count": 30,
|
||
"auto_min": "10s",
|
||
"current": {
|
||
"text": "5m",
|
||
"value": "5m"
|
||
},
|
||
"datasource": "prometheus",
|
||
"hide": 2,
|
||
"includeAll": false,
|
||
"label": null,
|
||
"multi": false,
|
||
"name": "interval",
|
||
"options": [
|
||
{
|
||
"selected": true,
|
||
"text": "4h",
|
||
"value": "4h"
|
||
}
|
||
],
|
||
"query": "4h",
|
||
"refresh": 2,
|
||
"regex": "",
|
||
"skipUrlSync": false,
|
||
"sort": 1,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "interval",
|
||
"useTags": false
|
||
}
|
||
]
|
||
},
|
||
"time": {
|
||
"from": "now-1h",
|
||
"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": "Kubernetes / Compute Resources / Cluster",
|
||
"uid": "efa86fd1d0c121a26444b636a3f509a8",
|
||
"version": 0
|
||
}
|
||
kind: ConfigMap
|
||
metadata:
|
||
name: grafana-dashboard-k8s-resources-cluster
|
||
namespace: monitoring
|
||
- apiVersion: v1
|
||
data:
|
||
k8s-resources-namespace.json: |-
|
||
{
|
||
"annotations": {
|
||
"list": [
|
||
|
||
]
|
||
},
|
||
"editable": true,
|
||
"gnetId": null,
|
||
"graphTooltip": 0,
|
||
"hideControls": false,
|
||
"links": [
|
||
|
||
],
|
||
"refresh": "10s",
|
||
"rows": [
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 1,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{pod}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "CPU Usage",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"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": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "CPU Usage",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"id": 2,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"styles": [
|
||
{
|
||
"alias": "Time",
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"pattern": "Time",
|
||
"type": "hidden"
|
||
},
|
||
{
|
||
"alias": "CPU Usage",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #A",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "short"
|
||
},
|
||
{
|
||
"alias": "CPU Requests",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #B",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "short"
|
||
},
|
||
{
|
||
"alias": "CPU Requests %",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #C",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "percentunit"
|
||
},
|
||
{
|
||
"alias": "CPU Limits",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #D",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "short"
|
||
},
|
||
{
|
||
"alias": "CPU Limits %",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #E",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "percentunit"
|
||
},
|
||
{
|
||
"alias": "Pod",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": true,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "./d/6581e46e4e5c7ba40a07646395ef7b23/k8s-resources-pod?var-datasource=$datasource&var-cluster=$cluster&var-namespace=$namespace&var-pod=$__cell",
|
||
"pattern": "pod",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "short"
|
||
},
|
||
{
|
||
"alias": "",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"pattern": "/.*/",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "string",
|
||
"unit": "short"
|
||
}
|
||
],
|
||
"targets": [
|
||
{
|
||
"expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "A",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(kube_pod_container_resource_requests_cpu_cores{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "B",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod) / sum(kube_pod_container_resource_requests_cpu_cores{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "C",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(kube_pod_container_resource_limits_cpu_cores{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "D",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod) / sum(kube_pod_container_resource_limits_cpu_cores{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "E",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "CPU Quota",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"transform": "table",
|
||
"type": "table",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "CPU Quota",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 3,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(container_memory_working_set_bytes{cluster=\"$cluster\", namespace=\"$namespace\", container!=\"\"}) by (pod)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{pod}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Memory Usage (w/o cache)",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"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": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Memory Usage",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"id": 4,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"styles": [
|
||
{
|
||
"alias": "Time",
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"pattern": "Time",
|
||
"type": "hidden"
|
||
},
|
||
{
|
||
"alias": "Memory Usage",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #A",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "bytes"
|
||
},
|
||
{
|
||
"alias": "Memory Requests",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #B",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "bytes"
|
||
},
|
||
{
|
||
"alias": "Memory Requests %",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #C",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "percentunit"
|
||
},
|
||
{
|
||
"alias": "Memory Limits",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #D",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "bytes"
|
||
},
|
||
{
|
||
"alias": "Memory Limits %",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #E",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "percentunit"
|
||
},
|
||
{
|
||
"alias": "Memory Usage (RSS)",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #F",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "bytes"
|
||
},
|
||
{
|
||
"alias": "Memory Usage (Cache)",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #G",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "bytes"
|
||
},
|
||
{
|
||
"alias": "Memory Usage (Swap)",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #H",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "bytes"
|
||
},
|
||
{
|
||
"alias": "Pod",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": true,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "./d/6581e46e4e5c7ba40a07646395ef7b23/k8s-resources-pod?var-datasource=$datasource&var-cluster=$cluster&var-namespace=$namespace&var-pod=$__cell",
|
||
"pattern": "pod",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "short"
|
||
},
|
||
{
|
||
"alias": "",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"pattern": "/.*/",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "string",
|
||
"unit": "short"
|
||
}
|
||
],
|
||
"targets": [
|
||
{
|
||
"expr": "sum(container_memory_working_set_bytes{cluster=\"$cluster\", namespace=\"$namespace\",container!=\"\"}) by (pod)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "A",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(kube_pod_container_resource_requests_memory_bytes{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "B",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(container_memory_working_set_bytes{cluster=\"$cluster\", namespace=\"$namespace\",container!=\"\"}) by (pod) / sum(kube_pod_container_resource_requests_memory_bytes{namespace=\"$namespace\"}) by (pod)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "C",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(kube_pod_container_resource_limits_memory_bytes{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "D",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(container_memory_working_set_bytes{cluster=\"$cluster\", namespace=\"$namespace\",container!=\"\"}) by (pod) / sum(kube_pod_container_resource_limits_memory_bytes{namespace=\"$namespace\"}) by (pod)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "E",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(container_memory_rss{cluster=\"$cluster\", namespace=\"$namespace\",container!=\"\"}) by (pod)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "F",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(container_memory_cache{cluster=\"$cluster\", namespace=\"$namespace\",container!=\"\"}) by (pod)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "G",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(container_memory_swap{cluster=\"$cluster\", namespace=\"$namespace\",container!=\"\"}) by (pod)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "H",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Memory Quota",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"transform": "table",
|
||
"type": "table",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Memory Quota",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"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 as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"styles": [
|
||
{
|
||
"alias": "Time",
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"pattern": "Time",
|
||
"type": "hidden"
|
||
},
|
||
{
|
||
"alias": "Current Receive Bandwidth",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #A",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "Bps"
|
||
},
|
||
{
|
||
"alias": "Current Transmit Bandwidth",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #B",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "Bps"
|
||
},
|
||
{
|
||
"alias": "Rate of Received Packets",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #C",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "pps"
|
||
},
|
||
{
|
||
"alias": "Rate of Transmitted Packets",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #D",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "pps"
|
||
},
|
||
{
|
||
"alias": "Rate of Received Packets Dropped",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #E",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "pps"
|
||
},
|
||
{
|
||
"alias": "Rate of Transmitted Packets Dropped",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #F",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "pps"
|
||
},
|
||
{
|
||
"alias": "Pod",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": true,
|
||
"linkTooltip": "Drill down to pods",
|
||
"linkUrl": "./d/6581e46e4e5c7ba40a07646395ef7b23/k8s-resources-pod?var-datasource=$datasource&var-cluster=$cluster&var-namespace=$namespace&var-pod=$__cell",
|
||
"pattern": "pod",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "short"
|
||
},
|
||
{
|
||
"alias": "",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"pattern": "/.*/",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "string",
|
||
"unit": "short"
|
||
}
|
||
],
|
||
"targets": [
|
||
{
|
||
"expr": "sum(irate(container_network_receive_bytes_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$interval])) by (pod)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "A",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(irate(container_network_transmit_bytes_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$interval])) by (pod)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "B",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(irate(container_network_receive_packets_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$interval])) by (pod)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "C",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(irate(container_network_transmit_packets_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$interval])) by (pod)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "D",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(irate(container_network_receive_packets_dropped_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$interval])) by (pod)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "E",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(irate(container_network_transmit_packets_dropped_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$interval])) by (pod)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "F",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Current Network Usage",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"transform": "table",
|
||
"type": "table",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Network",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 6,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(irate(container_network_receive_bytes_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$interval])) by (pod)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{pod}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Receive Bandwidth",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Network",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 7,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(irate(container_network_transmit_bytes_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$interval])) by (pod)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{pod}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Transmit Bandwidth",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Network",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 8,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(irate(container_network_receive_packets_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$interval])) by (pod)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{pod}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Rate of Received Packets",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Network",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 9,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(irate(container_network_receive_packets_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$interval])) by (pod)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{pod}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Rate of Transmitted Packets",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Network",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 10,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(irate(container_network_receive_packets_dropped_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$interval])) by (pod)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{pod}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Rate of Received Packets Dropped",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Network",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 11,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(irate(container_network_transmit_packets_dropped_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$interval])) by (pod)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{pod}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Rate of Transmitted Packets Dropped",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Network",
|
||
"titleSize": "h6"
|
||
}
|
||
],
|
||
"schemaVersion": 14,
|
||
"style": "dark",
|
||
"tags": [
|
||
"kubernetes-mixin"
|
||
],
|
||
"templating": {
|
||
"list": [
|
||
{
|
||
"current": {
|
||
"text": "Prometheus",
|
||
"value": "Prometheus"
|
||
},
|
||
"hide": 0,
|
||
"label": null,
|
||
"name": "datasource",
|
||
"options": [
|
||
|
||
],
|
||
"query": "prometheus",
|
||
"refresh": 1,
|
||
"regex": "",
|
||
"type": "datasource"
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"current": {
|
||
"text": "prod",
|
||
"value": "prod"
|
||
},
|
||
"datasource": "$datasource",
|
||
"hide": 2,
|
||
"includeAll": false,
|
||
"label": "cluster",
|
||
"multi": false,
|
||
"name": "cluster",
|
||
"options": [
|
||
|
||
],
|
||
"query": "label_values(kube_pod_info, cluster)",
|
||
"refresh": 1,
|
||
"regex": "",
|
||
"sort": 2,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "query",
|
||
"useTags": false
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"current": {
|
||
"text": "prod",
|
||
"value": "prod"
|
||
},
|
||
"datasource": "$datasource",
|
||
"hide": 0,
|
||
"includeAll": false,
|
||
"label": "namespace",
|
||
"multi": false,
|
||
"name": "namespace",
|
||
"options": [
|
||
|
||
],
|
||
"query": "label_values(kube_pod_info{cluster=\"$cluster\"}, namespace)",
|
||
"refresh": 1,
|
||
"regex": "",
|
||
"sort": 2,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "query",
|
||
"useTags": false
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"auto": false,
|
||
"auto_count": 30,
|
||
"auto_min": "10s",
|
||
"current": {
|
||
"text": "5m",
|
||
"value": "5m"
|
||
},
|
||
"datasource": "prometheus",
|
||
"hide": 2,
|
||
"includeAll": false,
|
||
"label": null,
|
||
"multi": false,
|
||
"name": "interval",
|
||
"options": [
|
||
{
|
||
"selected": true,
|
||
"text": "4h",
|
||
"value": "4h"
|
||
}
|
||
],
|
||
"query": "4h",
|
||
"refresh": 2,
|
||
"regex": "",
|
||
"skipUrlSync": false,
|
||
"sort": 1,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "interval",
|
||
"useTags": false
|
||
}
|
||
]
|
||
},
|
||
"time": {
|
||
"from": "now-1h",
|
||
"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": "Kubernetes / Compute Resources / Namespace (Pods)",
|
||
"uid": "85a562078cdf77779eaa1add43ccec1e",
|
||
"version": 0
|
||
}
|
||
kind: ConfigMap
|
||
metadata:
|
||
name: grafana-dashboard-k8s-resources-namespace
|
||
namespace: monitoring
|
||
- apiVersion: v1
|
||
data:
|
||
k8s-resources-node.json: |-
|
||
{
|
||
"annotations": {
|
||
"list": [
|
||
|
||
]
|
||
},
|
||
"editable": true,
|
||
"gnetId": null,
|
||
"graphTooltip": 0,
|
||
"hideControls": false,
|
||
"links": [
|
||
|
||
],
|
||
"refresh": "10s",
|
||
"rows": [
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 1,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", node=\"$node\"}) by (pod)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{pod}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "CPU Usage",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"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": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "CPU Usage",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"id": 2,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"styles": [
|
||
{
|
||
"alias": "Time",
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"pattern": "Time",
|
||
"type": "hidden"
|
||
},
|
||
{
|
||
"alias": "CPU Usage",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #A",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "short"
|
||
},
|
||
{
|
||
"alias": "CPU Requests",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #B",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "short"
|
||
},
|
||
{
|
||
"alias": "CPU Requests %",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #C",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "percentunit"
|
||
},
|
||
{
|
||
"alias": "CPU Limits",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #D",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "short"
|
||
},
|
||
{
|
||
"alias": "CPU Limits %",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #E",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "percentunit"
|
||
},
|
||
{
|
||
"alias": "Pod",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "pod",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "short"
|
||
},
|
||
{
|
||
"alias": "",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"pattern": "/.*/",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "string",
|
||
"unit": "short"
|
||
}
|
||
],
|
||
"targets": [
|
||
{
|
||
"expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", node=\"$node\"}) by (pod)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "A",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(kube_pod_container_resource_requests_cpu_cores{cluster=\"$cluster\", node=\"$node\"}) by (pod)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "B",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", node=\"$node\"}) by (pod) / sum(kube_pod_container_resource_requests_cpu_cores{cluster=\"$cluster\", node=\"$node\"}) by (pod)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "C",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(kube_pod_container_resource_limits_cpu_cores{cluster=\"$cluster\", node=\"$node\"}) by (pod)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "D",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", node=\"$node\"}) by (pod) / sum(kube_pod_container_resource_limits_cpu_cores{cluster=\"$cluster\", node=\"$node\"}) by (pod)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "E",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "CPU Quota",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"transform": "table",
|
||
"type": "table",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "CPU Quota",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 3,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(node_namespace_pod_container:container_memory_working_set_bytes{cluster=\"$cluster\", node=\"$node\", container!=\"\"}) by (pod)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{pod}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Memory Usage (w/o cache)",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"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": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Memory Usage",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"id": 4,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"styles": [
|
||
{
|
||
"alias": "Time",
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"pattern": "Time",
|
||
"type": "hidden"
|
||
},
|
||
{
|
||
"alias": "Memory Usage",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #A",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "bytes"
|
||
},
|
||
{
|
||
"alias": "Memory Requests",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #B",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "bytes"
|
||
},
|
||
{
|
||
"alias": "Memory Requests %",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #C",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "percentunit"
|
||
},
|
||
{
|
||
"alias": "Memory Limits",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #D",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "bytes"
|
||
},
|
||
{
|
||
"alias": "Memory Limits %",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #E",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "percentunit"
|
||
},
|
||
{
|
||
"alias": "Memory Usage (RSS)",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #F",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "bytes"
|
||
},
|
||
{
|
||
"alias": "Memory Usage (Cache)",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #G",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "bytes"
|
||
},
|
||
{
|
||
"alias": "Memory Usage (Swap)",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #H",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "bytes"
|
||
},
|
||
{
|
||
"alias": "Pod",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "pod",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "short"
|
||
},
|
||
{
|
||
"alias": "",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"pattern": "/.*/",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "string",
|
||
"unit": "short"
|
||
}
|
||
],
|
||
"targets": [
|
||
{
|
||
"expr": "sum(node_namespace_pod_container:container_memory_working_set_bytes{cluster=\"$cluster\", node=\"$node\",container!=\"\"}) by (pod)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "A",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(kube_pod_container_resource_requests_memory_bytes{cluster=\"$cluster\", node=\"$node\"}) by (pod)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "B",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(node_namespace_pod_container:container_memory_working_set_bytes{cluster=\"$cluster\", node=\"$node\",container!=\"\"}) by (pod) / sum(kube_pod_container_resource_requests_memory_bytes{node=\"$node\"}) by (pod)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "C",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(kube_pod_container_resource_limits_memory_bytes{cluster=\"$cluster\", node=\"$node\"}) by (pod)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "D",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(node_namespace_pod_container:container_memory_working_set_bytes{cluster=\"$cluster\", node=\"$node\",container!=\"\"}) by (pod) / sum(kube_pod_container_resource_limits_memory_bytes{node=\"$node\"}) by (pod)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "E",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(node_namespace_pod_container:container_memory_rss{cluster=\"$cluster\", node=\"$node\",container!=\"\"}) by (pod)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "F",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(node_namespace_pod_container:container_memory_cache{cluster=\"$cluster\", node=\"$node\",container!=\"\"}) by (pod)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "G",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(node_namespace_pod_container:container_memory_swap{cluster=\"$cluster\", node=\"$node\",container!=\"\"}) by (pod)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "H",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Memory Quota",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"transform": "table",
|
||
"type": "table",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Memory Quota",
|
||
"titleSize": "h6"
|
||
}
|
||
],
|
||
"schemaVersion": 14,
|
||
"style": "dark",
|
||
"tags": [
|
||
"kubernetes-mixin"
|
||
],
|
||
"templating": {
|
||
"list": [
|
||
{
|
||
"current": {
|
||
"text": "Prometheus",
|
||
"value": "Prometheus"
|
||
},
|
||
"hide": 0,
|
||
"label": null,
|
||
"name": "datasource",
|
||
"options": [
|
||
|
||
],
|
||
"query": "prometheus",
|
||
"refresh": 1,
|
||
"regex": "",
|
||
"type": "datasource"
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"current": {
|
||
"text": "prod",
|
||
"value": "prod"
|
||
},
|
||
"datasource": "$datasource",
|
||
"hide": 2,
|
||
"includeAll": false,
|
||
"label": "cluster",
|
||
"multi": false,
|
||
"name": "cluster",
|
||
"options": [
|
||
|
||
],
|
||
"query": "label_values(kube_pod_info, cluster)",
|
||
"refresh": 1,
|
||
"regex": "",
|
||
"sort": 2,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "query",
|
||
"useTags": false
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"current": {
|
||
"text": "prod",
|
||
"value": "prod"
|
||
},
|
||
"datasource": "$datasource",
|
||
"hide": 0,
|
||
"includeAll": false,
|
||
"label": "node",
|
||
"multi": false,
|
||
"name": "node",
|
||
"options": [
|
||
|
||
],
|
||
"query": "label_values(kube_pod_info{cluster=\"$cluster\"}, node)",
|
||
"refresh": 1,
|
||
"regex": "",
|
||
"sort": 2,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "query",
|
||
"useTags": false
|
||
}
|
||
]
|
||
},
|
||
"time": {
|
||
"from": "now-1h",
|
||
"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": "Kubernetes / Compute Resources / Node (Pods)",
|
||
"uid": "200ac8fdbfbb74b39aff88118e4d1c2c",
|
||
"version": 0
|
||
}
|
||
kind: ConfigMap
|
||
metadata:
|
||
name: grafana-dashboard-k8s-resources-node
|
||
namespace: monitoring
|
||
- apiVersion: v1
|
||
data:
|
||
k8s-resources-pod.json: |-
|
||
{
|
||
"annotations": {
|
||
"list": [
|
||
|
||
]
|
||
},
|
||
"editable": true,
|
||
"gnetId": null,
|
||
"graphTooltip": 0,
|
||
"hideControls": false,
|
||
"links": [
|
||
|
||
],
|
||
"refresh": "10s",
|
||
"rows": [
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 1,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{namespace=\"$namespace\", pod=\"$pod\", container!=\"POD\", cluster=\"$cluster\"}) by (container)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{container}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "CPU Usage",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"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": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "CPU Usage",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"id": 2,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"styles": [
|
||
{
|
||
"alias": "Time",
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"pattern": "Time",
|
||
"type": "hidden"
|
||
},
|
||
{
|
||
"alias": "CPU Usage",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #A",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "short"
|
||
},
|
||
{
|
||
"alias": "CPU Requests",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #B",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "short"
|
||
},
|
||
{
|
||
"alias": "CPU Requests %",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #C",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "percentunit"
|
||
},
|
||
{
|
||
"alias": "CPU Limits",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #D",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "short"
|
||
},
|
||
{
|
||
"alias": "CPU Limits %",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #E",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "percentunit"
|
||
},
|
||
{
|
||
"alias": "Container",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "container",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "short"
|
||
},
|
||
{
|
||
"alias": "",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"pattern": "/.*/",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "string",
|
||
"unit": "short"
|
||
}
|
||
],
|
||
"targets": [
|
||
{
|
||
"expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", container!=\"POD\"}) by (container)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "A",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(kube_pod_container_resource_requests_cpu_cores{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}) by (container)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "B",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}) by (container) / sum(kube_pod_container_resource_requests_cpu_cores{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}) by (container)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "C",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(kube_pod_container_resource_limits_cpu_cores{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}) by (container)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "D",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}) by (container) / sum(kube_pod_container_resource_limits_cpu_cores{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}) by (container)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "E",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "CPU Quota",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"transform": "table",
|
||
"type": "table",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "CPU Quota",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 3,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(container_memory_rss{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", container!=\"POD\", container!=\"\"}) by (container)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{container}} (RSS)",
|
||
"legendLink": null,
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(container_memory_cache{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", container!=\"POD\", container!=\"\"}) by (container)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{container}} (Cache)",
|
||
"legendLink": null,
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(container_memory_swap{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", container!=\"POD\", container!=\"\"}) by (container)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{container}} (Swap)",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Memory Usage",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"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": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Memory Usage",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"id": 4,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"styles": [
|
||
{
|
||
"alias": "Time",
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"pattern": "Time",
|
||
"type": "hidden"
|
||
},
|
||
{
|
||
"alias": "Memory Usage",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #A",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "bytes"
|
||
},
|
||
{
|
||
"alias": "Memory Requests",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #B",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "bytes"
|
||
},
|
||
{
|
||
"alias": "Memory Requests %",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #C",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "percentunit"
|
||
},
|
||
{
|
||
"alias": "Memory Limits",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #D",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "bytes"
|
||
},
|
||
{
|
||
"alias": "Memory Limits %",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #E",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "percentunit"
|
||
},
|
||
{
|
||
"alias": "Memory Usage (RSS)",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #F",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "bytes"
|
||
},
|
||
{
|
||
"alias": "Memory Usage (Cache)",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #G",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "bytes"
|
||
},
|
||
{
|
||
"alias": "Memory Usage (Swap)",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #H",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "bytes"
|
||
},
|
||
{
|
||
"alias": "Container",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "container",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "short"
|
||
},
|
||
{
|
||
"alias": "",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"pattern": "/.*/",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "string",
|
||
"unit": "short"
|
||
}
|
||
],
|
||
"targets": [
|
||
{
|
||
"expr": "sum(container_memory_working_set_bytes{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", container!=\"POD\", container!=\"\"}) by (container)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "A",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(kube_pod_container_resource_requests_memory_bytes{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}) by (container)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "B",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(container_memory_working_set_bytes{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}) by (container) / sum(kube_pod_container_resource_requests_memory_bytes{namespace=\"$namespace\", pod=\"$pod\"}) by (container)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "C",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(kube_pod_container_resource_limits_memory_bytes{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", container!=\"\"}) by (container)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "D",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(container_memory_working_set_bytes{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", container!=\"\"}) by (container) / sum(kube_pod_container_resource_limits_memory_bytes{namespace=\"$namespace\", pod=\"$pod\"}) by (container)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "E",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(container_memory_rss{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", container != \"\", container != \"POD\"}) by (container)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "F",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(container_memory_cache{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", container != \"\", container != \"POD\"}) by (container)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "G",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(container_memory_swap{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", container != \"\", container != \"POD\"}) by (container)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "H",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Memory Quota",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"transform": "table",
|
||
"type": "table",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Memory Quota",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 5,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(irate(container_network_receive_bytes_total{namespace=~\"$namespace\", pod=~\"$pod\"}[$interval])) by (pod)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{pod}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Receive Bandwidth",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Network",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 6,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(irate(container_network_transmit_bytes_total{namespace=~\"$namespace\", pod=~\"$pod\"}[$interval])) by (pod)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{pod}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Transmit Bandwidth",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Network",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 7,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(irate(container_network_receive_packets_total{namespace=~\"$namespace\", pod=~\"$pod\"}[$interval])) by (pod)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{pod}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Rate of Received Packets",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Network",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 8,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(irate(container_network_transmit_packets_total{namespace=~\"$namespace\", pod=~\"$pod\"}[$interval])) by (pod)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{pod}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Rate of Transmitted Packets",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Network",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 9,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(irate(container_network_receive_packets_dropped_total{namespace=~\"$namespace\", pod=~\"$pod\"}[$interval])) by (pod)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{pod}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Rate of Received Packets Dropped",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Network",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 10,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(irate(container_network_transmit_packets_dropped_total{namespace=~\"$namespace\", pod=~\"$pod\"}[$interval])) by (pod)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{pod}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Rate of Transmitted Packets Dropped",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Network",
|
||
"titleSize": "h6"
|
||
}
|
||
],
|
||
"schemaVersion": 14,
|
||
"style": "dark",
|
||
"tags": [
|
||
"kubernetes-mixin"
|
||
],
|
||
"templating": {
|
||
"list": [
|
||
{
|
||
"current": {
|
||
"text": "Prometheus",
|
||
"value": "Prometheus"
|
||
},
|
||
"hide": 0,
|
||
"label": null,
|
||
"name": "datasource",
|
||
"options": [
|
||
|
||
],
|
||
"query": "prometheus",
|
||
"refresh": 1,
|
||
"regex": "",
|
||
"type": "datasource"
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"current": {
|
||
"text": "prod",
|
||
"value": "prod"
|
||
},
|
||
"datasource": "$datasource",
|
||
"hide": 2,
|
||
"includeAll": false,
|
||
"label": "cluster",
|
||
"multi": false,
|
||
"name": "cluster",
|
||
"options": [
|
||
|
||
],
|
||
"query": "label_values(kube_pod_info, cluster)",
|
||
"refresh": 1,
|
||
"regex": "",
|
||
"sort": 2,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "query",
|
||
"useTags": false
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"current": {
|
||
"text": "prod",
|
||
"value": "prod"
|
||
},
|
||
"datasource": "$datasource",
|
||
"hide": 0,
|
||
"includeAll": false,
|
||
"label": "namespace",
|
||
"multi": false,
|
||
"name": "namespace",
|
||
"options": [
|
||
|
||
],
|
||
"query": "label_values(kube_pod_info{cluster=\"$cluster\"}, namespace)",
|
||
"refresh": 1,
|
||
"regex": "",
|
||
"sort": 2,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "query",
|
||
"useTags": false
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"current": {
|
||
"text": "prod",
|
||
"value": "prod"
|
||
},
|
||
"datasource": "$datasource",
|
||
"hide": 0,
|
||
"includeAll": false,
|
||
"label": "pod",
|
||
"multi": false,
|
||
"name": "pod",
|
||
"options": [
|
||
|
||
],
|
||
"query": "label_values(kube_pod_info{cluster=\"$cluster\", namespace=\"$namespace\"}, pod)",
|
||
"refresh": 1,
|
||
"regex": "",
|
||
"sort": 2,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "query",
|
||
"useTags": false
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"auto": false,
|
||
"auto_count": 30,
|
||
"auto_min": "10s",
|
||
"current": {
|
||
"text": "5m",
|
||
"value": "5m"
|
||
},
|
||
"datasource": "prometheus",
|
||
"hide": 2,
|
||
"includeAll": false,
|
||
"label": null,
|
||
"multi": false,
|
||
"name": "interval",
|
||
"options": [
|
||
{
|
||
"selected": true,
|
||
"text": "4h",
|
||
"value": "4h"
|
||
}
|
||
],
|
||
"query": "4h",
|
||
"refresh": 2,
|
||
"regex": "",
|
||
"skipUrlSync": false,
|
||
"sort": 1,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "interval",
|
||
"useTags": false
|
||
}
|
||
]
|
||
},
|
||
"time": {
|
||
"from": "now-1h",
|
||
"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": "Kubernetes / Compute Resources / Pod",
|
||
"uid": "6581e46e4e5c7ba40a07646395ef7b23",
|
||
"version": 0
|
||
}
|
||
kind: ConfigMap
|
||
metadata:
|
||
name: grafana-dashboard-k8s-resources-pod
|
||
namespace: monitoring
|
||
- apiVersion: v1
|
||
data:
|
||
k8s-resources-workload.json: |-
|
||
{
|
||
"annotations": {
|
||
"list": [
|
||
|
||
]
|
||
},
|
||
"editable": true,
|
||
"gnetId": null,
|
||
"graphTooltip": 0,
|
||
"hideControls": false,
|
||
"links": [
|
||
|
||
],
|
||
"refresh": "10s",
|
||
"rows": [
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 1,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(\n node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", namespace=\"$namespace\"}\n * on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload=\"$workload\", workload_type=\"$type\"}\n) by (pod)\n",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{pod}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "CPU Usage",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"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": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "CPU Usage",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"id": 2,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"styles": [
|
||
{
|
||
"alias": "Time",
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"pattern": "Time",
|
||
"type": "hidden"
|
||
},
|
||
{
|
||
"alias": "CPU Usage",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #A",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "short"
|
||
},
|
||
{
|
||
"alias": "CPU Requests",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #B",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "short"
|
||
},
|
||
{
|
||
"alias": "CPU Requests %",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #C",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "percentunit"
|
||
},
|
||
{
|
||
"alias": "CPU Limits",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #D",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "short"
|
||
},
|
||
{
|
||
"alias": "CPU Limits %",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #E",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "percentunit"
|
||
},
|
||
{
|
||
"alias": "Pod",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": true,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "./d/6581e46e4e5c7ba40a07646395ef7b23/k8s-resources-pod?var-datasource=$datasource&var-cluster=$cluster&var-namespace=$namespace&var-pod=$__cell",
|
||
"pattern": "pod",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "short"
|
||
},
|
||
{
|
||
"alias": "",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"pattern": "/.*/",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "string",
|
||
"unit": "short"
|
||
}
|
||
],
|
||
"targets": [
|
||
{
|
||
"expr": "sum(\n node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", namespace=\"$namespace\"}\n * on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload=\"$workload\", workload_type=\"$type\"}\n) by (pod)\n",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "A",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(\n kube_pod_container_resource_requests_cpu_cores{cluster=\"$cluster\", namespace=\"$namespace\"}\n * on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload=\"$workload\", workload_type=\"$type\"}\n) by (pod)\n",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "B",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(\n node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", namespace=\"$namespace\"}\n * on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload=\"$workload\", workload_type=\"$type\"}\n) by (pod)\n/sum(\n kube_pod_container_resource_requests_cpu_cores{cluster=\"$cluster\", namespace=\"$namespace\"}\n * on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload=\"$workload\", workload_type=\"$type\"}\n) by (pod)\n",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "C",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(\n kube_pod_container_resource_limits_cpu_cores{cluster=\"$cluster\", namespace=\"$namespace\"}\n * on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload=\"$workload\", workload_type=\"$type\"}\n) by (pod)\n",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "D",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(\n node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", namespace=\"$namespace\"}\n * on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload=\"$workload\", workload_type=\"$type\"}\n) by (pod)\n/sum(\n kube_pod_container_resource_limits_cpu_cores{cluster=\"$cluster\", namespace=\"$namespace\"}\n * on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload=\"$workload\", workload_type=\"$type\"}\n) by (pod)\n",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "E",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "CPU Quota",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"transform": "table",
|
||
"type": "table",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "CPU Quota",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 3,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(\n container_memory_working_set_bytes{cluster=\"$cluster\", namespace=\"$namespace\", container!=\"\"}\n * on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload=\"$workload\", workload_type=\"$type\"}\n) by (pod)\n",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{pod}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Memory Usage",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"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": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Memory Usage",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"id": 4,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"styles": [
|
||
{
|
||
"alias": "Time",
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"pattern": "Time",
|
||
"type": "hidden"
|
||
},
|
||
{
|
||
"alias": "Memory Usage",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #A",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "bytes"
|
||
},
|
||
{
|
||
"alias": "Memory Requests",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #B",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "bytes"
|
||
},
|
||
{
|
||
"alias": "Memory Requests %",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #C",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "percentunit"
|
||
},
|
||
{
|
||
"alias": "Memory Limits",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #D",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "bytes"
|
||
},
|
||
{
|
||
"alias": "Memory Limits %",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #E",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "percentunit"
|
||
},
|
||
{
|
||
"alias": "Pod",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": true,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "./d/6581e46e4e5c7ba40a07646395ef7b23/k8s-resources-pod?var-datasource=$datasource&var-cluster=$cluster&var-namespace=$namespace&var-pod=$__cell",
|
||
"pattern": "pod",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "short"
|
||
},
|
||
{
|
||
"alias": "",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"pattern": "/.*/",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "string",
|
||
"unit": "short"
|
||
}
|
||
],
|
||
"targets": [
|
||
{
|
||
"expr": "sum(\n container_memory_working_set_bytes{cluster=\"$cluster\", namespace=\"$namespace\", container!=\"\"}\n * on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload=\"$workload\", workload_type=\"$type\"}\n) by (pod)\n",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "A",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(\n kube_pod_container_resource_requests_memory_bytes{cluster=\"$cluster\", namespace=\"$namespace\"}\n * on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload=\"$workload\", workload_type=\"$type\"}\n) by (pod)\n",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "B",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(\n container_memory_working_set_bytes{cluster=\"$cluster\", namespace=\"$namespace\", container!=\"\"}\n * on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload=\"$workload\", workload_type=\"$type\"}\n) by (pod)\n/sum(\n kube_pod_container_resource_requests_memory_bytes{cluster=\"$cluster\", namespace=\"$namespace\"}\n * on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload=\"$workload\", workload_type=\"$type\"}\n) by (pod)\n",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "C",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(\n kube_pod_container_resource_limits_memory_bytes{cluster=\"$cluster\", namespace=\"$namespace\"}\n * on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload=\"$workload\", workload_type=\"$type\"}\n) by (pod)\n",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "D",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(\n container_memory_working_set_bytes{cluster=\"$cluster\", namespace=\"$namespace\", container!=\"\"}\n * on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload=\"$workload\", workload_type=\"$type\"}\n) by (pod)\n/sum(\n kube_pod_container_resource_limits_memory_bytes{cluster=\"$cluster\", namespace=\"$namespace\"}\n * on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload=\"$workload\", workload_type=\"$type\"}\n) by (pod)\n",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "E",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Memory Quota",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"transform": "table",
|
||
"type": "table",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Memory Quota",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"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 as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"styles": [
|
||
{
|
||
"alias": "Time",
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"pattern": "Time",
|
||
"type": "hidden"
|
||
},
|
||
{
|
||
"alias": "Current Receive Bandwidth",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #A",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "Bps"
|
||
},
|
||
{
|
||
"alias": "Current Transmit Bandwidth",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #B",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "Bps"
|
||
},
|
||
{
|
||
"alias": "Rate of Received Packets",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #C",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "pps"
|
||
},
|
||
{
|
||
"alias": "Rate of Transmitted Packets",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #D",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "pps"
|
||
},
|
||
{
|
||
"alias": "Rate of Received Packets Dropped",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #E",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "pps"
|
||
},
|
||
{
|
||
"alias": "Rate of Transmitted Packets Dropped",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #F",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "pps"
|
||
},
|
||
{
|
||
"alias": "Pod",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": true,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "./d/6581e46e4e5c7ba40a07646395ef7b23/k8s-resources-pod?var-datasource=$datasource&var-cluster=$cluster&var-namespace=$namespace&var-pod=$__cell",
|
||
"pattern": "pod",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "short"
|
||
},
|
||
{
|
||
"alias": "",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"pattern": "/.*/",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "string",
|
||
"unit": "short"
|
||
}
|
||
],
|
||
"targets": [
|
||
{
|
||
"expr": "(sum(irate(container_network_receive_bytes_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload=~\"$workload\", workload_type=\"$type\"}) by (pod))\n",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "A",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "(sum(irate(container_network_transmit_bytes_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload=~\"$workload\", workload_type=\"$type\"}) by (pod))\n",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "B",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "(sum(irate(container_network_receive_packets_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload=~\"$workload\", workload_type=\"$type\"}) by (pod))\n",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "C",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "(sum(irate(container_network_transmit_packets_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload=~\"$workload\", workload_type=\"$type\"}) by (pod))\n",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "D",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "(sum(irate(container_network_receive_packets_dropped_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload=~\"$workload\", workload_type=\"$type\"}) by (pod))\n",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "E",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "(sum(irate(container_network_transmit_packets_dropped_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload=~\"$workload\", workload_type=\"$type\"}) by (pod))\n",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "F",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Current Network Usage",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"transform": "table",
|
||
"type": "table",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Network",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 6,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "(sum(irate(container_network_receive_bytes_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload=~\"$workload\", workload_type=\"$type\"}) by (pod))\n",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{pod}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Receive Bandwidth",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Network",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 7,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "(sum(irate(container_network_transmit_bytes_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload=~\"$workload\", workload_type=\"$type\"}) by (pod))\n",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{pod}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Transmit Bandwidth",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Network",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 8,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "(avg(irate(container_network_receive_bytes_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload=~\"$workload\", workload_type=\"$type\"}) by (pod))\n",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{pod}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Average Container Bandwidth by Pod: Received",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Network",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 9,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "(avg(irate(container_network_transmit_bytes_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload=~\"$workload\", workload_type=\"$type\"}) by (pod))\n",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{pod}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Average Container Bandwidth by Pod: Transmitted",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Network",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 10,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "(sum(irate(container_network_receive_packets_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload=~\"$workload\", workload_type=\"$type\"}) by (pod))\n",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{pod}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Rate of Received Packets",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Network",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 11,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "(sum(irate(container_network_transmit_packets_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload=~\"$workload\", workload_type=\"$type\"}) by (pod))\n",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{pod}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Rate of Transmitted Packets",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Network",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 12,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "(sum(irate(container_network_receive_packets_dropped_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload=~\"$workload\", workload_type=\"$type\"}) by (pod))\n",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{pod}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Rate of Received Packets Dropped",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Network",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 13,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "(sum(irate(container_network_transmit_packets_dropped_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$interval])\n* on (namespace,pod) \ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload=~\"$workload\", workload_type=\"$type\"}) by (pod))\n",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{pod}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Rate of Transmitted Packets Dropped",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Network",
|
||
"titleSize": "h6"
|
||
}
|
||
],
|
||
"schemaVersion": 14,
|
||
"style": "dark",
|
||
"tags": [
|
||
"kubernetes-mixin"
|
||
],
|
||
"templating": {
|
||
"list": [
|
||
{
|
||
"current": {
|
||
"text": "Prometheus",
|
||
"value": "Prometheus"
|
||
},
|
||
"hide": 0,
|
||
"label": null,
|
||
"name": "datasource",
|
||
"options": [
|
||
|
||
],
|
||
"query": "prometheus",
|
||
"refresh": 1,
|
||
"regex": "",
|
||
"type": "datasource"
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"current": {
|
||
"text": "prod",
|
||
"value": "prod"
|
||
},
|
||
"datasource": "$datasource",
|
||
"hide": 2,
|
||
"includeAll": false,
|
||
"label": "cluster",
|
||
"multi": false,
|
||
"name": "cluster",
|
||
"options": [
|
||
|
||
],
|
||
"query": "label_values(kube_pod_info, cluster)",
|
||
"refresh": 1,
|
||
"regex": "",
|
||
"sort": 2,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "query",
|
||
"useTags": false
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"current": {
|
||
"text": "prod",
|
||
"value": "prod"
|
||
},
|
||
"datasource": "$datasource",
|
||
"hide": 0,
|
||
"includeAll": false,
|
||
"label": "namespace",
|
||
"multi": false,
|
||
"name": "namespace",
|
||
"options": [
|
||
|
||
],
|
||
"query": "label_values(kube_pod_info{cluster=\"$cluster\"}, namespace)",
|
||
"refresh": 1,
|
||
"regex": "",
|
||
"sort": 2,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "query",
|
||
"useTags": false
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"current": {
|
||
"text": "prod",
|
||
"value": "prod"
|
||
},
|
||
"datasource": "$datasource",
|
||
"hide": 0,
|
||
"includeAll": false,
|
||
"label": "workload",
|
||
"multi": false,
|
||
"name": "workload",
|
||
"options": [
|
||
|
||
],
|
||
"query": "label_values(mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\"}, workload)",
|
||
"refresh": 1,
|
||
"regex": "",
|
||
"sort": 2,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "query",
|
||
"useTags": false
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"current": {
|
||
"text": "prod",
|
||
"value": "prod"
|
||
},
|
||
"datasource": "$datasource",
|
||
"hide": 0,
|
||
"includeAll": false,
|
||
"label": "type",
|
||
"multi": false,
|
||
"name": "type",
|
||
"options": [
|
||
|
||
],
|
||
"query": "label_values(mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload=\"$workload\"}, workload_type)",
|
||
"refresh": 1,
|
||
"regex": "",
|
||
"sort": 2,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "query",
|
||
"useTags": false
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"auto": false,
|
||
"auto_count": 30,
|
||
"auto_min": "10s",
|
||
"current": {
|
||
"text": "5m",
|
||
"value": "5m"
|
||
},
|
||
"datasource": "prometheus",
|
||
"hide": 2,
|
||
"includeAll": false,
|
||
"label": null,
|
||
"multi": false,
|
||
"name": "interval",
|
||
"options": [
|
||
{
|
||
"selected": true,
|
||
"text": "4h",
|
||
"value": "4h"
|
||
}
|
||
],
|
||
"query": "4h",
|
||
"refresh": 2,
|
||
"regex": "",
|
||
"skipUrlSync": false,
|
||
"sort": 1,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "interval",
|
||
"useTags": false
|
||
}
|
||
]
|
||
},
|
||
"time": {
|
||
"from": "now-1h",
|
||
"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": "Kubernetes / Compute Resources / Workload",
|
||
"uid": "a164a7f0339f99e89cea5cb47e9be617",
|
||
"version": 0
|
||
}
|
||
kind: ConfigMap
|
||
metadata:
|
||
name: grafana-dashboard-k8s-resources-workload
|
||
namespace: monitoring
|
||
- apiVersion: v1
|
||
data:
|
||
k8s-resources-workloads-namespace.json: |-
|
||
{
|
||
"annotations": {
|
||
"list": [
|
||
|
||
]
|
||
},
|
||
"editable": true,
|
||
"gnetId": null,
|
||
"graphTooltip": 0,
|
||
"hideControls": false,
|
||
"links": [
|
||
|
||
],
|
||
"refresh": "10s",
|
||
"rows": [
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 1,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(\n node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", namespace=\"$namespace\"}\n* on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload_type=\"$type\"}\n) by (workload, workload_type)\n",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{workload}} - {{workload_type}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "CPU Usage",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"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": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "CPU Usage",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"id": 2,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"styles": [
|
||
{
|
||
"alias": "Time",
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"pattern": "Time",
|
||
"type": "hidden"
|
||
},
|
||
{
|
||
"alias": "Running Pods",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 0,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #A",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "short"
|
||
},
|
||
{
|
||
"alias": "CPU Usage",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #B",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "short"
|
||
},
|
||
{
|
||
"alias": "CPU Requests",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #C",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "short"
|
||
},
|
||
{
|
||
"alias": "CPU Requests %",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #D",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "percentunit"
|
||
},
|
||
{
|
||
"alias": "CPU Limits",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #E",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "short"
|
||
},
|
||
{
|
||
"alias": "CPU Limits %",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #F",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "percentunit"
|
||
},
|
||
{
|
||
"alias": "Workload",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": true,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "./d/a164a7f0339f99e89cea5cb47e9be617/k8s-resources-workload?var-datasource=$datasource&var-cluster=$cluster&var-namespace=$namespace&var-workload=$__cell&var-type=$__cell_2",
|
||
"pattern": "workload",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "short"
|
||
},
|
||
{
|
||
"alias": "Workload Type",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "workload_type",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "short"
|
||
},
|
||
{
|
||
"alias": "",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"pattern": "/.*/",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "string",
|
||
"unit": "short"
|
||
}
|
||
],
|
||
"targets": [
|
||
{
|
||
"expr": "count(mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload_type=\"$type\"}) by (workload, workload_type)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "A",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(\n node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", namespace=\"$namespace\"}\n* on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload_type=\"$type\"}\n) by (workload, workload_type)\n",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "B",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(\n kube_pod_container_resource_requests_cpu_cores{cluster=\"$cluster\", namespace=\"$namespace\"}\n* on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload_type=\"$type\"}\n) by (workload, workload_type)\n",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "C",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(\n node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", namespace=\"$namespace\"}\n* on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload_type=\"$type\"}\n) by (workload, workload_type)\n/sum(\n kube_pod_container_resource_requests_cpu_cores{cluster=\"$cluster\", namespace=\"$namespace\"}\n* on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload_type=\"$type\"}\n) by (workload, workload_type)\n",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "D",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(\n kube_pod_container_resource_limits_cpu_cores{cluster=\"$cluster\", namespace=\"$namespace\"}\n* on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload_type=\"$type\"}\n) by (workload, workload_type)\n",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "E",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(\n node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", namespace=\"$namespace\"}\n* on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload_type=\"$type\"}\n) by (workload, workload_type)\n/sum(\n kube_pod_container_resource_limits_cpu_cores{cluster=\"$cluster\", namespace=\"$namespace\"}\n* on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload_type=\"$type\"}\n) by (workload, workload_type)\n",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "F",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "CPU Quota",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"transform": "table",
|
||
"type": "table",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "CPU Quota",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 3,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(\n container_memory_working_set_bytes{cluster=\"$cluster\", namespace=\"$namespace\", container!=\"\"}\n * on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload_type=\"$type\"}\n) by (workload, workload_type)\n",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{workload}} - {{workload_type}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Memory Usage",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"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": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Memory Usage",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"id": 4,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"styles": [
|
||
{
|
||
"alias": "Time",
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"pattern": "Time",
|
||
"type": "hidden"
|
||
},
|
||
{
|
||
"alias": "Running Pods",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 0,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #A",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "short"
|
||
},
|
||
{
|
||
"alias": "Memory Usage",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #B",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "bytes"
|
||
},
|
||
{
|
||
"alias": "Memory Requests",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #C",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "bytes"
|
||
},
|
||
{
|
||
"alias": "Memory Requests %",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #D",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "percentunit"
|
||
},
|
||
{
|
||
"alias": "Memory Limits",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #E",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "bytes"
|
||
},
|
||
{
|
||
"alias": "Memory Limits %",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #F",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "percentunit"
|
||
},
|
||
{
|
||
"alias": "Workload",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": true,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "./d/a164a7f0339f99e89cea5cb47e9be617/k8s-resources-workload?var-datasource=$datasource&var-cluster=$cluster&var-namespace=$namespace&var-workload=$__cell&var-type=$__cell_2",
|
||
"pattern": "workload",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "short"
|
||
},
|
||
{
|
||
"alias": "Workload Type",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "workload_type",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "short"
|
||
},
|
||
{
|
||
"alias": "",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"pattern": "/.*/",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "string",
|
||
"unit": "short"
|
||
}
|
||
],
|
||
"targets": [
|
||
{
|
||
"expr": "count(mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload_type=\"$type\"}) by (workload, workload_type)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "A",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(\n container_memory_working_set_bytes{cluster=\"$cluster\", namespace=\"$namespace\", container!=\"\"}\n * on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload_type=\"$type\"}\n) by (workload, workload_type)\n",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "B",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(\n kube_pod_container_resource_requests_memory_bytes{cluster=\"$cluster\", namespace=\"$namespace\"}\n* on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload_type=\"$type\"}\n) by (workload, workload_type)\n",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "C",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(\n container_memory_working_set_bytes{cluster=\"$cluster\", namespace=\"$namespace\", container!=\"\"}\n * on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload_type=\"$type\"}\n) by (workload, workload_type)\n/sum(\n kube_pod_container_resource_requests_memory_bytes{cluster=\"$cluster\", namespace=\"$namespace\"}\n* on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload_type=\"$type\"}\n) by (workload, workload_type)\n",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "D",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(\n kube_pod_container_resource_limits_memory_bytes{cluster=\"$cluster\", namespace=\"$namespace\"}\n* on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload_type=\"$type\"}\n) by (workload, workload_type)\n",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "E",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(\n container_memory_working_set_bytes{cluster=\"$cluster\", namespace=\"$namespace\", container!=\"\"}\n * on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload_type=\"$type\"}\n) by (workload, workload_type)\n/sum(\n kube_pod_container_resource_limits_memory_bytes{cluster=\"$cluster\", namespace=\"$namespace\"}\n* on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload_type=\"$type\"}\n) by (workload, workload_type)\n",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "F",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Memory Quota",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"transform": "table",
|
||
"type": "table",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Memory Quota",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"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 as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"styles": [
|
||
{
|
||
"alias": "Time",
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"pattern": "Time",
|
||
"type": "hidden"
|
||
},
|
||
{
|
||
"alias": "Current Receive Bandwidth",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #A",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "Bps"
|
||
},
|
||
{
|
||
"alias": "Current Transmit Bandwidth",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #B",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "Bps"
|
||
},
|
||
{
|
||
"alias": "Rate of Received Packets",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #C",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "pps"
|
||
},
|
||
{
|
||
"alias": "Rate of Transmitted Packets",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #D",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "pps"
|
||
},
|
||
{
|
||
"alias": "Rate of Received Packets Dropped",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #E",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "pps"
|
||
},
|
||
{
|
||
"alias": "Rate of Transmitted Packets Dropped",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #F",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "pps"
|
||
},
|
||
{
|
||
"alias": "Workload",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": true,
|
||
"linkTooltip": "Drill down to pods",
|
||
"linkUrl": "./d/a164a7f0339f99e89cea5cb47e9be617/k8s-resources-workload?var-datasource=$datasource&var-cluster=$cluster&var-namespace=$namespace&var-workload=$__cell&var-type=$type",
|
||
"pattern": "workload",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "short"
|
||
},
|
||
{
|
||
"alias": "Workload Type",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "workload_type",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "short"
|
||
},
|
||
{
|
||
"alias": "",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"pattern": "/.*/",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "string",
|
||
"unit": "short"
|
||
}
|
||
],
|
||
"targets": [
|
||
{
|
||
"expr": "(sum(irate(container_network_receive_bytes_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload_type=\"$type\"}) by (workload))\n",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "A",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "(sum(irate(container_network_transmit_bytes_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload_type=\"$type\"}) by (workload))\n",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "B",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "(sum(irate(container_network_receive_packets_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload_type=\"$type\"}) by (workload))\n",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "C",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "(sum(irate(container_network_transmit_packets_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload_type=\"$type\"}) by (workload))\n",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "D",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "(sum(irate(container_network_receive_packets_dropped_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload_type=\"$type\"}) by (workload))\n",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "E",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "(sum(irate(container_network_transmit_packets_dropped_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload_type=\"$type\"}) by (workload))\n",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "F",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Current Network Usage",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"transform": "table",
|
||
"type": "table",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Network",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 6,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "(sum(irate(container_network_receive_bytes_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload=~\".+\", workload_type=\"$type\"}) by (workload))\n",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{workload}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Receive Bandwidth",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Network",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 7,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "(sum(irate(container_network_transmit_bytes_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload=~\".+\", workload_type=\"$type\"}) by (workload))\n",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{workload}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Transmit Bandwidth",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Network",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 8,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "(avg(irate(container_network_receive_bytes_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload=~\".+\", workload_type=\"$type\"}) by (workload))\n",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{workload}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Average Container Bandwidth by Workload: Received",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Network",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 9,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "(avg(irate(container_network_transmit_bytes_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload=~\".+\", workload_type=\"$type\"}) by (workload))\n",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{workload}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Average Container Bandwidth by Workload: Transmitted",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Network",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 10,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "(sum(irate(container_network_receive_packets_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload=~\".+\", workload_type=\"$type\"}) by (workload))\n",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{workload}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Rate of Received Packets",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Network",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 11,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "(sum(irate(container_network_transmit_packets_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload=~\".+\", workload_type=\"$type\"}) by (workload))\n",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{workload}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Rate of Transmitted Packets",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Network",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 12,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "(sum(irate(container_network_receive_packets_dropped_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload=~\".+\", workload_type=\"$type\"}) by (workload))\n",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{workload}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Rate of Received Packets Dropped",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Network",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 13,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "(sum(irate(container_network_transmit_packets_dropped_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$interval])\n* on (namespace,pod) \ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload=~\".+\", workload_type=\"$type\"}) by (workload))\n",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{workload}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Rate of Transmitted Packets Dropped",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Network",
|
||
"titleSize": "h6"
|
||
}
|
||
],
|
||
"schemaVersion": 14,
|
||
"style": "dark",
|
||
"tags": [
|
||
"kubernetes-mixin"
|
||
],
|
||
"templating": {
|
||
"list": [
|
||
{
|
||
"current": {
|
||
"text": "Prometheus",
|
||
"value": "Prometheus"
|
||
},
|
||
"hide": 0,
|
||
"label": null,
|
||
"name": "datasource",
|
||
"options": [
|
||
|
||
],
|
||
"query": "prometheus",
|
||
"refresh": 1,
|
||
"regex": "",
|
||
"type": "datasource"
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"current": {
|
||
"text": "prod",
|
||
"value": "prod"
|
||
},
|
||
"datasource": "$datasource",
|
||
"hide": 2,
|
||
"includeAll": false,
|
||
"label": "cluster",
|
||
"multi": false,
|
||
"name": "cluster",
|
||
"options": [
|
||
|
||
],
|
||
"query": "label_values(kube_pod_info, cluster)",
|
||
"refresh": 1,
|
||
"regex": "",
|
||
"sort": 2,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "query",
|
||
"useTags": false
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"current": {
|
||
"text": "prod",
|
||
"value": "prod"
|
||
},
|
||
"datasource": "$datasource",
|
||
"hide": 0,
|
||
"includeAll": false,
|
||
"label": "namespace",
|
||
"multi": false,
|
||
"name": "namespace",
|
||
"options": [
|
||
|
||
],
|
||
"query": "label_values(kube_pod_info{cluster=\"$cluster\"}, namespace)",
|
||
"refresh": 1,
|
||
"regex": "",
|
||
"sort": 2,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "query",
|
||
"useTags": false
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"auto": false,
|
||
"auto_count": 30,
|
||
"auto_min": "10s",
|
||
"current": {
|
||
"text": "5m",
|
||
"value": "5m"
|
||
},
|
||
"datasource": "prometheus",
|
||
"hide": 2,
|
||
"includeAll": false,
|
||
"label": null,
|
||
"multi": false,
|
||
"name": "interval",
|
||
"options": [
|
||
{
|
||
"selected": true,
|
||
"text": "4h",
|
||
"value": "4h"
|
||
}
|
||
],
|
||
"query": "4h",
|
||
"refresh": 2,
|
||
"regex": "",
|
||
"skipUrlSync": false,
|
||
"sort": 1,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "interval",
|
||
"useTags": false
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"auto": false,
|
||
"auto_count": 30,
|
||
"auto_min": "10s",
|
||
"current": {
|
||
"text": "deployment",
|
||
"value": "deployment"
|
||
},
|
||
"datasource": "$datasource",
|
||
"definition": "label_values(mixin_pod_workload{namespace=~\"$namespace\", workload=~\".+\"}, workload_type)",
|
||
"hide": 0,
|
||
"includeAll": false,
|
||
"label": null,
|
||
"multi": false,
|
||
"name": "type",
|
||
"options": [
|
||
|
||
],
|
||
"query": "label_values(mixin_pod_workload{namespace=~\"$namespace\", workload=~\".+\"}, workload_type)",
|
||
"refresh": 1,
|
||
"regex": "",
|
||
"skipUrlSync": false,
|
||
"sort": 0,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "query",
|
||
"useTags": false
|
||
}
|
||
]
|
||
},
|
||
"time": {
|
||
"from": "now-1h",
|
||
"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": "Kubernetes / Compute Resources / Namespace (Workloads)",
|
||
"uid": "a87fb0d919ec0ea5f6543124e16c42a5",
|
||
"version": 0
|
||
}
|
||
kind: ConfigMap
|
||
metadata:
|
||
name: grafana-dashboard-k8s-resources-workloads-namespace
|
||
namespace: monitoring
|
||
- apiVersion: v1
|
||
data:
|
||
kubelet.json: |-
|
||
{
|
||
"__inputs": [
|
||
|
||
],
|
||
"__requires": [
|
||
|
||
],
|
||
"annotations": {
|
||
"list": [
|
||
|
||
]
|
||
},
|
||
"editable": false,
|
||
"gnetId": null,
|
||
"graphTooltip": 0,
|
||
"hideControls": false,
|
||
"id": null,
|
||
"links": [
|
||
|
||
],
|
||
"refresh": "",
|
||
"rows": [
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"panels": [
|
||
{
|
||
"cacheTimeout": null,
|
||
"colorBackground": false,
|
||
"colorValue": false,
|
||
"colors": [
|
||
"#299c46",
|
||
"rgba(237, 129, 40, 0.89)",
|
||
"#d44a3a"
|
||
],
|
||
"datasource": "$datasource",
|
||
"format": "none",
|
||
"gauge": {
|
||
"maxValue": 100,
|
||
"minValue": 0,
|
||
"show": false,
|
||
"thresholdLabels": false,
|
||
"thresholdMarkers": true
|
||
},
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 2,
|
||
"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": [
|
||
{
|
||
"expr": "sum(up{cluster=\"$cluster\", job=\"kubelet\"})",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": "",
|
||
"title": "Up",
|
||
"tooltip": {
|
||
"shared": false
|
||
},
|
||
"type": "singlestat",
|
||
"valueFontSize": "80%",
|
||
"valueMaps": [
|
||
{
|
||
"op": "=",
|
||
"text": "N/A",
|
||
"value": "null"
|
||
}
|
||
],
|
||
"valueName": "min"
|
||
},
|
||
{
|
||
"cacheTimeout": null,
|
||
"colorBackground": false,
|
||
"colorValue": false,
|
||
"colors": [
|
||
"#299c46",
|
||
"rgba(237, 129, 40, 0.89)",
|
||
"#d44a3a"
|
||
],
|
||
"datasource": "$datasource",
|
||
"format": "none",
|
||
"gauge": {
|
||
"maxValue": 100,
|
||
"minValue": 0,
|
||
"show": false,
|
||
"thresholdLabels": false,
|
||
"thresholdMarkers": true
|
||
},
|
||
"gridPos": {
|
||
|
||
},
|
||
"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": [
|
||
{
|
||
"expr": "sum(kubelet_running_pod_count{cluster=\"$cluster\", job=\"kubelet\", instance=~\"$instance\"})",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": "",
|
||
"title": "Running Pods",
|
||
"tooltip": {
|
||
"shared": false
|
||
},
|
||
"type": "singlestat",
|
||
"valueFontSize": "80%",
|
||
"valueMaps": [
|
||
{
|
||
"op": "=",
|
||
"text": "N/A",
|
||
"value": "null"
|
||
}
|
||
],
|
||
"valueName": "min"
|
||
},
|
||
{
|
||
"cacheTimeout": null,
|
||
"colorBackground": false,
|
||
"colorValue": false,
|
||
"colors": [
|
||
"#299c46",
|
||
"rgba(237, 129, 40, 0.89)",
|
||
"#d44a3a"
|
||
],
|
||
"datasource": "$datasource",
|
||
"format": "none",
|
||
"gauge": {
|
||
"maxValue": 100,
|
||
"minValue": 0,
|
||
"show": false,
|
||
"thresholdLabels": false,
|
||
"thresholdMarkers": true
|
||
},
|
||
"gridPos": {
|
||
|
||
},
|
||
"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": 2,
|
||
"sparkline": {
|
||
"fillColor": "rgba(31, 118, 189, 0.18)",
|
||
"full": false,
|
||
"lineColor": "rgb(31, 120, 193)",
|
||
"show": false
|
||
},
|
||
"tableColumn": "",
|
||
"targets": [
|
||
{
|
||
"expr": "sum(kubelet_running_container_count{cluster=\"$cluster\", job=\"kubelet\", instance=~\"$instance\"})",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": "",
|
||
"title": "Running Container",
|
||
"tooltip": {
|
||
"shared": false
|
||
},
|
||
"type": "singlestat",
|
||
"valueFontSize": "80%",
|
||
"valueMaps": [
|
||
{
|
||
"op": "=",
|
||
"text": "N/A",
|
||
"value": "null"
|
||
}
|
||
],
|
||
"valueName": "min"
|
||
},
|
||
{
|
||
"cacheTimeout": null,
|
||
"colorBackground": false,
|
||
"colorValue": false,
|
||
"colors": [
|
||
"#299c46",
|
||
"rgba(237, 129, 40, 0.89)",
|
||
"#d44a3a"
|
||
],
|
||
"datasource": "$datasource",
|
||
"format": "none",
|
||
"gauge": {
|
||
"maxValue": 100,
|
||
"minValue": 0,
|
||
"show": false,
|
||
"thresholdLabels": false,
|
||
"thresholdMarkers": true
|
||
},
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 5,
|
||
"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": [
|
||
{
|
||
"expr": "sum(volume_manager_total_volumes{cluster=\"$cluster\", job=\"kubelet\", instance=~\"$instance\", state=\"actual_state_of_world\"})",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": "",
|
||
"title": "Actual Volume Count",
|
||
"tooltip": {
|
||
"shared": false
|
||
},
|
||
"type": "singlestat",
|
||
"valueFontSize": "80%",
|
||
"valueMaps": [
|
||
{
|
||
"op": "=",
|
||
"text": "N/A",
|
||
"value": "null"
|
||
}
|
||
],
|
||
"valueName": "min"
|
||
},
|
||
{
|
||
"cacheTimeout": null,
|
||
"colorBackground": false,
|
||
"colorValue": false,
|
||
"colors": [
|
||
"#299c46",
|
||
"rgba(237, 129, 40, 0.89)",
|
||
"#d44a3a"
|
||
],
|
||
"datasource": "$datasource",
|
||
"format": "none",
|
||
"gauge": {
|
||
"maxValue": 100,
|
||
"minValue": 0,
|
||
"show": false,
|
||
"thresholdLabels": false,
|
||
"thresholdMarkers": true
|
||
},
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 6,
|
||
"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": [
|
||
{
|
||
"expr": "sum(volume_manager_total_volumes{cluster=\"$cluster\", job=\"kubelet\", instance=~\"$instance\",state=\"desired_state_of_world\"})",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": "",
|
||
"title": "Desired Volume Count",
|
||
"tooltip": {
|
||
"shared": false
|
||
},
|
||
"type": "singlestat",
|
||
"valueFontSize": "80%",
|
||
"valueMaps": [
|
||
{
|
||
"op": "=",
|
||
"text": "N/A",
|
||
"value": "null"
|
||
}
|
||
],
|
||
"valueName": "min"
|
||
},
|
||
{
|
||
"cacheTimeout": null,
|
||
"colorBackground": false,
|
||
"colorValue": false,
|
||
"colors": [
|
||
"#299c46",
|
||
"rgba(237, 129, 40, 0.89)",
|
||
"#d44a3a"
|
||
],
|
||
"datasource": "$datasource",
|
||
"format": "none",
|
||
"gauge": {
|
||
"maxValue": 100,
|
||
"minValue": 0,
|
||
"show": false,
|
||
"thresholdLabels": false,
|
||
"thresholdMarkers": true
|
||
},
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 7,
|
||
"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": [
|
||
{
|
||
"expr": "sum(rate(kubelet_node_config_error{cluster=\"$cluster\", job=\"kubelet\", instance=~\"$instance\"}[5m]))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": "",
|
||
"title": "Config Error Count",
|
||
"tooltip": {
|
||
"shared": false
|
||
},
|
||
"type": "singlestat",
|
||
"valueFontSize": "80%",
|
||
"valueMaps": [
|
||
{
|
||
"op": "=",
|
||
"text": "N/A",
|
||
"value": "null"
|
||
}
|
||
],
|
||
"valueName": "min"
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": false,
|
||
"title": "Dashboard Row",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 8,
|
||
"legend": {
|
||
"alignAsTable": "true",
|
||
"avg": false,
|
||
"current": "true",
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": "true",
|
||
"show": "true",
|
||
"total": false,
|
||
"values": "true"
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 6,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(rate(kubelet_runtime_operations_total{cluster=\"$cluster\",job=\"kubelet\",instance=~\"$instance\"}[5m])) by (operation_type, instance)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}} {{operation_type}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Operation Rate",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "ops",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "ops",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 9,
|
||
"legend": {
|
||
"alignAsTable": "true",
|
||
"avg": false,
|
||
"current": "true",
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": "true",
|
||
"show": "true",
|
||
"total": false,
|
||
"values": "true"
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 6,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(rate(kubelet_runtime_operations_errors_total{cluster=\"$cluster\",job=\"kubelet\",instance=~\"$instance\"}[5m])) by (instance, operation_type)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}} {{operation_type}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Operation Error Rate",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "ops",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "ops",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": false,
|
||
"title": "Dashboard Row",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 10,
|
||
"legend": {
|
||
"alignAsTable": "true",
|
||
"avg": false,
|
||
"current": "true",
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": "true",
|
||
"show": "true",
|
||
"total": false,
|
||
"values": "true"
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "histogram_quantile(0.99, sum(rate(kubelet_runtime_operations_duration_seconds_bucket{cluster=\"$cluster\",job=\"kubelet\",instance=~\"$instance\"}[5m])) by (instance, operation_type, le))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}} {{operation_type}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Operation duration 99th quantile",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "s",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "s",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": true
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": false,
|
||
"title": "Dashboard Row",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 11,
|
||
"legend": {
|
||
"alignAsTable": "true",
|
||
"avg": false,
|
||
"current": "true",
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": "true",
|
||
"show": "true",
|
||
"total": false,
|
||
"values": "true"
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 6,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(rate(kubelet_pod_start_duration_seconds_count{cluster=\"$cluster\",job=\"kubelet\",instance=~\"$instance\"}[5m])) by (instance)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}} pod",
|
||
"refId": "A"
|
||
},
|
||
{
|
||
"expr": "sum(rate(kubelet_pod_worker_duration_seconds_count{cluster=\"$cluster\",job=\"kubelet\",instance=~\"$instance\"}[5m])) by (instance)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}} worker",
|
||
"refId": "B"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Pod Start Rate",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "ops",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "ops",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 12,
|
||
"legend": {
|
||
"alignAsTable": "true",
|
||
"avg": false,
|
||
"current": "true",
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": "true",
|
||
"show": "true",
|
||
"total": false,
|
||
"values": "true"
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 6,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "histogram_quantile(0.99, sum(rate(kubelet_pod_start_duration_seconds_count{cluster=\"$cluster\",job=\"kubelet\",instance=~\"$instance\"}[5m])) by (instance, le))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}} pod",
|
||
"refId": "A"
|
||
},
|
||
{
|
||
"expr": "histogram_quantile(0.99, sum(rate(kubelet_pod_worker_duration_seconds_bucket{cluster=\"$cluster\",job=\"kubelet\",instance=~\"$instance\"}[5m])) by (instance, le))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}} worker",
|
||
"refId": "B"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Pod Start Duration",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "s",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "s",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": false,
|
||
"title": "Dashboard Row",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 13,
|
||
"legend": {
|
||
"alignAsTable": "true",
|
||
"avg": false,
|
||
"current": "true",
|
||
"hideEmpty": "true",
|
||
"hideZero": "true",
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": "true",
|
||
"show": "true",
|
||
"total": false,
|
||
"values": "true"
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 6,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(rate(storage_operation_duration_seconds_count{cluster=\"$cluster\",job=\"kubelet\",instance=~\"$instance\"}[5m])) by (instance, operation_name, volume_plugin)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}} {{operation_name}} {{volume_plugin}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Storage Operation Rate",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "ops",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "ops",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 14,
|
||
"legend": {
|
||
"alignAsTable": "true",
|
||
"avg": false,
|
||
"current": "true",
|
||
"hideEmpty": "true",
|
||
"hideZero": "true",
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": "true",
|
||
"show": "true",
|
||
"total": false,
|
||
"values": "true"
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 6,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(rate(storage_operation_errors_total{cluster=\"$cluster\",job=\"kubelet\",instance=~\"$instance\"}[5m])) by (instance, operation_name, volume_plugin)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}} {{operation_name}} {{volume_plugin}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Storage Operation Error Rate",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "ops",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "ops",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": false,
|
||
"title": "Dashboard Row",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 15,
|
||
"legend": {
|
||
"alignAsTable": "true",
|
||
"avg": false,
|
||
"current": "true",
|
||
"hideEmpty": "true",
|
||
"hideZero": "true",
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": "true",
|
||
"show": true,
|
||
"total": false,
|
||
"values": "true"
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "histogram_quantile(0.99, sum(rate(storage_operation_duration_seconds_bucket{cluster=\"$cluster\", job=\"kubelet\", instance=~\"$instance\"}[5m])) by (instance, operation_name, volume_plugin, le))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}} {{operation_name}} {{volume_plugin}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Storage Operation Duration 99th quantile",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "s",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "s",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": false,
|
||
"title": "Dashboard Row",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 16,
|
||
"legend": {
|
||
"alignAsTable": "true",
|
||
"avg": false,
|
||
"current": "true",
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": "true",
|
||
"show": "true",
|
||
"total": false,
|
||
"values": "true"
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 6,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(rate(kubelet_cgroup_manager_duration_seconds_count{cluster=\"$cluster\", job=\"kubelet\", instance=~\"$instance\"}[5m])) by (instance, operation_type)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{operation_type}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Cgroup manager operation rate",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "ops",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "ops",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 17,
|
||
"legend": {
|
||
"alignAsTable": "true",
|
||
"avg": false,
|
||
"current": "true",
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": "true",
|
||
"show": "true",
|
||
"total": false,
|
||
"values": "true"
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 6,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "histogram_quantile(0.99, sum(rate(kubelet_cgroup_manager_duration_seconds_bucket{cluster=\"$cluster\", job=\"kubelet\", instance=~\"$instance\"}[5m])) by (instance, operation_type, le))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}} {{operation_type}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Cgroup manager 99th quantile",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "s",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "s",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": false,
|
||
"title": "Dashboard Row",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"description": "Pod lifecycle event generator",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 18,
|
||
"legend": {
|
||
"alignAsTable": "true",
|
||
"avg": false,
|
||
"current": "true",
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": "true",
|
||
"show": "true",
|
||
"total": false,
|
||
"values": "true"
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 6,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(rate(kubelet_pleg_relist_duration_seconds_count{cluster=\"$cluster\", job=\"kubelet\", instance=~\"$instance\"}[5m])) by (instance)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "PLEG relist rate",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "ops",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "ops",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 19,
|
||
"legend": {
|
||
"alignAsTable": "true",
|
||
"avg": false,
|
||
"current": "true",
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": "true",
|
||
"show": "true",
|
||
"total": false,
|
||
"values": "true"
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 6,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "histogram_quantile(0.99, sum(rate(kubelet_pleg_relist_interval_seconds_bucket{cluster=\"$cluster\",job=\"kubelet\",instance=~\"$instance\"}[5m])) by (instance, le))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "PLEG relist interval",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "s",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "s",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": false,
|
||
"title": "Dashboard Row",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 20,
|
||
"legend": {
|
||
"alignAsTable": "true",
|
||
"avg": false,
|
||
"current": "true",
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": "true",
|
||
"show": "true",
|
||
"total": false,
|
||
"values": "true"
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "histogram_quantile(0.99, sum(rate(kubelet_pleg_relist_duration_seconds_bucket{cluster=\"$cluster\",job=\"kubelet\",instance=~\"$instance\"}[5m])) by (instance, le))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "PLEG relist duration",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "s",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "s",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": false,
|
||
"title": "Dashboard Row",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 21,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(rate(rest_client_requests_total{cluster=\"$cluster\",job=\"kubelet\", instance=~\"$instance\",code=~\"2..\"}[5m]))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "2xx",
|
||
"refId": "A"
|
||
},
|
||
{
|
||
"expr": "sum(rate(rest_client_requests_total{cluster=\"$cluster\",job=\"kubelet\", instance=~\"$instance\",code=~\"3..\"}[5m]))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "3xx",
|
||
"refId": "B"
|
||
},
|
||
{
|
||
"expr": "sum(rate(rest_client_requests_total{cluster=\"$cluster\",job=\"kubelet\", instance=~\"$instance\",code=~\"4..\"}[5m]))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "4xx",
|
||
"refId": "C"
|
||
},
|
||
{
|
||
"expr": "sum(rate(rest_client_requests_total{cluster=\"$cluster\",job=\"kubelet\", instance=~\"$instance\",code=~\"5..\"}[5m]))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "5xx",
|
||
"refId": "D"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "RPC Rate",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "ops",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "ops",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": false,
|
||
"title": "Dashboard Row",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 22,
|
||
"legend": {
|
||
"alignAsTable": "true",
|
||
"avg": false,
|
||
"current": "true",
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": "true",
|
||
"show": "true",
|
||
"total": false,
|
||
"values": "true"
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "histogram_quantile(0.99, sum(rate(rest_client_request_latency_seconds_bucket{cluster=\"$cluster\",job=\"kubelet\", instance=~\"$instance\"}[5m])) by (instance, verb, url, le))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}} {{verb}} {{url}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Request duration 99th quantile",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "s",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "s",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": false,
|
||
"title": "Dashboard Row",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 23,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 4,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "process_resident_memory_bytes{cluster=\"$cluster\",job=\"kubelet\",instance=~\"$instance\"}",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Memory",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"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": "bytes",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 24,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 4,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "rate(process_cpu_seconds_total{cluster=\"$cluster\",job=\"kubelet\",instance=~\"$instance\"}[5m])",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "CPU usage",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"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": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 25,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 4,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "go_goroutines{cluster=\"$cluster\",job=\"kubelet\",instance=~\"$instance\"}",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Goroutines",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"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",
|
||
"type": "row"
|
||
}
|
||
],
|
||
"schemaVersion": 14,
|
||
"style": "dark",
|
||
"tags": [
|
||
"kubernetes-mixin"
|
||
],
|
||
"templating": {
|
||
"list": [
|
||
{
|
||
"current": {
|
||
"text": "Prometheus",
|
||
"value": "Prometheus"
|
||
},
|
||
"hide": 0,
|
||
"label": null,
|
||
"name": "datasource",
|
||
"options": [
|
||
|
||
],
|
||
"query": "prometheus",
|
||
"refresh": 1,
|
||
"regex": "",
|
||
"type": "datasource"
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"current": {
|
||
|
||
},
|
||
"datasource": "$datasource",
|
||
"hide": 2,
|
||
"includeAll": false,
|
||
"label": "cluster",
|
||
"multi": false,
|
||
"name": "cluster",
|
||
"options": [
|
||
|
||
],
|
||
"query": "label_values(kube_pod_info, cluster)",
|
||
"refresh": 2,
|
||
"regex": "",
|
||
"sort": 1,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "query",
|
||
"useTags": false
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"current": {
|
||
|
||
},
|
||
"datasource": "$datasource",
|
||
"hide": 0,
|
||
"includeAll": true,
|
||
"label": null,
|
||
"multi": false,
|
||
"name": "instance",
|
||
"options": [
|
||
|
||
],
|
||
"query": "label_values(kubelet_runtime_operations{cluster=\"$cluster\", job=\"kubelet\"}, instance)",
|
||
"refresh": 2,
|
||
"regex": "",
|
||
"sort": 1,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "query",
|
||
"useTags": false
|
||
}
|
||
]
|
||
},
|
||
"time": {
|
||
"from": "now-1h",
|
||
"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": "Kubernetes / Kubelet",
|
||
"uid": "3138fa155d5915769fbded898ac09fd9",
|
||
"version": 0
|
||
}
|
||
kind: ConfigMap
|
||
metadata:
|
||
name: grafana-dashboard-kubelet
|
||
namespace: monitoring
|
||
- apiVersion: v1
|
||
data:
|
||
namespace-by-pod.json: |-
|
||
{
|
||
"__inputs": [
|
||
|
||
],
|
||
"__requires": [
|
||
|
||
],
|
||
"annotations": {
|
||
"list": [
|
||
{
|
||
"builtIn": 1,
|
||
"datasource": "-- Grafana --",
|
||
"enable": true,
|
||
"hide": true,
|
||
"iconColor": "rgba(0, 211, 255, 1)",
|
||
"name": "Annotations & Alerts",
|
||
"type": "dashboard"
|
||
}
|
||
]
|
||
},
|
||
"editable": true,
|
||
"gnetId": null,
|
||
"graphTooltip": 0,
|
||
"hideControls": false,
|
||
"id": null,
|
||
"links": [
|
||
|
||
],
|
||
"panels": [
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"gridPos": {
|
||
"h": 1,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 0
|
||
},
|
||
"id": 2,
|
||
"panels": [
|
||
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Current Bandwidth",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"cacheTimeout": null,
|
||
"colorBackground": false,
|
||
"colorValue": false,
|
||
"colors": [
|
||
"#299c46",
|
||
"rgba(237, 129, 40, 0.89)",
|
||
"#d44a3a"
|
||
],
|
||
"datasource": "prometheus",
|
||
"decimals": 0,
|
||
"format": "time_series",
|
||
"gauge": {
|
||
"maxValue": 100,
|
||
"minValue": 0,
|
||
"show": false,
|
||
"thresholdLabels": false,
|
||
"thresholdMarkers": true
|
||
},
|
||
"gridPos": {
|
||
"h": 9,
|
||
"w": 12,
|
||
"x": 0,
|
||
"y": 1
|
||
},
|
||
"height": 9,
|
||
"id": 3,
|
||
"interval": null,
|
||
"links": [
|
||
|
||
],
|
||
"mappingType": 1,
|
||
"mappingTypes": [
|
||
{
|
||
"name": "value to text",
|
||
"value": 1
|
||
},
|
||
{
|
||
"name": "range to text",
|
||
"value": 2
|
||
}
|
||
],
|
||
"maxDataPoints": 100,
|
||
"minSpan": 12,
|
||
"nullPointMode": "connected",
|
||
"nullText": null,
|
||
"options": {
|
||
"fieldOptions": {
|
||
"calcs": [
|
||
"last"
|
||
],
|
||
"defaults": {
|
||
"max": 10000000000,
|
||
"min": 0,
|
||
"title": "$namespace",
|
||
"unit": "Bps"
|
||
},
|
||
"mappings": [
|
||
|
||
],
|
||
"override": {
|
||
|
||
},
|
||
"thresholds": [
|
||
{
|
||
"color": "dark-green",
|
||
"index": 0,
|
||
"value": null
|
||
},
|
||
{
|
||
"color": "dark-yellow",
|
||
"index": 1,
|
||
"value": 5000000000
|
||
},
|
||
{
|
||
"color": "dark-red",
|
||
"index": 2,
|
||
"value": 7000000000
|
||
}
|
||
],
|
||
"values": false
|
||
}
|
||
},
|
||
"postfix": "",
|
||
"postfixFontSize": "50%",
|
||
"prefix": "",
|
||
"prefixFontSize": "50%",
|
||
"rangeMaps": [
|
||
{
|
||
"from": "null",
|
||
"text": "N/A",
|
||
"to": "null"
|
||
}
|
||
],
|
||
"span": 12,
|
||
"sparkline": {
|
||
"fillColor": "rgba(31, 118, 189, 0.18)",
|
||
"full": false,
|
||
"lineColor": "rgb(31, 120, 193)",
|
||
"show": false
|
||
},
|
||
"tableColumn": "",
|
||
"targets": [
|
||
{
|
||
"expr": "sum(irate(container_network_receive_bytes_total{namespace=~\"$namespace\"}[$interval:$resolution]))",
|
||
"format": "time_series",
|
||
"instant": null,
|
||
"intervalFactor": 1,
|
||
"legendFormat": "",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": "",
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Current Rate of Bytes Received",
|
||
"type": "gauge",
|
||
"valueFontSize": "80%",
|
||
"valueMaps": [
|
||
{
|
||
"op": "=",
|
||
"text": "N/A",
|
||
"value": "null"
|
||
}
|
||
],
|
||
"valueName": "current"
|
||
},
|
||
{
|
||
"cacheTimeout": null,
|
||
"colorBackground": false,
|
||
"colorValue": false,
|
||
"colors": [
|
||
"#299c46",
|
||
"rgba(237, 129, 40, 0.89)",
|
||
"#d44a3a"
|
||
],
|
||
"datasource": "prometheus",
|
||
"decimals": 0,
|
||
"format": "time_series",
|
||
"gauge": {
|
||
"maxValue": 100,
|
||
"minValue": 0,
|
||
"show": false,
|
||
"thresholdLabels": false,
|
||
"thresholdMarkers": true
|
||
},
|
||
"gridPos": {
|
||
"h": 9,
|
||
"w": 12,
|
||
"x": 12,
|
||
"y": 1
|
||
},
|
||
"height": 9,
|
||
"id": 4,
|
||
"interval": null,
|
||
"links": [
|
||
|
||
],
|
||
"mappingType": 1,
|
||
"mappingTypes": [
|
||
{
|
||
"name": "value to text",
|
||
"value": 1
|
||
},
|
||
{
|
||
"name": "range to text",
|
||
"value": 2
|
||
}
|
||
],
|
||
"maxDataPoints": 100,
|
||
"minSpan": 12,
|
||
"nullPointMode": "connected",
|
||
"nullText": null,
|
||
"options": {
|
||
"fieldOptions": {
|
||
"calcs": [
|
||
"last"
|
||
],
|
||
"defaults": {
|
||
"max": 10000000000,
|
||
"min": 0,
|
||
"title": "$namespace",
|
||
"unit": "Bps"
|
||
},
|
||
"mappings": [
|
||
|
||
],
|
||
"override": {
|
||
|
||
},
|
||
"thresholds": [
|
||
{
|
||
"color": "dark-green",
|
||
"index": 0,
|
||
"value": null
|
||
},
|
||
{
|
||
"color": "dark-yellow",
|
||
"index": 1,
|
||
"value": 5000000000
|
||
},
|
||
{
|
||
"color": "dark-red",
|
||
"index": 2,
|
||
"value": 7000000000
|
||
}
|
||
],
|
||
"values": false
|
||
}
|
||
},
|
||
"postfix": "",
|
||
"postfixFontSize": "50%",
|
||
"prefix": "",
|
||
"prefixFontSize": "50%",
|
||
"rangeMaps": [
|
||
{
|
||
"from": "null",
|
||
"text": "N/A",
|
||
"to": "null"
|
||
}
|
||
],
|
||
"span": 12,
|
||
"sparkline": {
|
||
"fillColor": "rgba(31, 118, 189, 0.18)",
|
||
"full": false,
|
||
"lineColor": "rgb(31, 120, 193)",
|
||
"show": false
|
||
},
|
||
"tableColumn": "",
|
||
"targets": [
|
||
{
|
||
"expr": "sum(irate(container_network_transmit_bytes_total{namespace=~\"$namespace\"}[$interval:$resolution]))",
|
||
"format": "time_series",
|
||
"instant": null,
|
||
"intervalFactor": 1,
|
||
"legendFormat": "",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": "",
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Current Rate of Bytes Transmitted",
|
||
"type": "gauge",
|
||
"valueFontSize": "80%",
|
||
"valueMaps": [
|
||
{
|
||
"op": "=",
|
||
"text": "N/A",
|
||
"value": "null"
|
||
}
|
||
],
|
||
"valueName": "current"
|
||
},
|
||
{
|
||
"columns": [
|
||
{
|
||
"text": "",
|
||
"value": ""
|
||
},
|
||
{
|
||
"text": "",
|
||
"value": ""
|
||
},
|
||
{
|
||
"text": "",
|
||
"value": ""
|
||
},
|
||
{
|
||
"text": "",
|
||
"value": ""
|
||
},
|
||
{
|
||
"text": "",
|
||
"value": ""
|
||
},
|
||
{
|
||
"text": "",
|
||
"value": ""
|
||
},
|
||
{
|
||
"text": "",
|
||
"value": ""
|
||
},
|
||
{
|
||
"text": "",
|
||
"value": ""
|
||
}
|
||
],
|
||
"datasource": "prometheus",
|
||
"fill": 1,
|
||
"fontSize": "100%",
|
||
"gridPos": {
|
||
"h": 9,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 10
|
||
},
|
||
"id": 5,
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"minSpan": 24,
|
||
"nullPointMode": "null as zero",
|
||
"renderer": "flot",
|
||
"scroll": true,
|
||
"showHeader": true,
|
||
"sort": {
|
||
"col": 0,
|
||
"desc": false
|
||
},
|
||
"spaceLength": 10,
|
||
"span": 24,
|
||
"styles": [
|
||
{
|
||
"alias": "Time",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "hidden",
|
||
"unit": "short"
|
||
},
|
||
{
|
||
"alias": "Bandwidth Received",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "Bps"
|
||
},
|
||
{
|
||
"alias": "Bandwidth Transmitted",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "Bps"
|
||
},
|
||
{
|
||
"alias": "Rate of Received Packets",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "pps"
|
||
},
|
||
{
|
||
"alias": "Rate of Transmitted Packets",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "pps"
|
||
},
|
||
{
|
||
"alias": "Rate of Received Packets Dropped",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "pps"
|
||
},
|
||
{
|
||
"alias": "Rate of Transmitted Packets Dropped",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "pps"
|
||
},
|
||
{
|
||
"alias": "Pod",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": true,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "d/7a18067ce943a40ae25454675c19ff5c/kubernetes-networking-pod?orgId=1&refresh=30s&var-namespace=$namespace&var-pod=$__cell",
|
||
"pattern": "",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "short"
|
||
}
|
||
],
|
||
"targets": [
|
||
{
|
||
"expr": "sum(irate(container_network_receive_bytes_total{namespace=~\"$namespace\"}[$interval:$resolution])) by (pod)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "A",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(irate(container_network_transmit_bytes_total{namespace=~\"$namespace\"}[$interval:$resolution])) by (pod)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "B",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(irate(container_network_receive_packets_total{namespace=~\"$namespace\"}[$interval:$resolution])) by (pod)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "C",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(irate(container_network_transmit_packets_total{namespace=~\"$namespace\"}[$interval:$resolution])) by (pod)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "D",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(irate(container_network_receive_packets_dropped_total{namespace=~\"$namespace\"}[$interval:$resolution])) by (pod)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "E",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum(irate(container_network_transmit_packets_dropped_total{namespace=~\"$namespace\"}[$interval:$resolution])) by (pod)",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "F",
|
||
"step": 10
|
||
}
|
||
],
|
||
"title": "Current Status",
|
||
"type": "table"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"gridPos": {
|
||
"h": 1,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 19
|
||
},
|
||
"id": 6,
|
||
"panels": [
|
||
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Bandwidth",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "prometheus",
|
||
"fill": 2,
|
||
"gridPos": {
|
||
"h": 9,
|
||
"w": 12,
|
||
"x": 0,
|
||
"y": 20
|
||
},
|
||
"id": 7,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"hideEmpty": true,
|
||
"hideZero": true,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [
|
||
|
||
],
|
||
"minSpan": 12,
|
||
"nullPointMode": "connected",
|
||
"paceLength": 10,
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(irate(container_network_receive_bytes_total{namespace=~\"$namespace\"}[$interval:$resolution])) by (pod)",
|
||
"format": "time_series",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "{{pod}}",
|
||
"refId": "A",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Receive Bandwidth",
|
||
"tooltip": {
|
||
"shared": true,
|
||
"sort": 2,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "prometheus",
|
||
"fill": 2,
|
||
"gridPos": {
|
||
"h": 9,
|
||
"w": 12,
|
||
"x": 12,
|
||
"y": 20
|
||
},
|
||
"id": 8,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"hideEmpty": true,
|
||
"hideZero": true,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [
|
||
|
||
],
|
||
"minSpan": 12,
|
||
"nullPointMode": "connected",
|
||
"paceLength": 10,
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(irate(container_network_transmit_bytes_total{namespace=~\"$namespace\"}[$interval:$resolution])) by (pod)",
|
||
"format": "time_series",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "{{pod}}",
|
||
"refId": "A",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Transmit Bandwidth",
|
||
"tooltip": {
|
||
"shared": true,
|
||
"sort": 2,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"collapse": true,
|
||
"collapsed": true,
|
||
"gridPos": {
|
||
"h": 1,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 29
|
||
},
|
||
"id": 9,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "prometheus",
|
||
"fill": 2,
|
||
"gridPos": {
|
||
"h": 10,
|
||
"w": 12,
|
||
"x": 0,
|
||
"y": 30
|
||
},
|
||
"id": 10,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"hideEmpty": true,
|
||
"hideZero": true,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [
|
||
|
||
],
|
||
"minSpan": 12,
|
||
"nullPointMode": "connected",
|
||
"paceLength": 10,
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(irate(container_network_receive_packets_total{namespace=~\"$namespace\"}[$interval:$resolution])) by (pod)",
|
||
"format": "time_series",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "{{pod}}",
|
||
"refId": "A",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Rate of Received Packets",
|
||
"tooltip": {
|
||
"shared": true,
|
||
"sort": 2,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "pps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "pps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "prometheus",
|
||
"fill": 2,
|
||
"gridPos": {
|
||
"h": 10,
|
||
"w": 12,
|
||
"x": 12,
|
||
"y": 30
|
||
},
|
||
"id": 11,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"hideEmpty": true,
|
||
"hideZero": true,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [
|
||
|
||
],
|
||
"minSpan": 12,
|
||
"nullPointMode": "connected",
|
||
"paceLength": 10,
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(irate(container_network_transmit_packets_total{namespace=~\"$namespace\"}[$interval:$resolution])) by (pod)",
|
||
"format": "time_series",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "{{pod}}",
|
||
"refId": "A",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Rate of Transmitted Packets",
|
||
"tooltip": {
|
||
"shared": true,
|
||
"sort": 2,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "pps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "pps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Packets",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"collapse": true,
|
||
"collapsed": true,
|
||
"gridPos": {
|
||
"h": 1,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 30
|
||
},
|
||
"id": 12,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "prometheus",
|
||
"fill": 2,
|
||
"gridPos": {
|
||
"h": 10,
|
||
"w": 12,
|
||
"x": 0,
|
||
"y": 40
|
||
},
|
||
"id": 13,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"hideEmpty": true,
|
||
"hideZero": true,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [
|
||
|
||
],
|
||
"minSpan": 12,
|
||
"nullPointMode": "connected",
|
||
"paceLength": 10,
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(irate(container_network_receive_packets_dropped_total{namespace=~\"$namespace\"}[$interval:$resolution])) by (pod)",
|
||
"format": "time_series",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "{{pod}}",
|
||
"refId": "A",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Rate of Received Packets Dropped",
|
||
"tooltip": {
|
||
"shared": true,
|
||
"sort": 2,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "pps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "pps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "prometheus",
|
||
"fill": 2,
|
||
"gridPos": {
|
||
"h": 10,
|
||
"w": 12,
|
||
"x": 12,
|
||
"y": 40
|
||
},
|
||
"id": 14,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"hideEmpty": true,
|
||
"hideZero": true,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [
|
||
|
||
],
|
||
"minSpan": 12,
|
||
"nullPointMode": "connected",
|
||
"paceLength": 10,
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(irate(container_network_transmit_packets_dropped_total{namespace=~\"$namespace\"}[$interval:$resolution])) by (pod)",
|
||
"format": "time_series",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "{{pod}}",
|
||
"refId": "A",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Rate of Transmitted Packets Dropped",
|
||
"tooltip": {
|
||
"shared": true,
|
||
"sort": 2,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "pps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "pps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Errors",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
}
|
||
],
|
||
"refresh": "30s",
|
||
"rows": [
|
||
|
||
],
|
||
"schemaVersion": 18,
|
||
"style": "dark",
|
||
"tags": [
|
||
"kubernetes-mixin"
|
||
],
|
||
"templating": {
|
||
"list": [
|
||
{
|
||
"allValue": ".+",
|
||
"auto": false,
|
||
"auto_count": 30,
|
||
"auto_min": "10s",
|
||
"current": {
|
||
"text": "kube-system",
|
||
"value": "kube-system"
|
||
},
|
||
"datasource": "prometheus",
|
||
"definition": "label_values(container_network_receive_packets_total, namespace)",
|
||
"hide": 0,
|
||
"includeAll": true,
|
||
"label": null,
|
||
"multi": false,
|
||
"name": "namespace",
|
||
"options": [
|
||
|
||
],
|
||
"query": "label_values(container_network_receive_packets_total, namespace)",
|
||
"refresh": 1,
|
||
"regex": "",
|
||
"skipUrlSync": false,
|
||
"sort": 1,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "query",
|
||
"useTags": false
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"auto": false,
|
||
"auto_count": 30,
|
||
"auto_min": "10s",
|
||
"current": {
|
||
"text": "5m",
|
||
"value": "5m"
|
||
},
|
||
"datasource": "prometheus",
|
||
"hide": 0,
|
||
"includeAll": false,
|
||
"label": null,
|
||
"multi": false,
|
||
"name": "resolution",
|
||
"options": [
|
||
{
|
||
"selected": false,
|
||
"text": "30s",
|
||
"value": "30s"
|
||
},
|
||
{
|
||
"selected": true,
|
||
"text": "5m",
|
||
"value": "5m"
|
||
},
|
||
{
|
||
"selected": false,
|
||
"text": "1h",
|
||
"value": "1h"
|
||
}
|
||
],
|
||
"query": "30s,5m,1h",
|
||
"refresh": 2,
|
||
"regex": "",
|
||
"skipUrlSync": false,
|
||
"sort": 1,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "interval",
|
||
"useTags": false
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"auto": false,
|
||
"auto_count": 30,
|
||
"auto_min": "10s",
|
||
"current": {
|
||
"text": "5m",
|
||
"value": "5m"
|
||
},
|
||
"datasource": "prometheus",
|
||
"hide": 2,
|
||
"includeAll": false,
|
||
"label": null,
|
||
"multi": false,
|
||
"name": "interval",
|
||
"options": [
|
||
{
|
||
"selected": true,
|
||
"text": "4h",
|
||
"value": "4h"
|
||
}
|
||
],
|
||
"query": "4h",
|
||
"refresh": 2,
|
||
"regex": "",
|
||
"skipUrlSync": false,
|
||
"sort": 1,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "interval",
|
||
"useTags": false
|
||
}
|
||
]
|
||
},
|
||
"time": {
|
||
"from": "now-1h",
|
||
"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": "Kubernetes / Networking / Namespace (Pods)",
|
||
"uid": "8b7a8b326d7a6f1f04244066368c67af",
|
||
"version": 0
|
||
}
|
||
kind: ConfigMap
|
||
metadata:
|
||
name: grafana-dashboard-namespace-by-pod
|
||
namespace: monitoring
|
||
- apiVersion: v1
|
||
data:
|
||
namespace-by-workload.json: |-
|
||
{
|
||
"__inputs": [
|
||
|
||
],
|
||
"__requires": [
|
||
|
||
],
|
||
"annotations": {
|
||
"list": [
|
||
{
|
||
"builtIn": 1,
|
||
"datasource": "-- Grafana --",
|
||
"enable": true,
|
||
"hide": true,
|
||
"iconColor": "rgba(0, 211, 255, 1)",
|
||
"name": "Annotations & Alerts",
|
||
"type": "dashboard"
|
||
}
|
||
]
|
||
},
|
||
"editable": true,
|
||
"gnetId": null,
|
||
"graphTooltip": 0,
|
||
"hideControls": false,
|
||
"id": null,
|
||
"links": [
|
||
|
||
],
|
||
"panels": [
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"gridPos": {
|
||
"h": 1,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 0
|
||
},
|
||
"id": 2,
|
||
"panels": [
|
||
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Current Bandwidth",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"breakpoint": "50%",
|
||
"cacheTimeout": null,
|
||
"combine": {
|
||
"label": "Others",
|
||
"threshold": 0
|
||
},
|
||
"datasource": "prometheus",
|
||
"fontSize": "80%",
|
||
"format": "Bps",
|
||
"gridPos": {
|
||
"h": 9,
|
||
"w": 12,
|
||
"x": 0,
|
||
"y": 1
|
||
},
|
||
"id": 3,
|
||
"interval": null,
|
||
"legend": {
|
||
"percentage": true,
|
||
"percentageDecimals": null,
|
||
"show": true,
|
||
"values": true
|
||
},
|
||
"legendType": "Right side",
|
||
"maxDataPoints": 3,
|
||
"nullPointMode": "connected",
|
||
"pieType": "donut",
|
||
"targets": [
|
||
{
|
||
"expr": "sort_desc(sum(irate(container_network_receive_bytes_total{namespace=~\"$namespace\"}[$interval:$resolution])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{namespace=~\"$namespace\", workload=~\".+\", workload_type=\"$type\"}) by (workload))\n",
|
||
"format": "time_series",
|
||
"instant": null,
|
||
"intervalFactor": 1,
|
||
"legendFormat": "{{workload}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"title": "Current Rate of Bytes Received",
|
||
"type": "grafana-piechart-panel",
|
||
"valueName": "current"
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"breakpoint": "50%",
|
||
"cacheTimeout": null,
|
||
"combine": {
|
||
"label": "Others",
|
||
"threshold": 0
|
||
},
|
||
"datasource": "prometheus",
|
||
"fontSize": "80%",
|
||
"format": "Bps",
|
||
"gridPos": {
|
||
"h": 9,
|
||
"w": 12,
|
||
"x": 12,
|
||
"y": 1
|
||
},
|
||
"id": 4,
|
||
"interval": null,
|
||
"legend": {
|
||
"percentage": true,
|
||
"percentageDecimals": null,
|
||
"show": true,
|
||
"values": true
|
||
},
|
||
"legendType": "Right side",
|
||
"maxDataPoints": 3,
|
||
"nullPointMode": "connected",
|
||
"pieType": "donut",
|
||
"targets": [
|
||
{
|
||
"expr": "sort_desc(sum(irate(container_network_transmit_bytes_total{namespace=~\"$namespace\"}[$interval:$resolution])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{namespace=~\"$namespace\", workload=~\".+\", workload_type=\"$type\"}) by (workload))\n",
|
||
"format": "time_series",
|
||
"instant": null,
|
||
"intervalFactor": 1,
|
||
"legendFormat": "{{workload}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"title": "Current Rate of Bytes Transmitted",
|
||
"type": "grafana-piechart-panel",
|
||
"valueName": "current"
|
||
},
|
||
{
|
||
"columns": [
|
||
{
|
||
"text": "",
|
||
"value": ""
|
||
},
|
||
{
|
||
"text": "",
|
||
"value": ""
|
||
},
|
||
{
|
||
"text": "",
|
||
"value": ""
|
||
},
|
||
{
|
||
"text": "",
|
||
"value": ""
|
||
},
|
||
{
|
||
"text": "",
|
||
"value": ""
|
||
},
|
||
{
|
||
"text": "",
|
||
"value": ""
|
||
},
|
||
{
|
||
"text": "",
|
||
"value": ""
|
||
},
|
||
{
|
||
"text": "",
|
||
"value": ""
|
||
},
|
||
{
|
||
"text": "",
|
||
"value": ""
|
||
},
|
||
{
|
||
"text": "",
|
||
"value": ""
|
||
}
|
||
],
|
||
"datasource": "prometheus",
|
||
"fill": 1,
|
||
"fontSize": "90%",
|
||
"gridPos": {
|
||
"h": 9,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 10
|
||
},
|
||
"id": 5,
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"minSpan": 24,
|
||
"nullPointMode": "null as zero",
|
||
"renderer": "flot",
|
||
"scroll": true,
|
||
"showHeader": true,
|
||
"sort": {
|
||
"col": 0,
|
||
"desc": false
|
||
},
|
||
"spaceLength": 10,
|
||
"span": 24,
|
||
"styles": [
|
||
{
|
||
"alias": "Time",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "hidden",
|
||
"unit": "short"
|
||
},
|
||
{
|
||
"alias": "Current Bandwidth Received",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "Bps"
|
||
},
|
||
{
|
||
"alias": "Current Bandwidth Transmitted",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "Bps"
|
||
},
|
||
{
|
||
"alias": "Average Bandwidth Received",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "Bps"
|
||
},
|
||
{
|
||
"alias": "Average Bandwidth Transmitted",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "Bps"
|
||
},
|
||
{
|
||
"alias": "Rate of Received Packets",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "pps"
|
||
},
|
||
{
|
||
"alias": "Rate of Transmitted Packets",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "pps"
|
||
},
|
||
{
|
||
"alias": "Rate of Received Packets Dropped",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "pps"
|
||
},
|
||
{
|
||
"alias": "Rate of Transmitted Packets Dropped",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "pps"
|
||
},
|
||
{
|
||
"alias": "Workload",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": true,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "d/728bf77cc1166d2f3133bf25846876cc/kubernetes-networking-workload?orgId=1&refresh=30s&var-namespace=$namespace&var-type=$type&var-workload=$__cell",
|
||
"pattern": "",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "short"
|
||
}
|
||
],
|
||
"targets": [
|
||
{
|
||
"expr": "sort_desc(sum(irate(container_network_receive_bytes_total{namespace=~\"$namespace\"}[$interval:$resolution])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{namespace=~\"$namespace\", workload=~\".+\", workload_type=\"$type\"}) by (workload))\n",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "A",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sort_desc(sum(irate(container_network_transmit_bytes_total{namespace=~\"$namespace\"}[$interval:$resolution])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{namespace=~\"$namespace\", workload=~\".+\", workload_type=\"$type\"}) by (workload))\n",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "B",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sort_desc(avg(irate(container_network_receive_bytes_total{namespace=~\"$namespace\"}[$interval:$resolution])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{namespace=~\"$namespace\", workload=~\".+\", workload_type=\"$type\"}) by (workload))\n",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "C",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sort_desc(avg(irate(container_network_transmit_bytes_total{namespace=~\"$namespace\"}[$interval:$resolution])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{namespace=~\"$namespace\", workload=~\".+\", workload_type=\"$type\"}) by (workload))\n",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "D",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sort_desc(sum(irate(container_network_receive_packets_total{namespace=~\"$namespace\"}[$interval:$resolution])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{namespace=~\"$namespace\", workload=~\".+\", workload_type=\"$type\"}) by (workload))\n",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "E",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sort_desc(sum(irate(container_network_transmit_packets_total{namespace=~\"$namespace\"}[$interval:$resolution])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{namespace=~\"$namespace\", workload=~\".+\", workload_type=\"$type\"}) by (workload))\n",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "F",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sort_desc(sum(irate(container_network_receive_packets_dropped_total{namespace=~\"$namespace\"}[$interval:$resolution])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{namespace=~\"$namespace\", workload=~\".+\", workload_type=\"$type\"}) by (workload))\n",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "G",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sort_desc(sum(irate(container_network_transmit_packets_dropped_total{namespace=~\"$namespace\"}[$interval:$resolution])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{namespace=~\"$namespace\", workload=~\".+\", workload_type=\"$type\"}) by (workload))\n",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "H",
|
||
"step": 10
|
||
}
|
||
],
|
||
"title": "Current Status",
|
||
"type": "table"
|
||
},
|
||
{
|
||
"collapse": true,
|
||
"collapsed": true,
|
||
"gridPos": {
|
||
"h": 1,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 19
|
||
},
|
||
"id": 6,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"breakpoint": "50%",
|
||
"cacheTimeout": null,
|
||
"combine": {
|
||
"label": "Others",
|
||
"threshold": 0
|
||
},
|
||
"datasource": "prometheus",
|
||
"fontSize": "80%",
|
||
"format": "Bps",
|
||
"gridPos": {
|
||
"h": 9,
|
||
"w": 12,
|
||
"x": 0,
|
||
"y": 20
|
||
},
|
||
"id": 7,
|
||
"interval": null,
|
||
"legend": {
|
||
"percentage": true,
|
||
"percentageDecimals": null,
|
||
"show": true,
|
||
"values": true
|
||
},
|
||
"legendType": "Right side",
|
||
"maxDataPoints": 3,
|
||
"nullPointMode": "connected",
|
||
"pieType": "donut",
|
||
"targets": [
|
||
{
|
||
"expr": "sort_desc(avg(irate(container_network_receive_bytes_total{namespace=~\"$namespace\"}[$interval:$resolution])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{namespace=~\"$namespace\", workload=~\".+\", workload_type=\"$type\"}) by (workload))\n",
|
||
"format": "time_series",
|
||
"instant": null,
|
||
"intervalFactor": 1,
|
||
"legendFormat": "{{workload}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"title": "Average Rate of Bytes Received",
|
||
"type": "grafana-piechart-panel",
|
||
"valueName": "current"
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"breakpoint": "50%",
|
||
"cacheTimeout": null,
|
||
"combine": {
|
||
"label": "Others",
|
||
"threshold": 0
|
||
},
|
||
"datasource": "prometheus",
|
||
"fontSize": "80%",
|
||
"format": "Bps",
|
||
"gridPos": {
|
||
"h": 9,
|
||
"w": 12,
|
||
"x": 12,
|
||
"y": 20
|
||
},
|
||
"id": 8,
|
||
"interval": null,
|
||
"legend": {
|
||
"percentage": true,
|
||
"percentageDecimals": null,
|
||
"show": true,
|
||
"values": true
|
||
},
|
||
"legendType": "Right side",
|
||
"maxDataPoints": 3,
|
||
"nullPointMode": "connected",
|
||
"pieType": "donut",
|
||
"targets": [
|
||
{
|
||
"expr": "sort_desc(avg(irate(container_network_transmit_bytes_total{namespace=~\"$namespace\"}[$interval:$resolution])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{namespace=~\"$namespace\", workload=~\".+\", workload_type=\"$type\"}) by (workload))\n",
|
||
"format": "time_series",
|
||
"instant": null,
|
||
"intervalFactor": 1,
|
||
"legendFormat": "{{workload}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"title": "Average Rate of Bytes Transmitted",
|
||
"type": "grafana-piechart-panel",
|
||
"valueName": "current"
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Average Bandwidth",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"gridPos": {
|
||
"h": 1,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 29
|
||
},
|
||
"id": 9,
|
||
"panels": [
|
||
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Bandwidth HIstory",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "prometheus",
|
||
"fill": 2,
|
||
"gridPos": {
|
||
"h": 9,
|
||
"w": 12,
|
||
"x": 0,
|
||
"y": 38
|
||
},
|
||
"id": 10,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"hideEmpty": true,
|
||
"hideZero": true,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [
|
||
|
||
],
|
||
"minSpan": 12,
|
||
"nullPointMode": "connected",
|
||
"paceLength": 10,
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sort_desc(sum(irate(container_network_receive_bytes_total{namespace=~\"$namespace\"}[$interval:$resolution])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{namespace=~\"$namespace\", workload=~\".+\", workload_type=\"$type\"}) by (workload))\n",
|
||
"format": "time_series",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "{{workload}}",
|
||
"refId": "A",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Receive Bandwidth",
|
||
"tooltip": {
|
||
"shared": true,
|
||
"sort": 2,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "prometheus",
|
||
"fill": 2,
|
||
"gridPos": {
|
||
"h": 9,
|
||
"w": 12,
|
||
"x": 12,
|
||
"y": 38
|
||
},
|
||
"id": 11,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"hideEmpty": true,
|
||
"hideZero": true,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [
|
||
|
||
],
|
||
"minSpan": 12,
|
||
"nullPointMode": "connected",
|
||
"paceLength": 10,
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sort_desc(sum(irate(container_network_transmit_bytes_total{namespace=~\"$namespace\"}[$interval:$resolution])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{namespace=~\"$namespace\", workload=~\".+\", workload_type=\"$type\"}) by (workload))\n",
|
||
"format": "time_series",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "{{workload}}",
|
||
"refId": "A",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Transmit Bandwidth",
|
||
"tooltip": {
|
||
"shared": true,
|
||
"sort": 2,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"collapse": true,
|
||
"collapsed": true,
|
||
"gridPos": {
|
||
"h": 1,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 39
|
||
},
|
||
"id": 12,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "prometheus",
|
||
"fill": 2,
|
||
"gridPos": {
|
||
"h": 9,
|
||
"w": 12,
|
||
"x": 0,
|
||
"y": 40
|
||
},
|
||
"id": 13,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"hideEmpty": true,
|
||
"hideZero": true,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [
|
||
|
||
],
|
||
"minSpan": 12,
|
||
"nullPointMode": "connected",
|
||
"paceLength": 10,
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sort_desc(sum(irate(container_network_receive_packets_total{namespace=~\"$namespace\"}[$interval:$resolution])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{namespace=~\"$namespace\", workload=~\".+\", workload_type=\"$type\"}) by (workload))\n",
|
||
"format": "time_series",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "{{workload}}",
|
||
"refId": "A",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Rate of Received Packets",
|
||
"tooltip": {
|
||
"shared": true,
|
||
"sort": 2,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "pps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "pps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "prometheus",
|
||
"fill": 2,
|
||
"gridPos": {
|
||
"h": 9,
|
||
"w": 12,
|
||
"x": 12,
|
||
"y": 40
|
||
},
|
||
"id": 14,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"hideEmpty": true,
|
||
"hideZero": true,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [
|
||
|
||
],
|
||
"minSpan": 12,
|
||
"nullPointMode": "connected",
|
||
"paceLength": 10,
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sort_desc(sum(irate(container_network_transmit_packets_total{namespace=~\"$namespace\"}[$interval:$resolution])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{namespace=~\"$namespace\", workload=~\".+\", workload_type=\"$type\"}) by (workload))\n",
|
||
"format": "time_series",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "{{workload}}",
|
||
"refId": "A",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Rate of Transmitted Packets",
|
||
"tooltip": {
|
||
"shared": true,
|
||
"sort": 2,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "pps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "pps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Packets",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"collapse": true,
|
||
"collapsed": true,
|
||
"gridPos": {
|
||
"h": 1,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 40
|
||
},
|
||
"id": 15,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "prometheus",
|
||
"fill": 2,
|
||
"gridPos": {
|
||
"h": 9,
|
||
"w": 12,
|
||
"x": 0,
|
||
"y": 41
|
||
},
|
||
"id": 16,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"hideEmpty": true,
|
||
"hideZero": true,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [
|
||
|
||
],
|
||
"minSpan": 12,
|
||
"nullPointMode": "connected",
|
||
"paceLength": 10,
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sort_desc(sum(irate(container_network_receive_packets_dropped_total{namespace=~\"$namespace\"}[$interval:$resolution])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{namespace=~\"$namespace\", workload=~\".+\", workload_type=\"$type\"}) by (workload))\n",
|
||
"format": "time_series",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "{{workload}}",
|
||
"refId": "A",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Rate of Received Packets Dropped",
|
||
"tooltip": {
|
||
"shared": true,
|
||
"sort": 2,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "pps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "pps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "prometheus",
|
||
"fill": 2,
|
||
"gridPos": {
|
||
"h": 9,
|
||
"w": 12,
|
||
"x": 12,
|
||
"y": 41
|
||
},
|
||
"id": 17,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"hideEmpty": true,
|
||
"hideZero": true,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [
|
||
|
||
],
|
||
"minSpan": 12,
|
||
"nullPointMode": "connected",
|
||
"paceLength": 10,
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sort_desc(sum(irate(container_network_transmit_packets_dropped_total{namespace=~\"$namespace\"}[$interval:$resolution])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{namespace=~\"$namespace\", workload=~\".+\", workload_type=\"$type\"}) by (workload))\n",
|
||
"format": "time_series",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "{{workload}}",
|
||
"refId": "A",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Rate of Transmitted Packets Dropped",
|
||
"tooltip": {
|
||
"shared": true,
|
||
"sort": 2,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "pps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "pps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Errors",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
}
|
||
],
|
||
"refresh": "30s",
|
||
"rows": [
|
||
|
||
],
|
||
"schemaVersion": 18,
|
||
"style": "dark",
|
||
"tags": [
|
||
"kubernetes-mixin"
|
||
],
|
||
"templating": {
|
||
"list": [
|
||
{
|
||
"allValue": null,
|
||
"auto": false,
|
||
"auto_count": 30,
|
||
"auto_min": "10s",
|
||
"current": {
|
||
"text": "kube-system",
|
||
"value": "kube-system"
|
||
},
|
||
"datasource": "prometheus",
|
||
"definition": "label_values(container_network_receive_packets_total, namespace)",
|
||
"hide": 0,
|
||
"includeAll": false,
|
||
"label": null,
|
||
"multi": false,
|
||
"name": "namespace",
|
||
"options": [
|
||
|
||
],
|
||
"query": "label_values(container_network_receive_packets_total, namespace)",
|
||
"refresh": 1,
|
||
"regex": "",
|
||
"skipUrlSync": false,
|
||
"sort": 1,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "query",
|
||
"useTags": false
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"auto": false,
|
||
"auto_count": 30,
|
||
"auto_min": "10s",
|
||
"current": {
|
||
"text": "deployment",
|
||
"value": "deployment"
|
||
},
|
||
"datasource": "prometheus",
|
||
"definition": "label_values(mixin_pod_workload{namespace=~\"$namespace\", workload=~\".+\"}, workload_type)",
|
||
"hide": 0,
|
||
"includeAll": false,
|
||
"label": null,
|
||
"multi": false,
|
||
"name": "type",
|
||
"options": [
|
||
|
||
],
|
||
"query": "label_values(mixin_pod_workload{namespace=~\"$namespace\", workload=~\".+\"}, workload_type)",
|
||
"refresh": 1,
|
||
"regex": "",
|
||
"skipUrlSync": false,
|
||
"sort": 0,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "query",
|
||
"useTags": false
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"auto": false,
|
||
"auto_count": 30,
|
||
"auto_min": "10s",
|
||
"current": {
|
||
"text": "5m",
|
||
"value": "5m"
|
||
},
|
||
"datasource": "prometheus",
|
||
"hide": 0,
|
||
"includeAll": false,
|
||
"label": null,
|
||
"multi": false,
|
||
"name": "resolution",
|
||
"options": [
|
||
{
|
||
"selected": false,
|
||
"text": "30s",
|
||
"value": "30s"
|
||
},
|
||
{
|
||
"selected": true,
|
||
"text": "5m",
|
||
"value": "5m"
|
||
},
|
||
{
|
||
"selected": false,
|
||
"text": "1h",
|
||
"value": "1h"
|
||
}
|
||
],
|
||
"query": "30s,5m,1h",
|
||
"refresh": 2,
|
||
"regex": "",
|
||
"skipUrlSync": false,
|
||
"sort": 1,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "interval",
|
||
"useTags": false
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"auto": false,
|
||
"auto_count": 30,
|
||
"auto_min": "10s",
|
||
"current": {
|
||
"text": "5m",
|
||
"value": "5m"
|
||
},
|
||
"datasource": "prometheus",
|
||
"hide": 2,
|
||
"includeAll": false,
|
||
"label": null,
|
||
"multi": false,
|
||
"name": "interval",
|
||
"options": [
|
||
{
|
||
"selected": true,
|
||
"text": "4h",
|
||
"value": "4h"
|
||
}
|
||
],
|
||
"query": "4h",
|
||
"refresh": 2,
|
||
"regex": "",
|
||
"skipUrlSync": false,
|
||
"sort": 1,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "interval",
|
||
"useTags": false
|
||
}
|
||
]
|
||
},
|
||
"time": {
|
||
"from": "now-1h",
|
||
"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": "Kubernetes / Networking / Namespace (Workload)",
|
||
"uid": "bbb2a765a623ae38130206c7d94a160f",
|
||
"version": 0
|
||
}
|
||
kind: ConfigMap
|
||
metadata:
|
||
name: grafana-dashboard-namespace-by-workload
|
||
namespace: monitoring
|
||
- apiVersion: v1
|
||
data:
|
||
node-cluster-rsrc-use.json: |-
|
||
{
|
||
"annotations": {
|
||
"list": [
|
||
|
||
]
|
||
},
|
||
"editable": true,
|
||
"gnetId": null,
|
||
"graphTooltip": 0,
|
||
"hideControls": false,
|
||
"links": [
|
||
|
||
],
|
||
"refresh": "10s",
|
||
"rows": [
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 1,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 6,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "(\n instance:node_cpu_utilisation:rate1m{job=\"node-exporter\"}\n*\n instance:node_num_cpu:sum{job=\"node-exporter\"}\n)\n/ scalar(sum(instance:node_num_cpu:sum{job=\"node-exporter\"}))\n",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}}",
|
||
"legendLink": "/dashboard/file/node-rsrc-use.json",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "CPU Utilisation",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "percentunit",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": 1,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 2,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 6,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "instance:node_load1_per_cpu:ratio{job=\"node-exporter\"}\n/ scalar(count(instance:node_load1_per_cpu:ratio{job=\"node-exporter\"}))\n",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}}",
|
||
"legendLink": "/dashboard/file/node-rsrc-use.json",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "CPU Saturation (load1 per CPU)",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "percentunit",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": 1,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "CPU",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 3,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 6,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "instance:node_memory_utilisation:ratio{job=\"node-exporter\"}\n/ scalar(count(instance:node_memory_utilisation:ratio{job=\"node-exporter\"}))\n",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}}",
|
||
"legendLink": "/dashboard/file/node-rsrc-use.json",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Memory Utilisation",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "percentunit",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": 1,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 4,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 6,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "instance:node_vmstat_pgmajfault:rate1m{job=\"node-exporter\"}",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}}",
|
||
"legendLink": "/dashboard/file/node-rsrc-use.json",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Memory Saturation (Major Page Faults)",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "rps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Memory",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 5,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
{
|
||
"alias": "/ Receive/",
|
||
"stack": "A"
|
||
},
|
||
{
|
||
"alias": "/ Transmit/",
|
||
"stack": "B",
|
||
"transform": "negative-Y"
|
||
}
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 6,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "instance:node_network_receive_bytes_excluding_lo:rate1m{job=\"node-exporter\"}",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}} Receive",
|
||
"legendLink": "/dashboard/file/node-rsrc-use.json",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "instance:node_network_transmit_bytes_excluding_lo:rate1m{job=\"node-exporter\"}",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}} Transmit",
|
||
"legendLink": "/dashboard/file/node-rsrc-use.json",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Net Utilisation (Bytes Receive/Transmit)",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 6,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
{
|
||
"alias": "/ Receive/",
|
||
"stack": "A"
|
||
},
|
||
{
|
||
"alias": "/ Transmit/",
|
||
"stack": "B",
|
||
"transform": "negative-Y"
|
||
}
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 6,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "instance:node_network_receive_drop_excluding_lo:rate1m{job=\"node-exporter\"}",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}} Receive",
|
||
"legendLink": "/dashboard/file/node-rsrc-use.json",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "instance:node_network_transmit_drop_excluding_lo:rate1m{job=\"node-exporter\"}",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}} Transmit",
|
||
"legendLink": "/dashboard/file/node-rsrc-use.json",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Net Saturation (Drops Receive/Transmit)",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "rps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Network",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 7,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 6,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "instance_device:node_disk_io_time_seconds:rate1m{job=\"node-exporter\"}\n/ scalar(count(instance_device:node_disk_io_time_seconds:rate1m{job=\"node-exporter\"}))\n",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}} {{device}}",
|
||
"legendLink": "/dashboard/file/node-rsrc-use.json",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Disk IO Utilisation",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "percentunit",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": 1,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 8,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 6,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "instance_device:node_disk_io_time_weighted_seconds:rate1m{job=\"node-exporter\"}\n/ scalar(count(instance_device:node_disk_io_time_weighted_seconds:rate1m{job=\"node-exporter\"}))\n",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}} {{device}}",
|
||
"legendLink": "/dashboard/file/node-rsrc-use.json",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Disk IO Saturation",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "percentunit",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": 1,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Disk IO",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 9,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum without (device) (\n max without (fstype, mountpoint) (\n node_filesystem_size_bytes{job=\"node-exporter\", fstype!=\"\"} - node_filesystem_avail_bytes{job=\"node-exporter\", fstype!=\"\"}\n )\n) \n/ scalar(sum(max without (fstype, mountpoint) (node_filesystem_size_bytes{job=\"node-exporter\", fstype!=\"\"})))\n",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}}",
|
||
"legendLink": "/dashboard/file/node-rsrc-use.json",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Disk Space Utilisation",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "percentunit",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": 1,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Disk Space",
|
||
"titleSize": "h6"
|
||
}
|
||
],
|
||
"schemaVersion": 14,
|
||
"style": "dark",
|
||
"tags": [
|
||
|
||
],
|
||
"templating": {
|
||
"list": [
|
||
{
|
||
"current": {
|
||
"text": "Prometheus",
|
||
"value": "Prometheus"
|
||
},
|
||
"hide": 0,
|
||
"label": null,
|
||
"name": "datasource",
|
||
"options": [
|
||
|
||
],
|
||
"query": "prometheus",
|
||
"refresh": 1,
|
||
"regex": "",
|
||
"type": "datasource"
|
||
}
|
||
]
|
||
},
|
||
"time": {
|
||
"from": "now-1h",
|
||
"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": "USE Method / Cluster",
|
||
"uid": "3e97d1d02672cdd0861f4c97c64f89b2",
|
||
"version": 0
|
||
}
|
||
kind: ConfigMap
|
||
metadata:
|
||
name: grafana-dashboard-node-cluster-rsrc-use
|
||
namespace: monitoring
|
||
- apiVersion: v1
|
||
data:
|
||
node-rsrc-use.json: |-
|
||
{
|
||
"annotations": {
|
||
"list": [
|
||
|
||
]
|
||
},
|
||
"editable": true,
|
||
"gnetId": null,
|
||
"graphTooltip": 0,
|
||
"hideControls": false,
|
||
"links": [
|
||
|
||
],
|
||
"refresh": "10s",
|
||
"rows": [
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"id": 1,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": false,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 6,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "instance:node_cpu_utilisation:rate1m{job=\"node-exporter\", instance=\"$instance\"}",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "Utilisation",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "CPU Utilisation",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "percentunit",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"id": 2,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": false,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 6,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "instance:node_load1_per_cpu:ratio{job=\"node-exporter\", instance=\"$instance\"}",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "Saturation",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "CPU Saturation (Load1 per CPU)",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "percentunit",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "CPU",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"id": 3,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 6,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "instance:node_memory_utilisation:ratio{job=\"node-exporter\", job=\"node-exporter\", instance=\"$instance\"}",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "Memory",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Memory Utilisation",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "percentunit",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"id": 4,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": false,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 6,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "instance:node_vmstat_pgmajfault:rate1m{job=\"node-exporter\", instance=\"$instance\"}",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "Major page faults",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Memory Saturation (Major Page Faults)",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"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": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Memory",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"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 as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
{
|
||
"alias": "/Receive/",
|
||
"stack": "A"
|
||
},
|
||
{
|
||
"alias": "/Transmit/",
|
||
"stack": "B",
|
||
"transform": "negative-Y"
|
||
}
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 6,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "instance:node_network_receive_bytes_excluding_lo:rate1m{job=\"node-exporter\", instance=\"$instance\"}",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "Receive",
|
||
"legendLink": null,
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "instance:node_network_transmit_bytes_excluding_lo:rate1m{job=\"node-exporter\", instance=\"$instance\"}",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "Transmit",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Net Utilisation (Bytes Receive/Transmit)",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"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 as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
{
|
||
"alias": "/Receive/",
|
||
"stack": "A"
|
||
},
|
||
{
|
||
"alias": "/Transmit/",
|
||
"stack": "B",
|
||
"transform": "negative-Y"
|
||
}
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 6,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "instance:node_network_receive_drop_excluding_lo:rate1m{job=\"node-exporter\", instance=\"$instance\"}",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "Receive drops",
|
||
"legendLink": null,
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "instance:node_network_transmit_drop_excluding_lo:rate1m{job=\"node-exporter\", instance=\"$instance\"}",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "Transmit drops",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Net Saturation (Drops Receive/Transmit)",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "rps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Net",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"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 as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 6,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "instance_device:node_disk_io_time_seconds:rate1m{job=\"node-exporter\", instance=\"$instance\"}",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{device}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Disk IO Utilisation",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "percentunit",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"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 as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 6,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "instance_device:node_disk_io_time_weighted_seconds:rate1m{job=\"node-exporter\", instance=\"$instance\"}",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{device}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Disk IO Saturation",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "percentunit",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Disk IO",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"id": 9,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": false,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "1 -\n(\n max without (mountpoint, fstype) (node_filesystem_avail_bytes{job=\"node-exporter\", fstype!=\"\", instance=\"$instance\"})\n/\n max without (mountpoint, fstype) (node_filesystem_size_bytes{job=\"node-exporter\", fstype!=\"\", instance=\"$instance\"})\n)\n",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{device}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Disk Space Utilisation",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "percentunit",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Disk Space",
|
||
"titleSize": "h6"
|
||
}
|
||
],
|
||
"schemaVersion": 14,
|
||
"style": "dark",
|
||
"tags": [
|
||
|
||
],
|
||
"templating": {
|
||
"list": [
|
||
{
|
||
"current": {
|
||
"text": "Prometheus",
|
||
"value": "Prometheus"
|
||
},
|
||
"hide": 0,
|
||
"label": null,
|
||
"name": "datasource",
|
||
"options": [
|
||
|
||
],
|
||
"query": "prometheus",
|
||
"refresh": 1,
|
||
"regex": "",
|
||
"type": "datasource"
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"current": {
|
||
"text": "prod",
|
||
"value": "prod"
|
||
},
|
||
"datasource": "$datasource",
|
||
"hide": 0,
|
||
"includeAll": false,
|
||
"label": "instance",
|
||
"multi": false,
|
||
"name": "instance",
|
||
"options": [
|
||
|
||
],
|
||
"query": "label_values(up{job=\"node-exporter\"}, instance)",
|
||
"refresh": 1,
|
||
"regex": "",
|
||
"sort": 2,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "query",
|
||
"useTags": false
|
||
}
|
||
]
|
||
},
|
||
"time": {
|
||
"from": "now-1h",
|
||
"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": "USE Method / Node",
|
||
"uid": "fac67cfbe174d3ef53eb473d73d9212f",
|
||
"version": 0
|
||
}
|
||
kind: ConfigMap
|
||
metadata:
|
||
name: grafana-dashboard-node-rsrc-use
|
||
namespace: monitoring
|
||
- apiVersion: v1
|
||
data:
|
||
nodes.json: |-
|
||
{
|
||
"__inputs": [
|
||
|
||
],
|
||
"__requires": [
|
||
|
||
],
|
||
"annotations": {
|
||
"list": [
|
||
|
||
]
|
||
},
|
||
"editable": false,
|
||
"gnetId": null,
|
||
"graphTooltip": 0,
|
||
"hideControls": false,
|
||
"id": null,
|
||
"links": [
|
||
|
||
],
|
||
"refresh": "",
|
||
"rows": [
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 2,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 6,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "(\n (1 - rate(node_cpu_seconds_total{job=\"node-exporter\", mode=\"idle\", instance=\"$instance\"}[$__interval]))\n/ ignoring(cpu) group_left\n count without (cpu)( node_cpu_seconds_total{job=\"node-exporter\", mode=\"idle\", instance=\"$instance\"})\n)\n",
|
||
"format": "time_series",
|
||
"interval": "1m",
|
||
"intervalFactor": 5,
|
||
"legendFormat": "{{cpu}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "CPU Usage",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "percentunit",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": 1,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "percentunit",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": 1,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 0,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 3,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 6,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "node_load1{job=\"node-exporter\", instance=\"$instance\"}",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "1m load average",
|
||
"refId": "A"
|
||
},
|
||
{
|
||
"expr": "node_load5{job=\"node-exporter\", instance=\"$instance\"}",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "5m load average",
|
||
"refId": "B"
|
||
},
|
||
{
|
||
"expr": "node_load15{job=\"node-exporter\", instance=\"$instance\"}",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "15m load average",
|
||
"refId": "C"
|
||
},
|
||
{
|
||
"expr": "count(node_cpu_seconds_total{job=\"node-exporter\", instance=\"$instance\", mode=\"idle\"})",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "logical cores",
|
||
"refId": "D"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Load Average",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"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": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": false,
|
||
"title": "Dashboard Row",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 4,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 9,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "(\n node_memory_MemTotal_bytes{job=\"node-exporter\", instance=\"$instance\"}\n-\n node_memory_MemFree_bytes{job=\"node-exporter\", instance=\"$instance\"}\n-\n node_memory_Buffers_bytes{job=\"node-exporter\", instance=\"$instance\"}\n-\n node_memory_Cached_bytes{job=\"node-exporter\", instance=\"$instance\"}\n)\n",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "memory used",
|
||
"refId": "A"
|
||
},
|
||
{
|
||
"expr": "node_memory_Buffers_bytes{job=\"node-exporter\", instance=\"$instance\"}",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "memory buffers",
|
||
"refId": "B"
|
||
},
|
||
{
|
||
"expr": "node_memory_Cached_bytes{job=\"node-exporter\", instance=\"$instance\"}",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "memory cached",
|
||
"refId": "C"
|
||
},
|
||
{
|
||
"expr": "node_memory_MemFree_bytes{job=\"node-exporter\", instance=\"$instance\"}",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "memory free",
|
||
"refId": "D"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Memory Usage",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"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": "bytes",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"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": "$datasource",
|
||
"format": "percent",
|
||
"gauge": {
|
||
"maxValue": 100,
|
||
"minValue": 0,
|
||
"show": true,
|
||
"thresholdLabels": false,
|
||
"thresholdMarkers": true
|
||
},
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 5,
|
||
"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": 3,
|
||
"sparkline": {
|
||
"fillColor": "rgba(31, 118, 189, 0.18)",
|
||
"full": false,
|
||
"lineColor": "rgb(31, 120, 193)",
|
||
"show": false
|
||
},
|
||
"tableColumn": "",
|
||
"targets": [
|
||
{
|
||
"expr": "100 -\n(\n node_memory_MemAvailable_bytes{job=\"node-exporter\", instance=\"$instance\"}\n/\n node_memory_MemTotal_bytes{job=\"node-exporter\", instance=\"$instance\"}\n* 100\n)\n",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": "80, 90",
|
||
"title": "Memory Usage",
|
||
"tooltip": {
|
||
"shared": false
|
||
},
|
||
"type": "singlestat",
|
||
"valueFontSize": "80%",
|
||
"valueMaps": [
|
||
{
|
||
"op": "=",
|
||
"text": "N/A",
|
||
"value": "null"
|
||
}
|
||
],
|
||
"valueName": "current"
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": false,
|
||
"title": "Dashboard Row",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 0,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 6,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
{
|
||
"alias": "/ read| written/",
|
||
"yaxis": 1
|
||
},
|
||
{
|
||
"alias": "/ io time/",
|
||
"yaxis": 2
|
||
}
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 6,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "rate(node_disk_read_bytes_total{job=\"node-exporter\", instance=\"$instance\", device=~\"nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+\"}[$__interval])",
|
||
"format": "time_series",
|
||
"interval": "1m",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{device}} read",
|
||
"refId": "A"
|
||
},
|
||
{
|
||
"expr": "rate(node_disk_written_bytes_total{job=\"node-exporter\", instance=\"$instance\", device=~\"nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+\"}[$__interval])",
|
||
"format": "time_series",
|
||
"interval": "1m",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{device}} written",
|
||
"refId": "B"
|
||
},
|
||
{
|
||
"expr": "rate(node_disk_io_time_seconds_total{job=\"node-exporter\", instance=\"$instance\", device=~\"nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+\"}[$__interval])",
|
||
"format": "time_series",
|
||
"interval": "1m",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{device}} io time",
|
||
"refId": "C"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Disk I/O",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"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": "s",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 7,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
{
|
||
"alias": "used",
|
||
"color": "#E0B400"
|
||
},
|
||
{
|
||
"alias": "available",
|
||
"color": "#73BF69"
|
||
}
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 6,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(\n max by (device) (\n node_filesystem_size_bytes{job=\"node-exporter\", instance=\"$instance\", fstype!=\"\"}\n -\n node_filesystem_avail_bytes{job=\"node-exporter\", instance=\"$instance\", fstype!=\"\"}\n )\n)\n",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "used",
|
||
"refId": "A"
|
||
},
|
||
{
|
||
"expr": "sum(\n max by (device) (\n node_filesystem_avail_bytes{job=\"node-exporter\", instance=\"$instance\", fstype!=\"\"}\n )\n)\n",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "available",
|
||
"refId": "B"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Disk Space Usage",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"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": "bytes",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": false,
|
||
"title": "Dashboard Row",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 0,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 8,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 6,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "rate(node_network_receive_bytes_total{job=\"node-exporter\", instance=\"$instance\", device!=\"lo\"}[$__interval])",
|
||
"format": "time_series",
|
||
"interval": "1m",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{device}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Network Received",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"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": "bytes",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 0,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 9,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 6,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "rate(node_network_transmit_bytes_total{job=\"node-exporter\", instance=\"$instance\", device!=\"lo\"}[$__interval])",
|
||
"format": "time_series",
|
||
"interval": "1m",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{device}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Network Transmitted",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"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": "bytes",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": false,
|
||
"title": "Dashboard Row",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
}
|
||
],
|
||
"schemaVersion": 14,
|
||
"style": "dark",
|
||
"tags": [
|
||
|
||
],
|
||
"templating": {
|
||
"list": [
|
||
{
|
||
"current": {
|
||
"text": "Prometheus",
|
||
"value": "Prometheus"
|
||
},
|
||
"hide": 0,
|
||
"label": null,
|
||
"name": "datasource",
|
||
"options": [
|
||
|
||
],
|
||
"query": "prometheus",
|
||
"refresh": 1,
|
||
"regex": "",
|
||
"type": "datasource"
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"current": {
|
||
|
||
},
|
||
"datasource": "$datasource",
|
||
"hide": 0,
|
||
"includeAll": false,
|
||
"label": null,
|
||
"multi": false,
|
||
"name": "instance",
|
||
"options": [
|
||
|
||
],
|
||
"query": "label_values(node_exporter_build_info{job=\"node-exporter\"}, instance)",
|
||
"refresh": 2,
|
||
"regex": "",
|
||
"sort": 0,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "query",
|
||
"useTags": false
|
||
}
|
||
]
|
||
},
|
||
"time": {
|
||
"from": "now-1h",
|
||
"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": "Nodes",
|
||
"uid": "fa49a4706d07a042595b664c87fb33ea",
|
||
"version": 0
|
||
}
|
||
kind: ConfigMap
|
||
metadata:
|
||
name: grafana-dashboard-nodes
|
||
namespace: monitoring
|
||
- apiVersion: v1
|
||
data:
|
||
persistentvolumesusage.json: |-
|
||
{
|
||
"__inputs": [
|
||
|
||
],
|
||
"__requires": [
|
||
|
||
],
|
||
"annotations": {
|
||
"list": [
|
||
|
||
]
|
||
},
|
||
"editable": false,
|
||
"gnetId": null,
|
||
"graphTooltip": 0,
|
||
"hideControls": false,
|
||
"id": null,
|
||
"links": [
|
||
|
||
],
|
||
"refresh": "",
|
||
"rows": [
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 2,
|
||
"legend": {
|
||
"alignAsTable": true,
|
||
"avg": true,
|
||
"current": true,
|
||
"max": true,
|
||
"min": true,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": true
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 9,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "(\n sum without(instance, node) (kubelet_volume_stats_capacity_bytes{cluster=\"$cluster\", job=\"kubelet\", namespace=\"$namespace\", persistentvolumeclaim=\"$volume\"})\n -\n sum without(instance, node) (kubelet_volume_stats_available_bytes{cluster=\"$cluster\", job=\"kubelet\", namespace=\"$namespace\", persistentvolumeclaim=\"$volume\"})\n)\n",
|
||
"format": "time_series",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Used Space",
|
||
"refId": "A"
|
||
},
|
||
{
|
||
"expr": "sum without(instance, node) (kubelet_volume_stats_available_bytes{cluster=\"$cluster\", job=\"kubelet\", namespace=\"$namespace\", persistentvolumeclaim=\"$volume\"})\n",
|
||
"format": "time_series",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Free Space",
|
||
"refId": "B"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Volume Space Usage",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"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": "bytes",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"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": "$datasource",
|
||
"format": "percent",
|
||
"gauge": {
|
||
"maxValue": 100,
|
||
"minValue": 0,
|
||
"show": true,
|
||
"thresholdLabels": false,
|
||
"thresholdMarkers": true
|
||
},
|
||
"gridPos": {
|
||
|
||
},
|
||
"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": 3,
|
||
"sparkline": {
|
||
"fillColor": "rgba(31, 118, 189, 0.18)",
|
||
"full": false,
|
||
"lineColor": "rgb(31, 120, 193)",
|
||
"show": false
|
||
},
|
||
"tableColumn": "",
|
||
"targets": [
|
||
{
|
||
"expr": "(\n kubelet_volume_stats_capacity_bytes{cluster=\"$cluster\", job=\"kubelet\", namespace=\"$namespace\", persistentvolumeclaim=\"$volume\"}\n -\n kubelet_volume_stats_available_bytes{cluster=\"$cluster\", job=\"kubelet\", namespace=\"$namespace\", persistentvolumeclaim=\"$volume\"}\n)\n/\nkubelet_volume_stats_capacity_bytes{cluster=\"$cluster\", job=\"kubelet\", namespace=\"$namespace\", persistentvolumeclaim=\"$volume\"}\n* 100\n",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": "80, 90",
|
||
"title": "Volume Space Usage",
|
||
"tooltip": {
|
||
"shared": false
|
||
},
|
||
"type": "singlestat",
|
||
"valueFontSize": "80%",
|
||
"valueMaps": [
|
||
{
|
||
"op": "=",
|
||
"text": "N/A",
|
||
"value": "null"
|
||
}
|
||
],
|
||
"valueName": "current"
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": false,
|
||
"title": "Dashboard Row",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 4,
|
||
"legend": {
|
||
"alignAsTable": true,
|
||
"avg": true,
|
||
"current": true,
|
||
"max": true,
|
||
"min": true,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": true
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 9,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum without(instance, node) (kubelet_volume_stats_inodes_used{cluster=\"$cluster\", job=\"kubelet\", namespace=\"$namespace\", persistentvolumeclaim=\"$volume\"})\n",
|
||
"format": "time_series",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "Used inodes",
|
||
"refId": "A"
|
||
},
|
||
{
|
||
"expr": "(\n sum without(instance, node) (kubelet_volume_stats_inodes{cluster=\"$cluster\", job=\"kubelet\", namespace=\"$namespace\", persistentvolumeclaim=\"$volume\"})\n -\n sum without(instance, node) (kubelet_volume_stats_inodes_used{cluster=\"$cluster\", job=\"kubelet\", namespace=\"$namespace\", persistentvolumeclaim=\"$volume\"})\n)\n",
|
||
"format": "time_series",
|
||
"intervalFactor": 1,
|
||
"legendFormat": " Free inodes",
|
||
"refId": "B"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Volume inodes Usage",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "none",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "none",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"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": "$datasource",
|
||
"format": "percent",
|
||
"gauge": {
|
||
"maxValue": 100,
|
||
"minValue": 0,
|
||
"show": true,
|
||
"thresholdLabels": false,
|
||
"thresholdMarkers": true
|
||
},
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 5,
|
||
"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": 3,
|
||
"sparkline": {
|
||
"fillColor": "rgba(31, 118, 189, 0.18)",
|
||
"full": false,
|
||
"lineColor": "rgb(31, 120, 193)",
|
||
"show": false
|
||
},
|
||
"tableColumn": "",
|
||
"targets": [
|
||
{
|
||
"expr": "kubelet_volume_stats_inodes_used{cluster=\"$cluster\", job=\"kubelet\", namespace=\"$namespace\", persistentvolumeclaim=\"$volume\"}\n/\nkubelet_volume_stats_inodes{cluster=\"$cluster\", job=\"kubelet\", namespace=\"$namespace\", persistentvolumeclaim=\"$volume\"}\n* 100\n",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": "80, 90",
|
||
"title": "Volume inodes Usage",
|
||
"tooltip": {
|
||
"shared": false
|
||
},
|
||
"type": "singlestat",
|
||
"valueFontSize": "80%",
|
||
"valueMaps": [
|
||
{
|
||
"op": "=",
|
||
"text": "N/A",
|
||
"value": "null"
|
||
}
|
||
],
|
||
"valueName": "current"
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": false,
|
||
"title": "Dashboard Row",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
}
|
||
],
|
||
"schemaVersion": 14,
|
||
"style": "dark",
|
||
"tags": [
|
||
"kubernetes-mixin"
|
||
],
|
||
"templating": {
|
||
"list": [
|
||
{
|
||
"current": {
|
||
"text": "Prometheus",
|
||
"value": "Prometheus"
|
||
},
|
||
"hide": 0,
|
||
"label": null,
|
||
"name": "datasource",
|
||
"options": [
|
||
|
||
],
|
||
"query": "prometheus",
|
||
"refresh": 1,
|
||
"regex": "",
|
||
"type": "datasource"
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"current": {
|
||
|
||
},
|
||
"datasource": "$datasource",
|
||
"hide": 2,
|
||
"includeAll": false,
|
||
"label": "cluster",
|
||
"multi": false,
|
||
"name": "cluster",
|
||
"options": [
|
||
|
||
],
|
||
"query": "label_values(kubelet_volume_stats_capacity_bytes, cluster)",
|
||
"refresh": 2,
|
||
"regex": "",
|
||
"sort": 1,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "query",
|
||
"useTags": false
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"current": {
|
||
|
||
},
|
||
"datasource": "$datasource",
|
||
"hide": 0,
|
||
"includeAll": false,
|
||
"label": "Namespace",
|
||
"multi": false,
|
||
"name": "namespace",
|
||
"options": [
|
||
|
||
],
|
||
"query": "label_values(kubelet_volume_stats_capacity_bytes{cluster=\"$cluster\", job=\"kubelet\"}, namespace)",
|
||
"refresh": 2,
|
||
"regex": "",
|
||
"sort": 1,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "query",
|
||
"useTags": false
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"current": {
|
||
|
||
},
|
||
"datasource": "$datasource",
|
||
"hide": 0,
|
||
"includeAll": false,
|
||
"label": "PersistentVolumeClaim",
|
||
"multi": false,
|
||
"name": "volume",
|
||
"options": [
|
||
|
||
],
|
||
"query": "label_values(kubelet_volume_stats_capacity_bytes{cluster=\"$cluster\", job=\"kubelet\", namespace=\"$namespace\"}, persistentvolumeclaim)",
|
||
"refresh": 2,
|
||
"regex": "",
|
||
"sort": 1,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "query",
|
||
"useTags": false
|
||
}
|
||
]
|
||
},
|
||
"time": {
|
||
"from": "now-7d",
|
||
"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": "Kubernetes / Persistent Volumes",
|
||
"uid": "919b92a8e8041bd567af9edab12c840c",
|
||
"version": 0
|
||
}
|
||
kind: ConfigMap
|
||
metadata:
|
||
name: grafana-dashboard-persistentvolumesusage
|
||
namespace: monitoring
|
||
- apiVersion: v1
|
||
data:
|
||
pod-total.json: |-
|
||
{
|
||
"__inputs": [
|
||
|
||
],
|
||
"__requires": [
|
||
|
||
],
|
||
"annotations": {
|
||
"list": [
|
||
{
|
||
"builtIn": 1,
|
||
"datasource": "-- Grafana --",
|
||
"enable": true,
|
||
"hide": true,
|
||
"iconColor": "rgba(0, 211, 255, 1)",
|
||
"name": "Annotations & Alerts",
|
||
"type": "dashboard"
|
||
}
|
||
]
|
||
},
|
||
"editable": true,
|
||
"gnetId": null,
|
||
"graphTooltip": 0,
|
||
"hideControls": false,
|
||
"id": null,
|
||
"links": [
|
||
|
||
],
|
||
"panels": [
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"gridPos": {
|
||
"h": 1,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 0
|
||
},
|
||
"id": 2,
|
||
"panels": [
|
||
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Current Bandwidth",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"cacheTimeout": null,
|
||
"colorBackground": false,
|
||
"colorValue": false,
|
||
"colors": [
|
||
"#299c46",
|
||
"rgba(237, 129, 40, 0.89)",
|
||
"#d44a3a"
|
||
],
|
||
"datasource": "prometheus",
|
||
"decimals": 0,
|
||
"format": "time_series",
|
||
"gauge": {
|
||
"maxValue": 100,
|
||
"minValue": 0,
|
||
"show": false,
|
||
"thresholdLabels": false,
|
||
"thresholdMarkers": true
|
||
},
|
||
"gridPos": {
|
||
"h": 9,
|
||
"w": 12,
|
||
"x": 0,
|
||
"y": 1
|
||
},
|
||
"height": 9,
|
||
"id": 3,
|
||
"interval": null,
|
||
"links": [
|
||
|
||
],
|
||
"mappingType": 1,
|
||
"mappingTypes": [
|
||
{
|
||
"name": "value to text",
|
||
"value": 1
|
||
},
|
||
{
|
||
"name": "range to text",
|
||
"value": 2
|
||
}
|
||
],
|
||
"maxDataPoints": 100,
|
||
"minSpan": 12,
|
||
"nullPointMode": "connected",
|
||
"nullText": null,
|
||
"options": {
|
||
"fieldOptions": {
|
||
"calcs": [
|
||
"last"
|
||
],
|
||
"defaults": {
|
||
"max": 10000000000,
|
||
"min": 0,
|
||
"title": "$namespace: $pod",
|
||
"unit": "Bps"
|
||
},
|
||
"mappings": [
|
||
|
||
],
|
||
"override": {
|
||
|
||
},
|
||
"thresholds": [
|
||
{
|
||
"color": "dark-green",
|
||
"index": 0,
|
||
"value": null
|
||
},
|
||
{
|
||
"color": "dark-yellow",
|
||
"index": 1,
|
||
"value": 5000000000
|
||
},
|
||
{
|
||
"color": "dark-red",
|
||
"index": 2,
|
||
"value": 7000000000
|
||
}
|
||
],
|
||
"values": false
|
||
}
|
||
},
|
||
"postfix": "",
|
||
"postfixFontSize": "50%",
|
||
"prefix": "",
|
||
"prefixFontSize": "50%",
|
||
"rangeMaps": [
|
||
{
|
||
"from": "null",
|
||
"text": "N/A",
|
||
"to": "null"
|
||
}
|
||
],
|
||
"span": 12,
|
||
"sparkline": {
|
||
"fillColor": "rgba(31, 118, 189, 0.18)",
|
||
"full": false,
|
||
"lineColor": "rgb(31, 120, 193)",
|
||
"show": false
|
||
},
|
||
"tableColumn": "",
|
||
"targets": [
|
||
{
|
||
"expr": "sum(irate(container_network_receive_bytes_total{namespace=~\"$namespace\", pod=~\"$pod\"}[$interval:$resolution]))",
|
||
"format": "time_series",
|
||
"instant": null,
|
||
"intervalFactor": 1,
|
||
"legendFormat": "",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": "",
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Current Rate of Bytes Received",
|
||
"type": "gauge",
|
||
"valueFontSize": "80%",
|
||
"valueMaps": [
|
||
{
|
||
"op": "=",
|
||
"text": "N/A",
|
||
"value": "null"
|
||
}
|
||
],
|
||
"valueName": "current"
|
||
},
|
||
{
|
||
"cacheTimeout": null,
|
||
"colorBackground": false,
|
||
"colorValue": false,
|
||
"colors": [
|
||
"#299c46",
|
||
"rgba(237, 129, 40, 0.89)",
|
||
"#d44a3a"
|
||
],
|
||
"datasource": "prometheus",
|
||
"decimals": 0,
|
||
"format": "time_series",
|
||
"gauge": {
|
||
"maxValue": 100,
|
||
"minValue": 0,
|
||
"show": false,
|
||
"thresholdLabels": false,
|
||
"thresholdMarkers": true
|
||
},
|
||
"gridPos": {
|
||
"h": 9,
|
||
"w": 12,
|
||
"x": 12,
|
||
"y": 1
|
||
},
|
||
"height": 9,
|
||
"id": 4,
|
||
"interval": null,
|
||
"links": [
|
||
|
||
],
|
||
"mappingType": 1,
|
||
"mappingTypes": [
|
||
{
|
||
"name": "value to text",
|
||
"value": 1
|
||
},
|
||
{
|
||
"name": "range to text",
|
||
"value": 2
|
||
}
|
||
],
|
||
"maxDataPoints": 100,
|
||
"minSpan": 12,
|
||
"nullPointMode": "connected",
|
||
"nullText": null,
|
||
"options": {
|
||
"fieldOptions": {
|
||
"calcs": [
|
||
"last"
|
||
],
|
||
"defaults": {
|
||
"max": 10000000000,
|
||
"min": 0,
|
||
"title": "$namespace: $pod",
|
||
"unit": "Bps"
|
||
},
|
||
"mappings": [
|
||
|
||
],
|
||
"override": {
|
||
|
||
},
|
||
"thresholds": [
|
||
{
|
||
"color": "dark-green",
|
||
"index": 0,
|
||
"value": null
|
||
},
|
||
{
|
||
"color": "dark-yellow",
|
||
"index": 1,
|
||
"value": 5000000000
|
||
},
|
||
{
|
||
"color": "dark-red",
|
||
"index": 2,
|
||
"value": 7000000000
|
||
}
|
||
],
|
||
"values": false
|
||
}
|
||
},
|
||
"postfix": "",
|
||
"postfixFontSize": "50%",
|
||
"prefix": "",
|
||
"prefixFontSize": "50%",
|
||
"rangeMaps": [
|
||
{
|
||
"from": "null",
|
||
"text": "N/A",
|
||
"to": "null"
|
||
}
|
||
],
|
||
"span": 12,
|
||
"sparkline": {
|
||
"fillColor": "rgba(31, 118, 189, 0.18)",
|
||
"full": false,
|
||
"lineColor": "rgb(31, 120, 193)",
|
||
"show": false
|
||
},
|
||
"tableColumn": "",
|
||
"targets": [
|
||
{
|
||
"expr": "sum(irate(container_network_transmit_bytes_total{namespace=~\"$namespace\", pod=~\"$pod\"}[$interval:$resolution]))",
|
||
"format": "time_series",
|
||
"instant": null,
|
||
"intervalFactor": 1,
|
||
"legendFormat": "",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": "",
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Current Rate of Bytes Transmitted",
|
||
"type": "gauge",
|
||
"valueFontSize": "80%",
|
||
"valueMaps": [
|
||
{
|
||
"op": "=",
|
||
"text": "N/A",
|
||
"value": "null"
|
||
}
|
||
],
|
||
"valueName": "current"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"gridPos": {
|
||
"h": 1,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 10
|
||
},
|
||
"id": 5,
|
||
"panels": [
|
||
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Bandwidth",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "prometheus",
|
||
"fill": 2,
|
||
"gridPos": {
|
||
"h": 9,
|
||
"w": 12,
|
||
"x": 0,
|
||
"y": 11
|
||
},
|
||
"id": 6,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"hideEmpty": true,
|
||
"hideZero": true,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [
|
||
|
||
],
|
||
"minSpan": 12,
|
||
"nullPointMode": "connected",
|
||
"paceLength": 10,
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(irate(container_network_receive_bytes_total{namespace=~\"$namespace\", pod=~\"$pod\"}[$interval:$resolution])) by (pod)",
|
||
"format": "time_series",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "{{pod}}",
|
||
"refId": "A",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Receive Bandwidth",
|
||
"tooltip": {
|
||
"shared": true,
|
||
"sort": 2,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "prometheus",
|
||
"fill": 2,
|
||
"gridPos": {
|
||
"h": 9,
|
||
"w": 12,
|
||
"x": 12,
|
||
"y": 11
|
||
},
|
||
"id": 7,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"hideEmpty": true,
|
||
"hideZero": true,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [
|
||
|
||
],
|
||
"minSpan": 12,
|
||
"nullPointMode": "connected",
|
||
"paceLength": 10,
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(irate(container_network_transmit_bytes_total{namespace=~\"$namespace\", pod=~\"$pod\"}[$interval:$resolution])) by (pod)",
|
||
"format": "time_series",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "{{pod}}",
|
||
"refId": "A",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Transmit Bandwidth",
|
||
"tooltip": {
|
||
"shared": true,
|
||
"sort": 2,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"collapse": true,
|
||
"collapsed": true,
|
||
"gridPos": {
|
||
"h": 1,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 20
|
||
},
|
||
"id": 8,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "prometheus",
|
||
"fill": 2,
|
||
"gridPos": {
|
||
"h": 10,
|
||
"w": 12,
|
||
"x": 0,
|
||
"y": 21
|
||
},
|
||
"id": 9,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"hideEmpty": true,
|
||
"hideZero": true,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [
|
||
|
||
],
|
||
"minSpan": 12,
|
||
"nullPointMode": "connected",
|
||
"paceLength": 10,
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(irate(container_network_receive_packets_total{namespace=~\"$namespace\", pod=~\"$pod\"}[$interval:$resolution])) by (pod)",
|
||
"format": "time_series",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "{{pod}}",
|
||
"refId": "A",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Rate of Received Packets",
|
||
"tooltip": {
|
||
"shared": true,
|
||
"sort": 2,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "pps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "pps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "prometheus",
|
||
"fill": 2,
|
||
"gridPos": {
|
||
"h": 10,
|
||
"w": 12,
|
||
"x": 12,
|
||
"y": 21
|
||
},
|
||
"id": 10,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"hideEmpty": true,
|
||
"hideZero": true,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [
|
||
|
||
],
|
||
"minSpan": 12,
|
||
"nullPointMode": "connected",
|
||
"paceLength": 10,
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(irate(container_network_transmit_packets_total{namespace=~\"$namespace\", pod=~\"$pod\"}[$interval:$resolution])) by (pod)",
|
||
"format": "time_series",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "{{pod}}",
|
||
"refId": "A",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Rate of Transmitted Packets",
|
||
"tooltip": {
|
||
"shared": true,
|
||
"sort": 2,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "pps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "pps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Packets",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"collapse": true,
|
||
"collapsed": true,
|
||
"gridPos": {
|
||
"h": 1,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 21
|
||
},
|
||
"id": 11,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "prometheus",
|
||
"fill": 2,
|
||
"gridPos": {
|
||
"h": 10,
|
||
"w": 12,
|
||
"x": 0,
|
||
"y": 32
|
||
},
|
||
"id": 12,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"hideEmpty": true,
|
||
"hideZero": true,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [
|
||
|
||
],
|
||
"minSpan": 12,
|
||
"nullPointMode": "connected",
|
||
"paceLength": 10,
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(irate(container_network_receive_packets_dropped_total{namespace=~\"$namespace\", pod=~\"$pod\"}[$interval:$resolution])) by (pod)",
|
||
"format": "time_series",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "{{pod}}",
|
||
"refId": "A",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Rate of Received Packets Dropped",
|
||
"tooltip": {
|
||
"shared": true,
|
||
"sort": 2,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "pps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "pps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "prometheus",
|
||
"fill": 2,
|
||
"gridPos": {
|
||
"h": 10,
|
||
"w": 12,
|
||
"x": 12,
|
||
"y": 32
|
||
},
|
||
"id": 13,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"hideEmpty": true,
|
||
"hideZero": true,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [
|
||
|
||
],
|
||
"minSpan": 12,
|
||
"nullPointMode": "connected",
|
||
"paceLength": 10,
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(irate(container_network_transmit_packets_dropped_total{namespace=~\"$namespace\", pod=~\"$pod\"}[$interval:$resolution])) by (pod)",
|
||
"format": "time_series",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "{{pod}}",
|
||
"refId": "A",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Rate of Transmitted Packets Dropped",
|
||
"tooltip": {
|
||
"shared": true,
|
||
"sort": 2,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "pps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "pps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Errors",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
}
|
||
],
|
||
"refresh": "30s",
|
||
"rows": [
|
||
|
||
],
|
||
"schemaVersion": 18,
|
||
"style": "dark",
|
||
"tags": [
|
||
"kubernetes-mixin"
|
||
],
|
||
"templating": {
|
||
"list": [
|
||
{
|
||
"allValue": ".+",
|
||
"auto": false,
|
||
"auto_count": 30,
|
||
"auto_min": "10s",
|
||
"current": {
|
||
"text": "kube-system",
|
||
"value": "kube-system"
|
||
},
|
||
"datasource": "prometheus",
|
||
"definition": "label_values(container_network_receive_packets_total, namespace)",
|
||
"hide": 0,
|
||
"includeAll": true,
|
||
"label": null,
|
||
"multi": false,
|
||
"name": "namespace",
|
||
"options": [
|
||
|
||
],
|
||
"query": "label_values(container_network_receive_packets_total, namespace)",
|
||
"refresh": 1,
|
||
"regex": "",
|
||
"skipUrlSync": false,
|
||
"sort": 1,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "query",
|
||
"useTags": false
|
||
},
|
||
{
|
||
"allValue": ".+",
|
||
"auto": false,
|
||
"auto_count": 30,
|
||
"auto_min": "10s",
|
||
"current": {
|
||
"text": "",
|
||
"value": ""
|
||
},
|
||
"datasource": "prometheus",
|
||
"definition": "label_values(container_network_receive_packets_total{namespace=~\"$namespace\"}, pod)",
|
||
"hide": 0,
|
||
"includeAll": false,
|
||
"label": null,
|
||
"multi": false,
|
||
"name": "pod",
|
||
"options": [
|
||
|
||
],
|
||
"query": "label_values(container_network_receive_packets_total{namespace=~\"$namespace\"}, pod)",
|
||
"refresh": 1,
|
||
"regex": "",
|
||
"skipUrlSync": false,
|
||
"sort": 1,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "query",
|
||
"useTags": false
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"auto": false,
|
||
"auto_count": 30,
|
||
"auto_min": "10s",
|
||
"current": {
|
||
"text": "5m",
|
||
"value": "5m"
|
||
},
|
||
"datasource": "prometheus",
|
||
"hide": 0,
|
||
"includeAll": false,
|
||
"label": null,
|
||
"multi": false,
|
||
"name": "resolution",
|
||
"options": [
|
||
{
|
||
"selected": false,
|
||
"text": "30s",
|
||
"value": "30s"
|
||
},
|
||
{
|
||
"selected": true,
|
||
"text": "5m",
|
||
"value": "5m"
|
||
},
|
||
{
|
||
"selected": false,
|
||
"text": "1h",
|
||
"value": "1h"
|
||
}
|
||
],
|
||
"query": "30s,5m,1h",
|
||
"refresh": 2,
|
||
"regex": "",
|
||
"skipUrlSync": false,
|
||
"sort": 1,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "interval",
|
||
"useTags": false
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"auto": false,
|
||
"auto_count": 30,
|
||
"auto_min": "10s",
|
||
"current": {
|
||
"text": "5m",
|
||
"value": "5m"
|
||
},
|
||
"datasource": "prometheus",
|
||
"hide": 2,
|
||
"includeAll": false,
|
||
"label": null,
|
||
"multi": false,
|
||
"name": "interval",
|
||
"options": [
|
||
{
|
||
"selected": true,
|
||
"text": "4h",
|
||
"value": "4h"
|
||
}
|
||
],
|
||
"query": "4h",
|
||
"refresh": 2,
|
||
"regex": "",
|
||
"skipUrlSync": false,
|
||
"sort": 1,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "interval",
|
||
"useTags": false
|
||
}
|
||
]
|
||
},
|
||
"time": {
|
||
"from": "now-1h",
|
||
"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": "Kubernetes / Networking / Pod",
|
||
"uid": "7a18067ce943a40ae25454675c19ff5c",
|
||
"version": 0
|
||
}
|
||
kind: ConfigMap
|
||
metadata:
|
||
name: grafana-dashboard-pod-total
|
||
namespace: monitoring
|
||
- apiVersion: v1
|
||
data:
|
||
pods.json: |-
|
||
{
|
||
"__inputs": [
|
||
|
||
],
|
||
"__requires": [
|
||
|
||
],
|
||
"annotations": {
|
||
"list": [
|
||
{
|
||
"builtIn": 1,
|
||
"datasource": "$datasource",
|
||
"enable": true,
|
||
"expr": "time() == BOOL timestamp(rate(kube_pod_container_status_restarts_total{job=\"kube-state-metrics\", cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}[2m]) > 0)",
|
||
"hide": false,
|
||
"iconColor": "rgba(215, 44, 44, 1)",
|
||
"name": "Restarts",
|
||
"showIn": 0,
|
||
"tags": [
|
||
"restart"
|
||
],
|
||
"type": "rows"
|
||
}
|
||
]
|
||
},
|
||
"editable": false,
|
||
"gnetId": null,
|
||
"graphTooltip": 0,
|
||
"hideControls": false,
|
||
"id": null,
|
||
"links": [
|
||
|
||
],
|
||
"refresh": "",
|
||
"rows": [
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 2,
|
||
"legend": {
|
||
"alignAsTable": true,
|
||
"avg": true,
|
||
"current": true,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": true,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum by(container) (container_memory_usage_bytes{job=\"kubelet\", cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", container=~\"$container\", container!=\"POD\"})",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "Current: {{ container }}",
|
||
"refId": "A"
|
||
},
|
||
{
|
||
"expr": "sum by(container) (kube_pod_container_resource_requests{job=\"kube-state-metrics\", cluster=\"$cluster\", namespace=\"$namespace\", resource=\"memory\", pod=\"$pod\", container=~\"$container\"})",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "Requested: {{ container }}",
|
||
"refId": "B"
|
||
},
|
||
{
|
||
"expr": "sum by(container) (kube_pod_container_resource_limits{job=\"kube-state-metrics\", cluster=\"$cluster\", namespace=\"$namespace\", resource=\"memory\", pod=\"$pod\", container=~\"$container\"})",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "Limit: {{ container }}",
|
||
"refId": "C"
|
||
},
|
||
{
|
||
"expr": "sum by(container) (container_memory_cache{job=\"kubelet\", cluster=\"$cluster\", namespace=\"$namespace\", pod=~\"$pod\", container=~\"$container\", container!=\"POD\"})",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "Cache: {{ container }}",
|
||
"refId": "D"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Memory Usage",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"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": "bytes",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": false,
|
||
"title": "Dashboard Row",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 3,
|
||
"legend": {
|
||
"alignAsTable": true,
|
||
"avg": true,
|
||
"current": true,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": true,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum by (container) (irate(container_cpu_usage_seconds_total{job=\"kubelet\", cluster=\"$cluster\", namespace=\"$namespace\", image!=\"\", pod=\"$pod\", container=~\"$container\", container!=\"POD\"}[4m]))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "Current: {{ container }}",
|
||
"refId": "A"
|
||
},
|
||
{
|
||
"expr": "sum by(container) (kube_pod_container_resource_requests{job=\"kube-state-metrics\", cluster=\"$cluster\", namespace=\"$namespace\", resource=\"cpu\", pod=\"$pod\", container=~\"$container\"})",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "Requested: {{ container }}",
|
||
"refId": "B"
|
||
},
|
||
{
|
||
"expr": "sum by(container) (kube_pod_container_resource_limits{job=\"kube-state-metrics\", cluster=\"$cluster\", namespace=\"$namespace\", resource=\"cpu\", pod=\"$pod\", container=~\"$container\"})",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "Limit: {{ container }}",
|
||
"refId": "C"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "CPU Usage",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"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": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": false,
|
||
"title": "Dashboard Row",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 4,
|
||
"legend": {
|
||
"alignAsTable": true,
|
||
"avg": true,
|
||
"current": true,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": true,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sort_desc(sum by (pod) (irate(container_network_receive_bytes_total{job=\"kubelet\", cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}[4m])))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "RX: {{ pod }}",
|
||
"refId": "A"
|
||
},
|
||
{
|
||
"expr": "sort_desc(sum by (pod) (irate(container_network_transmit_bytes_total{job=\"kubelet\", cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}[4m])))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "TX: {{ pod }}",
|
||
"refId": "B"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Network I/O",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"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": "bytes",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": false,
|
||
"title": "Dashboard Row",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 5,
|
||
"legend": {
|
||
"alignAsTable": true,
|
||
"avg": true,
|
||
"current": true,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": true,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "max by (container) (kube_pod_container_status_restarts_total{job=\"kube-state-metrics\", cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", container=~\"$container\"})",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "Restarts: {{ container }}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Total Restarts Per Container",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"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": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": false,
|
||
"title": "Dashboard Row",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
}
|
||
],
|
||
"schemaVersion": 14,
|
||
"style": "dark",
|
||
"tags": [
|
||
"kubernetes-mixin"
|
||
],
|
||
"templating": {
|
||
"list": [
|
||
{
|
||
"current": {
|
||
"text": "Prometheus",
|
||
"value": "Prometheus"
|
||
},
|
||
"hide": 0,
|
||
"label": null,
|
||
"name": "datasource",
|
||
"options": [
|
||
|
||
],
|
||
"query": "prometheus",
|
||
"refresh": 1,
|
||
"regex": "",
|
||
"type": "datasource"
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"current": {
|
||
|
||
},
|
||
"datasource": "$datasource",
|
||
"hide": 2,
|
||
"includeAll": false,
|
||
"label": "cluster",
|
||
"multi": false,
|
||
"name": "cluster",
|
||
"options": [
|
||
|
||
],
|
||
"query": "label_values(kube_pod_info, cluster)",
|
||
"refresh": 2,
|
||
"regex": "",
|
||
"sort": 1,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "query",
|
||
"useTags": false
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"current": {
|
||
|
||
},
|
||
"datasource": "$datasource",
|
||
"hide": 0,
|
||
"includeAll": false,
|
||
"label": "Namespace",
|
||
"multi": false,
|
||
"name": "namespace",
|
||
"options": [
|
||
|
||
],
|
||
"query": "label_values(kube_pod_info{cluster=\"$cluster\"}, namespace)",
|
||
"refresh": 2,
|
||
"regex": "",
|
||
"sort": 1,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "query",
|
||
"useTags": false
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"current": {
|
||
|
||
},
|
||
"datasource": "$datasource",
|
||
"hide": 0,
|
||
"includeAll": false,
|
||
"label": "Pod",
|
||
"multi": false,
|
||
"name": "pod",
|
||
"options": [
|
||
|
||
],
|
||
"query": "label_values(kube_pod_info{cluster=\"$cluster\", namespace=~\"$namespace\"}, pod)",
|
||
"refresh": 2,
|
||
"regex": "",
|
||
"sort": 1,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "query",
|
||
"useTags": false
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"current": {
|
||
|
||
},
|
||
"datasource": "$datasource",
|
||
"hide": 0,
|
||
"includeAll": true,
|
||
"label": "Container",
|
||
"multi": false,
|
||
"name": "container",
|
||
"options": [
|
||
|
||
],
|
||
"query": "label_values(kube_pod_container_info{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}, container)",
|
||
"refresh": 2,
|
||
"regex": "",
|
||
"sort": 1,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "query",
|
||
"useTags": false
|
||
}
|
||
]
|
||
},
|
||
"time": {
|
||
"from": "now-1h",
|
||
"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": "Kubernetes / Pods",
|
||
"uid": "ab4f13a9892a76a4d21ce8c2445bf4ea",
|
||
"version": 0
|
||
}
|
||
kind: ConfigMap
|
||
metadata:
|
||
name: grafana-dashboard-pods
|
||
namespace: monitoring
|
||
- apiVersion: v1
|
||
data:
|
||
prometheus-remote-write.json: |-
|
||
{
|
||
"__inputs": [
|
||
|
||
],
|
||
"__requires": [
|
||
|
||
],
|
||
"annotations": {
|
||
"list": [
|
||
|
||
]
|
||
},
|
||
"editable": true,
|
||
"gnetId": null,
|
||
"graphTooltip": 0,
|
||
"hideControls": false,
|
||
"id": null,
|
||
"links": [
|
||
|
||
],
|
||
"refresh": "",
|
||
"rows": [
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 2,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 6,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "(\n prometheus_remote_storage_highest_timestamp_in_seconds{cluster=~\"$cluster\", instance=~\"$instance\"} \n- \n ignoring(queue) group_right(instance) prometheus_remote_storage_queue_highest_sent_timestamp_seconds{cluster=~\"$cluster\", instance=~\"$instance\"}\n)\n",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{cluster}}:{{instance}}-{{queue}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Highest Timestamp In vs. Highest Timestamp Sent",
|
||
"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": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 3,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 6,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "(\n rate(prometheus_remote_storage_highest_timestamp_in_seconds{cluster=~\"$cluster\", instance=~\"$instance\"}[5m]) \n- \n ignoring (queue) group_right(instance) rate(prometheus_remote_storage_queue_highest_sent_timestamp_seconds{cluster=~\"$cluster\", instance=~\"$instance\"}[5m])\n)\n",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{cluster}}:{{instance}}-{{queue}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Rate[5m]",
|
||
"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": true,
|
||
"title": "Timestamps",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 4,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "rate(\n prometheus_remote_storage_samples_in_total{cluster=~\"$cluster\", instance=~\"$instance\"}[5m])\n- \n ignoring(queue) group_right(instance) rate(prometheus_remote_storage_succeeded_samples_total{cluster=~\"$cluster\", instance=~\"$instance\"}[5m]) \n- \n rate(prometheus_remote_storage_dropped_samples_total{cluster=~\"$cluster\", instance=~\"$instance\"}[5m])\n",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{cluster}}:{{instance}}-{{queue}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Rate, in vs. succeeded or dropped [5m]",
|
||
"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": true,
|
||
"title": "Samples",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 5,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"minSpan": 6,
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": "queue",
|
||
"seriesOverrides": [
|
||
{
|
||
"alias": "/max_shards/",
|
||
"yaxis": 2
|
||
}
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "prometheus_remote_storage_shards_max{cluster=~\"$cluster\", instance=~\"$instance\"}",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "max_shards:{{queue}}",
|
||
"refId": "A"
|
||
},
|
||
{
|
||
"expr": "prometheus_remote_storage_shards_min{cluster=~\"$cluster\", instance=~\"$instance\"}",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "min_shards:{{queue}}",
|
||
"refId": "B"
|
||
},
|
||
{
|
||
"expr": "prometheus_remote_storage_shards_desired{cluster=~\"$cluster\", instance=~\"$instance\"}",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "desired_shards:{{queue}}",
|
||
"refId": "C"
|
||
},
|
||
{
|
||
"expr": "prometheus_remote_storage_shards{cluster=~\"$cluster\", instance=~\"$instance\"}",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "current_shards:{{queue}}",
|
||
"refId": "D"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Shards: $queue",
|
||
"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": true,
|
||
"title": "Shards",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 6,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": "queue",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 6,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "prometheus_remote_storage_shard_capacity{cluster=~\"$cluster\", instance=~\"$instance\"}",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{cluster}}:{{instance}}-{{queue}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Shard Capacity: $queue",
|
||
"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": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 7,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": "queue",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 6,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "prometheus_remote_storage_pending_samples{cluster=~\"$cluster\", instance=~\"$instance\"}",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{cluster}}:{{instance}}-{{queue}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Pending Samples: $queue",
|
||
"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": true,
|
||
"title": "Shard Details",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 8,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 6,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "prometheus_tsdb_wal_segment_current{cluster=~\"$cluster\", instance=~\"$instance\"}",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{cluster}}:{{instance}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "TSDB Current Segment",
|
||
"tooltip": {
|
||
"shared": true,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "none",
|
||
"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": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 9,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 6,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "prometheus_wal_watcher_current_segment{cluster=~\"$cluster\", instance=~\"$instance\"}",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{cluster}}:{{instance}}-{{queue}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Remote Write Current Segment",
|
||
"tooltip": {
|
||
"shared": true,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "none",
|
||
"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": "Segments",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 10,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 3,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "rate(prometheus_remote_storage_dropped_samples_total{cluster=~\"$cluster\", instance=~\"$instance\"}[5m])",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{cluster}}:{{instance}}-{{queue}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Dropped Samples",
|
||
"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": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 11,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 3,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "rate(prometheus_remote_storage_failed_samples_total{cluster=~\"$cluster\", instance=~\"$instance\"}[5m])",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{cluster}}:{{instance}}-{{queue}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Failed Samples",
|
||
"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": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 12,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 3,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "rate(prometheus_remote_storage_retried_samples_total{cluster=~\"$cluster\", instance=~\"$instance\"}[5m])",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{cluster}}:{{instance}}-{{queue}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Retried Samples",
|
||
"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": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 13,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 3,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "rate(prometheus_remote_storage_enqueue_retries_total{cluster=~\"$cluster\", instance=~\"$instance\"}[5m])",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{cluster}}:{{instance}}-{{queue}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Enqueue Retries",
|
||
"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": true,
|
||
"title": "Misc. Rates",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
}
|
||
],
|
||
"schemaVersion": 14,
|
||
"style": "dark",
|
||
"tags": [
|
||
|
||
],
|
||
"templating": {
|
||
"list": [
|
||
{
|
||
"hide": 0,
|
||
"label": null,
|
||
"name": "datasource",
|
||
"options": [
|
||
|
||
],
|
||
"query": "prometheus",
|
||
"refresh": 1,
|
||
"regex": "",
|
||
"type": "datasource"
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"current": {
|
||
"text": {
|
||
"selected": true,
|
||
"text": "All",
|
||
"value": "$__all"
|
||
},
|
||
"value": {
|
||
"selected": true,
|
||
"text": "All",
|
||
"value": "$__all"
|
||
}
|
||
},
|
||
"datasource": "$datasource",
|
||
"hide": 0,
|
||
"includeAll": true,
|
||
"label": null,
|
||
"multi": false,
|
||
"name": "instance",
|
||
"options": [
|
||
|
||
],
|
||
"query": "label_values(prometheus_build_info, instance)",
|
||
"refresh": 2,
|
||
"regex": "",
|
||
"sort": 0,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "query",
|
||
"useTags": false
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"current": {
|
||
"text": {
|
||
"selected": true,
|
||
"text": "All",
|
||
"value": "$__all"
|
||
},
|
||
"value": {
|
||
"selected": true,
|
||
"text": "All",
|
||
"value": "$__all"
|
||
}
|
||
},
|
||
"datasource": "$datasource",
|
||
"hide": 0,
|
||
"includeAll": true,
|
||
"label": null,
|
||
"multi": false,
|
||
"name": "cluster",
|
||
"options": [
|
||
|
||
],
|
||
"query": "label_values(kube_pod_container_info{image=~\".*prometheus.*\"}, cluster)",
|
||
"refresh": 2,
|
||
"regex": "",
|
||
"sort": 0,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "query",
|
||
"useTags": false
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"current": {
|
||
"text": {
|
||
"selected": true,
|
||
"text": "All",
|
||
"value": "$__all"
|
||
},
|
||
"value": {
|
||
"selected": true,
|
||
"text": "All",
|
||
"value": "$__all"
|
||
}
|
||
},
|
||
"datasource": "$datasource",
|
||
"hide": 0,
|
||
"includeAll": true,
|
||
"label": null,
|
||
"multi": false,
|
||
"name": "queue",
|
||
"options": [
|
||
|
||
],
|
||
"query": "label_values(prometheus_remote_storage_shards, queue)",
|
||
"refresh": 2,
|
||
"regex": "",
|
||
"sort": 0,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "query",
|
||
"useTags": false
|
||
}
|
||
]
|
||
},
|
||
"time": {
|
||
"from": "now-6h",
|
||
"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": "browser",
|
||
"title": "Prometheus Remote Write",
|
||
"version": 0
|
||
}
|
||
kind: ConfigMap
|
||
metadata:
|
||
name: grafana-dashboard-prometheus-remote-write
|
||
namespace: monitoring
|
||
- apiVersion: v1
|
||
data:
|
||
prometheus.json: |-
|
||
{
|
||
"annotations": {
|
||
"list": [
|
||
|
||
]
|
||
},
|
||
"editable": true,
|
||
"gnetId": null,
|
||
"graphTooltip": 0,
|
||
"hideControls": false,
|
||
"links": [
|
||
|
||
],
|
||
"refresh": "10s",
|
||
"rows": [
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"id": 1,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"styles": [
|
||
{
|
||
"alias": "Time",
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"pattern": "Time",
|
||
"type": "hidden"
|
||
},
|
||
{
|
||
"alias": "Count",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #A",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "hidden",
|
||
"unit": "short"
|
||
},
|
||
{
|
||
"alias": "Uptime",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "Value #B",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "short"
|
||
},
|
||
{
|
||
"alias": "Instance",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "instance",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "short"
|
||
},
|
||
{
|
||
"alias": "Job",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "job",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "short"
|
||
},
|
||
{
|
||
"alias": "Version",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"link": false,
|
||
"linkTooltip": "Drill down",
|
||
"linkUrl": "",
|
||
"pattern": "version",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "number",
|
||
"unit": "short"
|
||
},
|
||
{
|
||
"alias": "",
|
||
"colorMode": null,
|
||
"colors": [
|
||
|
||
],
|
||
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
||
"decimals": 2,
|
||
"pattern": "/.*/",
|
||
"thresholds": [
|
||
|
||
],
|
||
"type": "string",
|
||
"unit": "short"
|
||
}
|
||
],
|
||
"targets": [
|
||
{
|
||
"expr": "count by (job, instance, version) (prometheus_build_info{job=~\"$job\", instance=~\"$instance\"})",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "A",
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "max by (job, instance) (time() - process_start_time_seconds{job=~\"$job\", instance=~\"$instance\"})",
|
||
"format": "table",
|
||
"instant": true,
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "B",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Prometheus Stats",
|
||
"tooltip": {
|
||
"shared": true,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"transform": "table",
|
||
"type": "table",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Prometheus Stats",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"id": 2,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 6,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(rate(prometheus_target_sync_length_seconds_sum{job=~\"$job\",instance=~\"$instance\"}[5m])) by (scrape_job) * 1e3",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{scrape_job}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Target Sync",
|
||
"tooltip": {
|
||
"shared": true,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "ms",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 3,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 6,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(prometheus_sd_discovered_targets{job=~\"$job\",instance=~\"$instance\"})",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "Targets",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Targets",
|
||
"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": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Discovery",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"id": 4,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 4,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "rate(prometheus_target_interval_length_seconds_sum{job=~\"$job\",instance=~\"$instance\"}[5m]) / rate(prometheus_target_interval_length_seconds_count{job=~\"$job\",instance=~\"$instance\"}[5m]) * 1e3",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{interval}} configured",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Average Scrape Interval Duration",
|
||
"tooltip": {
|
||
"shared": true,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "ms",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 5,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 4,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum by (job) (rate(prometheus_target_scrapes_exceeded_sample_limit_total[1m]))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "exceeded sample limit: {{job}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum by (job) (rate(prometheus_target_scrapes_sample_duplicate_timestamp_total[1m]))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "duplicate timestamp: {{job}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum by (job) (rate(prometheus_target_scrapes_sample_out_of_bounds_total[1m]))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "out of bounds: {{job}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
},
|
||
{
|
||
"expr": "sum by (job) (rate(prometheus_target_scrapes_sample_out_of_order_total[1m]))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "out of order: {{job}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Scrape failures",
|
||
"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": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 6,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 4,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "rate(prometheus_tsdb_head_samples_appended_total{job=~\"$job\",instance=~\"$instance\"}[5m])",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{job}} {{instance}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Appended Samples",
|
||
"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": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Retrieval",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 7,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 6,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "prometheus_tsdb_head_series{job=~\"$job\",instance=~\"$instance\"}",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{job}} {{instance}} head series",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Head Series",
|
||
"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": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 8,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 6,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "prometheus_tsdb_head_chunks{job=~\"$job\",instance=~\"$instance\"}",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{job}} {{instance}} head chunks",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Head Chunks",
|
||
"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": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Storage",
|
||
"titleSize": "h6"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"height": "250px",
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 9,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 6,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "rate(prometheus_engine_query_duration_seconds_count{job=~\"$job\",instance=~\"$instance\",slice=\"inner_eval\"}[5m])",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{job}} {{instance}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Query Rate",
|
||
"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": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 10,
|
||
"id": 10,
|
||
"legend": {
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 0,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null as zero",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 6,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "max by (slice) (prometheus_engine_query_duration_seconds{quantile=\"0.9\",job=~\"$job\",instance=~\"$instance\"}) * 1e3",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{slice}}",
|
||
"legendLink": null,
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Stage Duration",
|
||
"tooltip": {
|
||
"shared": true,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "ms",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": false
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Query",
|
||
"titleSize": "h6"
|
||
}
|
||
],
|
||
"schemaVersion": 14,
|
||
"style": "dark",
|
||
"tags": [
|
||
|
||
],
|
||
"templating": {
|
||
"list": [
|
||
{
|
||
"current": {
|
||
"text": "Prometheus",
|
||
"value": "Prometheus"
|
||
},
|
||
"hide": 0,
|
||
"label": null,
|
||
"name": "datasource",
|
||
"options": [
|
||
|
||
],
|
||
"query": "prometheus",
|
||
"refresh": 1,
|
||
"regex": "",
|
||
"type": "datasource"
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"current": {
|
||
"selected": true,
|
||
"text": "All",
|
||
"value": "$__all"
|
||
},
|
||
"datasource": "$datasource",
|
||
"hide": 0,
|
||
"includeAll": true,
|
||
"label": "job",
|
||
"multi": true,
|
||
"name": "job",
|
||
"options": [
|
||
|
||
],
|
||
"query": "label_values(prometheus_build_info, job)",
|
||
"refresh": 1,
|
||
"regex": "",
|
||
"sort": 2,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "query",
|
||
"useTags": false
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"current": {
|
||
"selected": true,
|
||
"text": "All",
|
||
"value": "$__all"
|
||
},
|
||
"datasource": "$datasource",
|
||
"hide": 0,
|
||
"includeAll": true,
|
||
"label": "instance",
|
||
"multi": true,
|
||
"name": "instance",
|
||
"options": [
|
||
|
||
],
|
||
"query": "label_values(prometheus_build_info, instance)",
|
||
"refresh": 1,
|
||
"regex": "",
|
||
"sort": 2,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "query",
|
||
"useTags": false
|
||
}
|
||
]
|
||
},
|
||
"time": {
|
||
"from": "now-1h",
|
||
"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": "utc",
|
||
"title": "Prometheus",
|
||
"uid": "",
|
||
"version": 0
|
||
}
|
||
kind: ConfigMap
|
||
metadata:
|
||
name: grafana-dashboard-prometheus
|
||
namespace: monitoring
|
||
- apiVersion: v1
|
||
data:
|
||
proxy.json: |-
|
||
{
|
||
"__inputs": [
|
||
|
||
],
|
||
"__requires": [
|
||
|
||
],
|
||
"annotations": {
|
||
"list": [
|
||
|
||
]
|
||
},
|
||
"editable": false,
|
||
"gnetId": null,
|
||
"graphTooltip": 0,
|
||
"hideControls": false,
|
||
"id": null,
|
||
"links": [
|
||
|
||
],
|
||
"refresh": "",
|
||
"rows": [
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"panels": [
|
||
{
|
||
"cacheTimeout": null,
|
||
"colorBackground": false,
|
||
"colorValue": false,
|
||
"colors": [
|
||
"#299c46",
|
||
"rgba(237, 129, 40, 0.89)",
|
||
"#d44a3a"
|
||
],
|
||
"datasource": "$datasource",
|
||
"format": "none",
|
||
"gauge": {
|
||
"maxValue": 100,
|
||
"minValue": 0,
|
||
"show": false,
|
||
"thresholdLabels": false,
|
||
"thresholdMarkers": true
|
||
},
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 2,
|
||
"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": [
|
||
{
|
||
"expr": "sum(up{job=\"kube-proxy\"})",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": "",
|
||
"title": "Up",
|
||
"tooltip": {
|
||
"shared": false
|
||
},
|
||
"type": "singlestat",
|
||
"valueFontSize": "80%",
|
||
"valueMaps": [
|
||
{
|
||
"op": "=",
|
||
"text": "N/A",
|
||
"value": "null"
|
||
}
|
||
],
|
||
"valueName": "min"
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 3,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 5,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(rate(kubeproxy_sync_proxy_rules_duration_seconds_count{job=\"kube-proxy\", instance=~\"$instance\"}[5m]))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "rate",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Rules Sync Rate",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "ops",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "ops",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 4,
|
||
"legend": {
|
||
"alignAsTable": "true",
|
||
"avg": false,
|
||
"current": "true",
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": "true",
|
||
"show": "true",
|
||
"total": false,
|
||
"values": "true"
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 5,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "histogram_quantile(0.99,rate(kubeproxy_sync_proxy_rules_duration_seconds_bucket{job=\"kube-proxy\", instance=~\"$instance\"}[5m]))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Rule Sync Latency 99th Quantile",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "s",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "s",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": false,
|
||
"title": "Dashboard Row",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 5,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 6,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(rate(kubeproxy_network_programming_duration_seconds_count{job=\"kube-proxy\", instance=~\"$instance\"}[5m]))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "rate",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Network Programming Rate",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "ops",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "ops",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 6,
|
||
"legend": {
|
||
"alignAsTable": "true",
|
||
"avg": false,
|
||
"current": "true",
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": "true",
|
||
"show": "true",
|
||
"total": false,
|
||
"values": "true"
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 6,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "histogram_quantile(0.99, sum(rate(kubeproxy_network_programming_duration_seconds_bucket{job=\"kube-proxy\", instance=~\"$instance\"}[5m])) by (instance, le))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Network Programming Latency 99th Quantile",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "s",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "s",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": false,
|
||
"title": "Dashboard Row",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 7,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 4,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(rate(rest_client_requests_total{job=\"kube-proxy\", instance=~\"$instance\",code=~\"2..\"}[5m]))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "2xx",
|
||
"refId": "A"
|
||
},
|
||
{
|
||
"expr": "sum(rate(rest_client_requests_total{job=\"kube-proxy\", instance=~\"$instance\",code=~\"3..\"}[5m]))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "3xx",
|
||
"refId": "B"
|
||
},
|
||
{
|
||
"expr": "sum(rate(rest_client_requests_total{job=\"kube-proxy\", instance=~\"$instance\",code=~\"4..\"}[5m]))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "4xx",
|
||
"refId": "C"
|
||
},
|
||
{
|
||
"expr": "sum(rate(rest_client_requests_total{job=\"kube-proxy\", instance=~\"$instance\",code=~\"5..\"}[5m]))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "5xx",
|
||
"refId": "D"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Kube API Request Rate",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "ops",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "ops",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 8,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 8,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "histogram_quantile(0.99, sum(rate(rest_client_request_latency_seconds_bucket{job=\"kube-proxy\",instance=~\"$instance\",verb=\"POST\"}[5m])) by (verb, url, le))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{verb}} {{url}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Post Request Latency 99th Quantile",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "s",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "s",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": false,
|
||
"title": "Dashboard Row",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 9,
|
||
"legend": {
|
||
"alignAsTable": "true",
|
||
"avg": false,
|
||
"current": "true",
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": "true",
|
||
"show": "true",
|
||
"total": false,
|
||
"values": "true"
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "histogram_quantile(0.99, sum(rate(rest_client_request_latency_seconds_bucket{job=\"kube-proxy\", instance=~\"$instance\", verb=\"GET\"}[5m])) by (verb, url, le))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{verb}} {{url}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Get Request Latency 99th Quantile",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "s",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "s",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": false,
|
||
"title": "Dashboard Row",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 10,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 4,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "process_resident_memory_bytes{job=\"kube-proxy\",instance=~\"$instance\"}",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Memory",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"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": "bytes",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 11,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 4,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "rate(process_cpu_seconds_total{job=\"kube-proxy\",instance=~\"$instance\"}[5m])",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "CPU usage",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"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": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "short",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 12,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 4,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "go_goroutines{job=\"kube-proxy\",instance=~\"$instance\"}",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Goroutines",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"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",
|
||
"type": "row"
|
||
}
|
||
],
|
||
"schemaVersion": 14,
|
||
"style": "dark",
|
||
"tags": [
|
||
"kubernetes-mixin"
|
||
],
|
||
"templating": {
|
||
"list": [
|
||
{
|
||
"current": {
|
||
"text": "Prometheus",
|
||
"value": "Prometheus"
|
||
},
|
||
"hide": 0,
|
||
"label": null,
|
||
"name": "datasource",
|
||
"options": [
|
||
|
||
],
|
||
"query": "prometheus",
|
||
"refresh": 1,
|
||
"regex": "",
|
||
"type": "datasource"
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"current": {
|
||
|
||
},
|
||
"datasource": "$datasource",
|
||
"hide": 0,
|
||
"includeAll": true,
|
||
"label": null,
|
||
"multi": false,
|
||
"name": "instance",
|
||
"options": [
|
||
|
||
],
|
||
"query": "label_values(kubeproxy_network_programming_duration_seconds_bucket{job=\"kube-proxy\"}, instance)",
|
||
"refresh": 2,
|
||
"regex": "",
|
||
"sort": 1,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "query",
|
||
"useTags": false
|
||
}
|
||
]
|
||
},
|
||
"time": {
|
||
"from": "now-1h",
|
||
"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": "Kubernetes / Proxy",
|
||
"uid": "632e265de029684c40b21cb76bca4f94",
|
||
"version": 0
|
||
}
|
||
kind: ConfigMap
|
||
metadata:
|
||
name: grafana-dashboard-proxy
|
||
namespace: monitoring
|
||
- apiVersion: v1
|
||
data:
|
||
scheduler.json: |-
|
||
{
|
||
"__inputs": [
|
||
|
||
],
|
||
"__requires": [
|
||
|
||
],
|
||
"annotations": {
|
||
"list": [
|
||
|
||
]
|
||
},
|
||
"editable": false,
|
||
"gnetId": null,
|
||
"graphTooltip": 0,
|
||
"hideControls": false,
|
||
"id": null,
|
||
"links": [
|
||
|
||
],
|
||
"refresh": "",
|
||
"rows": [
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"panels": [
|
||
{
|
||
"cacheTimeout": null,
|
||
"colorBackground": false,
|
||
"colorValue": false,
|
||
"colors": [
|
||
"#299c46",
|
||
"rgba(237, 129, 40, 0.89)",
|
||
"#d44a3a"
|
||
],
|
||
"datasource": "$datasource",
|
||
"format": "none",
|
||
"gauge": {
|
||
"maxValue": 100,
|
||
"minValue": 0,
|
||
"show": false,
|
||
"thresholdLabels": false,
|
||
"thresholdMarkers": true
|
||
},
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 2,
|
||
"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": [
|
||
{
|
||
"expr": "sum(up{job=\"kube-scheduler\"})",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": "",
|
||
"title": "Up",
|
||
"tooltip": {
|
||
"shared": false
|
||
},
|
||
"type": "singlestat",
|
||
"valueFontSize": "80%",
|
||
"valueMaps": [
|
||
{
|
||
"op": "=",
|
||
"text": "N/A",
|
||
"value": "null"
|
||
}
|
||
],
|
||
"valueName": "min"
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 3,
|
||
"legend": {
|
||
"alignAsTable": "true",
|
||
"avg": false,
|
||
"current": "true",
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": "true",
|
||
"show": "true",
|
||
"total": false,
|
||
"values": "true"
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 5,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(rate(scheduler_e2e_scheduling_duration_seconds_count{job=\"kube-scheduler\", instance=~\"$instance\"}[5m])) by (instance)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}} e2e",
|
||
"refId": "A"
|
||
},
|
||
{
|
||
"expr": "sum(rate(scheduler_binding_duration_seconds_count{job=\"kube-scheduler\", instance=~\"$instance\"}[5m])) by (instance)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}} binding",
|
||
"refId": "B"
|
||
},
|
||
{
|
||
"expr": "sum(rate(scheduler_scheduling_algorithm_duration_seconds_count{job=\"kube-scheduler\", instance=~\"$instance\"}[5m])) by (instance)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}} scheduling algorithm",
|
||
"refId": "C"
|
||
},
|
||
{
|
||
"expr": "sum(rate(scheduler_volume_scheduling_duration_seconds_count{job=\"kube-scheduler\", instance=~\"$instance\"}[5m])) by (instance)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}} volume",
|
||
"refId": "D"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Scheduling Rate",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "ops",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "ops",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 4,
|
||
"legend": {
|
||
"alignAsTable": "true",
|
||
"avg": false,
|
||
"current": "true",
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": "true",
|
||
"show": "true",
|
||
"total": false,
|
||
"values": "true"
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 5,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "histogram_quantile(0.99, sum(rate(scheduler_e2e_scheduling_duration_seconds_bucket{job=\"kube-scheduler\",instance=~\"$instance\"}[5m])) by (instance, le))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}} e2e",
|
||
"refId": "A"
|
||
},
|
||
{
|
||
"expr": "histogram_quantile(0.99, sum(rate(scheduler_binding_duration_seconds_bucket{job=\"kube-scheduler\",instance=~\"$instance\"}[5m])) by (instance, le))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}} binding",
|
||
"refId": "B"
|
||
},
|
||
{
|
||
"expr": "histogram_quantile(0.99, sum(rate(scheduler_scheduling_algorithm_duration_seconds_bucket{job=\"kube-scheduler\",instance=~\"$instance\"}[5m])) by (instance, le))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}} scheduling algorithm",
|
||
"refId": "C"
|
||
},
|
||
{
|
||
"expr": "histogram_quantile(0.99, sum(rate(scheduler_volume_scheduling_duration_seconds_bucket{job=\"kube-scheduler\",instance=~\"$instance\"}[5m])) by (instance, le))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}} volume",
|
||
"refId": "D"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Scheduling latency 99th Quantile",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "s",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "s",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": false,
|
||
"title": "Dashboard Row",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 5,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 4,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sum(rate(rest_client_requests_total{job=\"kube-scheduler\", instance=~\"$instance\",code=~\"2..\"}[5m]))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "2xx",
|
||
"refId": "A"
|
||
},
|
||
{
|
||
"expr": "sum(rate(rest_client_requests_total{job=\"kube-scheduler\", instance=~\"$instance\",code=~\"3..\"}[5m]))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "3xx",
|
||
"refId": "B"
|
||
},
|
||
{
|
||
"expr": "sum(rate(rest_client_requests_total{job=\"kube-scheduler\", instance=~\"$instance\",code=~\"4..\"}[5m]))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "4xx",
|
||
"refId": "C"
|
||
},
|
||
{
|
||
"expr": "sum(rate(rest_client_requests_total{job=\"kube-scheduler\", instance=~\"$instance\",code=~\"5..\"}[5m]))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "5xx",
|
||
"refId": "D"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Kube API Request Rate",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "ops",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "ops",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 6,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 8,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "histogram_quantile(0.99, sum(rate(rest_client_request_latency_seconds_bucket{job=\"kube-scheduler\", instance=~\"$instance\", verb=\"POST\"}[5m])) by (verb, url, le))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{verb}} {{url}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Post Request Latency 99th Quantile",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "s",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "s",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": false,
|
||
"title": "Dashboard Row",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 7,
|
||
"legend": {
|
||
"alignAsTable": "true",
|
||
"avg": false,
|
||
"current": "true",
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": "true",
|
||
"show": "true",
|
||
"total": false,
|
||
"values": "true"
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "histogram_quantile(0.99, sum(rate(rest_client_request_latency_seconds_bucket{job=\"kube-scheduler\", instance=~\"$instance\", verb=\"GET\"}[5m])) by (verb, url, le))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{verb}} {{url}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Get Request Latency 99th Quantile",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"sort": 0,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "s",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "s",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": false,
|
||
"title": "Dashboard Row",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 8,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 4,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "process_resident_memory_bytes{job=\"kube-scheduler\", instance=~\"$instance\"}",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Memory",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"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": "bytes",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": null,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 9,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 4,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "rate(process_cpu_seconds_total{job=\"kube-scheduler\", instance=~\"$instance\"}[5m])",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "CPU usage",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"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": "bytes",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 10,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 4,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "go_goroutines{job=\"kube-scheduler\",instance=~\"$instance\"}",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "{{instance}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Goroutines",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"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",
|
||
"type": "row"
|
||
}
|
||
],
|
||
"schemaVersion": 14,
|
||
"style": "dark",
|
||
"tags": [
|
||
"kubernetes-mixin"
|
||
],
|
||
"templating": {
|
||
"list": [
|
||
{
|
||
"current": {
|
||
"text": "Prometheus",
|
||
"value": "Prometheus"
|
||
},
|
||
"hide": 0,
|
||
"label": null,
|
||
"name": "datasource",
|
||
"options": [
|
||
|
||
],
|
||
"query": "prometheus",
|
||
"refresh": 1,
|
||
"regex": "",
|
||
"type": "datasource"
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"current": {
|
||
|
||
},
|
||
"datasource": "$datasource",
|
||
"hide": 0,
|
||
"includeAll": true,
|
||
"label": null,
|
||
"multi": false,
|
||
"name": "instance",
|
||
"options": [
|
||
|
||
],
|
||
"query": "label_values(process_cpu_seconds_total{job=\"kube-scheduler\"}, instance)",
|
||
"refresh": 2,
|
||
"regex": "",
|
||
"sort": 1,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "query",
|
||
"useTags": false
|
||
}
|
||
]
|
||
},
|
||
"time": {
|
||
"from": "now-1h",
|
||
"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": "Kubernetes / Scheduler",
|
||
"uid": "2e6b6a3b4bddf1427b3a55aa1311c656",
|
||
"version": 0
|
||
}
|
||
kind: ConfigMap
|
||
metadata:
|
||
name: grafana-dashboard-scheduler
|
||
namespace: monitoring
|
||
- apiVersion: v1
|
||
data:
|
||
statefulset.json: |-
|
||
{
|
||
"__inputs": [
|
||
|
||
],
|
||
"__requires": [
|
||
|
||
],
|
||
"annotations": {
|
||
"list": [
|
||
|
||
]
|
||
},
|
||
"editable": false,
|
||
"gnetId": null,
|
||
"graphTooltip": 0,
|
||
"hideControls": false,
|
||
"id": null,
|
||
"links": [
|
||
|
||
],
|
||
"refresh": "",
|
||
"rows": [
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"panels": [
|
||
{
|
||
"cacheTimeout": null,
|
||
"colorBackground": false,
|
||
"colorValue": false,
|
||
"colors": [
|
||
"#299c46",
|
||
"rgba(237, 129, 40, 0.89)",
|
||
"#d44a3a"
|
||
],
|
||
"datasource": "$datasource",
|
||
"format": "none",
|
||
"gauge": {
|
||
"maxValue": 100,
|
||
"minValue": 0,
|
||
"show": false,
|
||
"thresholdLabels": false,
|
||
"thresholdMarkers": true
|
||
},
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 2,
|
||
"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": 4,
|
||
"sparkline": {
|
||
"fillColor": "rgba(31, 118, 189, 0.18)",
|
||
"lineColor": "rgb(31, 120, 193)",
|
||
"show": true
|
||
},
|
||
"tableColumn": "",
|
||
"targets": [
|
||
{
|
||
"expr": "sum(rate(container_cpu_usage_seconds_total{job=\"kubelet\", cluster=\"$cluster\", namespace=\"$namespace\", pod=~\"$statefulset.*\"}[3m]))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": "",
|
||
"title": "CPU",
|
||
"tooltip": {
|
||
"shared": false
|
||
},
|
||
"type": "singlestat",
|
||
"valueFontSize": "80%",
|
||
"valueMaps": [
|
||
{
|
||
"op": "=",
|
||
"text": "0",
|
||
"value": "null"
|
||
}
|
||
],
|
||
"valueName": "current"
|
||
},
|
||
{
|
||
"cacheTimeout": null,
|
||
"colorBackground": false,
|
||
"colorValue": false,
|
||
"colors": [
|
||
"#299c46",
|
||
"rgba(237, 129, 40, 0.89)",
|
||
"#d44a3a"
|
||
],
|
||
"datasource": "$datasource",
|
||
"format": "none",
|
||
"gauge": {
|
||
"maxValue": 100,
|
||
"minValue": 0,
|
||
"show": false,
|
||
"thresholdLabels": false,
|
||
"thresholdMarkers": true
|
||
},
|
||
"gridPos": {
|
||
|
||
},
|
||
"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": "GB",
|
||
"postfixFontSize": "50%",
|
||
"prefix": "",
|
||
"prefixFontSize": "50%",
|
||
"rangeMaps": [
|
||
{
|
||
"from": "null",
|
||
"text": "N/A",
|
||
"to": "null"
|
||
}
|
||
],
|
||
"span": 4,
|
||
"sparkline": {
|
||
"fillColor": "rgba(31, 118, 189, 0.18)",
|
||
"lineColor": "rgb(31, 120, 193)",
|
||
"show": true
|
||
},
|
||
"tableColumn": "",
|
||
"targets": [
|
||
{
|
||
"expr": "sum(container_memory_usage_bytes{job=\"kubelet\", cluster=\"$cluster\", namespace=\"$namespace\", pod=~\"$statefulset.*\"}) / 1024^3",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": "",
|
||
"title": "Memory",
|
||
"tooltip": {
|
||
"shared": false
|
||
},
|
||
"type": "singlestat",
|
||
"valueFontSize": "80%",
|
||
"valueMaps": [
|
||
{
|
||
"op": "=",
|
||
"text": "0",
|
||
"value": "null"
|
||
}
|
||
],
|
||
"valueName": "current"
|
||
},
|
||
{
|
||
"cacheTimeout": null,
|
||
"colorBackground": false,
|
||
"colorValue": false,
|
||
"colors": [
|
||
"#299c46",
|
||
"rgba(237, 129, 40, 0.89)",
|
||
"#d44a3a"
|
||
],
|
||
"datasource": "$datasource",
|
||
"format": "none",
|
||
"gauge": {
|
||
"maxValue": 100,
|
||
"minValue": 0,
|
||
"show": false,
|
||
"thresholdLabels": false,
|
||
"thresholdMarkers": true
|
||
},
|
||
"gridPos": {
|
||
|
||
},
|
||
"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": "Bps",
|
||
"postfixFontSize": "50%",
|
||
"prefix": "",
|
||
"prefixFontSize": "50%",
|
||
"rangeMaps": [
|
||
{
|
||
"from": "null",
|
||
"text": "N/A",
|
||
"to": "null"
|
||
}
|
||
],
|
||
"span": 4,
|
||
"sparkline": {
|
||
"fillColor": "rgba(31, 118, 189, 0.18)",
|
||
"lineColor": "rgb(31, 120, 193)",
|
||
"show": true
|
||
},
|
||
"tableColumn": "",
|
||
"targets": [
|
||
{
|
||
"expr": "sum(rate(container_network_transmit_bytes_total{job=\"kubelet\", cluster=\"$cluster\", namespace=\"$namespace\", pod=~\"$statefulset.*\"}[3m])) + sum(rate(container_network_receive_bytes_total{cluster=\"$cluster\", namespace=\"$namespace\",pod=~\"$statefulset.*\"}[3m]))",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": "",
|
||
"title": "Network",
|
||
"tooltip": {
|
||
"shared": false
|
||
},
|
||
"type": "singlestat",
|
||
"valueFontSize": "80%",
|
||
"valueMaps": [
|
||
{
|
||
"op": "=",
|
||
"text": "0",
|
||
"value": "null"
|
||
}
|
||
],
|
||
"valueName": "current"
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": false,
|
||
"title": "Dashboard Row",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"height": "100px",
|
||
"panels": [
|
||
{
|
||
"cacheTimeout": null,
|
||
"colorBackground": false,
|
||
"colorValue": false,
|
||
"colors": [
|
||
"#299c46",
|
||
"rgba(237, 129, 40, 0.89)",
|
||
"#d44a3a"
|
||
],
|
||
"datasource": "$datasource",
|
||
"format": "none",
|
||
"gauge": {
|
||
"maxValue": 100,
|
||
"minValue": 0,
|
||
"show": false,
|
||
"thresholdLabels": false,
|
||
"thresholdMarkers": true
|
||
},
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 5,
|
||
"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": 3,
|
||
"sparkline": {
|
||
"fillColor": "rgba(31, 118, 189, 0.18)",
|
||
"full": false,
|
||
"lineColor": "rgb(31, 120, 193)",
|
||
"show": false
|
||
},
|
||
"tableColumn": "",
|
||
"targets": [
|
||
{
|
||
"expr": "max(kube_statefulset_replicas{job=\"kube-state-metrics\", cluster=\"$cluster\", namespace=\"$namespace\", statefulset=\"$statefulset\"}) without (instance, pod)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": "",
|
||
"title": "Desired Replicas",
|
||
"tooltip": {
|
||
"shared": false
|
||
},
|
||
"type": "singlestat",
|
||
"valueFontSize": "80%",
|
||
"valueMaps": [
|
||
{
|
||
"op": "=",
|
||
"text": "0",
|
||
"value": "null"
|
||
}
|
||
],
|
||
"valueName": "current"
|
||
},
|
||
{
|
||
"cacheTimeout": null,
|
||
"colorBackground": false,
|
||
"colorValue": false,
|
||
"colors": [
|
||
"#299c46",
|
||
"rgba(237, 129, 40, 0.89)",
|
||
"#d44a3a"
|
||
],
|
||
"datasource": "$datasource",
|
||
"format": "none",
|
||
"gauge": {
|
||
"maxValue": 100,
|
||
"minValue": 0,
|
||
"show": false,
|
||
"thresholdLabels": false,
|
||
"thresholdMarkers": true
|
||
},
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 6,
|
||
"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": 3,
|
||
"sparkline": {
|
||
"fillColor": "rgba(31, 118, 189, 0.18)",
|
||
"full": false,
|
||
"lineColor": "rgb(31, 120, 193)",
|
||
"show": false
|
||
},
|
||
"tableColumn": "",
|
||
"targets": [
|
||
{
|
||
"expr": "min(kube_statefulset_status_replicas_current{job=\"kube-state-metrics\", cluster=\"$cluster\", namespace=\"$namespace\", statefulset=\"$statefulset\"}) without (instance, pod)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": "",
|
||
"title": "Replicas of current version",
|
||
"tooltip": {
|
||
"shared": false
|
||
},
|
||
"type": "singlestat",
|
||
"valueFontSize": "80%",
|
||
"valueMaps": [
|
||
{
|
||
"op": "=",
|
||
"text": "0",
|
||
"value": "null"
|
||
}
|
||
],
|
||
"valueName": "current"
|
||
},
|
||
{
|
||
"cacheTimeout": null,
|
||
"colorBackground": false,
|
||
"colorValue": false,
|
||
"colors": [
|
||
"#299c46",
|
||
"rgba(237, 129, 40, 0.89)",
|
||
"#d44a3a"
|
||
],
|
||
"datasource": "$datasource",
|
||
"format": "none",
|
||
"gauge": {
|
||
"maxValue": 100,
|
||
"minValue": 0,
|
||
"show": false,
|
||
"thresholdLabels": false,
|
||
"thresholdMarkers": true
|
||
},
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 7,
|
||
"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": 3,
|
||
"sparkline": {
|
||
"fillColor": "rgba(31, 118, 189, 0.18)",
|
||
"full": false,
|
||
"lineColor": "rgb(31, 120, 193)",
|
||
"show": false
|
||
},
|
||
"tableColumn": "",
|
||
"targets": [
|
||
{
|
||
"expr": "max(kube_statefulset_status_observed_generation{job=\"kube-state-metrics\", cluster=\"$cluster\", namespace=\"$namespace\", statefulset=\"$statefulset\"}) without (instance, pod)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": "",
|
||
"title": "Observed Generation",
|
||
"tooltip": {
|
||
"shared": false
|
||
},
|
||
"type": "singlestat",
|
||
"valueFontSize": "80%",
|
||
"valueMaps": [
|
||
{
|
||
"op": "=",
|
||
"text": "0",
|
||
"value": "null"
|
||
}
|
||
],
|
||
"valueName": "current"
|
||
},
|
||
{
|
||
"cacheTimeout": null,
|
||
"colorBackground": false,
|
||
"colorValue": false,
|
||
"colors": [
|
||
"#299c46",
|
||
"rgba(237, 129, 40, 0.89)",
|
||
"#d44a3a"
|
||
],
|
||
"datasource": "$datasource",
|
||
"format": "none",
|
||
"gauge": {
|
||
"maxValue": 100,
|
||
"minValue": 0,
|
||
"show": false,
|
||
"thresholdLabels": false,
|
||
"thresholdMarkers": true
|
||
},
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 8,
|
||
"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": 3,
|
||
"sparkline": {
|
||
"fillColor": "rgba(31, 118, 189, 0.18)",
|
||
"full": false,
|
||
"lineColor": "rgb(31, 120, 193)",
|
||
"show": false
|
||
},
|
||
"tableColumn": "",
|
||
"targets": [
|
||
{
|
||
"expr": "max(kube_statefulset_metadata_generation{job=\"kube-state-metrics\", statefulset=\"$statefulset\", cluster=\"$cluster\", namespace=\"$namespace\"}) without (instance, pod)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"thresholds": "",
|
||
"title": "Metadata Generation",
|
||
"tooltip": {
|
||
"shared": false
|
||
},
|
||
"type": "singlestat",
|
||
"valueFontSize": "80%",
|
||
"valueMaps": [
|
||
{
|
||
"op": "=",
|
||
"text": "0",
|
||
"value": "null"
|
||
}
|
||
],
|
||
"valueName": "current"
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": false,
|
||
"title": "Dashboard Row",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "$datasource",
|
||
"fill": 1,
|
||
"gridPos": {
|
||
|
||
},
|
||
"id": 9,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 1,
|
||
"links": [
|
||
|
||
],
|
||
"nullPointMode": "null",
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"stack": false,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "max(kube_statefulset_replicas{job=\"kube-state-metrics\", statefulset=\"$statefulset\", cluster=\"$cluster\", namespace=\"$namespace\"}) without (instance, pod)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "replicas specified",
|
||
"refId": "A"
|
||
},
|
||
{
|
||
"expr": "max(kube_statefulset_status_replicas{job=\"kube-state-metrics\", statefulset=\"$statefulset\", cluster=\"$cluster\", namespace=\"$namespace\"}) without (instance, pod)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "replicas created",
|
||
"refId": "B"
|
||
},
|
||
{
|
||
"expr": "min(kube_statefulset_status_replicas_ready{job=\"kube-state-metrics\", statefulset=\"$statefulset\", cluster=\"$cluster\", namespace=\"$namespace\"}) without (instance, pod)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "ready",
|
||
"refId": "C"
|
||
},
|
||
{
|
||
"expr": "min(kube_statefulset_status_replicas_current{job=\"kube-state-metrics\", statefulset=\"$statefulset\", cluster=\"$cluster\", namespace=\"$namespace\"}) without (instance, pod)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "replicas of current version",
|
||
"refId": "D"
|
||
},
|
||
{
|
||
"expr": "min(kube_statefulset_status_replicas_updated{job=\"kube-state-metrics\", statefulset=\"$statefulset\", cluster=\"$cluster\", namespace=\"$namespace\"}) without (instance, pod)",
|
||
"format": "time_series",
|
||
"intervalFactor": 2,
|
||
"legendFormat": "updated",
|
||
"refId": "E"
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Replicas",
|
||
"tooltip": {
|
||
"shared": false,
|
||
"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",
|
||
"type": "row"
|
||
}
|
||
],
|
||
"schemaVersion": 14,
|
||
"style": "dark",
|
||
"tags": [
|
||
"kubernetes-mixin"
|
||
],
|
||
"templating": {
|
||
"list": [
|
||
{
|
||
"current": {
|
||
"text": "Prometheus",
|
||
"value": "Prometheus"
|
||
},
|
||
"hide": 0,
|
||
"label": null,
|
||
"name": "datasource",
|
||
"options": [
|
||
|
||
],
|
||
"query": "prometheus",
|
||
"refresh": 1,
|
||
"regex": "",
|
||
"type": "datasource"
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"current": {
|
||
|
||
},
|
||
"datasource": "$datasource",
|
||
"hide": 2,
|
||
"includeAll": false,
|
||
"label": "cluster",
|
||
"multi": false,
|
||
"name": "cluster",
|
||
"options": [
|
||
|
||
],
|
||
"query": "label_values(kube_statefulset_metadata_generation, cluster)",
|
||
"refresh": 2,
|
||
"regex": "",
|
||
"sort": 1,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "query",
|
||
"useTags": false
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"current": {
|
||
|
||
},
|
||
"datasource": "$datasource",
|
||
"hide": 0,
|
||
"includeAll": false,
|
||
"label": "Namespace",
|
||
"multi": false,
|
||
"name": "namespace",
|
||
"options": [
|
||
|
||
],
|
||
"query": "label_values(kube_statefulset_metadata_generation{job=\"kube-state-metrics\", cluster=\"$cluster\"}, namespace)",
|
||
"refresh": 2,
|
||
"regex": "",
|
||
"sort": 1,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "query",
|
||
"useTags": false
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"current": {
|
||
|
||
},
|
||
"datasource": "$datasource",
|
||
"hide": 0,
|
||
"includeAll": false,
|
||
"label": "Name",
|
||
"multi": false,
|
||
"name": "statefulset",
|
||
"options": [
|
||
|
||
],
|
||
"query": "label_values(kube_statefulset_metadata_generation{job=\"kube-state-metrics\", cluster=\"$cluster\", namespace=\"$namespace\"}, statefulset)",
|
||
"refresh": 2,
|
||
"regex": "",
|
||
"sort": 1,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "query",
|
||
"useTags": false
|
||
}
|
||
]
|
||
},
|
||
"time": {
|
||
"from": "now-1h",
|
||
"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": "Kubernetes / StatefulSets",
|
||
"uid": "a31c1f46e6f727cb37c0d731a7245005",
|
||
"version": 0
|
||
}
|
||
kind: ConfigMap
|
||
metadata:
|
||
name: grafana-dashboard-statefulset
|
||
namespace: monitoring
|
||
- apiVersion: v1
|
||
data:
|
||
workload-total.json: |-
|
||
{
|
||
"__inputs": [
|
||
|
||
],
|
||
"__requires": [
|
||
|
||
],
|
||
"annotations": {
|
||
"list": [
|
||
{
|
||
"builtIn": 1,
|
||
"datasource": "-- Grafana --",
|
||
"enable": true,
|
||
"hide": true,
|
||
"iconColor": "rgba(0, 211, 255, 1)",
|
||
"name": "Annotations & Alerts",
|
||
"type": "dashboard"
|
||
}
|
||
]
|
||
},
|
||
"editable": true,
|
||
"gnetId": null,
|
||
"graphTooltip": 0,
|
||
"hideControls": false,
|
||
"id": null,
|
||
"links": [
|
||
|
||
],
|
||
"panels": [
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"gridPos": {
|
||
"h": 1,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 0
|
||
},
|
||
"id": 2,
|
||
"panels": [
|
||
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Current Bandwidth",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"breakpoint": "50%",
|
||
"cacheTimeout": null,
|
||
"combine": {
|
||
"label": "Others",
|
||
"threshold": 0
|
||
},
|
||
"datasource": "prometheus",
|
||
"fontSize": "80%",
|
||
"format": "Bps",
|
||
"gridPos": {
|
||
"h": 9,
|
||
"w": 12,
|
||
"x": 0,
|
||
"y": 1
|
||
},
|
||
"id": 3,
|
||
"interval": null,
|
||
"legend": {
|
||
"percentage": true,
|
||
"percentageDecimals": null,
|
||
"show": true,
|
||
"values": true
|
||
},
|
||
"legendType": "Right side",
|
||
"maxDataPoints": 3,
|
||
"nullPointMode": "connected",
|
||
"pieType": "donut",
|
||
"targets": [
|
||
{
|
||
"expr": "sort_desc(sum(irate(container_network_receive_bytes_total{namespace=~\"$namespace\"}[$interval:$resolution])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{namespace=~\"$namespace\", workload=~\"$workload\", workload_type=\"$type\"}) by (pod))\n",
|
||
"format": "time_series",
|
||
"instant": null,
|
||
"intervalFactor": 1,
|
||
"legendFormat": "{{pod}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"title": "Current Rate of Bytes Received",
|
||
"type": "grafana-piechart-panel",
|
||
"valueName": "current"
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"breakpoint": "50%",
|
||
"cacheTimeout": null,
|
||
"combine": {
|
||
"label": "Others",
|
||
"threshold": 0
|
||
},
|
||
"datasource": "prometheus",
|
||
"fontSize": "80%",
|
||
"format": "Bps",
|
||
"gridPos": {
|
||
"h": 9,
|
||
"w": 12,
|
||
"x": 12,
|
||
"y": 1
|
||
},
|
||
"id": 4,
|
||
"interval": null,
|
||
"legend": {
|
||
"percentage": true,
|
||
"percentageDecimals": null,
|
||
"show": true,
|
||
"values": true
|
||
},
|
||
"legendType": "Right side",
|
||
"maxDataPoints": 3,
|
||
"nullPointMode": "connected",
|
||
"pieType": "donut",
|
||
"targets": [
|
||
{
|
||
"expr": "sort_desc(sum(irate(container_network_transmit_bytes_total{namespace=~\"$namespace\"}[$interval:$resolution])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{namespace=~\"$namespace\", workload=~\"$workload\", workload_type=\"$type\"}) by (pod))\n",
|
||
"format": "time_series",
|
||
"instant": null,
|
||
"intervalFactor": 1,
|
||
"legendFormat": "{{pod}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"title": "Current Rate of Bytes Transmitted",
|
||
"type": "grafana-piechart-panel",
|
||
"valueName": "current"
|
||
},
|
||
{
|
||
"collapse": true,
|
||
"collapsed": true,
|
||
"gridPos": {
|
||
"h": 1,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 10
|
||
},
|
||
"id": 5,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"breakpoint": "50%",
|
||
"cacheTimeout": null,
|
||
"combine": {
|
||
"label": "Others",
|
||
"threshold": 0
|
||
},
|
||
"datasource": "prometheus",
|
||
"fontSize": "80%",
|
||
"format": "Bps",
|
||
"gridPos": {
|
||
"h": 9,
|
||
"w": 12,
|
||
"x": 0,
|
||
"y": 11
|
||
},
|
||
"id": 6,
|
||
"interval": null,
|
||
"legend": {
|
||
"percentage": true,
|
||
"percentageDecimals": null,
|
||
"show": true,
|
||
"values": true
|
||
},
|
||
"legendType": "Right side",
|
||
"maxDataPoints": 3,
|
||
"nullPointMode": "connected",
|
||
"pieType": "donut",
|
||
"targets": [
|
||
{
|
||
"expr": "sort_desc(avg(irate(container_network_receive_bytes_total{namespace=~\"$namespace\"}[$interval:$resolution])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{namespace=~\"$namespace\", workload=~\"$workload\", workload_type=\"$type\"}) by (pod))\n",
|
||
"format": "time_series",
|
||
"instant": null,
|
||
"intervalFactor": 1,
|
||
"legendFormat": "{{pod}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"title": "Average Rate of Bytes Received",
|
||
"type": "grafana-piechart-panel",
|
||
"valueName": "current"
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"breakpoint": "50%",
|
||
"cacheTimeout": null,
|
||
"combine": {
|
||
"label": "Others",
|
||
"threshold": 0
|
||
},
|
||
"datasource": "prometheus",
|
||
"fontSize": "80%",
|
||
"format": "Bps",
|
||
"gridPos": {
|
||
"h": 9,
|
||
"w": 12,
|
||
"x": 12,
|
||
"y": 11
|
||
},
|
||
"id": 7,
|
||
"interval": null,
|
||
"legend": {
|
||
"percentage": true,
|
||
"percentageDecimals": null,
|
||
"show": true,
|
||
"values": true
|
||
},
|
||
"legendType": "Right side",
|
||
"maxDataPoints": 3,
|
||
"nullPointMode": "connected",
|
||
"pieType": "donut",
|
||
"targets": [
|
||
{
|
||
"expr": "sort_desc(avg(irate(container_network_transmit_bytes_total{namespace=~\"$namespace\"}[$interval:$resolution])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{namespace=~\"$namespace\", workload=~\"$workload\", workload_type=\"$type\"}) by (pod))\n",
|
||
"format": "time_series",
|
||
"instant": null,
|
||
"intervalFactor": 1,
|
||
"legendFormat": "{{pod}}",
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"title": "Average Rate of Bytes Transmitted",
|
||
"type": "grafana-piechart-panel",
|
||
"valueName": "current"
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Average Bandwidth",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"collapse": false,
|
||
"collapsed": false,
|
||
"gridPos": {
|
||
"h": 1,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 11
|
||
},
|
||
"id": 8,
|
||
"panels": [
|
||
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Bandwidth HIstory",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "prometheus",
|
||
"fill": 2,
|
||
"gridPos": {
|
||
"h": 9,
|
||
"w": 12,
|
||
"x": 0,
|
||
"y": 12
|
||
},
|
||
"id": 9,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"hideEmpty": true,
|
||
"hideZero": true,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [
|
||
|
||
],
|
||
"minSpan": 12,
|
||
"nullPointMode": "connected",
|
||
"paceLength": 10,
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sort_desc(sum(irate(container_network_receive_bytes_total{namespace=~\"$namespace\"}[$interval:$resolution])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{namespace=~\"$namespace\", workload=~\"$workload\", workload_type=\"$type\"}) by (pod))\n",
|
||
"format": "time_series",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "{{pod}}",
|
||
"refId": "A",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Receive Bandwidth",
|
||
"tooltip": {
|
||
"shared": true,
|
||
"sort": 2,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "prometheus",
|
||
"fill": 2,
|
||
"gridPos": {
|
||
"h": 9,
|
||
"w": 12,
|
||
"x": 12,
|
||
"y": 12
|
||
},
|
||
"id": 10,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"hideEmpty": true,
|
||
"hideZero": true,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [
|
||
|
||
],
|
||
"minSpan": 12,
|
||
"nullPointMode": "connected",
|
||
"paceLength": 10,
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sort_desc(sum(irate(container_network_transmit_bytes_total{namespace=~\"$namespace\"}[$interval:$resolution])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{namespace=~\"$namespace\", workload=~\"$workload\", workload_type=\"$type\"}) by (pod))\n",
|
||
"format": "time_series",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "{{pod}}",
|
||
"refId": "A",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Transmit Bandwidth",
|
||
"tooltip": {
|
||
"shared": true,
|
||
"sort": 2,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "Bps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"collapse": true,
|
||
"collapsed": true,
|
||
"gridPos": {
|
||
"h": 1,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 21
|
||
},
|
||
"id": 11,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "prometheus",
|
||
"fill": 2,
|
||
"gridPos": {
|
||
"h": 9,
|
||
"w": 12,
|
||
"x": 0,
|
||
"y": 22
|
||
},
|
||
"id": 12,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"hideEmpty": true,
|
||
"hideZero": true,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [
|
||
|
||
],
|
||
"minSpan": 12,
|
||
"nullPointMode": "connected",
|
||
"paceLength": 10,
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sort_desc(sum(irate(container_network_receive_packets_total{namespace=~\"$namespace\"}[$interval:$resolution])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{namespace=~\"$namespace\", workload=~\"$workload\", workload_type=\"$type\"}) by (pod))\n",
|
||
"format": "time_series",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "{{pod}}",
|
||
"refId": "A",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Rate of Received Packets",
|
||
"tooltip": {
|
||
"shared": true,
|
||
"sort": 2,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "pps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "pps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "prometheus",
|
||
"fill": 2,
|
||
"gridPos": {
|
||
"h": 9,
|
||
"w": 12,
|
||
"x": 12,
|
||
"y": 22
|
||
},
|
||
"id": 13,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"hideEmpty": true,
|
||
"hideZero": true,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [
|
||
|
||
],
|
||
"minSpan": 12,
|
||
"nullPointMode": "connected",
|
||
"paceLength": 10,
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sort_desc(sum(irate(container_network_transmit_packets_total{namespace=~\"$namespace\"}[$interval:$resolution])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{namespace=~\"$namespace\", workload=~\"$workload\", workload_type=\"$type\"}) by (pod))\n",
|
||
"format": "time_series",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "{{pod}}",
|
||
"refId": "A",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Rate of Transmitted Packets",
|
||
"tooltip": {
|
||
"shared": true,
|
||
"sort": 2,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "pps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "pps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Packets",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
},
|
||
{
|
||
"collapse": true,
|
||
"collapsed": true,
|
||
"gridPos": {
|
||
"h": 1,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 22
|
||
},
|
||
"id": 14,
|
||
"panels": [
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "prometheus",
|
||
"fill": 2,
|
||
"gridPos": {
|
||
"h": 9,
|
||
"w": 12,
|
||
"x": 0,
|
||
"y": 23
|
||
},
|
||
"id": 15,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"hideEmpty": true,
|
||
"hideZero": true,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [
|
||
|
||
],
|
||
"minSpan": 12,
|
||
"nullPointMode": "connected",
|
||
"paceLength": 10,
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sort_desc(sum(irate(container_network_receive_packets_dropped_total{namespace=~\"$namespace\"}[$interval:$resolution])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{namespace=~\"$namespace\", workload=~\"$workload\", workload_type=\"$type\"}) by (pod))\n",
|
||
"format": "time_series",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "{{pod}}",
|
||
"refId": "A",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Rate of Received Packets Dropped",
|
||
"tooltip": {
|
||
"shared": true,
|
||
"sort": 2,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "pps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "pps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"aliasColors": {
|
||
|
||
},
|
||
"bars": false,
|
||
"dashLength": 10,
|
||
"dashes": false,
|
||
"datasource": "prometheus",
|
||
"fill": 2,
|
||
"gridPos": {
|
||
"h": 9,
|
||
"w": 12,
|
||
"x": 12,
|
||
"y": 23
|
||
},
|
||
"id": 16,
|
||
"legend": {
|
||
"alignAsTable": false,
|
||
"avg": false,
|
||
"current": false,
|
||
"hideEmpty": true,
|
||
"hideZero": true,
|
||
"max": false,
|
||
"min": false,
|
||
"rightSide": false,
|
||
"show": true,
|
||
"total": false,
|
||
"values": false
|
||
},
|
||
"lines": true,
|
||
"linewidth": 2,
|
||
"links": [
|
||
|
||
],
|
||
"minSpan": 12,
|
||
"nullPointMode": "connected",
|
||
"paceLength": 10,
|
||
"percentage": false,
|
||
"pointradius": 5,
|
||
"points": false,
|
||
"renderer": "flot",
|
||
"repeat": null,
|
||
"seriesOverrides": [
|
||
|
||
],
|
||
"spaceLength": 10,
|
||
"span": 12,
|
||
"stack": true,
|
||
"steppedLine": false,
|
||
"targets": [
|
||
{
|
||
"expr": "sort_desc(sum(irate(container_network_transmit_packets_dropped_total{namespace=~\"$namespace\"}[$interval:$resolution])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{namespace=~\"$namespace\", workload=~\"$workload\", workload_type=\"$type\"}) by (pod))\n",
|
||
"format": "time_series",
|
||
"intervalFactor": 1,
|
||
"legendFormat": "{{pod}}",
|
||
"refId": "A",
|
||
"step": 10
|
||
}
|
||
],
|
||
"thresholds": [
|
||
|
||
],
|
||
"timeFrom": null,
|
||
"timeShift": null,
|
||
"title": "Rate of Transmitted Packets Dropped",
|
||
"tooltip": {
|
||
"shared": true,
|
||
"sort": 2,
|
||
"value_type": "individual"
|
||
},
|
||
"type": "graph",
|
||
"xaxis": {
|
||
"buckets": null,
|
||
"mode": "time",
|
||
"name": null,
|
||
"show": true,
|
||
"values": [
|
||
|
||
]
|
||
},
|
||
"yaxes": [
|
||
{
|
||
"format": "pps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
},
|
||
{
|
||
"format": "pps",
|
||
"label": null,
|
||
"logBase": 1,
|
||
"max": null,
|
||
"min": 0,
|
||
"show": true
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"repeat": null,
|
||
"repeatIteration": null,
|
||
"repeatRowId": null,
|
||
"showTitle": true,
|
||
"title": "Errors",
|
||
"titleSize": "h6",
|
||
"type": "row"
|
||
}
|
||
],
|
||
"refresh": "30s",
|
||
"rows": [
|
||
|
||
],
|
||
"schemaVersion": 18,
|
||
"style": "dark",
|
||
"tags": [
|
||
"kubernetes-mixin"
|
||
],
|
||
"templating": {
|
||
"list": [
|
||
{
|
||
"allValue": ".+",
|
||
"auto": false,
|
||
"auto_count": 30,
|
||
"auto_min": "10s",
|
||
"current": {
|
||
"text": "kube-system",
|
||
"value": "kube-system"
|
||
},
|
||
"datasource": "prometheus",
|
||
"definition": "label_values(container_network_receive_packets_total, namespace)",
|
||
"hide": 0,
|
||
"includeAll": true,
|
||
"label": null,
|
||
"multi": false,
|
||
"name": "namespace",
|
||
"options": [
|
||
|
||
],
|
||
"query": "label_values(container_network_receive_packets_total, namespace)",
|
||
"refresh": 1,
|
||
"regex": "",
|
||
"skipUrlSync": false,
|
||
"sort": 1,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "query",
|
||
"useTags": false
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"auto": false,
|
||
"auto_count": 30,
|
||
"auto_min": "10s",
|
||
"current": {
|
||
"text": "",
|
||
"value": ""
|
||
},
|
||
"datasource": "prometheus",
|
||
"definition": "label_values(mixin_pod_workload{namespace=~\"$namespace\"}, workload)",
|
||
"hide": 0,
|
||
"includeAll": false,
|
||
"label": null,
|
||
"multi": false,
|
||
"name": "workload",
|
||
"options": [
|
||
|
||
],
|
||
"query": "label_values(mixin_pod_workload{namespace=~\"$namespace\"}, workload)",
|
||
"refresh": 1,
|
||
"regex": "",
|
||
"skipUrlSync": false,
|
||
"sort": 1,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "query",
|
||
"useTags": false
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"auto": false,
|
||
"auto_count": 30,
|
||
"auto_min": "10s",
|
||
"current": {
|
||
"text": "deployment",
|
||
"value": "deployment"
|
||
},
|
||
"datasource": "prometheus",
|
||
"definition": "label_values(mixin_pod_workload{namespace=~\"$namespace\", workload=~\"$workload\"}, workload_type)",
|
||
"hide": 0,
|
||
"includeAll": false,
|
||
"label": null,
|
||
"multi": false,
|
||
"name": "type",
|
||
"options": [
|
||
|
||
],
|
||
"query": "label_values(mixin_pod_workload{namespace=~\"$namespace\", workload=~\"$workload\"}, workload_type)",
|
||
"refresh": 1,
|
||
"regex": "",
|
||
"skipUrlSync": false,
|
||
"sort": 0,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "query",
|
||
"useTags": false
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"auto": false,
|
||
"auto_count": 30,
|
||
"auto_min": "10s",
|
||
"current": {
|
||
"text": "5m",
|
||
"value": "5m"
|
||
},
|
||
"datasource": "prometheus",
|
||
"hide": 0,
|
||
"includeAll": false,
|
||
"label": null,
|
||
"multi": false,
|
||
"name": "resolution",
|
||
"options": [
|
||
{
|
||
"selected": false,
|
||
"text": "30s",
|
||
"value": "30s"
|
||
},
|
||
{
|
||
"selected": true,
|
||
"text": "5m",
|
||
"value": "5m"
|
||
},
|
||
{
|
||
"selected": false,
|
||
"text": "1h",
|
||
"value": "1h"
|
||
}
|
||
],
|
||
"query": "30s,5m,1h",
|
||
"refresh": 2,
|
||
"regex": "",
|
||
"skipUrlSync": false,
|
||
"sort": 1,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "interval",
|
||
"useTags": false
|
||
},
|
||
{
|
||
"allValue": null,
|
||
"auto": false,
|
||
"auto_count": 30,
|
||
"auto_min": "10s",
|
||
"current": {
|
||
"text": "5m",
|
||
"value": "5m"
|
||
},
|
||
"datasource": "prometheus",
|
||
"hide": 2,
|
||
"includeAll": false,
|
||
"label": null,
|
||
"multi": false,
|
||
"name": "interval",
|
||
"options": [
|
||
{
|
||
"selected": true,
|
||
"text": "4h",
|
||
"value": "4h"
|
||
}
|
||
],
|
||
"query": "4h",
|
||
"refresh": 2,
|
||
"regex": "",
|
||
"skipUrlSync": false,
|
||
"sort": 1,
|
||
"tagValuesQuery": "",
|
||
"tags": [
|
||
|
||
],
|
||
"tagsQuery": "",
|
||
"type": "interval",
|
||
"useTags": false
|
||
}
|
||
]
|
||
},
|
||
"time": {
|
||
"from": "now-1h",
|
||
"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": "Kubernetes / Networking / Workload",
|
||
"uid": "728bf77cc1166d2f3133bf25846876cc",
|
||
"version": 0
|
||
}
|
||
kind: ConfigMap
|
||
metadata:
|
||
name: grafana-dashboard-workload-total
|
||
namespace: monitoring
|
||
kind: ConfigMapList
|