Git Product home page Git Product logo

Comments (8)

brian-brazil avatar brian-brazil commented on May 27, 2024 1

The default is doing some things that can't be done with just one rule (and also handles some escaping issues), several rules are required if you're doing things more specifically.

from jmx_exporter.

brian-brazil avatar brian-brazil commented on May 27, 2024

Can you give an example of what you're trying to do?

from jmx_exporter.

automaticgiant avatar automaticgiant commented on May 27, 2024

i think i know what they are talking about. i want something like that.
the default pattern seems to extract any/all/arbitrary labels from domain<beanpropertyName1=beanPropertyValue1, beanpropertyName2=beanPropertyValue2, ...><key1, key2, ...>attrName: value however, if you would like to set up a consistant naming mapping from bean objectName to metric name, you have to cover all desired labels in your pattern. i've been unable to come up with a way to write a rule that can do so while preserving the default rule's ability to get all the labels.

from jmx_exporter.

automaticgiant avatar automaticgiant commented on May 27, 2024

i was also (due to quitting early probably) unable to find where in the source the default behavior was defined. a pointer would be appreciated.
i'd really like to be able to reproduce default behavior in a config and tweak it. that might satisfy @BarthV as well.
so are you suggesting universally emulating default behavior is possible with a multiple rules?

from jmx_exporter.

brian-brazil avatar brian-brazil commented on May 27, 2024

so are you suggesting universally emulating default behavior is possible with a multiple rules?

Mostly. In practical terms you should almost always be able to produce a good config for a given server.

from jmx_exporter.

automaticgiant avatar automaticgiant commented on May 27, 2024

i'm interested in a "universal"-ish config, instead of having to set up a config for each jmx app.
we are kafkaing right now, presumably zookeeper, mirrormaker, nifi, etc to follow...
my main complaint is finding a solution to the metric name and tag setup for instances where you have a bunch of attributes and it explodes the metric namespace with them.
otherwise, default rule would work fine.

have:

