PromEx.DashboardUploader (PromEx v1.1.1) 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 should provide the following settings:

config :web_app, WebApp.PromEx,
  grafana_host: "<YOUR HOST ADDRESS>",
  grafana_auth_token: "<YOUR GRAFANA AUTH TOKEN>"

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