Exercice 3

Sujet

Identifier le pourcentage d´espace disque disponible restant sur chacune des instances du cluster sur la partition racine.

Métriques :
- node_filesystem_free_bytes <-- Quantité d´espace disque disponible
- node_filesystem_size_bytes <-- Quantité d´espace disque total

Solution

show
node_filesystem_free_bytes{mountpoint="/"} / node_filesystem_size_bytes{mountpoint="/"} * 100

node_filesystem_free_bytes{mountpoint="/"} / node_filesystem_size_bytes