TimelessMetrics.PrometheusNif (timeless_metrics v6.0.12)

Copy Markdown View Source

NIF-based Prometheus text format parser.

Parses the entire Prometheus exposition body in a single NIF call, returning {entries, error_count} where entries is a list of {metric_name, labels_proplist, value, timestamp} tuples.

Lines without timestamps use 0 as sentinel.

Summary

Functions

Check if the NIF is loaded and available.

Parse Prometheus text format body.

Functions

available?()

Check if the NIF is loaded and available.

load_nif()

parse(body)

Parse Prometheus text format body.

Returns {entries, error_count} where entries is a list of {metric_name, labels_proplist, value, timestamp} tuples.