Get com.atlassian.jira MBeans through jolokia

Issue #6 resolved
Gordon Schultz created an issue

Hi,

I’m trying to access the com.atlassian.jira MBeans (especially jira.license) through jolokia, but it seems the MBeans are not exposed 😕

curl "http://localhost:8080/plugins/servlet/jolokia/read/com.atlassian.jira:name=*"

just getting com.atlassian.jira:name=BasicDataSource

I enabled JMX monitoring in admin panel.

Do you have any idea what I am missing?

Comments (3)

  1. Jozef Kotlár

    You have to use “list” endpoint to get all resources

    curl -s "http://localhost:8080/plugins/servlet/jolokia/list/com.atlassian.jira" | python -mjson.tool | grep jira.license
            "type=jira.license": {
    

    So the correct URL in this case would be

    curl -s "http://localhost:8080/plugins/servlet/read/com.atlassian.jira:type=jira.license"
    

  2. Gordon Schultz reporter

    little correction:

    curl -s "http://localhost:8080/plugins/servlet/jolokia/read/com.atlassian.jira:type=jira.license"
    

    now it’s working. Thank you!

  3. Log in to comment