# Metricbeat openmetrics module ignores 'metrics\_path' parameter

**URL:** <https://discuss.elastic.co/t/metricbeat-openmetrics-module-ignores-metrics-path-parameter/286495>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [October 12, 2021, 1:00pm UTC](https://discuss.elastic.co/t/metricbeat-openmetrics-module-ignores-metrics-path-parameter/286495 "2021-10-12T13:00:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AuroraBorealis](https://avatars.discourse-cdn.com/v4/letter/a/76d3ee/32.png) [@AuroraBorealis](https://discuss.elastic.co/u/AuroraBorealis)\
**Post date:** [October 12, 2021, 1:00pm UTC](https://discuss.elastic.co/t/metricbeat-openmetrics-module-ignores-metrics-path-parameter/286495/1 "2021-10-12T13:00:21Z")

</div>

Hello,  
I use Metricbeat 7.15 to collect metrics from a JBoss EAP application server. The applicaion-specific metrics are available at: [http://localhost:10090/metrics/application](http://localhost:10090/metrics/application)

I configured the openmetrics module like this:

```auto
# Module: openmetrics
# Docs: https://www.elastic.co/guide/en/beats/metricbeat/7.x/metricbeat-module-openmetrics.html

- module: openmetrics
  metricsets: ['collector']
  period: 10s
  hosts: ['localhost:10090']

  metrics_path: "/metrics/application"
  metrics_filters:
    include: []
    exclude: []

```

But it seems that the parameter `metrics_path` is ignored and the default value `/metrics` is always used. Even if I change it to something invalid like `/xxmetrics`, the metrics are still queried from `/metrics`.

Is my configuration wrong or is this an issue in the openmetrics module?

Thanks!  
Stephan

---

<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:** [November 9, 2021, 3:00pm UTC](https://discuss.elastic.co/t/metricbeat-openmetrics-module-ignores-metrics-path-parameter/286495/2 "2021-11-09T15:00:47Z")

</div>

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