/ddog

Unofficial Elixir package to manage Datadog monitors and dashboards.

Primary LanguageElixir

Ddog

Unofficial Elixir package to manage Datadog resources.

Installation

If available in Hex, the package can be installed by adding ddog to your list of dependencies in mix.exs:

def deps do
  [
    {:ddog, "~> 0.1.0"}
  ]
end

Add below to config.exs:

config :ddog,
  monitor_url: "https://api.datadoghq.com/api/v1/monitor",
  monitor_search_url: "https://api.datadoghq.com/api/v1/monitor/search",
  monitor_downtime_url: "https://api.datadoghq.com/api/v1/downtime",
  monitor_cancel_downtime_byscope_url: "https://api.datadoghq.com/api/v1/downtime/cancel/by_scope"

Export Datadog api and app key:

$ export DATADOG_API_KEY=<key>
$ export DATADOG_APP_KEY=<key>

Run tests locally:

$ mix test.watch

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/ddog.

TBD

  1. Add tests
  2. Add examples