Menu
Prometheus is a configuration tool for Mac OS X system's firewall. It's written in Perl and with some little changes it could also be used on FreeBSD systems. It is a script that could be executed by a graphical user interface (GUI), or directly by the command shell (Terminal) and it requires administrator's privileges to work on system's. After installing Windows password recovery tool to Windows or Mac, the next step is to create a boot CD/DVD or USB flash drive. The following guide tells how to create a bootable CD/DVD/USB drive for Windows 10/8.1/8/7/XP/Vista on PC or Mac. Collect Docker metrics with Prometheus Estimated reading time: 8 minutes Prometheus is an open-source systems monitoring and alerting toolkit. You can configure Docker as a Prometheus target. This topic shows you how to configure Docker, set up Prometheus to run as a Docker container, and monitor your Docker instance using Prometheus.
Active1 year, 9 months ago
I have a nodejs application on Mac OS and want to monitor its cpu and memory usage. I have setup
Prometheus server with below configuration:
In my nodejs application, I have imported
prom-client dependency. And created a /metrics path which returns the metrics data:
In my service class, I use
prom.Counter to record the number of request
Character manager tool for mac. when I go to
localhost:3030/metrics link I can read below information:
I can see that Zhao YiZhao Yi
create_connection was called 18 times. Now I go to Prometheus graph page, I am able to see the graph for create_connection . But my question is how I can see how much CPU and Memory my nodejs application consumed during a time period. Is there anywhere I need to configure in my app?
6,7811919 gold badges7575 silver badges155155 bronze badges
3 Answers
You would have to instrument something your self. So, you can take these measurements on your own at a set interval and use something like https://nodejs.org/api/process.html#process_process_memoryusage to get memory usage, update the metrics and they will get collected.
Digant C KasundraDigant C Kasundra
52411 gold badge88 silver badges1616 bronze badges
Take a look at swagger-stats module. It exposes Prometheus metrics, including memory and CPU usage for node.js process:
It also exposes API metrics, so you can monitor API usage together with CPU/Memory using Prometheus and Grafana. Download cc cleaner tool.
More details in Documentation
sv2sv2
You can use appmetrics-prometheus-client npm package which instruments the code in simple steps.
It exposes following metrics at
/metrics endpoint :
codeniocodenio
Prometheus Downgrade Tool For WindowsPrometheus Tool For WindowsNot the answer you're looking for? Browse other questions tagged node.jsprometheus or ask your own question.Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |