Skip to content

Add prometheus_array_format: export metrics as list of terms#201

Closed
datism wants to merge 1 commit intoprometheus-erl:masterfrom
datism:claude/export-metrics-array-YCCsZ
Closed

Add prometheus_array_format: export metrics as list of terms#201
datism wants to merge 1 commit intoprometheus-erl:masterfrom
datism:claude/export-metrics-array-YCCsZ

Conversation

@datism
Copy link
Copy Markdown

@datism datism commented Apr 10, 2026

Introduces a new format module that returns all collected metrics as a flat list of Erlang 4-tuples [{Name, Type, Labels, Value}] instead of a binary, enabling in-process consumption without text/protobuf parsing.

Histogram samples are emitted with _bucket/_sum/_count suffixes; summary samples emit per-quantile entries plus _sum/_count. Labels are returned as [{BinaryName, BinaryValue}] proplists.

https://claude.ai/code/session_01EG51CCtD9aMBzrNgtFxGCL

Introduces a new format module that returns all collected metrics as a
flat list of Erlang 4-tuples [{Name, Type, Labels, Value}] instead of
a binary, enabling in-process consumption without text/protobuf parsing.

Histogram samples are emitted with _bucket/_sum/_count suffixes; summary
samples emit per-quantile entries plus _sum/_count. Labels are returned
as [{BinaryName, BinaryValue}] proplists.

https://claude.ai/code/session_01EG51CCtD9aMBzrNgtFxGCL
@datism datism closed this Apr 10, 2026
@datism datism deleted the claude/export-metrics-array-YCCsZ branch April 10, 2026 03:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants