Giter Site home page Giter Site logo

mbeans as Arrays about jmxtrans-agent HOT 4 CLOSED

geoff-kramer avatar geoff-kramer commented on May 14, 2024
mbeans as Arrays

from jmxtrans-agent.

Comments (4)

cyrille-leclerc avatar cyrille-leclerc commented on May 14, 2024

Hi Geoff,

Could we:

  • introduce a index attribute in the definition of a query to specify which element of an iterable value (collection or array) should be picked

    <query objectName="MyDomain:type=MyMBean,name=*" attribute="zeArrayAttribute" index="20"  
               resultAlias="zeArrayAttributeValueIWant"/>
    
  • if query.index attribute is not defined and the value is an iterable, then we output 1 entry per element of the returned iterable value suffixing the resultAlias by _${index} (e.g. resultAlias="zeAttribute" would return zeAttribute_0=123, zeAttribute_1=456, ...)

from jmxtrans-agent.

geoff-kramer avatar geoff-kramer commented on May 14, 2024

That sounds perfect to me.

from jmxtrans-agent.

cyrille-leclerc avatar cyrille-leclerc commented on May 14, 2024

Hi Geoff,

I have implemented this feature in 1.0.3 (should be available in Maven Central in 2 or 3 hours).

I chose a slightly different name for the config param, it's position(instead of index).

 <query objectName="MyApp:type=MyMBean" attribute="MyMultiValuedAttribute" position="2"
    resultAlias="myMBean.myMultiValuedAttributeValue"/>

All the details at https://github.com/jmxtrans/jmxtrans-agent#multi-valued-attribute-iterable-or-array

Can you please check and tell us if it's ok?

from jmxtrans-agent.

geoff-kramer avatar geoff-kramer commented on May 14, 2024

Verified. Works perfectly.

from jmxtrans-agent.

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.