-
Notifications
You must be signed in to change notification settings - Fork 0
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
PMM-2019 innodb compression statistics #2
base: master
Are you sure you want to change the base?
PMM-2019 innodb compression statistics #2
Conversation
// cient, that we'll only get numbers. | ||
for idx, columnName := range columnNames[1:] { | ||
if metricType, ok := informationSchemaInnodbCmpTypes[columnName]; ok { | ||
ch <- prometheus.MustNewConstMetric(metricType.desc, metricType.vtype, float64(clientStatData[idx]), client) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unnecessary conversion
} else { | ||
// Unknown metric. Report as untyped. | ||
desc := prometheus.NewDesc(prometheus.BuildFQName(namespace, informationSchema, fmt.Sprintf("innodb_cmp_%s", strings.ToLower(columnName))), fmt.Sprintf("Unsupported metric from column %s", columnName), []string{"page_size"}, nil) | ||
ch <- prometheus.MustNewConstMetric(desc, prometheus.UntypedValue, float64(clientStatData[idx]), client) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unnecessary conversion
if columnName == "relocation_time" { | ||
ch <- prometheus.MustNewConstMetric(metricType.desc, metricType.vtype, float64(clientStatData[idx]/1000), client, buffer) | ||
} else { | ||
ch <- prometheus.MustNewConstMetric(metricType.desc, metricType.vtype, float64(clientStatData[idx]), client, buffer) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unnecessary conversion
PMM-2569: Support for MySQL 8.
Update .travis.yml
for idx, columnName := range columnNames[2:] { | ||
if metricType, ok := informationSchemaInnodbCmpMemTypes[columnName]; ok { | ||
if columnName == "relocation_time" { | ||
ch <- prometheus.MustNewConstMetric(metricType.desc, metricType.vtype, float64(clientStatData[idx]/1000), client, buffer) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unnecessary conversion
…ercona/mysqld_exporter into PMM-2019-Innodb-Compression-statistics
No description provided.