mirror of
https://github.com/monitoring-mixins/website.git
synced 2024-12-14 11:37:31 +00:00
b3b400137a
Add blackbox exporter Add mysql exporter
1302 lines
38 KiB
Text
1302 lines
38 KiB
Text
{
|
|
"editable": true,
|
|
"graphTooltip": 0,
|
|
"panels": [
|
|
{
|
|
"collapse": true,
|
|
"collapsed": false,
|
|
"id": 2,
|
|
"showTitle": true,
|
|
"title": "Overview / Topology",
|
|
"titleSize": "h6",
|
|
"type": "row"
|
|
},
|
|
{
|
|
"datasource": "default",
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {
|
|
"fixedColor": "text",
|
|
"mode": "fixed"
|
|
}
|
|
}
|
|
},
|
|
"gridPos": {
|
|
"h": 3,
|
|
"w": 8,
|
|
"x": 0,
|
|
"y": 0
|
|
},
|
|
"id": 3,
|
|
"options": {
|
|
"graphMode": "none"
|
|
},
|
|
"targets": [
|
|
{
|
|
"datasource": "default",
|
|
"expr": "sum(redis_instance_info{cluster=\"$cluster\", namespace=\"$namespace\", role=\"master\"})",
|
|
"format": "time_series",
|
|
"instant": true
|
|
}
|
|
],
|
|
"title": "Masters",
|
|
"transparent": false,
|
|
"type": "stat"
|
|
},
|
|
{
|
|
"datasource": "default",
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {
|
|
"fixedColor": "text",
|
|
"mode": "fixed"
|
|
}
|
|
}
|
|
},
|
|
"gridPos": {
|
|
"h": 3,
|
|
"w": 8,
|
|
"x": 8,
|
|
"y": 0
|
|
},
|
|
"id": 4,
|
|
"options": {
|
|
"graphMode": "none"
|
|
},
|
|
"targets": [
|
|
{
|
|
"datasource": "default",
|
|
"expr": "sum(redis_instance_info{cluster=\"$cluster\", namespace=\"$namespace\", role=\"slave\"})",
|
|
"format": "time_series",
|
|
"instant": true
|
|
}
|
|
],
|
|
"title": "Slaves",
|
|
"transparent": false,
|
|
"type": "stat"
|
|
},
|
|
{
|
|
"datasource": "default",
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {
|
|
"fixedColor": "text",
|
|
"mode": "fixed"
|
|
}
|
|
}
|
|
},
|
|
"gridPos": {
|
|
"h": 3,
|
|
"w": 8,
|
|
"x": 16,
|
|
"y": 0
|
|
},
|
|
"id": 5,
|
|
"options": {
|
|
"graphMode": "none"
|
|
},
|
|
"targets": [
|
|
{
|
|
"datasource": "default",
|
|
"expr": "sum(redis_instance_info{cluster=\"$cluster\", namespace=\"$namespace\", redis_mode=\"sentinel\"})",
|
|
"format": "time_series",
|
|
"instant": true
|
|
}
|
|
],
|
|
"title": "Sentinels",
|
|
"transparent": false,
|
|
"type": "stat"
|
|
},
|
|
{
|
|
"datasource": "default",
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"mappings": [
|
|
{
|
|
"options": {
|
|
"0": {
|
|
"index": 1,
|
|
"text": "No"
|
|
},
|
|
"1": {
|
|
"index": 0,
|
|
"text": "Yes"
|
|
}
|
|
},
|
|
"type": "value"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"gridPos": {
|
|
"h": 6,
|
|
"w": 24,
|
|
"x": 0,
|
|
"y": 4
|
|
},
|
|
"id": 6,
|
|
"options": {
|
|
"showHeader": true
|
|
},
|
|
"targets": [
|
|
{
|
|
"datasource": "default",
|
|
"expr": "sum(redis_sentinel_master_status{cluster=\"$cluster\", master_name=\"redis-master.$namespace.svc.cluster.local\"}) by (pod,master_address)",
|
|
"format": "table",
|
|
"instant": true
|
|
},
|
|
{
|
|
"datasource": "default",
|
|
"expr": "sum(redis_instance_info{cluster=\"$cluster\", namespace=\"$namespace\", container=\"redis-server-exporter\"}) by (pod,role)",
|
|
"format": "table",
|
|
"instant": true
|
|
},
|
|
{
|
|
"datasource": "default",
|
|
"expr": "sum(kube_pod_info{cluster=\"$cluster\", namespace=\"$namespace\", pod=~\"redis-[0-9]+\"}) by (pod,pod_ip)",
|
|
"format": "table",
|
|
"instant": true
|
|
},
|
|
{
|
|
"datasource": "default",
|
|
"expr": "sum(redis_master_link_up{cluster=\"$cluster\", namespace=\"$namespace\", pod=~\"redis-[0-9]+\"}) by (pod)",
|
|
"format": "table",
|
|
"instant": true
|
|
},
|
|
{
|
|
"datasource": "default",
|
|
"expr": "sum(redis_master_sync_in_progress{cluster=\"$cluster\", namespace=\"$namespace\", pod=~\"redis-[0-9]+\"}) by (pod)",
|
|
"format": "table",
|
|
"instant": true
|
|
},
|
|
{
|
|
"datasource": "default",
|
|
"expr": "sum(redis_slave_info{cluster=\"$cluster\", namespace=\"$namespace\", pod=~\"redis-[0-9]+\"}) by (pod,master_host)",
|
|
"format": "table",
|
|
"instant": true
|
|
}
|
|
],
|
|
"title": "Instance Roles",
|
|
"transformations": [
|
|
{
|
|
"id": "seriesToColumns",
|
|
"options": {
|
|
"byField": "pod"
|
|
}
|
|
},
|
|
{
|
|
"id": "organize",
|
|
"options": {
|
|
"excludeByName": {
|
|
"Time": true,
|
|
"Time 1": true,
|
|
"Time 2": true,
|
|
"Time 3": true,
|
|
"Time 4": true,
|
|
"Time 5": true,
|
|
"Value #A": true,
|
|
"Value #B": true,
|
|
"Value #C": true,
|
|
"Value #F": true
|
|
},
|
|
"indexByName": {
|
|
"Value #D": 5,
|
|
"Value #E": 6,
|
|
"master_address": 4,
|
|
"master_host": 3,
|
|
"pod": 0,
|
|
"pod_ip": 1,
|
|
"role": 2
|
|
},
|
|
"renameByName": {
|
|
"Value #D": "Master Link Up",
|
|
"Value #E": "Sync in Progress",
|
|
"master_address": "Sentinel Master",
|
|
"master_host": "Server Master",
|
|
"pod": "Pod",
|
|
"pod_ip": "Pod IP",
|
|
"role": "Server Role"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"transparent": false,
|
|
"type": "table"
|
|
},
|
|
{
|
|
"collapse": true,
|
|
"collapsed": false,
|
|
"gridPos": {
|
|
"h": 1,
|
|
"w": 24,
|
|
"x": 0,
|
|
"y": 11
|
|
},
|
|
"id": 7,
|
|
"showTitle": true,
|
|
"title": "Replication",
|
|
"titleSize": "h6",
|
|
"type": "row"
|
|
},
|
|
{
|
|
"bars": false,
|
|
"dashLength": 10,
|
|
"dashes": false,
|
|
"datasource": "default",
|
|
"description": "Total number of slaves that have fully synced with the master and are receiving updates",
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"unit": "short"
|
|
}
|
|
},
|
|
"fill": 1,
|
|
"fillGradient": 0,
|
|
"gridPos": {
|
|
"h": 8,
|
|
"w": 8,
|
|
"x": 0,
|
|
"y": 11
|
|
},
|
|
"hiddenSeries": false,
|
|
"id": 8,
|
|
"lines": true,
|
|
"linewidth": 1,
|
|
"nullPointMode": "null",
|
|
"percentage": false,
|
|
"points": false,
|
|
"renderer": "flot",
|
|
"spaceLength": 10,
|
|
"stack": false,
|
|
"steppedLine": false,
|
|
"targets": [
|
|
{
|
|
"datasource": "default",
|
|
"expr": "sum(redis_master_link_up{cluster=\"$cluster\", namespace=\"$namespace\", pod=~\"redis-[0-9]+\"})",
|
|
"format": "time_series",
|
|
"legendFormat": "Linked"
|
|
}
|
|
],
|
|
"title": "Total Linked Slaves",
|
|
"tooltip": {
|
|
"value_type": "individual"
|
|
},
|
|
"transparent": false,
|
|
"type": "graph",
|
|
"yaxes": [
|
|
{
|
|
"format": "short",
|
|
"logBase": 1,
|
|
"min": 0,
|
|
"show": true
|
|
},
|
|
{
|
|
"format": "short",
|
|
"logBase": 1,
|
|
"min": 0,
|
|
"show": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"bars": false,
|
|
"dashLength": 10,
|
|
"dashes": false,
|
|
"datasource": "default",
|
|
"description": "total number of slaves that are undergoing the initial replication from the master",
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"unit": "short"
|
|
}
|
|
},
|
|
"fill": 1,
|
|
"fillGradient": 0,
|
|
"gridPos": {
|
|
"h": 8,
|
|
"w": 8,
|
|
"x": 8,
|
|
"y": 11
|
|
},
|
|
"hiddenSeries": false,
|
|
"id": 9,
|
|
"lines": true,
|
|
"linewidth": 1,
|
|
"nullPointMode": "null",
|
|
"percentage": false,
|
|
"points": false,
|
|
"renderer": "flot",
|
|
"spaceLength": 10,
|
|
"stack": false,
|
|
"steppedLine": false,
|
|
"targets": [
|
|
{
|
|
"datasource": "default",
|
|
"expr": "sum(redis_master_sync_in_progress{cluster=\"$cluster\", namespace=\"$namespace\", pod=~\"redis-[0-9]+\"})",
|
|
"format": "time_series",
|
|
"legendFormat": "Syncing"
|
|
}
|
|
],
|
|
"title": "Slaves With Sync in Progress",
|
|
"tooltip": {
|
|
"value_type": "individual"
|
|
},
|
|
"transparent": false,
|
|
"type": "graph",
|
|
"yaxes": [
|
|
{
|
|
"format": "short",
|
|
"logBase": 1,
|
|
"min": 0,
|
|
"show": true
|
|
},
|
|
{
|
|
"format": "short",
|
|
"logBase": 1,
|
|
"min": 0,
|
|
"show": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"bars": false,
|
|
"dashLength": 10,
|
|
"dashes": false,
|
|
"datasource": "default",
|
|
"description": "",
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"unit": "bytes"
|
|
}
|
|
},
|
|
"fill": 1,
|
|
"fillGradient": 0,
|
|
"gridPos": {
|
|
"h": 8,
|
|
"w": 8,
|
|
"x": 16,
|
|
"y": 11
|
|
},
|
|
"hiddenSeries": false,
|
|
"id": 10,
|
|
"lines": true,
|
|
"linewidth": 1,
|
|
"nullPointMode": "null",
|
|
"percentage": false,
|
|
"points": false,
|
|
"renderer": "flot",
|
|
"spaceLength": 10,
|
|
"stack": false,
|
|
"steppedLine": false,
|
|
"targets": [
|
|
{
|
|
"datasource": "default",
|
|
"expr": "scalar(max(redis_master_repl_offset{cluster=\"$cluster\", namespace=\"$namespace\"}))\n-\nredis_slave_repl_offset{cluster=\"$cluster\", namespace=\"$namespace\", pod=~\"redis-[0-9]+\"}\n",
|
|
"format": "time_series",
|
|
"legendFormat": "{{ pod }}"
|
|
}
|
|
],
|
|
"title": "Replication Lag",
|
|
"tooltip": {
|
|
"value_type": "individual"
|
|
},
|
|
"transparent": false,
|
|
"type": "graph",
|
|
"yaxes": [
|
|
{
|
|
"format": "short",
|
|
"logBase": 1,
|
|
"min": 0,
|
|
"show": true
|
|
},
|
|
{
|
|
"format": "short",
|
|
"logBase": 1,
|
|
"min": 0,
|
|
"show": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"collapse": true,
|
|
"collapsed": false,
|
|
"gridPos": {
|
|
"h": 1,
|
|
"w": 24,
|
|
"x": 0,
|
|
"y": 19
|
|
},
|
|
"id": 11,
|
|
"showTitle": true,
|
|
"title": "Clients",
|
|
"titleSize": "h6",
|
|
"type": "row"
|
|
},
|
|
{
|
|
"bars": false,
|
|
"dashLength": 10,
|
|
"dashes": false,
|
|
"datasource": "default",
|
|
"description": "",
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"unit": "short"
|
|
}
|
|
},
|
|
"fill": 1,
|
|
"fillGradient": 0,
|
|
"gridPos": {
|
|
"h": 8,
|
|
"w": 12,
|
|
"x": 0,
|
|
"y": 20
|
|
},
|
|
"hiddenSeries": false,
|
|
"id": 12,
|
|
"lines": true,
|
|
"linewidth": 1,
|
|
"nullPointMode": "null",
|
|
"percentage": false,
|
|
"points": false,
|
|
"renderer": "flot",
|
|
"spaceLength": 10,
|
|
"stack": false,
|
|
"steppedLine": false,
|
|
"targets": [
|
|
{
|
|
"datasource": "default",
|
|
"expr": "redis_connected_clients{cluster=\"$cluster\", namespace=\"$namespace\", pod=~\"$pod\", container=\"redis-server-exporter\"}",
|
|
"format": "time_series",
|
|
"legendFormat": "{{pod}}"
|
|
}
|
|
],
|
|
"title": "Connected Clients",
|
|
"tooltip": {
|
|
"value_type": "individual"
|
|
},
|
|
"transparent": false,
|
|
"type": "graph",
|
|
"yaxes": [
|
|
{
|
|
"format": "short",
|
|
"logBase": 1,
|
|
"min": 0,
|
|
"show": true
|
|
},
|
|
{
|
|
"format": "short",
|
|
"logBase": 1,
|
|
"min": 0,
|
|
"show": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"bars": false,
|
|
"dashLength": 10,
|
|
"dashes": false,
|
|
"datasource": "default",
|
|
"description": "",
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"unit": "short"
|
|
}
|
|
},
|
|
"fill": 1,
|
|
"fillGradient": 0,
|
|
"gridPos": {
|
|
"h": 8,
|
|
"w": 12,
|
|
"x": 12,
|
|
"y": 20
|
|
},
|
|
"hiddenSeries": false,
|
|
"id": 13,
|
|
"lines": true,
|
|
"linewidth": 1,
|
|
"nullPointMode": "null",
|
|
"percentage": false,
|
|
"points": false,
|
|
"renderer": "flot",
|
|
"spaceLength": 10,
|
|
"stack": false,
|
|
"steppedLine": false,
|
|
"targets": [
|
|
{
|
|
"datasource": "default",
|
|
"expr": "redis_blocked_clients{cluster=\"$cluster\", namespace=\"$namespace\", pod=~\"$pod\", container=\"redis-server-exporter\"}",
|
|
"format": "time_series",
|
|
"legendFormat": "{{pod}}"
|
|
}
|
|
],
|
|
"title": "Blocked Clients",
|
|
"tooltip": {
|
|
"value_type": "individual"
|
|
},
|
|
"transparent": false,
|
|
"type": "graph",
|
|
"yaxes": [
|
|
{
|
|
"format": "short",
|
|
"logBase": 1,
|
|
"min": 0,
|
|
"show": true
|
|
},
|
|
{
|
|
"format": "short",
|
|
"logBase": 1,
|
|
"min": 0,
|
|
"show": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"collapse": true,
|
|
"collapsed": false,
|
|
"gridPos": {
|
|
"h": 1,
|
|
"w": 24,
|
|
"x": 0,
|
|
"y": 21
|
|
},
|
|
"id": 14,
|
|
"showTitle": true,
|
|
"title": "Kubernetes / Resources",
|
|
"titleSize": "h6",
|
|
"type": "row"
|
|
},
|
|
{
|
|
"bars": false,
|
|
"dashLength": 10,
|
|
"dashes": false,
|
|
"datasource": "default",
|
|
"description": "",
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"unit": "short"
|
|
}
|
|
},
|
|
"fill": 1,
|
|
"fillGradient": 0,
|
|
"gridPos": {
|
|
"h": 8,
|
|
"w": 12,
|
|
"x": 0,
|
|
"y": 22
|
|
},
|
|
"hiddenSeries": false,
|
|
"id": 15,
|
|
"lines": true,
|
|
"linewidth": 1,
|
|
"nullPointMode": "null",
|
|
"percentage": false,
|
|
"points": false,
|
|
"renderer": "flot",
|
|
"seriesOverrides": [
|
|
{
|
|
"alias": "requests",
|
|
"color": "#FF9830",
|
|
"fill": 0,
|
|
"linewidth": 2
|
|
},
|
|
{
|
|
"alias": "limits",
|
|
"color": "#F2495C",
|
|
"fill": 0,
|
|
"linewidth": 2
|
|
}
|
|
],
|
|
"spaceLength": 10,
|
|
"stack": false,
|
|
"steppedLine": false,
|
|
"targets": [
|
|
{
|
|
"datasource": "default",
|
|
"expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{namespace=\"$namespace\", pod=~\"$pod\", cluster=\"$cluster\", container=\"redis-server\"}) by (pod)",
|
|
"format": "time_series",
|
|
"legendFormat": "{{pod}}"
|
|
},
|
|
{
|
|
"datasource": "default",
|
|
"expr": "avg(kube_pod_container_resource_requests{job=\"kube-state-metrics/kube-state-metrics\", cluster=\"$cluster\", namespace=\"$namespace\", pod=~\"$pod\", container=\"redis-server\", resource=\"cpu\"})",
|
|
"format": "time_series",
|
|
"legendFormat": "requests"
|
|
},
|
|
{
|
|
"datasource": "default",
|
|
"expr": "avg(kube_pod_container_resource_limits{job=\"kube-state-metrics/kube-state-metrics\", cluster=\"$cluster\", namespace=\"$namespace\", pod=~\"$pod\", container=\"redis-server\", resource=\"cpu\"})",
|
|
"format": "time_series",
|
|
"legendFormat": "limits"
|
|
}
|
|
],
|
|
"title": "CPU Usage",
|
|
"tooltip": {
|
|
"value_type": "individual"
|
|
},
|
|
"transparent": false,
|
|
"type": "graph",
|
|
"yaxes": [
|
|
{
|
|
"format": "short",
|
|
"logBase": 1,
|
|
"min": 0,
|
|
"show": true
|
|
},
|
|
{
|
|
"format": "short",
|
|
"logBase": 1,
|
|
"min": 0,
|
|
"show": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"bars": false,
|
|
"dashLength": 10,
|
|
"dashes": false,
|
|
"datasource": "default",
|
|
"description": "",
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"unit": "bytes"
|
|
}
|
|
},
|
|
"fill": 1,
|
|
"fillGradient": 0,
|
|
"gridPos": {
|
|
"h": 8,
|
|
"w": 12,
|
|
"x": 12,
|
|
"y": 22
|
|
},
|
|
"hiddenSeries": false,
|
|
"id": 16,
|
|
"lines": true,
|
|
"linewidth": 1,
|
|
"nullPointMode": "null",
|
|
"percentage": false,
|
|
"points": false,
|
|
"renderer": "flot",
|
|
"seriesOverrides": [
|
|
{
|
|
"alias": "requests",
|
|
"color": "#FF9830",
|
|
"fill": 0,
|
|
"linewidth": 2
|
|
},
|
|
{
|
|
"alias": "limits",
|
|
"color": "#F2495C",
|
|
"fill": 0,
|
|
"linewidth": 2
|
|
}
|
|
],
|
|
"spaceLength": 10,
|
|
"stack": false,
|
|
"steppedLine": false,
|
|
"targets": [
|
|
{
|
|
"datasource": "default",
|
|
"expr": "sum(container_memory_working_set_bytes{job=\"kube-system/cadvisor\", cluster=\"$cluster\", namespace=\"$namespace\", pod=~\"$pod\", container=\"redis-server\", image!=\"\"}) by (pod)",
|
|
"format": "time_series",
|
|
"legendFormat": "{{pod}}"
|
|
},
|
|
{
|
|
"datasource": "default",
|
|
"expr": "avg(kube_pod_container_resource_requests{job=\"kube-state-metrics/kube-state-metrics\", cluster=\"$cluster\", namespace=\"$namespace\", pod=~\"$pod\", container=\"redis-server\", resource=\"memory\"})",
|
|
"format": "time_series",
|
|
"legendFormat": "requests"
|
|
},
|
|
{
|
|
"datasource": "default",
|
|
"expr": "avg(kube_pod_container_resource_limits{job=\"kube-state-metrics/kube-state-metrics\", cluster=\"$cluster\", namespace=\"$namespace\", pod=~\"$pod\", container=\"redis-server\", resource=\"memory\"})",
|
|
"format": "time_series",
|
|
"legendFormat": "limits"
|
|
}
|
|
],
|
|
"title": "Memory Usage",
|
|
"tooltip": {
|
|
"value_type": "individual"
|
|
},
|
|
"transparent": false,
|
|
"type": "graph",
|
|
"yaxes": [
|
|
{
|
|
"format": "short",
|
|
"logBase": 1,
|
|
"min": 0,
|
|
"show": true
|
|
},
|
|
{
|
|
"format": "short",
|
|
"logBase": 1,
|
|
"min": 0,
|
|
"show": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"bars": false,
|
|
"dashLength": 10,
|
|
"dashes": false,
|
|
"datasource": "default",
|
|
"description": "",
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"unit": "percent"
|
|
}
|
|
},
|
|
"fill": 1,
|
|
"fillGradient": 0,
|
|
"gridPos": {
|
|
"h": 8,
|
|
"w": 12,
|
|
"x": 0,
|
|
"y": 30
|
|
},
|
|
"hiddenSeries": false,
|
|
"id": 17,
|
|
"lines": true,
|
|
"linewidth": 1,
|
|
"nullPointMode": "null",
|
|
"percentage": false,
|
|
"points": false,
|
|
"renderer": "flot",
|
|
"spaceLength": 10,
|
|
"stack": false,
|
|
"steppedLine": false,
|
|
"targets": [
|
|
{
|
|
"datasource": "default",
|
|
"expr": "sum(increase(container_cpu_cfs_throttled_periods_total{job=\"kube-system/cadvisor\", namespace=\"$namespace\", pod=~\"$pod\", container=\"redis-server\", cluster=\"$cluster\"}[$__rate_interval])) by (container) /sum(increase(container_cpu_cfs_periods_total{job=\"kube-system/cadvisor\", namespace=\"$namespace\", pod=~\"$pod\", container!=\"\", cluster=\"$cluster\"}[$__rate_interval])) by (pod)",
|
|
"format": "time_series",
|
|
"legendFormat": "{{pod}}"
|
|
}
|
|
],
|
|
"title": "CPU Throttling",
|
|
"tooltip": {
|
|
"value_type": "individual"
|
|
},
|
|
"transparent": false,
|
|
"type": "graph",
|
|
"yaxes": [
|
|
{
|
|
"format": "short",
|
|
"logBase": 1,
|
|
"min": 0,
|
|
"show": true
|
|
},
|
|
{
|
|
"format": "short",
|
|
"logBase": 1,
|
|
"min": 0,
|
|
"show": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"bars": false,
|
|
"dashLength": 10,
|
|
"dashes": false,
|
|
"datasource": "default",
|
|
"description": "",
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"unit": "binBps"
|
|
}
|
|
},
|
|
"fill": 1,
|
|
"fillGradient": 0,
|
|
"gridPos": {
|
|
"h": 8,
|
|
"w": 12,
|
|
"x": 12,
|
|
"y": 30
|
|
},
|
|
"hiddenSeries": false,
|
|
"id": 18,
|
|
"lines": true,
|
|
"linewidth": 1,
|
|
"nullPointMode": "null",
|
|
"percentage": false,
|
|
"points": false,
|
|
"renderer": "flot",
|
|
"spaceLength": 10,
|
|
"stack": false,
|
|
"steppedLine": false,
|
|
"targets": [
|
|
{
|
|
"datasource": "default",
|
|
"expr": "avg(irate(redis_net_input_bytes_total{cluster=\"$cluster\", namespace=\"$namespace\", pod=~\"$pod\", container=\"redis-server-exporter\"}[$__rate_interval])) by (cmd,pod)",
|
|
"format": "time_series",
|
|
"legendFormat": "{{pod}} in"
|
|
},
|
|
{
|
|
"datasource": "default",
|
|
"expr": "avg(irate(redis_net_output_bytes_total{cluster=\"$cluster\", namespace=\"$namespace\", pod=~\"$pod\", container=\"redis-server-exporter\"}[$__rate_interval])) by (cmd,pod)",
|
|
"format": "time_series",
|
|
"legendFormat": "{{pod}} out"
|
|
}
|
|
],
|
|
"title": "Network I/O",
|
|
"tooltip": {
|
|
"value_type": "individual"
|
|
},
|
|
"transparent": false,
|
|
"type": "graph",
|
|
"yaxes": [
|
|
{
|
|
"format": "short",
|
|
"logBase": 1,
|
|
"min": 0,
|
|
"show": true
|
|
},
|
|
{
|
|
"format": "short",
|
|
"logBase": 1,
|
|
"min": 0,
|
|
"show": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"collapse": true,
|
|
"collapsed": true,
|
|
"gridPos": {
|
|
"h": 1,
|
|
"w": 24,
|
|
"x": 0,
|
|
"y": 31
|
|
},
|
|
"id": 19,
|
|
"panels": [
|
|
{
|
|
"bars": false,
|
|
"dashLength": 10,
|
|
"dashes": false,
|
|
"datasource": "default",
|
|
"description": "",
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"unit": "ops/s"
|
|
}
|
|
},
|
|
"fill": 1,
|
|
"fillGradient": 0,
|
|
"gridPos": {
|
|
"h": 8,
|
|
"w": 8,
|
|
"x": 0,
|
|
"y": 32
|
|
},
|
|
"hiddenSeries": false,
|
|
"id": 20,
|
|
"lines": true,
|
|
"linewidth": 1,
|
|
"nullPointMode": "null",
|
|
"percentage": false,
|
|
"points": false,
|
|
"renderer": "flot",
|
|
"spaceLength": 10,
|
|
"stack": false,
|
|
"steppedLine": false,
|
|
"targets": [
|
|
{
|
|
"datasource": "default",
|
|
"expr": "sum by (pod) (rate(redis_commands_total{cluster=\"$cluster\", namespace=\"$namespace\", pod=~\"$pod\", container=\"redis-server-exporter\"}[$__rate_interval]))",
|
|
"format": "time_series",
|
|
"legendFormat": "{{pod}}"
|
|
}
|
|
],
|
|
"title": "Ops / Sec",
|
|
"tooltip": {
|
|
"value_type": "individual"
|
|
},
|
|
"transparent": false,
|
|
"type": "graph",
|
|
"yaxes": [
|
|
{
|
|
"format": "short",
|
|
"logBase": 1,
|
|
"min": 0,
|
|
"show": true
|
|
},
|
|
{
|
|
"format": "short",
|
|
"logBase": 1,
|
|
"min": 0,
|
|
"show": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"bars": false,
|
|
"dashLength": 10,
|
|
"dashes": false,
|
|
"datasource": "default",
|
|
"description": "",
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"unit": "ops/s"
|
|
}
|
|
},
|
|
"fill": 1,
|
|
"fillGradient": 0,
|
|
"gridPos": {
|
|
"h": 8,
|
|
"w": 8,
|
|
"x": 8,
|
|
"y": 32
|
|
},
|
|
"hiddenSeries": false,
|
|
"id": 21,
|
|
"lines": true,
|
|
"linewidth": 1,
|
|
"nullPointMode": "null",
|
|
"percentage": false,
|
|
"points": false,
|
|
"renderer": "flot",
|
|
"spaceLength": 10,
|
|
"stack": false,
|
|
"steppedLine": false,
|
|
"targets": [
|
|
{
|
|
"datasource": "default",
|
|
"expr": "sum by (cmd) (rate(redis_commands_total{cluster=\"$cluster\", namespace=\"$namespace\", pod=~\"$pod\", container=\"redis-server-exporter\"}[$__rate_interval]))",
|
|
"format": "time_series",
|
|
"legendFormat": "{{pod}}"
|
|
}
|
|
],
|
|
"title": "Commands / Sec",
|
|
"tooltip": {
|
|
"value_type": "individual"
|
|
},
|
|
"transparent": false,
|
|
"type": "graph",
|
|
"yaxes": [
|
|
{
|
|
"format": "short",
|
|
"logBase": 1,
|
|
"min": 0,
|
|
"show": true
|
|
},
|
|
{
|
|
"format": "short",
|
|
"logBase": 1,
|
|
"min": 0,
|
|
"show": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"bars": false,
|
|
"dashLength": 10,
|
|
"dashes": false,
|
|
"datasource": "default",
|
|
"description": "",
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"unit": "short"
|
|
}
|
|
},
|
|
"fill": 1,
|
|
"fillGradient": 0,
|
|
"gridPos": {
|
|
"h": 8,
|
|
"w": 8,
|
|
"x": 16,
|
|
"y": 32
|
|
},
|
|
"hiddenSeries": false,
|
|
"id": 22,
|
|
"lines": true,
|
|
"linewidth": 1,
|
|
"nullPointMode": "null",
|
|
"percentage": false,
|
|
"points": false,
|
|
"renderer": "flot",
|
|
"spaceLength": 10,
|
|
"stack": false,
|
|
"steppedLine": false,
|
|
"targets": [
|
|
{
|
|
"datasource": "default",
|
|
"expr": "sum(redis_db_keys{cluster=\"$cluster\", namespace=\"$namespace\", pod=~\"$pod\", container=\"redis-server-exporter\"}) by (pod)",
|
|
"format": "time_series",
|
|
"legendFormat": "{{pod}}"
|
|
}
|
|
],
|
|
"title": "Total Keys",
|
|
"tooltip": {
|
|
"value_type": "individual"
|
|
},
|
|
"transparent": false,
|
|
"type": "graph",
|
|
"yaxes": [
|
|
{
|
|
"format": "short",
|
|
"logBase": 1,
|
|
"min": 0,
|
|
"show": true
|
|
},
|
|
{
|
|
"format": "short",
|
|
"logBase": 1,
|
|
"min": 0,
|
|
"show": true
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"showTitle": true,
|
|
"title": "Usage",
|
|
"titleSize": "h6",
|
|
"type": "row"
|
|
},
|
|
{
|
|
"collapse": true,
|
|
"collapsed": true,
|
|
"gridPos": {
|
|
"h": 1,
|
|
"w": 24,
|
|
"x": 0,
|
|
"y": 33
|
|
},
|
|
"id": 23,
|
|
"panels": [
|
|
{
|
|
"bars": false,
|
|
"dashLength": 10,
|
|
"dashes": false,
|
|
"datasource": "default",
|
|
"description": "",
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"unit": "bytes"
|
|
}
|
|
},
|
|
"fill": 1,
|
|
"fillGradient": 0,
|
|
"gridPos": {
|
|
"h": 8,
|
|
"w": 8,
|
|
"x": 0,
|
|
"y": 34
|
|
},
|
|
"hiddenSeries": false,
|
|
"id": 24,
|
|
"lines": true,
|
|
"linewidth": 1,
|
|
"nullPointMode": "null",
|
|
"percentage": false,
|
|
"points": false,
|
|
"renderer": "flot",
|
|
"spaceLength": 10,
|
|
"stack": false,
|
|
"steppedLine": false,
|
|
"targets": [
|
|
{
|
|
"datasource": "default",
|
|
"expr": "sum(redis_aof_current_size_bytes{cluster=\"$cluster\", namespace=\"$namespace\", pod=~\"$pod\", container=\"redis-server-exporter\"}) by (pod)",
|
|
"format": "time_series",
|
|
"legendFormat": "{{pod}}"
|
|
}
|
|
],
|
|
"title": "AOF Size",
|
|
"tooltip": {
|
|
"value_type": "individual"
|
|
},
|
|
"transparent": false,
|
|
"type": "graph",
|
|
"yaxes": [
|
|
{
|
|
"format": "short",
|
|
"logBase": 1,
|
|
"min": 0,
|
|
"show": true
|
|
},
|
|
{
|
|
"format": "short",
|
|
"logBase": 1,
|
|
"min": 0,
|
|
"show": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"bars": false,
|
|
"dashLength": 10,
|
|
"dashes": false,
|
|
"datasource": "default",
|
|
"description": "",
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"unit": "seconds"
|
|
}
|
|
},
|
|
"fill": 1,
|
|
"fillGradient": 0,
|
|
"gridPos": {
|
|
"h": 8,
|
|
"w": 8,
|
|
"x": 8,
|
|
"y": 34
|
|
},
|
|
"hiddenSeries": false,
|
|
"id": 25,
|
|
"lines": true,
|
|
"linewidth": 1,
|
|
"nullPointMode": "null",
|
|
"percentage": false,
|
|
"points": false,
|
|
"renderer": "flot",
|
|
"spaceLength": 10,
|
|
"stack": false,
|
|
"steppedLine": false,
|
|
"targets": [
|
|
{
|
|
"datasource": "default",
|
|
"expr": "sum(time() - redis_rdb_last_save_timestamp_seconds{cluster=\"$cluster\", namespace=\"$namespace\", pod=~\"$pod\", container=\"redis-server-exporter\"}) by (pod)",
|
|
"format": "time_series",
|
|
"legendFormat": "{{pod}}"
|
|
}
|
|
],
|
|
"title": "Time Since Last Snapshot",
|
|
"tooltip": {
|
|
"value_type": "individual"
|
|
},
|
|
"transparent": false,
|
|
"type": "graph",
|
|
"yaxes": [
|
|
{
|
|
"format": "short",
|
|
"logBase": 1,
|
|
"min": 0,
|
|
"show": true
|
|
},
|
|
{
|
|
"format": "short",
|
|
"logBase": 1,
|
|
"min": 0,
|
|
"show": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"bars": false,
|
|
"dashLength": 10,
|
|
"dashes": false,
|
|
"datasource": "default",
|
|
"description": "",
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"unit": "percent"
|
|
}
|
|
},
|
|
"fill": 1,
|
|
"fillGradient": 0,
|
|
"gridPos": {
|
|
"h": 8,
|
|
"w": 8,
|
|
"x": 16,
|
|
"y": 34
|
|
},
|
|
"hiddenSeries": false,
|
|
"id": 26,
|
|
"lines": true,
|
|
"linewidth": 1,
|
|
"nullPointMode": "null",
|
|
"percentage": false,
|
|
"points": false,
|
|
"renderer": "flot",
|
|
"spaceLength": 10,
|
|
"stack": false,
|
|
"steppedLine": false,
|
|
"targets": [
|
|
{
|
|
"datasource": "default",
|
|
"expr": "max by (persistentvolumeclaim) (\n(\n topk by (persistentvolumeclaim) (1, kubelet_volume_stats_capacity_bytes{cluster=\"$cluster\", job=\"kube-system/kubelet\", namespace=\"$namespace\", persistentvolumeclaim=~\"redis-server-data-$pod\"})\n -\n topk by (persistentvolumeclaim) (1, kubelet_volume_stats_available_bytes{cluster=\"$cluster\", job=\"kube-system/kubelet\", namespace=\"$namespace\", persistentvolumeclaim=~\"redis-server-data-$pod\"})\n)\n/\ntopk by (persistentvolumeclaim) (1, kubelet_volume_stats_capacity_bytes{cluster=\"$cluster\", job=\"kube-system/kubelet\", namespace=\"$namespace\", persistentvolumeclaim=~\"redis-server-data-$pod\"})\n* 100)\n",
|
|
"format": "time_series",
|
|
"legendFormat": "{{pod}}"
|
|
}
|
|
],
|
|
"title": "Persistent Volume Usage",
|
|
"tooltip": {
|
|
"value_type": "individual"
|
|
},
|
|
"transparent": false,
|
|
"type": "graph",
|
|
"yaxes": [
|
|
{
|
|
"format": "short",
|
|
"logBase": 1,
|
|
"min": 0,
|
|
"show": true
|
|
},
|
|
{
|
|
"format": "short",
|
|
"logBase": 1,
|
|
"min": 0,
|
|
"show": true
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"showTitle": true,
|
|
"title": "Persistence",
|
|
"titleSize": "h6",
|
|
"type": "row"
|
|
}
|
|
],
|
|
"schemaVersion": 25,
|
|
"style": "dark",
|
|
"tags": [
|
|
"redis-overview"
|
|
],
|
|
"templating": {
|
|
"list": [
|
|
{
|
|
"datasource": "default",
|
|
"hide": 0,
|
|
"includeAll": false,
|
|
"label": "Cluster",
|
|
"multi": false,
|
|
"name": "cluster",
|
|
"query": "label_values(redis_instance_info, cluster)",
|
|
"refresh": 0,
|
|
"skipUrlSync": false,
|
|
"sort": 0,
|
|
"type": "query",
|
|
"useTags": false
|
|
},
|
|
{
|
|
"datasource": "default",
|
|
"hide": 0,
|
|
"includeAll": false,
|
|
"label": "Namespace",
|
|
"multi": false,
|
|
"name": "namespace",
|
|
"query": "label_values(redis_instance_info{cluster=\"$cluster\"}, namespace)",
|
|
"refresh": 0,
|
|
"skipUrlSync": false,
|
|
"sort": 0,
|
|
"type": "query",
|
|
"useTags": false
|
|
},
|
|
{
|
|
"datasource": "default",
|
|
"hide": 0,
|
|
"includeAll": true,
|
|
"label": "Pod",
|
|
"multi": true,
|
|
"name": "pod",
|
|
"query": "label_values(redis_instance_info{cluster=\"$cluster\",namespace=\"$namespace\"}, pod)",
|
|
"refresh": 0,
|
|
"skipUrlSync": false,
|
|
"sort": 0,
|
|
"type": "query",
|
|
"useTags": false
|
|
}
|
|
]
|
|
},
|
|
"title": "Redis Overview",
|
|
"uid": "132f866ae97d2e753683c656a3c3e2f6"
|
|
}
|