# Graph for MySQL Replication Lag has some “gaps”, moments where it seems like it can not get right value for the system

**URL:** <https://forums.percona.com/t/graph-for-mysql-replication-lag-has-some-gaps-moments-where-it-seems-like-it-can-not-get-right-value-for-the-system/26409>\
**Category:** Percona Monitoring and Management (PMM)\
**Created:** [November 7, 2023, 1:38pm UTC](https://forums.percona.com/t/graph-for-mysql-replication-lag-has-some-gaps-moments-where-it-seems-like-it-can-not-get-right-value-for-the-system/26409 "2023-11-07T13:38:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nanuka](https://avatars.discourse-cdn.com/v4/letter/n/9fc29f/32.png) [@Nanuka](https://forums.percona.com/u/Nanuka)\
**Post date:** [November 7, 2023, 1:38pm UTC](https://forums.percona.com/t/graph-for-mysql-replication-lag-has-some-gaps-moments-where-it-seems-like-it-can-not-get-right-value-for-the-system/26409/1 "2023-11-07T13:38:15Z")

</div>

Hello, I have the situation that graph for MySQL Replication Lag has some “gaps”, moments where it seems like it can not get right value for the system, but actually with the command ‘show slave status'G’  
everything is ok and it doesn’t have the gap. From which parameter does pmm takes this info and what should be checked on pmm side?

 ![Screenshot 2023-11-07 at 17.36.15](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/2X/1/1aeb7ff234a51e0b0e07a3182df59c8691082b5d.jpeg)

---

<div class="post-metadata">

**Author:** ![matthewb](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/matthewb/32/34_2.png) [@matthewb](https://forums.percona.com/u/matthewb)\
**Post date:** [November 7, 2023, 2:14pm UTC](https://forums.percona.com/t/graph-for-mysql-replication-lag-has-some-gaps-moments-where-it-seems-like-it-can-not-get-right-value-for-the-system/26409/2 "2023-11-07T14:14:48Z")

</div>

I would check the pmm agent logs on the mysql server and see if that is reporting any issues since it is the agent which executes the SQL.

---

<div class="post-metadata">

**Author:** ![Nanuka](https://avatars.discourse-cdn.com/v4/letter/n/9fc29f/32.png) [@Nanuka](https://forums.percona.com/u/Nanuka)\
**Post date:** [November 8, 2023, 8:12am UTC](https://forums.percona.com/t/graph-for-mysql-replication-lag-has-some-gaps-moments-where-it-seems-like-it-can-not-get-right-value-for-the-system/26409/3 "2023-11-08T08:12:53Z")

</div>

@matthewb Here is the part of output of pmm agetn logs

```auto
Nov 08 12:48:32 mysql-replica-1 pmm-agent[1078]: time="2023-11-08T12:48:32.560+04:00" level=error msg="ts=2023-11-08T08:48:32.560Z caller=stdlib.go:105 level=error msg=\"error gathering metrics: 3 error(s) occurred:\\n* [from Gatherer #2] collected metric \\\"node_textfile_scrape_error\\\" { gauge:<value:0 > } was collected before with the same name and label values\\n* [from Gatherer #2] collected metric \\\"node_textfile_scrape_error\\\" { gauge:<value:0 > } was collected before with the same name and label values\\n* [from Gatherer #2] collected metric \\\"node_textfile_scrape_error\\\" { gauge:<value:0 > } was collected before with the same name and label values\"" agentID=/agent_id/d90dcee0-653d-4827-ac07-dccad9349041 component=agent-process type=node_exporter
Nov 08 12:49:33mysql-replica-1 pmm-agent[1078]: time="2023-11-08T12:49:33.709+04:00" level=error msg="ts=2023-11-08T08:49:33.709Z caller=stdlib.go:105 level=error msg=\"error gathering metrics: 3 error(s) occurred:\\n* [from Gatherer #2] collected metric \\\"node_textfile_scrape_error\\\" { gauge:<value:0 > } was collected before with the same name and label values\\n* [from Gatherer #2] collected metric \\\"node_textfile_scrape_error\\\" { gauge:<value:0 > } was collected before with the same name and label values\\n* [from Gatherer #2] collected metric \\\"node_textfile_scrape_error\\\" { gauge:<value:0 > } was collected before with the same name and label values\"" agentID=/agent_id/d90dcee0-653d-4827-ac07-dccad9349041 component=agent-process type=node_exporter

```
