Prometheus在Grafana的仪表盘配置Json

2020-01-15 16:00:32 浏览数 (1)

代码语言:javascript复制
{
 "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": 2,
 "links": [],
 "refresh": false,
 "rows": [
 {
 "collapse": false,
 "height": 250,
 "panels": [
 {
 "aliasColors": {},
 "bars": false,
 "dashLength": 10,
 "dashes": false,
 "datasource": null,
 "fill": 1,
 "id": 5,
 "legend": {
 "avg": false,
 "current": false,
 "max": false,
 "min": false,
 "show": true,
 "total": false,
 "values": false
 },
 "lines": true,
 "linewidth": 1,
 "links": [],
 "nullPointMode": "null",
 "percentage": false,
 "pointradius": 5,
 "points": false,
 "renderer": "flot",
 "seriesOverrides": [],
 "spaceLength": 10,
 "span": 6,
 "stack": false,
 "steppedLine": false,
 "targets": [
 {
 "expr": "instance:node_cpu:avg_rate5m",
 "format": "time_series",
 "intervalFactor": 2,
 "legendFormat": "{{ instance }}",
 "refId": "A"
 }
 ],
 "thresholds": [],
 "timeFrom": null,
 "timeShift": null,
 "title": "Node CPU % Utilization Avg 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
 }
 ]
 },
 {
 "aliasColors": {},
 "bars": false,
 "dashLength": 10,
 "dashes": false,
 "datasource": null,
 "fill": 1,
 "id": 6,
 "legend": {
 "avg": false,
 "current": false,
 "max": false,
 "min": false,
 "show": true,
 "total": false,
 "values": false
 },
 "lines": true,
 "linewidth": 1,
 "links": [],
 "nullPointMode": "null",
 "percentage": false,
 "pointradius": 5,
 "points": false,
 "renderer": "flot",
 "seriesOverrides": [],
 "spaceLength": 10,
 "span": 6,
 "stack": false,
 "steppedLine": false,
 "targets": [
 {
 "expr": "instance:node_cpu_saturation:load1",
 "format": "time_series",
 "intervalFactor": 2,
 "legendFormat": "{{ instance }}",
 "refId": "A"
 }
 ],
 "thresholds": [],
 "timeFrom": null,
 "timeShift": null,
 "title": "Node Load Avg Saturation",
 "tooltip": {
 "shared": true,
 "sort": 0,
 "value_type": "individual"
 },
 "type": "graph",
 "xaxis": {
 "buckets": null,
 "mode": "time",
 "name": null,
 "show": true,
 "values": []
 },
 "yaxes": [
 {
 "format": "short",
 "label": null,
 "logBase": 1,
 "max": null,
 "min": null,
 "show": true
 },
 {
 "format": "short",
 "label": null,
 "logBase": 1,
 "max": null,
 "min": null,
 "show": true
 }
 ]
 }
 ],
 "repeat": null,
 "repeatIteration": null,
 "repeatRowId": null,
 "showTitle": false,
 "title": "Dashboard Row",
 "titleSize": "h6"
 },
 {
 "collapse": false,
 "height": 250,
 "panels": [
 {
 "aliasColors": {},
 "bars": false,
 "dashLength": 10,
 "dashes": false,
 "datasource": null,
 "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",
 "percentage": false,
 "pointradius": 5,
 "points": false,
 "renderer": "flot",
 "seriesOverrides": [],
 "spaceLength": 10,
 "span": 6,
 "stack": false,
 "steppedLine": false,
 "targets": [
 {
 "expr": "instance:node_memory_usage:percentage",
 "format": "time_series",
 "intervalFactor": 2,
 "legendFormat": "{{ instance }}",
 "refId": "A"
 }
 ],
 "thresholds": [],
 "timeFrom": null,
 "timeShift": null,
 "title": "Node Memory % usage",
 "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": "Prometheus",
 "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",
 "percentage": false,
 "pointradius": 5,
 "points": false,
 "renderer": "flot",
 "seriesOverrides": [],
 "spaceLength": 10,
 "span": 6,
 "stack": false,
 "steppedLine": false,
 "targets": [
 {
 "expr": "instance:node_memory_swap_io_bytes:sum_rate",
 "format": "time_series",
 "intervalFactor": 2,
 "legendFormat": "{{ instance }}",
 "refId": "A"
 }
 ],
 "thresholds": [],
 "timeFrom": null,
 "timeShift": null,
 "title": "Node Memory Saturation Swap IO",
 "tooltip": {
 "shared": true,
 "sort": 0,
 "value_type": "individual"
 },
 "type": "graph",
 "xaxis": {
 "buckets": null,
 "mode": "time",
 "name": null,
 "show": true,
 "values": []
 },
 "yaxes": [
 {
 "format": "short",
 "label": null,
 "logBase": 1,
 "max": null,
 "min": null,
 "show": true
 },
 {
 "format": "short",
 "label": null,
 "logBase": 1,
 "max": null,
 "min": null,
 "show": true
 }
 ]
 }
 ],
 "repeat": null,
 "repeatIteration": null,
 "repeatRowId": null,
 "showTitle": false,
 "title": "Dashboard Row",
 "titleSize": "h6"
 },
 {
 "collapse": false,
 "height": 250,
 "panels": [
 {
 "aliasColors": {},
 "bars": false,
 "dashLength": 10,
 "dashes": false,
 "datasource": null,
 "fill": 1,
 "id": 7,
 "legend": {
 "avg": false,
 "current": false,
 "max": false,
 "min": false,
 "show": true,
 "total": false,
 "values": false
 },
 "lines": true,
 "linewidth": 1,
 "links": [],
 "nullPointMode": "null",
 "percentage": false,
 "pointradius": 5,
 "points": false,
 "renderer": "flot",
 "seriesOverrides": [],
 "spaceLength": 10,
 "span": 12,
 "stack": false,
 "steppedLine": false,
 "targets": [
 {
 "expr": "instance:root:node_filesystem_usage:percentage",
 "format": "time_series",
 "intervalFactor": 2,
 "legendFormat": "{{ instance }}",
 "refId": "A"
 }
 ],
 "thresholds": [],
 "timeFrom": null,
 "timeShift": null,
 "title": "Node % Disk Usage (root /)",
 "tooltip": {
 "shared": true,
 "sort": 0,
 "value_type": "individual"
 },
 "type": "graph",
 "xaxis": {
 "buckets": null,
 "mode": "time",
 "name": null,
 "show": true,
 "values": []
 },
 "yaxes": [
 {
 "format": "short",
 "label": null,
 "logBase": 1,
 "max": null,
 "min": null,
 "show": true
 },
 {
 "format": "short",
 "label": null,
 "logBase": 1,
 "max": null,
 "min": null,
 "show": true
 }
 ]
 }
 ],
 "repeat": null,
 "repeatIteration": null,
 "repeatRowId": null,
 "showTitle": false,
 "title": "Dashboard Row",
 "titleSize": "h6"
 }
 ],
 "schemaVersion": 14,
 "style": "dark",
 "tags": [],
 "templating": {
 "list": []
 },
 "time": {
 "from": "2018-02-04T01:31:28.369Z",
 "to": "2018-02-04T02:40:02.655Z"
 },
 "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": "Node Dashboard",
 "version": 23
 }

0 人点赞