-
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
Add general aggregations into Metric interface #3670
Comments
Why is it important to know which aggregator emitted the metric? |
@danielnelson The App Insights has its own aggregated telemetry defined. https://github.com/Microsoft/ApplicationInsights-Go/blob/master/appinsights/telemetry.go#L194 Currently, to convert the aggregated metric from telegraf to App Insights, I'll need to parse each field based on the format of the aggregator plugins. But as an output plugin, I shouldn't need to know what aggregator is used, given count, min, max... are general aggregations. |
What if you just treat, for example, any field named |
@danielnelson Yes, I can do that, but as you said, it's kind of unreliable. |
Ultimately someone would need to guess in many cases as well, such as when the data originates upstream from a queuing system via a plugin like We currently have something similar in the |
Adding this support on a per field basis while not taking a performance hit way is proving to be a bit more work and won't make it in for 1.6. |
@yantang-msft are you still interested in this matter? |
Hello! I am closing this issue due to inactivity. I hope you were able to resolve your problem, if not please try posting this question in our Community Slack or Community Forums or provide additional details in this issue and reqeust that it be re-opened. Thank you! |
I'm trying to write a output plugin to Azure Application Insights, which supports aggregated value natively in its datapoint.
The problem is for an aggregated metric, I won't know which aggregator emitted it. Thus the conversion logic can be funky. It also doesn't scale if a new aggregator is added.
So I'd like to have the Metric interface expose those aggregations (count, min, max, quantiles...) along with the IsAggregate() method.
The text was updated successfully, but these errors were encountered: