Coder Social home page Coder Social logo

restify-prom-bundle's People

Contributors

ddalmais avatar jucrouzet avatar markbrack avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

restify-prom-bundle's Issues

HTTP metrics do not adhere to Prometheus best practice

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?

A metric with the name restify_status_codes has already been registered.

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..

restify peer dependency

The package.json specifies a peer dependency of Restify ~5. Is this still correct? I'm running Restify version 7 without any noticeable issues

server.router.find is not a function

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.