Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Send Datadog tags in exometer

I am using exometer and the exometer_report_statsd reporter to report Phoenix endpoints response times to Datadog via dogstatsd.

From a Plug, I am calling :exometer.update/2 to send the response time to Datadog.

E.g:

:exometer.update [:app_name, :webapp, :resp_time], 25

Now, I want to have only one metric app_name.webapp.resp_time instead of one metric per endpoint and version so I thought of using tags.

The question is, where should I include the tags?

like image 720
Nicolas Garnil Avatar asked Aug 04 '17 12:08

Nicolas Garnil


1 Answers

Answering just in case someone will spot this question via Google.

You cannot. StatsD protocol do not define tags or comments at all, so there is no possibility for that. You need to use different library like Statix for that.

like image 197
Hauleth Avatar answered Sep 28 '22 05:09

Hauleth