# Cant read metric from apache artemis?

**URL:** <https://discuss.elastic.co/t/cant-read-metric-from-apache-artemis/246609>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [August 27, 2020, 11:35am UTC](https://discuss.elastic.co/t/cant-read-metric-from-apache-artemis/246609 "2020-08-27T11:35:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kiran\_Aher](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kiran_aher/32/74617_2.png) [@Kiran\_Aher](https://discuss.elastic.co/u/Kiran_Aher)\
**Post date:** [August 27, 2020, 11:35am UTC](https://discuss.elastic.co/t/cant-read-metric-from-apache-artemis/246609/1 "2020-08-27T11:35:17Z")

</div>

Apologize if this is asked already but Im not able to find enough information on either setup document and [elastic.co](http://elastic.co) forum as well.

We have apache artemis 2.6 running with one broker and trying to get it's metric data in kibana dashboard.

We have ELK stack as elasticsearch+kibana+metricbeat 7.7.0.  
in our artemis setup there is no api/jolokia/ but console/jolokia available. Im not sure what to use as jolokia/JMX endpoint and the corresponding beans but reading  
mbean: 'java.lang:type=Memory' working fine but cant get broker info working.

cat /mnt/activemq-data/metricbeat-7.7.0/modules.d/jolokia.yml

- module: jolokia  
service.name: "JOLOKIA"  
metricsets: ["jmx"]  
period: 10s  
hosts: ["localhost:8161"]  
namespace: "metrics"  
path: "console/jolokia/?ignoreErrors=true&canonicalNaming=false"  
username: "admin"  
password: "admin"  
http\_method: 'POST'  
jmx.mappings:
  - mbean: 'java.lang:type=Runtime'  
attributes:
    - attr: Uptime  
field: uptime

  - mbean: 'java.lang:type=Memory'  
attributes:
    - attr: HeapMemoryUsage  
field: memory.heap\_usage
    - attr: NonHeapMemoryUsage  
field: memory.non\_heap\_usage

  - mbean: 'org.apache.activemq.artemis:broker="0.0.0.0"'  
attributes:
    - attr: AddressMemoryUsage  
field: AddressMemoryUsage
    - attr: ConnectionCount  
field: ConnectionCount
    - attr: TotalConnectionCount  
field: TotalConnectionCount
    - attr: TotalConsumerCount  
field: TotalConsumerCount
    - attr: TotalMessageCount  
field: TotalMessageCount
    - attr: TotalMessagesAcknowledged  
field: TotalMessagesAcknowledged
    - attr: TotalMessagesAdded  
field: TotalMessagesAdded
    - attr: Uptime  
field: BrokerUptime

So i suspect if im missing something in Broker config or metricbeat needs /api/jolokia only ?

---

<div class="post-metadata">

**Author:** ![Kiran\_Aher](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kiran_aher/32/74617_2.png) [@Kiran\_Aher](https://discuss.elastic.co/u/Kiran_Aher)\
**Post date:** [September 9, 2020, 11:26am UTC](https://discuss.elastic.co/t/cant-read-metric-from-apache-artemis/246609/2 "2020-09-09T11:26:40Z")

</div>

anyone here using artemis with metricbeat ? still cant get it working !

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 7, 2020, 1:26pm UTC](https://discuss.elastic.co/t/cant-read-metric-from-apache-artemis/246609/3 "2020-10-07T13:26:55Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
