# Packetbeat mysql only works if metricbeat mysql enabled?

**URL:** <https://discuss.elastic.co/t/packetbeat-mysql-only-works-if-metricbeat-mysql-enabled/352113>\
**Category:** Beats\
**Tags:** packetbeat, metricbeat\
**Created:** [January 30, 2024, 6:20pm UTC](https://discuss.elastic.co/t/packetbeat-mysql-only-works-if-metricbeat-mysql-enabled/352113 "2024-01-30T18:20:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![learningelastic](https://avatars.discourse-cdn.com/v4/letter/l/958977/32.png) [@learningelastic](https://discuss.elastic.co/u/learningelastic)\
**Post date:** [January 30, 2024, 6:20pm UTC](https://discuss.elastic.co/t/packetbeat-mysql-only-works-if-metricbeat-mysql-enabled/352113/1 "2024-01-30T18:20:17Z")

</div>

My goal is to go to `Kibana > Dashboard > [Packetbeat] MySQL performance ECS` and see some visualizations of my mysql performance.

I find that `[Packetbeat] MySQL performance` only shows a bunch of `No results found` widgets. No data appears for any time frame no matter how many queries I perform in MySQL.

To get `[Packetbeat] MySQL performance` to show data, I have to install Metricbeat and upload the file `/etc/metricbeat/modules.d/mysql.yml` with the following contents:

```auto
- module: mysql
  period: 10s
  hosts: ["root:root@tcp(127.0.0.1:3306)/"]

```

Once I do a `systemctl start metricbeat`, then suddenly `[Packetbeat] MySQL performance` shows data.

Is this expected behaviour? Is Metricbeat a prerequisite/requirement to using [Packetbeat] MySQL performance ECS?

---

<div class="post-metadata">

**Author:** ![yago82](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yago82/32/97755_2.png) [@yago82](https://discuss.elastic.co/u/yago82)\
**Post date:** [January 31, 2024, 9:11pm UTC](https://discuss.elastic.co/t/packetbeat-mysql-only-works-if-metricbeat-mysql-enabled/352113/2 "2024-01-31T21:11:39Z")

</div>

Hi,

Packetbeat and Metricbeat are separate Beats modules that collect different types of data.

Make sure that Packetbeat is set up to listen on the correct network interface and port where MySQL traffic is occurring.

Or you might need to adjust the dashboard configuration to match the data that Packetbeat is capturing.

Regards

---

<div class="post-metadata">

**Author:** ![learningelastic](https://avatars.discourse-cdn.com/v4/letter/l/958977/32.png) [@learningelastic](https://discuss.elastic.co/u/learningelastic)\
**Post date:** [January 31, 2024, 9:37pm UTC](https://discuss.elastic.co/t/packetbeat-mysql-only-works-if-metricbeat-mysql-enabled/352113/3 "2024-01-31T21:37:05Z")

</div>

Thanks! Do you know why `[Packetbeat] MySQL performance` dashboard is empty, and only shows result if I run the command `systemctl start metricbeat`? Why would metricbeat affect packetbeat?

---

<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:** [February 28, 2024, 11:37pm UTC](https://discuss.elastic.co/t/packetbeat-mysql-only-works-if-metricbeat-mysql-enabled/352113/4 "2024-02-28T23:37:29Z")

</div>

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