Giter Club home page Giter Club logo

Comments (6)

dhoard avatar dhoard commented on July 24, 2024

@rus-99-pk remove type=GAUGE, from your blacklistObjectNames value.

from jmx_exporter.

rus-99-pk avatar rus-99-pk commented on July 24, 2024

@dhoard, thank you for reply. But it doesn't work.

I'm still getting:

...
artemis_address_size_bytes{address="Queue.PlannedEvent.DeleteAllPEQueue",} 0.0
artemis_address_size_bytes{address="Queue.PlannedEvent.PEByRuleCreateMessage",} 0.0
artemis_address_size_bytes{address="Queue.EventAction.Notifications",} 0.0
artemis_address_size_bytes{address="ExpiryQueue",} 0.0
artemis_address_size_bytes{address="Queue.PlannedEvent.AddPlannedEventMessages",} 0.0
...

from jmx_exporter.

dhoard avatar dhoard commented on July 24, 2024

@rus-99-pk Are you sure artemis_address_size_bytes is the actual MBean ObjectName? (it doesn't look correct to me)

Can you use JConsole to verify the MBean name?

from jmx_exporter.

rus-99-pk avatar rus-99-pk commented on July 24, 2024

@dhoard, thank you for the tip! I checked your offer in JConsole:

изображение

And write ObjectName value to config:

...
whitelistObjectNames:
  - "org.apache.activemq.artemis:*"
blacklistObjectNames:
  - "org.apache.activemq.artemis:broker=0.0.0.0,component=addresses,address=Queue.PlannedEvent"
...

and it still doesn't work, because i'm still getting:

...
artemis_address_size_bytes{address="Queue.PlannedEvent",} 0.0
...

from jmx_exporter.

dhoard avatar dhoard commented on July 24, 2024

@rus-99-pk Looking ObjectName value and blacklistObjectNames values... they don't match.

The ObjectName has double quotes... the blacklistObjectNames does not.

        ObjectName objectName1 = new ObjectName("org.apache.activemq.artemis:broker=\"0.0.0.0\",component=addresses,address=\"Queue.PlannedEvent\"");
        ObjectName objectName2 = new ObjectName("org.apache.activemq.artemis:broker=0.0.0.0,component=addresses,address=Queue.PlannedEvent");

        System.out.println(objectName1);
        System.out.println(objectName2);
        System.out.println("equal = " + objectName1.equals(objectName2));
org.apache.activemq.artemis:broker="0.0.0.0",component=addresses,address="Queue.PlannedEvent"
org.apache.activemq.artemis:broker=0.0.0.0,component=addresses,address=Queue.PlannedEvent
equal = false

from jmx_exporter.

rus-99-pk avatar rus-99-pk commented on July 24, 2024

@dhoard, thank you so much! I thought it didn't matter, but it doesn't.

I changed my config:

...
whitelistObjectNames:
  - "org.apache.activemq.artemis:*"
blacklistObjectNames:
  - "org.apache.activemq.artemis:broker=\"0.0.0.0\",component=addresses,address=\"Queue.PlannedEvent*\",*"
...

And it works now! Thanks again.

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.