-
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
feat(outputs.stackdriver): Enable histogram support #14275
Conversation
5ca2869
to
9d74d4c
Compare
03b74d8
to
c80eed1
Compare
This enables the stackdriver output to send histogram metrics. These metrics are required to have a sum field and all other fields should include the buckets and counts in a single metric. Prometheus parser metric version 2 is not supported given the sparse nature of the metrics. This also increases the label limit to 30 per the stackdriver published limits. As histograms could have even more labels than other types of metrics. fixes: influxdata#14258
26dc5ad
to
92aac0e
Compare
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.
Looks good to me. Just one question about the source for the QuotaLabelsPerMetricDescriptor
value...
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 |
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 @powersj!
This adds the ability to send Histograms to stackdriver. Telegraf will check if the metric type is histogram, if so, the single metric is required to have the sum and count fields and then all the various buckets. We take the buckets and counts and transform them into a Stackdriver distribution.
Telegraf's Prometheus metric version type 2 is not supported as the metric is sparse.
While writing this, discovered that our labels per metric limit of 10 was lower than the official limit of 30. That was increased and test updated.
fixes: #14258