etf1 / restify-prom-bundle Goto Github PK
View Code? Open in Web Editor NEWRestify prometheus middleware to expose HTTP metrics
License: MIT License
Restify prometheus middleware to expose HTTP metrics
License: MIT License
I wanted to make a PR to fix this, but it looks a little non-trivial and I was wondering to hear author's take on this.
I think that two metrics this library should expose would be http_request_duration_miliseconds
and http_requests_total
, with an option to disable path label.
@jucrouzet @ddalmais what do you think?
Hello,
When I call your lib as :
this._server.pre(promBundle.preMiddleware(this._server));
I've got this error :
A metric with the name restify_status_codes has already been registered.
Do you know how to resolve it ?
I comment in my code all healthz / metrics routes, it's change nothing..
The package.json specifies a peer dependency of Restify ~5. Is this still correct? I'm running Restify version 7 without any noticeable issues
I need that pull request from last year merged so I can use this
package.json versions
"restify": "^7.2.1",
"restify-prom-bundle": "^2.0.3",
using the default handler
server.pre(promBundle.preMiddleware(server, {/* options */}));
I get the following error:
TypeError: server.router.find is not a function
at ...\node_modules\restify-prom-bundle\built\js\preMiddleware.js:138:23
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.