1 # Copyright 2021 Canonical Ltd.
3 # Licensed under the Apache License, Version 2.0 (the "License"); you may
4 # not use this file except in compliance with the License. You may obtain
5 # a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 # License for the specific language governing permissions and limitations
15 # For those usages not covered by the Apache License, Version 2.0 please
16 # contact: legal@canonical.com
18 # To get in touch with the maintainers, please contact:
19 # osm-charmers@lists.launchpad.net
26 datasource: '-- Grafana --'
29 iconColor: 'rgba(0, 211, 255, 1)'
30 name: Annotations & Alerts
32 description: Physical nodes dashboard
37 iteration: 1577553366915
49 colorBackground: false
54 - 'rgba(245, 54, 54, 0.9)'
55 - 'rgba(237, 129, 40, 0.89)'
56 - 'rgba(50, 172, 45, 0.97)'
57 datasource: Prometheus
65 thresholdLabels: false
66 thresholdMarkers: true
72 hideTimeOverride: true
96 fillColor: 'rgba(31, 118, 189, 0.18)'
98 lineColor: 'rgb(31, 120, 193)'
102 - expr: 'sum(time() - node_boot_time_seconds{instance=~"$node"})'
119 colorBackground: false
123 - 'rgba(245, 54, 54, 0.9)'
124 - 'rgba(237, 129, 40, 0.89)'
125 - 'rgba(50, 172, 45, 0.97)'
126 datasource: Prometheus
133 thresholdLabels: false
134 thresholdMarkers: true
145 - name: value to text
147 - name: range to text
151 nullPointMode: 'null'
163 fillColor: 'rgba(31, 118, 189, 0.18)'
165 lineColor: 'rgb(31, 120, 193)'
170 sum(count(node_cpu_seconds_total{instance=~"$node",
171 mode='system'}) by (cpu))
188 colorBackground: false
191 - 'rgba(245, 54, 54, 0.9)'
192 - 'rgba(237, 129, 40, 0.89)'
193 - 'rgba(50, 172, 45, 0.97)'
194 datasource: Prometheus
202 thresholdLabels: false
203 thresholdMarkers: true
214 - name: value to text
216 - name: range to text
220 nullPointMode: 'null'
232 fillColor: 'rgba(31, 118, 189, 0.18)'
234 lineColor: 'rgb(31, 120, 193)'
238 - expr: 'sum(node_memory_MemTotal_bytes{instance=~"$node"})'
242 legendFormat: '{{instance}}'
254 - datasource: Prometheus
288 orientation: horizontal
293 (avg(irate(node_cpu_seconds_total{instance=~"$node",mode="idle"}[30m]))
296 legendFormat: CPU Busy
299 avg(irate(node_cpu_seconds_total{instance=~"$node",mode="iowait"}[30m]))
303 legendFormat: Busy Iowait
306 (1 - (node_memory_MemAvailable_bytes{instance=~"$node"} /
307 (node_memory_MemTotal_bytes{instance=~"$node"})))* 100
309 legendFormat: Used RAM Memory
313 ((node_filesystem_avail_bytes{instance=~"$node",mountpoint="$maxmount",fstype=~"ext4|xfs"}
314 * 100) / node_filesystem_size_bytes
315 {instance=~"$node",mountpoint="$maxmount",fstype=~"ext4|xfs"})
318 legendFormat: Used Max Mount($maxmount)
321 (1 - (node_memory_SwapFree_bytes{instance=~"$node"} /
322 node_memory_SwapTotal_bytes{instance=~"$node"})) * 100
324 legendFormat: Used SWAP
347 datasource: Prometheus
374 nullPointMode: null as zero
387 - expr: 'node_load1{instance=~"$node"}'
392 legendFormat: '{{instance}}_1m'
397 - expr: 'node_load5{instance=~"$node"}'
402 legendFormat: '{{instance}}_5m'
405 - expr: 'node_load15{instance=~"$node"}'
410 legendFormat: '{{instance}}_15m'
422 value_type: cumulative
445 '192.168.200.241:9100_Total': dark-red
446 Idle - Waiting for something to happen: '#052B51'
459 datasource: Prometheus
489 nullPointMode: 'null'
506 avg(irate(node_cpu_seconds_total{instance=~"$node",mode="system"}[30m]))
513 legendFormat: '{{instance}}_System'
517 avg(irate(node_cpu_seconds_total{instance=~"$node",mode="user"}[30m]))
522 legendFormat: '{{instance}}_User'
526 avg(irate(node_cpu_seconds_total{instance=~"$node",mode="iowait"}[30m]))
532 legendFormat: '{{instance}}_Iowait'
537 avg(irate(node_cpu_seconds_total{instance=~"$node",mode="idle"}[30m]))
542 legendFormat: '{{instance}}_Total'
553 value_type: individual
589 datasource: Prometheus
609 - 'rgba(50, 172, 45, 0.97)'
610 - 'rgba(237, 129, 40, 0.89)'
611 - 'rgba(245, 54, 54, 0.9)'
612 dateFormat: 'YYYY-MM-DD HH:mm:ss'
623 - 'rgba(245, 54, 54, 0.9)'
624 - 'rgba(237, 129, 40, 0.89)'
625 - 'rgba(50, 172, 45, 0.97)'
626 dateFormat: 'YYYY-MM-DD HH:mm:ss'
638 - 'rgba(50, 172, 45, 0.97)'
639 - 'rgba(237, 129, 40, 0.89)'
640 - 'rgba(245, 54, 54, 0.9)'
641 dateFormat: 'YYYY-MM-DD HH:mm:ss'
653 - 'rgba(245, 54, 54, 0.9)'
654 - 'rgba(237, 129, 40, 0.89)'
655 - 'rgba(50, 172, 45, 0.97)'
656 dateFormat: 'YYYY-MM-DD HH:mm:ss'
667 - 'rgba(245, 54, 54, 0.9)'
668 - 'rgba(237, 129, 40, 0.89)'
669 - 'rgba(50, 172, 45, 0.97)'
670 dateFormat: 'YYYY-MM-DD HH:mm:ss'
681 - 'rgba(245, 54, 54, 0.9)'
682 - 'rgba(237, 129, 40, 0.89)'
683 - 'rgba(50, 172, 45, 0.97)'
693 node_filesystem_avail_bytes
694 {instance=~'$node',fstype=~"ext4|xfs"}-0
703 1-(node_filesystem_free_bytes{instance=~'$node',fstype=~"ext4|xfs"}
705 node_filesystem_size_bytes{instance=~'$node',fstype=~"ext4|xfs"})
713 'node_filesystem_size_bytes{instance=~''$node'',fstype=~"ext4|xfs"}-0'
720 title: Disk Space Used (EXT4/XFS)
728 datasource: Prometheus
729 description: 'Per second read / write bytes '
755 nullPointMode: 'null'
763 - alias: /.*_Read bytes$/
764 transform: negative-Y
769 - expr: 'irate(node_disk_read_bytes_total{instance=~"$node"}[30m])'
773 legendFormat: '{{instance}}_{{device}}_Read bytes'
776 - expr: 'irate(node_disk_written_bytes_total{instance=~"$node"}[30m])'
780 legendFormat: '{{instance}}_{{device}}_Written bytes'
791 value_type: individual
802 label: Bytes read (-) / write (+)
817 Idle - Waiting for something to happen: '#052B51'
823 "sdb_æ¯\x8F秒I/Oæ“\x8D作%": '#d683ce'
828 "ç£\x81盘花费在I/Oæ“\x8D作å\x8D 比": '#ba43a9'
832 datasource: Prometheus
835 The time spent on I/O in the natural time of each second.(wall-clock
864 nullPointMode: 'null'
877 'irate(node_disk_io_time_seconds_total{instance=~"$node"}[30m])'
880 legendFormat: '{{instance}}_{{device}}_ IO time'
886 title: Time Spent Doing I/Os
890 value_type: individual
928 datasource: Prometheus
954 nullPointMode: 'null'
969 - expr: 'node_memory_MemTotal_bytes{instance=~"$node"}'
974 legendFormat: '{{instance}}_Total'
978 node_memory_MemTotal_bytes{instance=~"$node"} -
979 node_memory_MemAvailable_bytes{instance=~"$node"}
983 legendFormat: '{{instance}}_Used'
986 - expr: 'node_memory_MemAvailable_bytes{instance=~"$node"}'
991 legendFormat: '{{instance}}_Avaliable'
1002 value_type: individual
1039 datasource: Prometheus
1066 nullPointMode: 'null'
1074 - alias: /.*_transmit$/
1075 transform: negative-Y
1081 irate(node_network_receive_bytes_total{instance=~'$node',device!~'tap.*|veth.*|br.*|docker.*|virbr*|lo*'}[30m])*8
1084 legendFormat: '{{instance}}_{{device}}_receive'
1088 irate(node_network_transmit_bytes_total{instance=~'$node',device!~'tap.*|veth.*|br.*|docker.*|virbr*|lo*'}[30m])*8
1091 legendFormat: '{{instance}}_{{device}}_transmit'
1098 title: Network Traffic
1102 value_type: individual
1112 label: transmit(-)/receive(+)
1131 datasource: Prometheus
1133 TCP_alloc - Allocated sockets
1136 CurrEstab - TCP connections for which the current state is either
1137 ESTABLISHED or CLOSE- WAIT
1140 TCP_tw - Sockets wating close
1143 UDP_inuse - Udp sockets currently in use
1146 Sockets_used - Sockets currently in use
1174 nullPointMode: 'null'
1182 - alias: /.*_Sockets_used/
1189 - expr: 'node_netstat_Tcp_CurrEstab{instance=~''$node''}'
1195 legendFormat: '{{instance}}_CurrEstab'
1198 - expr: 'node_sockstat_TCP_tw{instance=~''$node''}'
1201 legendFormat: '{{instance}}_TCP_tw'
1203 - expr: 'node_sockstat_sockets_used{instance=~''$node''}'
1204 legendFormat: '{{instance}}_Sockets_used'
1206 - expr: 'node_sockstat_UDP_inuse{instance=~''$node''}'
1207 legendFormat: '{{instance}}_UDP_inuse'
1209 - expr: 'node_sockstat_TCP_alloc{instance=~''$node''}'
1210 legendFormat: '{{instance}}_TCP_alloc'
1216 title: Network Sockstat
1220 value_type: individual
1255 value: node-exporter
1256 datasource: Prometheus
1257 definition: 'label_values(node_uname_info, job)'
1264 query: 'label_values(node_uname_info, job)'
1278 datasource: Prometheus
1279 definition: 'label_values(node_uname_info{job=~"$job"}, nodename)'
1286 query: 'label_values(node_uname_info{job=~"$job"}, nodename)'
1302 datasource: Prometheus
1304 'label_values(node_uname_info{nodename=~"$hostname"},instance)'
1309 multiFormat: regex values
1312 query: 'label_values(node_uname_info{nodename=~"$hostname"},instance)'
1326 datasource: Prometheus
1335 query_result(topk(1,sort_desc
1336 (max(node_filesystem_size_bytes{instance=~'$node',fstype=~"ext4|xfs"})
1339 regex: /.*\"(.*)\".*/
1353 datasource: Prometheus
1358 multiFormat: regex values
1361 query: 'label_values(node_exporter_build_info,env)'
1377 datasource: Prometheus
1378 definition: 'label_values(node_exporter_build_info{env=~''$env''},name)'
1381 label: "å\x90\x8D称"
1383 multiFormat: regex values
1386 query: 'label_values(node_exporter_build_info{env=~''$env''},name)'
1391 tagValuesQuery: /.*/