prom-client
prom-client copied to clipboard
Prometheus client for node.js
I would like to propose an option to be added to each metric type, which would allow specifying default label values for that metric only. Those labels would then be...
Hi, I know this library is supposed to be framework agnostic, but it seems to be generating a bad interaction with Next.js. I have a counter defined like this: ```...
### The Problem Our app uses the prom-client for updating several counters, via worker threads as well as the main thread. Whenever we do a deployment of our app, and...
Do all replacements for escaping in a single pass (less large string copies due to chained replace calls). * Note that `[email protected]` (which was a really good improvement) is sometimes...
Native histograms (aka sparse histograms, aka high-res histograms) are on their way to being production ready. It would be wonderful if the Node prom-client supported them. From the (Prometheus docs](https://prometheus.io/docs/concepts/metric_types/#histogram):...
Hi, in my app I don't use any kind of DB, but I want to serialize metrics to the file using `getMetricsAsJSON` every minute or after each event. Then in...
I have the following example: ```typescript const employeeMetric = new promClient.Gauge({ async collect(): Promise { const employees = await that.getAllEmployees() this.set({}, employees.length) }, help: "Employees", labelNames: ["service"], name: `employees_all` })...
Hello! Hoping this is the right spot to drop a question. So just finished setting up and configuring the prom-client and it is awesome! Was just wondering if there are...
We rely alot on metrics and the share of memory that prometheus uses is growing. Has it ever been suggested that counters/gauges could write to disk and retrieve that state...
The built-in metric (gauge) `nodejs_eventloop_lag_seconds` is marked as measuring the average event loop lag: the `aggregator` property value for it is `average`. However, what it actually reports is the amount...