# Metric Beat and Jolokia Module

**URL:** <https://discuss.elastic.co/t/metric-beat-and-jolokia-module/298724>\
**Category:** Beats\
**Tags:** beats-module, metricbeat\
**Created:** [March 3, 2022, 10:09am UTC](https://discuss.elastic.co/t/metric-beat-and-jolokia-module/298724 "2022-03-03T10:09:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![deralch](https://avatars.discourse-cdn.com/v4/letter/d/278dde/32.png) [@deralch](https://discuss.elastic.co/u/deralch)\
**Post date:** [March 3, 2022, 10:09am UTC](https://discuss.elastic.co/t/metric-beat-and-jolokia-module/298724/1 "2022-03-03T10:09:43Z")

</div>

Hey there,

i'm trying to get following metrics out of the tomcat:  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/3/9/39b9d52b5be579e0e8d6cbfb683f57da02d2d107.png)

My config:

```auto
  jmx.mappings:
    - mbean: 'Catalina:type=Manager,host=localhost,context=/guidemo'
      attributes:
       - attr: activeSessions
         field: manager.guidemoActiceSessions

```

The exception message is:  
`2022-03-03T10:58:03.200+0100 ERROR module/wrapper.go:259 Error fetching data for metricset jolokia.jmx: 1 error: metric key 'activeSessions' for mbean 'Catalina:context=/guidemo,host=localhost,type=Manager' not found in mapping`

---

<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:** [March 31, 2022, 12:09pm UTC](https://discuss.elastic.co/t/metric-beat-and-jolokia-module/298724/2 "2022-03-31T12:09:58Z")

</div>

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