PROMETHEUS monitoring software used to gather data to the OpenGate Admin Dashboard
docker-compose up
CPU Usage over 5 minutes
#Average
100 - (avg by (instance) (irate(node_cpu_seconds_total{job="nodeexporter",mode="idle"}[5m])) * 100)
#Minimum
100 - (max by (instance) (irate(node_cpu_seconds_total{job="nodeexporter",mode="idle"}[5m])) * 100)
#Maximum
100 - (min by (instance) (irate(node_cpu_seconds_total{job="nodeexporter",mode="idle"}[5m])) * 100)
Memory Usage over 5 minutes
#Average:
100 * (1 - ((avg_over_time(node_memory_MemFree_bytes{job="nodeexporter"}[5m]) + avg_over_time(node_memory_Cached_bytes{job="nodeexporter"}[5m]) + avg_over_time(node_memory_Buffers_bytes{job="nodeexporter"}[5m])) / avg_over_time(node_memory_MemTotal_bytes{job="nodeexporter"}[5m])))
#Minimum
100 * (1 - ((max_over_time(node_memory_MemFree_bytes{job="nodeexporter"}[5m]) + max_over_time(node_memory_Cached_bytes{job="nodeexporter"}[5m]) + max_over_time(node_memory_Buffers_bytes{job="nodeexporter"}[5m])) / max_over_time(node_memory_MemTotal_bytes{job="nodeexporter"}[5m])))
#Maximum:
100 * (1 - ((min_over_time(node_memory_MemFree_bytes{job="nodeexporter"}[5m]) + min_over_time(node_memory_Cached_bytes{job="nodeexporter"}[5m]) + min_over_time(node_memory_Buffers_bytes{job="nodeexporter"}[5m])) / min_over_time(node_memory_MemTotal_bytes{job="nodeexporter"}[5m])))