Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 644 Bytes

prometheus_format.md

File metadata and controls

22 lines (14 loc) · 644 Bytes

Module prometheus_format

Module that implements this behaviour can be used as foramt parameter for exporters.

This module defines the prometheus_format behaviour.
Required callback functions: content_type/0, format/0, format/1.

Description

Built-in formats:

Callbacks:

  • content_type() - should return content type of the format;
  • format() - should format default regsitry;
  • format(Registry) - should format Registry.