Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add perf_schema.eventsstatementssum collector #347

Merged
merged 1 commit into from
Jul 1, 2019
Merged

Add perf_schema.eventsstatementssum collector #347

merged 1 commit into from
Jul 1, 2019

Conversation

alexey-medvedchikov
Copy link
Contributor

This PR adds collector with aggregated perf_schema.eventstatements metrics (when it makes sense).

The reason why I did this is that we have a lot of MySQL servers with different SQL queries and multiplication X by Y gives us an enormous number of series. We would like to monitor this values still, but it requires either complex setup of Prometheus servers with the federation, either switching off this collector on most of the servers.

Having this collector enables allows us to have an overview of all performance events, and thanks to collect[] parameter feature easily enable extra verbose collector on problematic ones.

Basically, this code is copied and modified collector/perf_schema_events_statements.go one.

@SuperQ
Copy link
Member

SuperQ commented Dec 4, 2018

Sorry for the delay in reviewing this, I've been catching up on things after traveling. I'll try and get to this soon.

@SuperQ
Copy link
Member

SuperQ commented May 8, 2019

This needs a rebase.

Signed-off-by: Alexey Medvedchikov <alexey.medvedchikov@gmail.com>
@SuperQ
Copy link
Member

SuperQ commented Jul 1, 2019

Sorry, I didn't notice this had been re-based.

@SuperQ SuperQ merged commit 507cb41 into prometheus:master Jul 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants