Skip to content

Conversation

@StefanKurek
Copy link
Contributor

Description

Version of MySQL older than 8.0.22 use the show slave status vs show replica status view to retrieve replication metrics. This allows for both the newer & older views to work and retrieve data for the two actual replica metrics available (mysql.replica.time_behind_source & mysql.replica.sql_delay).

Link to tracking issue

Fixes #35217

Testing

Manual testing against MySQL versions 8.0, 8.0.37, & MariaDB Ver 15.1 Distrib 10.5.26-MariaDB

Documentation

None needed

@StefanKurek StefanKurek requested review from a team and djaglowski as code owners October 14, 2024 18:44
@StefanKurek StefanKurek force-pushed the feat/add-mysql-replica-metrics branch 2 times, most recently from 6b6f745 to fc23db1 Compare October 14, 2024 19:24
@StefanKurek StefanKurek force-pushed the feat/add-mysql-replica-metrics branch from fc23db1 to 8a5b0dc Compare October 14, 2024 19:53
@djaglowski djaglowski merged commit 7d02d77 into open-telemetry:main Oct 17, 2024
158 checks passed
@github-actions github-actions bot added this to the next release milestone Oct 17, 2024
@StefanKurek StefanKurek deleted the feat/add-mysql-replica-metrics branch October 17, 2024 16:30
sbylica-splunk pushed a commit to sbylica-splunk/opentelemetry-collector-contrib that referenced this pull request Dec 17, 2024
…-telemetry#35776)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
Version of MySQL older than 8.0.22 use the `show slave status` vs `show
replica status` view to retrieve replication metrics. This allows for
both the newer & older views to work and retrieve data for the two
actual replica metrics available (`mysql.replica.time_behind_source` &
`mysql.replica.sql_delay`).

<!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes open-telemetry#35217

<!--Describe what testing was performed and which tests were added.-->
#### Testing
Manual testing against MySQL versions 8.0, 8.0.37, & MariaDB Ver 15.1
Distrib 10.5.26-MariaDB

<!--Describe the documentation added.-->
#### Documentation
None needed

<!--Please delete paragraphs that you did not use before submitting.-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[receiver] mysql - Replication Metrics don't report before version 8.0.22

3 participants