#kafka_server_BrokerTopicMetrics_OneMinuteRate{name="BytesOutPerSec",topic="SYSLOG",} 3.0799494822146203
#kafka_server_BrokerTopicMetrics_OneMinuteRate{name="FailedFetchRequestsPerSec",topic="SYSLOG",} 0.0
#kafka_server_BrokerTopicMetrics_OneMinuteRate{name="BytesInPerSec",topic="SYSLOG",} 1.4507932500151888
#kafka_server_BrokerTopicMetrics_OneMinuteRate{name="BytesRejectedPerSec",topic="SYSLOG",} 0.0
#kafka_server_BrokerTopicMetrics_OneMinuteRate{name="TotalFetchRequestsPerSec",topic="SYSLOG",} 63.990540940470744
#kafka_server_BrokerTopicMetrics_OneMinuteRate{name="FailedProduceRequestsPerSec",topic="SYSLOG",} 0.0
#kafka_server_BrokerTopicMetrics_OneMinuteRate{name="MessagesInPerSec",topic="SYSLOG",} 0.010284049118568367
#kafka_server_BrokerTopicMetrics_OneMinuteRate{name="TotalProduceRequestsPerSec",topic="SYSLOG",} 0.010284049118568367
#kafka_server_BrokerTopicMetrics_FiveMinuteRate{name="BytesOutPerSec",topic="SYSLOG",} 7.914210031726753
#kafka_server_BrokerTopicMetrics_FiveMinuteRate{name="FailedFetchRequestsPerSec",topic="SYSLOG",} 0.0
#kafka_server_BrokerTopicMetrics_FiveMinuteRate{name="BytesInPerSec",topic="SYSLOG",} 2.8756598718384767
#kafka_server_BrokerTopicMetrics_FiveMinuteRate{name="BytesRejectedPerSec",topic="SYSLOG",} 0.0
#kafka_server_BrokerTopicMetrics_FiveMinuteRate{name="TotalFetchRequestsPerSec",topic="SYSLOG",} 75.86600439041331
#kafka_server_BrokerTopicMetrics_FiveMinuteRate{name="FailedProduceRequestsPerSec",topic="SYSLOG",} 0.0
#kafka_server_BrokerTopicMetrics_FiveMinuteRate{name="MessagesInPerSec",topic="SYSLOG",} 0.016103353485893434
#kafka_server_BrokerTopicMetrics_FiveMinuteRate{name="TotalProduceRequestsPerSec",topic="SYSLOG",} 0.016103353485893434
#kafka_server_FetcherLagMetrics_Value{name="ConsumerLag",clientId="ReplicaFetcherThread-0-4",topic="SYSLOG",partition="4",} 0.0
#kafka_server_FetcherLagMetrics_Value{name="ConsumerLag",clientId="ReplicaFetcherThread-0-2",topic="SYSLOG",partition="7",} 0.0
#kafka_server_FetcherLagMetrics_Value{name="ConsumerLag",clientId="ReplicaFetcherThread-0-4",topic="SYSLOG",partition="9",} 0.0
#kafka_server_FetcherLagMetrics_Value{name="ConsumerLag",clientId="ReplicaFetcherThread-0-5",topic="SYSLOG",partition="0",} 0.0
#kafka_server_FetcherLagMetrics_Value{name="ConsumerLag",clientId="ReplicaFetcherThread-0-4",topic="SYSLOG",partition="3",} 0.0
#kafka_server_FetcherLagMetrics_Value{name="ConsumerLag",clientId="ReplicaFetcherThread-0-5",topic="SYSLOG",partition="8",} 0.0
#kafka_server_BrokerTopicMetrics_FifteenMinuteRate{name="BytesOutPerSec",topic="SYSLOG",} 9.285483891560915
#kafka_server_BrokerTopicMetrics_FifteenMinuteRate{name="FailedFetchRequestsPerSec",topic="SYSLOG",} 0.0
#kafka_server_BrokerTopicMetrics_FifteenMinuteRate{name="BytesInPerSec",topic="SYSLOG",} 3.078354766954514
#kafka_server_BrokerTopicMetrics_FifteenMinuteRate{name="BytesRejectedPerSec",topic="SYSLOG",} 0.0
#kafka_server_BrokerTopicMetrics_FifteenMinuteRate{name="TotalFetchRequestsPerSec",topic="SYSLOG",} 83.79707100258736
#kafka_server_BrokerTopicMetrics_FifteenMinuteRate{name="FailedProduceRequestsPerSec",topic="SYSLOG",} 0.0
#kafka_server_BrokerTopicMetrics_FifteenMinuteRate{name="MessagesInPerSec",topic="SYSLOG",} 0.015124558666446455
#kafka_server_BrokerTopicMetrics_FifteenMinuteRate{name="TotalProduceRequestsPerSec",topic="SYSLOG",} 0.015124558666446455

want something more like:

#kafka_server:BrokerTopicMetrics{attribute="Count...
#kafka_server:BrokerTopicMetrics{attribute="MeanRate...
#kafka_server:BrokerTopicMetrics{attribute="OneMinuteRate...
#kafka_server:BrokerTopicMetrics{attribute="FiveMinuteRate...
#kafka_server:BrokerTopicMetrics{attribute="FifteenMinuteRate...

basically, i just want to move the attribute into a tag, not as part of the metric name.

from jmx_exporter.

automaticgiant avatar automaticgiant commented on May 27, 2024

sorry if i'm hijacking the issue or if it's a different issue. depending on solution, it could be the same issue. @BarthV
it's definitely not the stated issue... :(
i guess i should make a new one?
if the solution were as follows, it would maybe do both:
provide a way to utilize default behavior (automatically grabbing labels), but tweak (move attribute to a label/add new labels to detected labels)

from jmx_exporter.

brian-brazil avatar brian-brazil commented on May 27, 2024

i'm interested in a "universal"-ish config, instead of having to set up a config for each jmx app.

That's unlikely to happen, JMX usage is nowhere near standard enough to allow for that. That's why it's all regexes, there's no common structure.

basically, i just want to move the attribute into a tag, not as part of the metric name.

Those belong as part of the metric name, though of those you really only want the Count and Value.

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