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 metrics from information_schema.innodb_metrics #69

Merged
merged 1 commit into from Feb 12, 2016

Conversation

SuperQ
Copy link
Member

@SuperQ SuperQ commented Jan 22, 2016

Add metrics from information_schema.innodb_metrics.

  • Ignore status_counter metrics duplicatd by SHOW GLOBAL STATUS
  • Only show enabled metrics.

@SuperQ SuperQ force-pushed the superq/innodb_metrics branch 2 times, most recently from c7c4a28 to 7c35ad7 Compare January 22, 2016 16:57
@SuperQ
Copy link
Member Author

SuperQ commented Jan 22, 2016

Example output:

# HELP mysql_info_schema_innodb_metrics_dml Innodb metrics subsystem dml
# TYPE mysql_info_schema_innodb_metrics_dml gauge
mysql_info_schema_innodb_metrics_dml{comment="Number of rows deleted",name="dml_deletes",type="status_counter"} 6.2238132e+07
mysql_info_schema_innodb_metrics_dml{comment="Number of rows inserted",name="dml_inserts",type="status_counter"} 1.83984556e+08
mysql_info_schema_innodb_metrics_dml{comment="Number of rows read",name="dml_reads",type="status_counter"} 1.16084019171e+11
mysql_info_schema_innodb_metrics_dml{comment="Number of rows updated",name="dml_updates",type="status_counter"} 1.72289574e+08

@matthiasr
Copy link
Contributor

How about using the type to make it a counter where appropriate?

@SuperQ
Copy link
Member Author

SuperQ commented Jan 22, 2016 via email

@beorn7
Copy link
Member

beorn7 commented Jan 29, 2016

I like @brian-brazil 's suggestion:

  • innodb metric types value and status_counter would map into gauges, counter to counter
  • innodb names look good to me as Prometheus names. Counters should get a _total appended, though.
  • comment is about perfect as help text.

@SuperQ
Copy link
Member Author

SuperQ commented Feb 7, 2016

status_counter is apparently counters that are duplicated in SHOW GLOBAL STATUS. I think it would be reasonable to simply exclude them.

@SuperQ
Copy link
Member Author

SuperQ commented Feb 7, 2016

Ok, I've updated the metrics. Example output now looks like:

# HELP mysql_info_schema_innodb_metrics_file_system_file_num_open_files Number of files currently open (innodb_num_open_files)
# TYPE mysql_info_schema_innodb_metrics_file_system_file_num_open_files gauge
mysql_info_schema_innodb_metrics_file_system_file_num_open_files 118
# HELP mysql_info_schema_innodb_metrics_lock_lock_deadlocks_total Number of deadlocks
# TYPE mysql_info_schema_innodb_metrics_lock_lock_deadlocks_total counter
mysql_info_schema_innodb_metrics_lock_lock_deadlocks_total 0

@SuperQ SuperQ force-pushed the superq/innodb_metrics branch 2 times, most recently from b0c4bbe to 7330b1f Compare February 7, 2016 10:46
@beorn7
Copy link
Member

beorn7 commented Feb 9, 2016

👍

Add metrics from information_schema.innodb_metrics.
* Ignore `status_counter` metrics duplicatd by `SHOW GLOBAL STATUS`
* Only show enabled metrics.

Feature Request #67
SuperQ added a commit that referenced this pull request Feb 12, 2016
Add metrics from information_schema.innodb_metrics
@SuperQ SuperQ merged commit 30b8d3e into master Feb 12, 2016
@SuperQ SuperQ deleted the superq/innodb_metrics branch February 12, 2016 10: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.

None yet

3 participants