Our great sponsors
-
Grafana
The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
This approach will work as long as you don’t need to run multiple instances of the application in cluster mode. For collecting metrics in cluster mode, prom-client provides a good example with metric aggregation. But what if you’re running the application through the process manager PM2, where you don’t have access to the running cluster?
In example above, we use 2 additional parameters: code (HTTP response code) and page (page identifier), which provide detailed statistics. For example, you can build such graphs in Grafana:
If you like pm2-prom-module, I would appreciate if you could star it on Github. Thanks for reading.
Related posts
- Grafana: Open and composable observability and data visualization platform
- Reverse engineering the Grafana API to get the data from a dashboard
- Teach Yourself Programming in Ten Years (1998)
- Ask HN: Why diverse amount of monitoring and observability tools?
- 5 Docker Extensions to 4.2x your Productivity