Table of Contents

Prometheus - OS PromQl Expression

About

This page is about the calculation of OS metrics with promql

This metrics are collected and send to the server on linux by the node_exporter.

Expression

CPU

The average amount of CPU time spent in system mode, per second, over the last minute (in seconds) - Url form -

rate(node_cpu_seconds_total{mode="system"}[1m])

Filesystem space

The filesystem space available to non-root users (in bytes) - Url form

node_filesystem_avail_bytes

Network traffic

rate(node_network_receive_bytes_total[1m])

Exporter

Linux - Node Exporter

Prometheus - Node Exporter (Linux/Mac)

Windows - Wmi Exporter

Prometheus exporter for Windows machines using WMI

https://github.com/martinlindhe/wmi_exporter