View Source PromEx.Utils (PromEx v1.9.0)
This module provides several general purpose utilities for use in PromEx plugs.
Link to this section Summary
Functions
Converts a time_unit
to its plural form.
Normalize exception messages for use as metric labels.
Take a module name and normalize it for use as a metric label.
Link to this section Types
Specs
duration_unit_plural() :: :seconds | :milliseconds | :microseconds | :nanoseconds
Specs
exception_kind() :: :error | :exit | :throw
The kinds of exceptions that can occur
Link to this section Functions
Specs
make_plural_atom(System.time_unit()) :: atom()
Converts a time_unit
to its plural form.
Specs
normalize_exception(exception_kind(), term(), term()) :: String.t()
Normalize exception messages for use as metric labels.
Specs
Take a module name and normalize it for use as a metric label.