Git Product home page Git Product logo

Comments (5)

brian-brazil avatar brian-brazil commented on September 7, 2024

That's an anti-pattern, target labels should be provided at the Prometheus level via relabelling rather than from clients or exporters.

from client_java.

gouthamve avatar gouthamve commented on September 7, 2024

Thanks! This might solve half my use case. Can you point me to some examples of relabelling_config?

But take the case of env=beta/qa/prod, in a dynamic environment such as AWS, its impossible to have static relabelling config. How do you propose I fix this?

from client_java.

brian-brazil avatar brian-brazil commented on September 7, 2024

You can use EC2 tags for example to determine you labels. See http://www.robustperception.io/automatically-monitoring-ec2-instances/

from client_java.

gouthamve avatar gouthamve commented on September 7, 2024

Well, that is out of the window! We are using tags for everything and as a result the tags API is throttled when we are spinning up machines rapidly. We are currently implementing the SD as a hack for now and will move to consul soon.

Hmm, I think I will make a wrapper over the Prometheus collectors that would automatically insert such info. Hope moving to consul will fix most of the issues of the peculiar use-case we have.

Thanks!

from client_java.

brian-brazil avatar brian-brazil commented on September 7, 2024

Consul tags are a list rather than key/value so while you can use them with relabelling it's a bit more difficult.

from client_java.

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.