-
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
datadog output plugin doesn't send the metric type #6822
Comments
It doesn't look like any type support was considered for this output, I believe the plugin was added before we had any metric type support. I was curious how long Datadog has supported metric types as well, but didn't find any information in the Wayback Machine. The current state of metric types in Telegraf is that they are mostly supported as passthrough for the prometheus output. Even when we add support for metric types to Datadog output, there will likely be many metrics that are untyped, so it may be worth asking Datadog if they can add support for using untyped metrics in the COUNT and RATE functions. Would it help or hinder if we sent all untyped metrics as Gauges? We also only currently have the concept a counter type, it might be worth considering if we should have both rate and count types. |
Daniel, Datadog support replied that there is a workaround to edit and 'apply' as_count() but since it is on a metric of type 'other' this could cause the aggregations to be inaccurate Since the root cause (no offense) is inherent in this output plugin I would like to recommend adding a function that checks the prometheus metric type and set count to count, rate to rate and others to unset What do you think? see https://docs.datadoghq.com/api/?lang=bash#post-timeseries-points and https://docs.datadoghq.com/developers/metrics/types/?tab=count |
Yes this would be good, let's try to hammer out a few of the details. Our Converting Our We probably won't know what conversions are best ahead of time, so if our choices are wrong we can always revisit. One thing we should check though is how Datadog handles type changes, will we run into difficulties migrating to the new format or making any future changes? |
Daniel and team, It took me several days to have good answers from datadog (we are a paying customer)
|
It isn't possible, not only can each input plugin have a unique interval, many plugins do not use an interval at all and are event driven (such as socket_listener). Additionally, even with inputs which normally work on an interval it is of course possible for them to run longer, missing a scheduled collection or delaying it. This is why I'm wondering if we should report basically all current types as |
Understood. |
We're currently running into this issue. We'd like to use Telegraf to directly submit metrics to Datadog. This works fine for gauges, but counters and rates are not possible. It's of course possible to specify metric type, units and rollup intervals on the Datadog side, but that requires manual work and as discussed in this issue, this can also lead to inaccuracies. Would you be open to a PR that is similar to #8397? My idea is to be able to specify which fields to interpret as a rate, counter and monotonic counter. I see a couple of challenges there:
|
I think we'd be open to something like that. If you can tell directly how to convert the metric type that is best, but adding a setting for it if you can't infer it from the metric type is fine. |
I would say counting the deltas and submitting diffs, while possible, is probably error prone. I think instead you would map count to gauge. |
We're having hiccups with Rates. I wonder if this issue is the underlying cause of #10944. |
datadog output plugin doesn't send the metric type (optional) therefore the metric type is displayed as 'Other' in datadog and COUNT or RATE queries can't be apply
https://docs.datadoghq.com/api/?lang=bash#metrics
Altough telegraf.Metric holds the Type (see https://github.com/influxdata/telegraf/blob/master/metric.go) , the datadog output plugin (https://github.com/influxdata/telegraf/blob/master/plugins/outputs/datadog/datadog.go) Write function discard it and sends only Metric, Tags, Host and Points
The text was updated successfully, but these errors were encountered: