node.js - Get max memory used in last 24 hours in Prometheus -
i using kubernetes , prometheus. using node js server. want max memory used in last 24 hours.
i have used these queries getting memory used:
stored custom rule summing memory used cluster:
cluster:memory_used:bytes = sum (cluster) ( node_memory_memtotal ) - sum (cluster) ( node_memory_memfree ) - sum (cluster) ( node_memory_buffers ) - sum (cluster) ( node_memory_cached )
then, have queried prometheus http api: /api/v1/query?query=cluster:max_memory_used:bytes
i can timestamp
of `max_memory_used. so, particular data point, can other metrics.
Comments
Post a Comment