Elixir tools for accessing the Grafana API (see http://docs.grafana.org/http_api/).
-
Add grafana to your list of dependencies in
mix.exs
:def deps do [{:grafana, "~> 0.1.7"}] end
-
Ensure grafana is started before your application:
def application do [applications: [:grafana]] end
-
Configure the environment variables in your config files:
config :grafana, api_host: "<your grafana server url>", api_key: "Bearer <your key>"
config :grafana, api_host: "test"