jochen-schweizer / express-prom-bundle

express middleware with standard prometheus metrics in one bundle
MIT License
303 stars 67 forks source link

Can custom metrics (counters, gauges) be emitted via express-prom-bundle? #65

Closed h2rashee closed 3 years ago

h2rashee commented 4 years ago

This is a more high-level question about the package in general.

Is the sole purpose of this package to handle standard Express metrics only or does it support also pushing through custom metrics as well i.e. avoid having to double-integrate with prom-client?

jorge07 commented 3 years ago

All metrics defined with prom-client package will be exposed automatically.

disjunction commented 3 years ago

The purpose of this package is to add the express metrics to already existing metrics one has with prom-client. It is NOT supposed to proxy any additional metrics to the prom-client simply because you can do that directly.