View Source PromEx.DashboardUploader (PromEx v1.11.0)
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>"
Summary
Functions
Returns a specification to start this module under a supervisor.
Used to start the DashboardUploader process
Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
@spec start_link(opts :: keyword()) :: GenServer.on_start()
Used to start the DashboardUploader process