prometheus_format behaviour (prometheus v5.1.1)

View Source

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

Built-in formats:

Summary

Callbacks

Should return content type of the format.

Should format default registry.

Should format Registry.

Callbacks

content_type()

-callback content_type() -> binary().

Should return content type of the format.

format()

-callback format() -> binary().

Should format default registry.

format(Registry)

-callback format(Registry :: prometheus_registry:registry()) -> binary().

Should format Registry.