# MYSQL Integration using elasticagent mysql performance metrics cause metricbeat crashes : Agent V8.5.0

**URL:** <https://discuss.elastic.co/t/mysql-integration-using-elasticagent-mysql-performance-metrics-cause-metricbeat-crashes-agent-v8-5-0/322081>\
**Category:** Elastic Agent\
**Tags:** metricbeat\
**Created:** [December 28, 2022, 9:31am UTC](https://discuss.elastic.co/t/mysql-integration-using-elasticagent-mysql-performance-metrics-cause-metricbeat-crashes-agent-v8-5-0/322081 "2022-12-28T09:31:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nabeel\_Ahmed\_NAK](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nabeel_ahmed_nak/32/133673_2.png) [@Nabeel\_Ahmed\_NAK](https://discuss.elastic.co/u/Nabeel_Ahmed_NAK)\
**Post date:** [December 28, 2022, 9:31am UTC](https://discuss.elastic.co/t/mysql-integration-using-elasticagent-mysql-performance-metrics-cause-metricbeat-crashes-agent-v8-5-0/322081/1 "2022-12-28T09:31:37Z")

</div>

I'm using prebuild elastic integration to fetch mysql metrics and logs.  
I'm able to fetch mysql status metrics and agent running healthy.  
But when I enable MySQL performance metric it will become unhealthy and I got error logs of metricbeat below.

```auto
elastic_agent.metricbeat

[elastic_agent.metricbeat][error] Exiting: data path already locked by another beat. Please make sure that multiple beats are not sharing the same data path (path.data).

14:18:48.262

elastic_agent

[elastic_agent][error] metricbeat stderr: "Exiting: data path already locked by another beat. Please make sure that multiple beats are not sharing the same data path (path.data).\n"

14:18:48.588

elastic_agent.metricbeat

[elastic_agent.metricbeat][error] Exiting: data path already locked by another beat. Please make sure that multiple beats are not sharing the same data path (path.data).

14:18:48.595

elastic_agent

[elastic_agent][error] metricbeat stderr: "Exiting: data path already locked by another beat. Please make sure that multiple beats are not sharing the same data path (path.data).\n"

14:19:18.274

elastic_agent

[elastic_agent][error] Elastic Agent status changed to "error": "app metricbeat--8.5.0-22b02c28: 1 error occurred:\n\t* 1 error: Error creating runner from config: missing required field accessing 'hosts'\n\n"

14:19:18.275

elastic_agent

[elastic_agent][error] 2022-12-28T09:19:18Z - message: Application: metricbeat--8.5.0[1c0f65fb-eeff-4f06-bc78-31f632aec06f]: State changed to FAILED: 1 error occurred: * 1 error: Error creating runner from config: missing required field accessing 'hosts' - type: 'ERROR' - sub_type: 'FAILED'

```

Any solution?

Thanks

---

<div class="post-metadata">

**Author:** ![ChrsMark](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chrsmark/32/55858_2.png) [@ChrsMark](https://discuss.elastic.co/u/ChrsMark)\
**Post date:** [December 29, 2022, 8:38am UTC](https://discuss.elastic.co/t/mysql-integration-using-elasticagent-mysql-performance-metrics-cause-metricbeat-crashes-agent-v8-5-0/322081/2 "2022-12-29T08:38:09Z")

</div>

@ishleenk17 does this look familiar to you? It seems to be an Agent issue 🤔

---

<div class="post-metadata">

**Author:** ![Nabeel\_Ahmed\_NAK](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nabeel_ahmed_nak/32/133673_2.png) [@Nabeel\_Ahmed\_NAK](https://discuss.elastic.co/u/Nabeel_Ahmed_NAK)\
**Post date:** [December 29, 2022, 11:13am UTC](https://discuss.elastic.co/t/mysql-integration-using-elasticagent-mysql-performance-metrics-cause-metricbeat-crashes-agent-v8-5-0/322081/3 "2022-12-29T11:13:48Z")

</div>

Hi  
Any update on it?

---

<div class="post-metadata">

**Author:** ![ChrsMark](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chrsmark/32/55858_2.png) [@ChrsMark](https://discuss.elastic.co/u/ChrsMark)\
**Post date:** [December 29, 2022, 12:09pm UTC](https://discuss.elastic.co/t/mysql-integration-using-elasticagent-mysql-performance-metrics-cause-metricbeat-crashes-agent-v8-5-0/322081/4 "2022-12-29T12:09:12Z")

</div>

There is already an issue for this: [metricbeat restart loop with error: `data path already locked by another beat` · Issue #914 · elastic/elastic-agent · GitHub](https://github.com/elastic/elastic-agent/issues/914)

---

<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:** [January 26, 2023, 12:09pm UTC](https://discuss.elastic.co/t/mysql-integration-using-elasticagent-mysql-performance-metrics-cause-metricbeat-crashes-agent-v8-5-0/322081/5 "2023-01-26T12:09:42Z")

</div>

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