overview.JPG filesystem.JPG ntp_processes.JPG disk.JPG cpu.JPG entropy_load.JPG kernel.JPG view.JPG
This dashboard is Dynamic
where you can have the metrics for: 1 VM, Multiple VMs or All VMs
.
Metrics:
- UP
- Load
- CPU
- RAM
- NTP
- Disk
- Swap
- Forks
- Inodes
- Kernel
- Uptime
- Entropy
- Threads
- Network
- Systemd
- Interrupts
- Processes
- File Descriptors
- Switches Context
Versions:
- Grafana: 7.4.0+
- Prometheus: 2.24.1+
- Node Exporter: 1.0.1+
Interval and range variables:
http://docs.grafana.org/features/datasources/prometheus/
- Support for $__range, $__range_s and $__range_ms only available from Grafana v5.3
- It’s possible to use some global built-in variables in query variables; $__interval, $__interval_ms, $__range, $__range_s and $__range_ms, see Global built-in variables for more information. These can be convenient to use in conjunction with the query_result function when you need to filter variable queries since label_values function doesn’t support queries.
- Make sure to set the variable’s refresh trigger to be On Time Range Change to get the correct instances when changing the time range on the dashboard.
Collector Configuration Details
Prometheus configuration: /opt/prometheus/prometheus.yml
- job_name: server1
static_configs:
- targets: ['192.168.1.10:9100']
labels:
env: prod
alias: server1
Node Exporter Service: $ cat /usr/lib/systemd/system/node_exporter.service
[Unit]
Description=Prometheus Node Exporter
Wants=network-online.target
After=network-online.target
[Service]
User=node_exporter
Group=node_exporter
Type=simple
ExecStart=/opt/node_exporter/node_exporter --web.listen-address=0.0.0.0:9100 --log.level=info --log.format=json --collector.logind --collector.systemd --collector.tcpstat --collector.ntp --collector.interrupts --collector.meminfo_numa --collector.processes --no-collector.bonding --no-collector.bcache --no-collector.arp --no-collector.edac --no-collector.infiniband --no-collector.ipvs --no-collector.mdadm --no-collector.nfs --no-collector.nfsd --no-collector.textfile --no-collector.wifi --no-collector.hwmon --no -collector.conntrack --no-collector.timex --no-collector.zfs --collector.systemd.unit-whitelist=(crond|sshd|node_exporter)\\.service
ExecReload=/bin/kill -HUP $MAINPID
TimeoutStopSec=10s
SendSIGKILL=no
SyslogIdentifier=prometheus_node_exporter
Restart=always
[Install]
WantedBy=multi-user.target