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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -