Coder Social home page Coder Social logo

Comments (5)

abraithwaite avatar abraithwaite commented on June 30, 2024

I don't see any immediate issues with it but I don't like registering stuff with the default handler especially in an opaque and non-reversible way.

No surprises.

from stats.

f2prateek avatar f2prateek commented on June 30, 2024

Why is this required/needed?

I'd be against this as a default, /metrics is somewhat generic (e.g. we use it in the metrics.segment.com service).

If it must, maybe as a more explicit import in a subpackage - import _ "..../promethues/handler" (though at that point you might as well call http.Handle yourself as well).

from stats.

achille-roussel avatar achille-roussel commented on June 30, 2024

/metrics is the standard endpoint for prometheus.

This change would be for convenience, if you have to import another package to replace one line of code it seems like it's not really worth it :P

from stats.

f2prateek avatar f2prateek commented on June 30, 2024

Also just thinking that if an external service were to be using this, this would implicitly expose /metrics externally? That doesn't seem like the best idea.

from stats.

achille-roussel avatar achille-roussel commented on June 30, 2024

Alright you convinced me, that's a bad idea 😛

Thanks for your input guys!

from stats.

Related Issues (20)

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.