Просмотр исходного кода

Rationalize Linux dashboards

Change-Id: I6b21bed3dd2c632af8274769b562f366c4057b82
Closes-Prod: PROD-20090
pull/121/merge
Dmitry Kalashnik 6 лет назад
Родитель
Сommit
a0c0ccda99
4 измененных файлов: 3707 добавлений и 2 удалений
  1. +1134
    -0
      linux/files/grafana_dashboards/system_disk_prometheus.json
  2. +938
    -0
      linux/files/grafana_dashboards/system_network_prometheus.json
  3. +1625
    -0
      linux/files/grafana_dashboards/system_overview_prometheus.json
  4. +10
    -2
      linux/meta/grafana.yml

+ 1134
- 0
linux/files/grafana_dashboards/system_disk_prometheus.json
Разница между файлами не показана из-за своего большого размера
Просмотреть файл


+ 938
- 0
linux/files/grafana_dashboards/system_network_prometheus.json Просмотреть файл

@@ -0,0 +1,938 @@
{% raw %}
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "prometheus",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"limit": 100,
"name": "Annotations & Alerts",
"showIn": 0,
"type": "dashboard"
}
]
},
"editable": true,
"gnetId": null,
"graphTooltip": 1,
"id": null,
"iteration": 1529498668709,
"links": [],
"panels": [
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
"id": 28,
"panels": [],
"title": "Network, by host",
"type": "row"
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": null,
"fill": 1,
"gridPos": {
"h": 7,
"w": 12,
"x": 0,
"y": 1
},
"id": 26,
"legend": {
"alignAsTable": true,
"avg": true,
"current": false,
"max": false,
"min": false,
"rightSide": true,
"show": true,
"sort": null,
"sortDesc": null,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [
{
"alias": "/tx.*/",
"transform": "negative-Y"
}
],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "sum(rate(net_bytes_recv{host=~\"$host\",interface=~\"$interface\"}[$rate_interval])) by (host)",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "rx @{{host}}",
"refId": "A"
},
{
"expr": "sum(rate(net_bytes_sent{host=~\"$host\",interface=~\"$interface\"}[$rate_interval])) by (host)",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "tx @{{host}}",
"refId": "B"
}
],
"thresholds": [],
"timeFrom": null,
"timeShift": null,
"title": "Throughput@$host",
"tooltip": {
"shared": true,
"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": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": null,
"fill": 1,
"gridPos": {
"h": 7,
"w": 12,
"x": 12,
"y": 1
},
"id": 33,
"legend": {
"alignAsTable": true,
"avg": true,
"current": false,
"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",
"seriesOverrides": [
{
"alias": "/tx.*/",
"transform": "negative-Y"
}
],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "sum(rate(net_packets_recv{host=~\"$host\",interface=~\"$interface\"}[$rate_interval])) by (host)",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "rx @{{host}}",
"refId": "A"
},
{
"expr": "sum(rate(net_packets_sent{host=~\"$host\",interface=~\"$interface\"}[$rate_interval])) by (host)",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "tx @{{host}}",
"refId": "B"
}
],
"thresholds": [],
"timeFrom": null,
"timeShift": null,
"title": "Packets@$host",
"tooltip": {
"shared": true,
"sort": 0,
"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": 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": null,
"fill": 1,
"gridPos": {
"h": 7,
"w": 12,
"x": 0,
"y": 8
},
"id": 42,
"legend": {
"alignAsTable": true,
"avg": true,
"current": false,
"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",
"seriesOverrides": [
{
"alias": "/tx.*/",
"transform": "negative-Y"
}
],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "sum(rate(net_err_in{host=~\"$host\",interface=~\"$interface\"}[$rate_interval])) by (host)",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "rx @{{host}}",
"refId": "A"
},
{
"expr": "sum(rate(net_err_out{host=~\"$host\",interface=~\"$interface\"}[$rate_interval])) by (host)",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "tx @{{host}}",
"refId": "B"
}
],
"thresholds": [],
"timeFrom": null,
"timeShift": null,
"title": "Errors@$host",
"tooltip": {
"shared": true,
"sort": 0,
"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": 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": null,
"fill": 1,
"gridPos": {
"h": 7,
"w": 12,
"x": 12,
"y": 8
},
"id": 43,
"legend": {
"alignAsTable": true,
"avg": true,
"current": false,
"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",
"seriesOverrides": [
{
"alias": "/tx.*/",
"transform": "negative-Y"
}
],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "sum(rate(net_drop_in{host=~\"$host\",interface=~\"$interface\"}[$rate_interval])) by (host)",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "rx @{{host}}",
"refId": "A"
},
{
"expr": "sum(rate(net_drop_out{host=~\"$host\",interface=~\"$interface\"}[$rate_interval])) by (host)",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "tx @{{host}}",
"refId": "B"
}
],
"thresholds": [],
"timeFrom": null,
"timeShift": null,
"title": "Dropped packets@$host",
"tooltip": {
"shared": true,
"sort": 0,
"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": null,
"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": 15
},
"id": 24,
"panels": [],
"repeat": null,
"title": "Network, by interface",
"type": "row"
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": null,
"fill": 1,
"gridPos": {
"h": 7,
"w": 8,
"x": 0,
"y": 16
},
"id": 8,
"legend": {
"alignAsTable": true,
"avg": true,
"current": false,
"hideEmpty": true,
"hideZero": true,
"max": false,
"min": false,
"rightSide": false,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"repeat": "host",
"repeatDirection": "v",
"scopedVars": {
"host": {
"selected": true,
"text": "ntw01",
"value": "ntw01"
}
},
"seriesOverrides": [
{
"alias": "/tx.*/",
"transform": "negative-Y"
}
],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "rate(net_bytes_recv{host=\"$host\",interface=~\"$interface\"}[$rate_interval])",
"format": "time_series",
"instant": false,
"intervalFactor": 2,
"legendFormat": "rx @{{interface}}",
"metric": "",
"refId": "A",
"step": 20
},
{
"expr": "rate(net_bytes_sent{host=\"$host\",interface=~\"$interface\"}[$rate_interval])",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "tx @{{interface}}",
"metric": "",
"refId": "B",
"step": 20
}
],
"thresholds": [],
"timeFrom": null,
"timeShift": null,
"title": "Throughput@$host dev $interface",
"tooltip": {
"shared": true,
"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": "Bps",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": null,
"fill": 1,
"gridPos": {
"h": 7,
"w": 8,
"x": 8,
"y": 16
},
"id": 15,
"legend": {
"alignAsTable": true,
"avg": true,
"current": false,
"hideEmpty": true,
"hideZero": true,
"max": false,
"min": false,
"rightSide": false,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"repeat": "host",
"repeatDirection": "v",
"scopedVars": {
"host": {
"selected": true,
"text": "ntw01",
"value": "ntw01"
}
},
"seriesOverrides": [
{
"alias": "/tx.*/",
"transform": "negative-Y"
}
],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "rate(net_packets_recv{host=\"$host\",interface=~\"$interface\"}[$rate_interval])",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "rx @{{interface}}",
"metric": "",
"refId": "A",
"step": 20
},
{
"expr": "rate(net_packets_sent{host=\"$host\",interface=~\"$interface\"}[$rate_interval])",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "tx @{{interface}}",
"metric": "",
"refId": "B",
"step": 20
}
],
"thresholds": [],
"timeFrom": null,
"timeShift": null,
"title": "Packets@$host dev $interface",
"tooltip": {
"shared": true,
"sort": 0,
"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": 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": null,
"fill": 1,
"gridPos": {
"h": 7,
"w": 8,
"x": 16,
"y": 16
},
"id": 13,
"legend": {
"alignAsTable": true,
"avg": true,
"current": false,
"hideEmpty": true,
"hideZero": true,
"max": false,
"min": false,
"rightSide": false,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"repeat": "host",
"repeatDirection": "v",
"scopedVars": {
"host": {
"selected": true,
"text": "ntw01",
"value": "ntw01"
}
},
"seriesOverrides": [
{
"alias": "/.*tx.*/",
"transform": "negative-Y"
}
],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "rate(net_err_in{host=\"$host\",interface=~\"$interface\"}[$rate_interval])",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "err rx @{{interface}}",
"metric": "",
"refId": "A",
"step": 20
},
{
"expr": "rate(net_drop_in{host=\"$host\",interface=~\"$interface\"}[$rate_interval])",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "drop rx @{{interface}}",
"refId": "C"
},
{
"expr": "rate(net_err_out{host=\"$host\",interface=~\"$interface\"}[$rate_interval])",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "err tx @{{interface}}",
"metric": "",
"refId": "B",
"step": 20
},
{
"expr": "rate(net_drop_out{host=\"$host\",interface=~\"$interface\"}[$rate_interval])",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "drop tx @{{interface}}",
"refId": "D"
}
],
"thresholds": [],
"timeFrom": null,
"timeShift": null,
"title": "Errors/Dropped@$host dev $interface",
"tooltip": {
"shared": true,
"sort": 0,
"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": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
}
],
"refresh": "1m",
"schemaVersion": 16,
"style": "dark",
"tags": [
"host"
],
"templating": {
"list": [
{
"allValue": null,
"current": {
"text": "ntw01",
"value": [
"ntw01"
]
},
"datasource": "prometheus",
"hide": 0,
"includeAll": false,
"label": null,
"multi": true,
"name": "host",
"options": [],
"query": "label_values(cpu_usage_idle,host)",
"refresh": 1,
"refresh_on_load": true,
"regex": "",
"sort": 1,
"tagValuesQuery": "",
"tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"allValue": null,
"current": {
"text": "All",
"value": [
"$__all"
]
},
"datasource": "prometheus",
"hide": 0,
"includeAll": true,
"label": null,
"multi": true,
"name": "interface",
"options": [],
"query": "query_result(net_bytes_recv{host=~\"$host\"})",
"refresh": 1,
"refresh_on_load": true,
"regex": "/interface=\"([^\"]+)/",
"sort": 1,
"tagValuesQuery": "",
"tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"allValue": null,
"current": {
"text": "3m",
"value": "3m"
},
"hide": 0,
"includeAll": false,
"label": "rate_interval",
"multi": false,
"name": "rate_interval",
"options": [
{
"selected": false,
"text": "1m",
"value": "1m"
},
{
"selected": true,
"text": "3m",
"value": "3m"
},
{
"selected": false,
"text": "5m",
"value": "5m"
},
{
"selected": false,
"text": "10m",
"value": "10m"
},
{
"selected": false,
"text": "15m",
"value": "15m"
}
],
"query": "1m,3m,5m,10m,15m",
"type": "custom"
}
]
},
"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": "browser",
"title": "System - Networking",
"uid": null,
"version": 22
}
{% endraw %}

+ 1625
- 0
linux/files/grafana_dashboards/system_overview_prometheus.json
Разница между файлами не показана из-за своего большого размера
Просмотреть файл


+ 10
- 2
linux/meta/grafana.yml Просмотреть файл

@@ -1,9 +1,17 @@
{%- from "linux/map.jinja" import monitoring with context %}
dashboard:
linux_prometheus:
linux_overview_prometheus:
datasource: prometheus
format: json
template: linux/files/grafana_dashboards/system_prometheus.json
template: linux/files/grafana_dashboards/system_overview_prometheus.json
linux_disk_prometheus:
datasource: prometheus
format: json
template: linux/files/grafana_dashboards/system_disk_prometheus.json
linux_network_prometheus:
datasource: prometheus
format: json
template: linux/files/grafana_dashboards/system_network_prometheus.json
linux_influxdb:
datasource: influxdb
format: json

Загрузка…
Отмена
Сохранить