Coder Social home page Coder Social logo

allow metric exclusions about druid-exporter HOT 3 CLOSED

opstree avatar opstree commented on August 23, 2024
allow metric exclusions

from druid-exporter.

Comments (3)

iamabhishek-dubey avatar iamabhishek-dubey commented on August 23, 2024

You can actually do that at Prometheus level.
https://www.robustperception.io/dropping-metrics-at-scrape-time-with-prometheus

from druid-exporter.

bbecker-te avatar bbecker-te commented on August 23, 2024

Thanks, I will look into it.

from druid-exporter.

bbecker-te avatar bbecker-te commented on August 23, 2024

The metrics emitted by the druid-exporter are all generically grouped into a single druid_emitted_metrics" metric. Individual metrics are specified with the metric_name label. Here are some sample lines from the prometheus scrape target to illustrate:

druid_emitted_metrics{datasource="http_1m_rollup",host="10.202.7.177:8100",metric_name="jetty-numOpenConnections",pod="10-202-7-177",service="druid-middleManager-tier2"} 0
druid_emitted_metrics{datasource="http_1m_rollup",host="10.202.7.177:8100",metric_name="jvm-bufferpool-capacity",pod="10-202-7-177",service="druid-middleManager-tier2"} 5.25921679e+08
druid_emitted_metrics{datasource="http_1m_rollup",host="10.202.7.177:8100",metric_name="jvm-bufferpool-count",pod="10-202-7-177",service="druid-middleManager-tier2"} 7

While the suggestion of using metric_relabel_configs works to drop or keep metrics by name, it does not seem like it would work in this case, because we want to restrict by label, not by metric name (everything is part of the druid_emitted_metrics metric). Hopefully I am misunderstanding and there really is an easy way to do it.

from druid-exporter.

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.