You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I found a bug in the code.
Metrics in system.asynchronous_ values may not be of Int type, but may also be of Float type.
If the code is not modified, when a value of float type appears in metrics, the following problems will occur:
After the code in exporter.go is modified as follows, the problem is solved
q.Set("query", "select metric, value from system.asynchronous_ metrics") -> q.Set("query", "select metric, toInt64(value) from system.asynchronous_ metrics")
The text was updated successfully, but these errors were encountered:
Hello, I found a bug in the code.
Metrics in system.asynchronous_ values may not be of Int type, but may also be of Float type.
If the code is not modified, when a value of float type appears in metrics, the following problems will occur:
Error scraping clickhouse url http://xxx :8123/?query=select+metric%2C+value+from+ system.asynchronous_ metrics: strconv.Atoi : parsing "2199.998": invalid syntax file= exporter.go line=292
After the code in exporter.go is modified as follows, the problem is solved
q.Set("query", "select metric, value from system.asynchronous_ metrics") -> q.Set("query", "select metric, toInt64(value) from system.asynchronous_ metrics")
The text was updated successfully, but these errors were encountered: