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 label aggregation for innodb buffer metrics #130

Merged
merged 1 commit into from
Aug 1, 2016

Conversation

SuperQ
Copy link
Member

@SuperQ SuperQ commented Jun 5, 2016

Add label aggregation for innodb_metrics buffer subsystem.

  • Total can be ignored as it is an aggregation of data+misc+free
  • Dirty pages are not aggregateable, keep as a separate metric.

@SuperQ
Copy link
Member Author

SuperQ commented Jun 5, 2016

@grypyrg This should help with #129.

@SuperQ SuperQ force-pushed the superq/innodb_metrics_labels branch 4 times, most recently from b386f9e to 644ec80 Compare June 5, 2016 12:38
@SuperQ
Copy link
Member Author

SuperQ commented Jun 13, 2016

Ping @grypyrg, is this what you're looking for?

@SuperQ
Copy link
Member Author

SuperQ commented Aug 1, 2016

Ping @grypyrg

@@ -30,7 +30,10 @@ func TestScrapeInnodbMetrics(t *testing.T) {
AddRow("buffer_pool_size", "server", "value", "Server buffer pool size (all buffer pools) in bytes", 2).
AddRow("buffer_page_read_system_page", "buffer_page_io", "counter", "Number of System Pages read", 3).
AddRow("buffer_page_written_undo_log", "buffer_page_io", "counter", "Number of Undo Log Pages written", 4).
AddRow("NOPE", "buffer_page_io", "counter", "An invalid buffer_page_io metric", 5)
AddRow("buffer_pool_pages_dirty", "buffer", "gauge", "Number of Undo Log Pages written", 5).
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe "Number of Undo Log Pages written" needs to be changed in these rows?

@grypyrg
Copy link

grypyrg commented Aug 1, 2016

Apart from the code comment, looks good to me.

(sorry for delay in replying)

Add label aggregation for innodb_metrics buffer subsystem.
* Total can be ignored as it is an aggregation of data+misc+free
* Dirty pages are not aggregateable, keep as a separate metric.
@SuperQ SuperQ force-pushed the superq/innodb_metrics_labels branch from 644ec80 to 7c3e51a Compare August 1, 2016 19:00
@SuperQ
Copy link
Member Author

SuperQ commented Aug 1, 2016

@grypyrg Fixed comment in tests.

@SuperQ SuperQ merged commit 32ffaf6 into master Aug 1, 2016
@SuperQ SuperQ deleted the superq/innodb_metrics_labels branch August 1, 2016 19:22
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