PromEx.Utils (PromEx v1.6.0) View Source

This module prodvides several general purpose utilities for use in PromEx plugs.

Link to this section Summary

Types

The kinds of exceptions that can occur

Functions

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

exception_kind() :: :error | :exit | :throw

The kinds of exceptions that can occur

Link to this section Functions

Link to this function

normalize_exception(arg1, reason, stacktrace)

View Source

Specs

normalize_exception(exception_kind(), term(), term()) :: String.t()

Normalize exception messages for use as metric labels.

Link to this function

normalize_module_name(name)

View Source

Specs

normalize_module_name(String.t() | atom()) :: String.t()

Take a module name and normalize it for use as a metric label.