An elixir library for integrating for pushing exometer metrics to datadog via the REST API.
It's already possible to use the existing exometer_report_statsd
reporter to
feed data in to the dogstatsd agent. However, there are some situations where
that is not ideal (or even possible). This library aims to cover those
situations, by directly submitting exometer statistics to datadog via the REST
API.
- Contains an exometer reporter that reports to the datadog API.
- Automatically registers the reporter with exometer.
- Can automatically add VM monitoring stats to exometer.
- Can automatically add limited system monitoring stats that mimic the metrics gathered dogstatsd
-
Add exometer_datadog to your list of dependencies in
mix.exs
:def deps do [{:exometer_datadog, "~> 0.4.0"}] end
-
Ensure exometer_datadog is started before your application:
def application do [applications: [:exometer_datadog]] end
-
Add your datadog API keys to your configuraton. Note: you probably want to store these in
prod.secret.exs
or equivalent to avoid checking in to your repository. See the docs for more configuration options.config :exometer_datadog, api_key: 'abcd',
-
You might optionally want to configure some of the other exometer_datadog settings. For more details, see the documentation.