Parapet.Metrics.Ecto (parapet v1.0.0)

Copy Markdown View Source

Defines Prometheus distributions for Ecto queries.

Experimental

This module is experimental in v1.x. Its API may change in a minor release with a single-version notice in CHANGELOG.md. See Stability & Deprecation Policy for details.

Summary

Functions

Returns a list of Telemetry.Metrics definitions for Ecto events.

Sets up the Ecto metrics by attaching a telemetry handler. Takes the event prefix (e.g., [:my_app, :repo]).

Functions

metrics()

Returns a list of Telemetry.Metrics definitions for Ecto events.

setup(event_prefix)

Sets up the Ecto metrics by attaching a telemetry handler. Takes the event prefix (e.g., [:my_app, :repo]).