1

I am searching for a tool similar to Prometheus + Grafana that gather and record resource usage especially memory usage by process-ID or process-name.

We have two components that are running different processes and they have memory leak and I want to find which process is leaking.

This is from Weave Scope and it shows all the processes of each pod and their resource usage but it is just live, I want something similar but storing it over time like a Prometheus graph.

enter image description here

2 Answers 2

0

There are several alternatives to Prometheus for monitoring your cluster.

While some like Heapster have been superseded by Prometheus, other solutions such as cAdvisor may have the functionality you are looking for.

1
  • I am already using 3 items (weave scope - grafana & Prometheus - EFK) of that list and non of them (my 3 and other things) is giving me the metrics that I want except the weave and Weave scope cannot store the data.
    – AVarf
    Nov 21, 2019 at 15:25
0

Prometheus can surface any metrics you like, you just need a proper exporter for the apps. E.g. there will be JVM exporters to export JVM heap metrics. Many apps support JMX (also in Java), or other similar mechanisms in other languages for reporting metrics and counters as well (e.g. we use these to get detailed presto memory use metrics).

You may want process exporter or something similar -> https://github.com/ncabatoff/process-exporter.

If you really had to, you could even write something as simplistic as a kubectl exec command to grab stats from the container and save them in prometheus exporter file format and scrape it off apache/nginx.

Other than that, go for a good APM solution that holds the metrics for you and fork out some cash =).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.