# How do I configure multiple Kibana modules in metricbeat?

**URL:** <https://discuss.elastic.co/t/how-do-i-configure-multiple-kibana-modules-in-metricbeat/348108>\
**Category:** Metrics\
**Created:** [November 28, 2023, 6:32am UTC](https://discuss.elastic.co/t/how-do-i-configure-multiple-kibana-modules-in-metricbeat/348108 "2023-11-28T06:32:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![blueren](https://avatars.discourse-cdn.com/v4/letter/b/ecae2f/32.png) [@blueren](https://discuss.elastic.co/u/blueren)\
**Post date:** [November 28, 2023, 6:32am UTC](https://discuss.elastic.co/t/how-do-i-configure-multiple-kibana-modules-in-metricbeat/348108/1 "2023-11-28T06:32:26Z")

</div>

I am setting up a dedicated ES cluster for monitoring a production clusted as per official ES documentation. I'm able to get the metrics of ES, and now am trying to get the metrics of the two instances of production Kibana that we have.

Going by the [docs](https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-module-kibana.html#_example_configuration_35), this is what is to be configured in modules.d of metricbeat.

```auto
metricbeat.modules:
- module: kibana
  metricsets: ["status"]
  period: 10s
  hosts: ["http://kibana-01:5601"]
  basepath: "ui/01"
  enabled: true

```

We have two instances of Kibana that independently connect to the cluster, and are not load balanced. They have separate base paths:

Eg:  
Kibana-01: [http://kibana-01:5601/ui/01](http://kibana-01:5601/ui/01)  
Kibana-02: [http://kibana-02:5601/ui/02](http://kibana-02:5601/ui/02)

I'm able to get a single kibana instance to be monitored in ES, but how do I handle them both?

The official docs don't mention a mechanism to add multiple base paths, or modules for that matter. How do I go about configuring this?

---

<div class="post-metadata">

**Author:** ![sholzhauer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sholzhauer/32/110282_2.png) [@sholzhauer](https://discuss.elastic.co/u/sholzhauer)\
**Post date:** [November 28, 2023, 12:18pm UTC](https://discuss.elastic.co/t/how-do-i-configure-multiple-kibana-modules-in-metricbeat/348108/2 "2023-11-28T12:18:35Z")

</div>

I believe you have to run two metricbeat instances for this. One for each "cluster"

---

<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 26, 2023, 12:19pm UTC](https://discuss.elastic.co/t/how-do-i-configure-multiple-kibana-modules-in-metricbeat/348108/3 "2023-12-26T12:19:19Z")

</div>

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