-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
fix(outputs.yandex_cloud_monitoring): catch int64 values #12156
Conversation
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.
Thanks for fixing this so quickly!
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.
Thanks for the quick fix @powersj! One suggestion, but not a must.
// Write writes metrics to the remote endpoint | ||
func (a *YandexCloudMonitoring) Write(metrics []telegraf.Metric) error { | ||
var yandexCloudMonitoringMetrics []yandexCloudMonitoringMetric | ||
for _, m := range metrics { | ||
for _, field := range m.FieldList() { | ||
value, err := setValue(field.Value) |
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.
You might want to use ToFloat64()
of the internal package, but not a must.
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.
oh hey look at that! I'll use that. Thank you!
Download PR build artifacts for linux_amd64.tar.gz, darwin_amd64.tar.gz, and windows_amd64.zip. 📦 Click here to get additional PR build artifactsArtifact URLs |
(cherry picked from commit f2b49ce)
fixes: #12155