PromEx.DashboardUploader (PromEx v0.1.6-alpha) View Source

This GenServer is responsible for uploading the configured PromEx module dashboards to Grafana. This is a transient process and will terminate after the dashboards have been successfully uploaded. It requires the name of the PromEx module as an option so that it can look into the application config for the appropriate Grafana settings. For example, if the name of the PromEx module is WebApp.PromEx, then your config chould provide the following settings:

config :web_app, WebApp.PromEx,
  grafana_host: "<YOUR HOST ADDRESS>",
  grafana_auth_token: "<YOUR GRAFANA AUTH TOKEN>",
  grafana_datasource_id: "<THE ID OF THE PROMETHEUS DATA SOURCE>"

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Used to start the DashboardUploader process

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Specs

start_link(opts :: keyword()) :: GenServer.on_start()

Used to start the DashboardUploader process