Module prometheus_text_format

Serializes Prometheus registry using the latest text format.

Behaviours: prometheus_format.

Description

Serializes Prometheus registry using the latest text format. Example output:
    # TYPE http_request_duration_milliseconds histogram
    # HELP http_request_duration_milliseconds Http Request execution time
    http_request_duration_milliseconds_bucket{method="post",le="100"} 0
    http_request_duration_milliseconds_bucket{method="post",le="300"} 1
    http_request_duration_milliseconds_bucket{method="post",le="500"} 3
    http_request_duration_milliseconds_bucket{method="post",le="750"} 4
    http_request_duration_milliseconds_bucket{method="post",le="1000"} 5
    http_request_duration_milliseconds_bucket{method="post",le="+Inf"} 6
    http_request_duration_milliseconds_count{method="post"} 6
    http_request_duration_milliseconds_sum{method="post"} 4350
  

Function Index

content_type/0 Content type of the latest text format.
format/0 Format default registry using the latest text format.
format/1 Format registry using the latest text format.

Function Details

content_type/0

content_type() -> binary()

Content type of the latest text format.

format/0

format() -> binary()

Equivalent to format(default).

Format default registry using the latest text format.

format/1

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

Format registry using the latest text format.


Generated by EDoc, Aug 29 2016, 23:53:53.