DataDog / dd-agent

Datadog Agent Version 5
https://docs.datadoghq.com/
Other
1.3k stars 812 forks source link

Manage metrics name #2107

Open awasilyev opened 8 years ago

awasilyev commented 8 years ago

This is feature request. It will be very nice to have ability to manage metrics names on agent side before sending to datadog server. Use case: we want to use kamon library for pushing metrics from our java application to datadog. Kamon uses harcoded hard-to-read metrics names like core.histogram.system.cpu.waiy.avg and we want to transform them to standard system.cpu.iowait form.(Of course I know about jmx-fetch feature, but we need to initiate metrics sending from apps rather then statically configure it in the datadog-agent config) The idea is to have configurable list of transformation (like nginx rewrites, for example), allowing us to drop some metrics prefix or to map one prefix to another or to apply some kind of sed-like regexp.

remh commented 8 years ago

Thanks for the feedback @awasilyev Yeah something similar to an nginx rewrite would make sense.

I'll keep that issue open to keep track on it.

Thanks again for the feedback!

wilcollins commented 7 years ago

In addition to the ability to strip or map prefixes, adding functionality for clients to map any or all parts of the metric name would be VERY useful when working with multiple metrics libraries. For example, we are producing metric.99percentile and metric.99_percentile so we would like to converge on a consistent naming convention.

Something like:

{
  "99percentile" : "p99"
}
bimp commented 7 years ago

@wilcollins Wil, so are you currently sending a p99 metric to your Datadog dashboard? I'm interested in doing this but I was told by support that I would need to create custom docker image and inject my own datadog.conf file. So I'm not sure whether to share this work as a Docker image, create a github pull request, or if anyone is already done this?