This repository has no description
5.1 kB
153 lines
1{
2 "uid": "node",
3 "title": "Node overview",
4 "schemaVersion": 39,
5 "time": { "from": "now-24h", "to": "now" },
6 "refresh": "1m",
7 "templating": {
8 "list": [
9 {
10 "name": "host",
11 "type": "query",
12 "datasource": { "type": "victoriametrics-metrics-datasource", "uid": "victoriametrics" },
13 "query": { "query": "label_values(host_uptime, host)", "refId": "host" },
14 "refresh": 2,
15 "includeAll": true,
16 "multi": true,
17 "current": { "text": "All", "value": "$__all" }
18 }
19 ]
20 },
21 "panels": [
22 {
23 "id": 1,
24 "type": "timeseries",
25 "title": "CPU used",
26 "gridPos": { "x": 0, "y": 0, "w": 12, "h": 8 },
27 "datasource": { "type": "victoriametrics-metrics-datasource", "uid": "victoriametrics" },
28 "fieldConfig": { "defaults": { "unit": "percentunit", "min": 0, "max": 1 } },
29 "targets": [
30 {
31 "refId": "A",
32 "expr": "1 - avg by (host) (rate(host_cpu_seconds_total{mode=\"idle\", host=~\"$host\"}[$__rate_interval]))",
33 "legendFormat": "{{host}}"
34 }
35 ]
36 },
37 {
38 "id": 2,
39 "type": "timeseries",
40 "title": "Memory used",
41 "gridPos": { "x": 12, "y": 0, "w": 12, "h": 8 },
42 "datasource": { "type": "victoriametrics-metrics-datasource", "uid": "victoriametrics" },
43 "fieldConfig": { "defaults": { "unit": "percentunit", "min": 0, "max": 1 } },
44 "targets": [
45 {
46 "refId": "A",
47 "expr": "1 - host_memory_available_bytes{host=~\"$host\"} / host_memory_total_bytes{host=~\"$host\"}",
48 "legendFormat": "{{host}}"
49 }
50 ]
51 },
52 {
53 "id": 3,
54 "type": "timeseries",
55 "title": "Load (1m)",
56 "gridPos": { "x": 0, "y": 8, "w": 12, "h": 8 },
57 "datasource": { "type": "victoriametrics-metrics-datasource", "uid": "victoriametrics" },
58 "targets": [
59 { "refId": "A", "expr": "host_load1{host=~\"$host\"}", "legendFormat": "{{host}}" }
60 ]
61 },
62 {
63 "id": 4,
64 "type": "bargauge",
65 "title": "Filesystems used",
66 "gridPos": { "x": 12, "y": 8, "w": 12, "h": 8 },
67 "datasource": { "type": "victoriametrics-metrics-datasource", "uid": "victoriametrics" },
68 "fieldConfig": {
69 "defaults": {
70 "unit": "percentunit",
71 "min": 0,
72 "max": 1,
73 "thresholds": {
74 "mode": "absolute",
75 "steps": [
76 { "color": "green", "value": null },
77 { "color": "orange", "value": 0.8 },
78 { "color": "red", "value": 0.9 }
79 ]
80 }
81 }
82 },
83 "options": { "displayMode": "basic", "orientation": "horizontal" },
84 "targets": [
85 {
86 "refId": "A",
87 "expr": "max by (host, mountpoint) (host_filesystem_used_ratio{host=~\"$host\"})",
88 "legendFormat": "{{host}} {{mountpoint}}",
89 "instant": true
90 }
91 ]
92 },
93 {
94 "id": 5,
95 "type": "timeseries",
96 "title": "Network",
97 "gridPos": { "x": 0, "y": 16, "w": 12, "h": 8 },
98 "datasource": { "type": "victoriametrics-metrics-datasource", "uid": "victoriametrics" },
99 "fieldConfig": { "defaults": { "unit": "Bps" } },
100 "targets": [
101 {
102 "refId": "A",
103 "expr": "sum by (host) (rate(host_network_receive_bytes_total{host=~\"$host\", device!=\"lo\"}[$__rate_interval]))",
104 "legendFormat": "{{host}} rx"
105 },
106 {
107 "refId": "B",
108 "expr": "-sum by (host) (rate(host_network_transmit_bytes_total{host=~\"$host\", device!=\"lo\"}[$__rate_interval]))",
109 "legendFormat": "{{host}} tx"
110 }
111 ]
112 },
113 {
114 "id": 6,
115 "type": "timeseries",
116 "title": "Disk I/O",
117 "gridPos": { "x": 12, "y": 16, "w": 12, "h": 8 },
118 "datasource": { "type": "victoriametrics-metrics-datasource", "uid": "victoriametrics" },
119 "fieldConfig": { "defaults": { "unit": "Bps" } },
120 "targets": [
121 {
122 "refId": "A",
123 "expr": "sum by (host) (rate(host_disk_read_bytes_total{host=~\"$host\"}[$__rate_interval]))",
124 "legendFormat": "{{host}} read"
125 },
126 {
127 "refId": "B",
128 "expr": "-sum by (host) (rate(host_disk_written_bytes_total{host=~\"$host\"}[$__rate_interval]))",
129 "legendFormat": "{{host}} write"
130 }
131 ]
132 },
133 {
134 "id": 7,
135 "type": "table",
136 "title": "superconfig revision",
137 "gridPos": { "x": 0, "y": 24, "w": 12, "h": 8 },
138 "datasource": { "type": "victoriametrics-metrics-datasource", "uid": "victoriametrics" },
139 "options": { "sortBy": [{ "displayName": "host", "desc": false }] },
140 "targets": [
141 {
142 "refId": "A",
143 "expr": "max by (host, revision_short) (nixos_system_info{host=~\"$host\"})",
144 "format": "table",
145 "instant": true
146 }
147 ],
148 "transformations": [
149 { "id": "organize", "options": { "excludeByName": { "Time": true, "Value": true } } }
150 ]
151 }
152 ]
153}