# Prometheus module doesn't work with WildFly 18

**URL:** <https://discuss.elastic.co/t/prometheus-module-doesnt-work-with-wildfly-18/207559>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [November 12, 2019, 4:24pm UTC](https://discuss.elastic.co/t/prometheus-module-doesnt-work-with-wildfly-18/207559 "2019-11-12T16:24:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rcd](https://avatars.discourse-cdn.com/v4/letter/r/ecccb3/32.png) [@rcd](https://discuss.elastic.co/u/rcd)\
**Post date:** [November 12, 2019, 4:24pm UTC](https://discuss.elastic.co/t/prometheus-module-doesnt-work-with-wildfly-18/207559/1 "2019-11-12T16:24:12Z")

</div>

I'm trying to configure Metricbeat to pull statistics from WildFly 18's MicroProfile Metrics subsystem. Internally, that subsystem is implemented using smallrye-metrics. When Metricbeat polls WildFly, the Prometheus module spits out an error that says:

> Unable to decode response from prometheus endpoint

I have no idea why. There are no further details. Enabling debug logging in Metricbeat provides no additional information. I've used Wireshark to confirm that Metricbeat is getting the response it should, and the format of the response looks valid to me.

I tried to paste the response here and the forum complained my post had too many characters, so here's a link to PasteBin instead: [# HELP base\_cpu\_processCpuLoad Displays the "recent cpu usage" for the Java Virt - Pastebin.com](https://pastebin.com/1WJXvW6Z)

Could someone who works on Metricbeat help me diagnose what's happening here?

---

<div class="post-metadata">

**Author:** ![exekias](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/exekias/32/28718_2.png) [@exekias](https://discuss.elastic.co/u/exekias)\
**Post date:** [November 13, 2019, 3:22pm UTC](https://discuss.elastic.co/t/prometheus-module-doesnt-work-with-wildfly-18/207559/2 "2019-11-13T15:22:35Z")

</div>

Hi @rcd,

I tried the pastebin and it imported for me. Would it be possible for you to provide some steps to reproduce this? A docker scenario would also work.

Best regards

---

<div class="post-metadata">

**Author:** ![rcd](https://avatars.discourse-cdn.com/v4/letter/r/ecccb3/32.png) [@rcd](https://discuss.elastic.co/u/rcd)\
**Post date:** [November 13, 2019, 3:59pm UTC](https://discuss.elastic.co/t/prometheus-module-doesnt-work-with-wildfly-18/207559/3 "2019-11-13T15:59:03Z")

</div>

1. Download WildFly 18. Start it using the standard configuration by running bin/standalone.bat (or standalone.sh if you're on Linux) with no arguments.

2. Create this Metricbeat module:

Put leading spaces where needed. The "preformatted text" option on this forum doesn't work very well.

1. Execute 'metricbeat test modules'

---

<div class="post-metadata">

**Author:** ![exekias](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/exekias/32/28718_2.png) [@exekias](https://discuss.elastic.co/u/exekias)\
**Post date:** [November 14, 2019, 11:53am UTC](https://discuss.elastic.co/t/prometheus-module-doesnt-work-with-wildfly-18/207559/4 "2019-11-14T11:53:58Z")

</div>

Thanks @rcd,

Could you please open a bug report with this info? Sounds like something we should look into: [https://github.com/elastic/beats/issues/new?template=bug-report.md](https://github.com/elastic/beats/issues/new?template=bug-report.md)

Best regards

---

<div class="post-metadata">

**Author:** ![rcd](https://avatars.discourse-cdn.com/v4/letter/r/ecccb3/32.png) [@rcd](https://discuss.elastic.co/u/rcd)\
**Post date:** [November 18, 2019, 10:45pm UTC](https://discuss.elastic.co/t/prometheus-module-doesnt-work-with-wildfly-18/207559/5 "2019-11-18T22:45:04Z")

</div>

I created the issue here: [https://github.com/elastic/beats/issues/14513](https://github.com/elastic/beats/issues/14513)

---

<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:** [December 16, 2019, 10:59pm UTC](https://discuss.elastic.co/t/prometheus-module-doesnt-work-with-wildfly-18/207559/6 "2019-12-16T22:59:20Z")

</div>

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