PromEx.ManualMetricsManager (PromEx v1.12.0)

Copy Markdown View Source

This GenServer is responsible to keeping track of all the manual metrics from your configured plugins. It will fetch metrics initially when starting (either immediately or after a configured delay). At that point if you would like to refresh your metrics data points call the refresh_metrics/1 function.

Summary

Functions

Returns a specification to start this module under a supervisor.

This function calls into the GenServer and refreshes all of the configured manual metrics data points.

Used to start the PromEx.ManualMetricsManager process

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

refresh_metrics(prom_ex_module)

@spec refresh_metrics(prom_ex_module :: module()) :: :ok

This function calls into the GenServer and refreshes all of the configured manual metrics data points.

start_link(opts)

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

Used to start the PromEx.ManualMetricsManager process