Skip to content
Novus Examples
prom1.1 KB

Prometheus Exposition — Cumulative Histogram (prom)

A classic Prometheus histogram: eleven finite le buckets plus +Inf, with monotonically non-decreasing cumulative counts and matching _sum and _count series. The fixture for bucket ordering, cumulative arithmetic and histogram_quantile interpolation.

Preview — first 17 linesprom
# HELP http_request_duration_seconds End-to-end request latency in seconds.
# TYPE http_request_duration_seconds histogram
http_request_duration_seconds_bucket{service="checkout-api",le="0.005"} 12
http_request_duration_seconds_bucket{service="checkout-api",le="0.01"} 341
http_request_duration_seconds_bucket{service="checkout-api",le="0.025"} 2210
http_request_duration_seconds_bucket{service="checkout-api",le="0.05"} 7412
http_request_duration_seconds_bucket{service="checkout-api",le="0.1"} 15908
http_request_duration_seconds_bucket{service="checkout-api",le="0.25"} 21744
http_request_duration_seconds_bucket{service="checkout-api",le="0.5"} 23511
http_request_duration_seconds_bucket{service="checkout-api",le="1.0"} 24102
http_request_duration_seconds_bucket{service="checkout-api",le="2.5"} 24398
http_request_duration_seconds_bucket{service="checkout-api",le="5.0"} 24487
http_request_duration_seconds_bucket{service="checkout-api",le="10.0"} 24512
http_request_duration_seconds_bucket{service="checkout-api",le="+Inf"} 24518
http_request_duration_seconds_sum{service="checkout-api"} 3418.2214
http_request_duration_seconds_count{service="checkout-api"} 24518

Specifications

Buckets
12
Cumulative
true
Has Inf Bucket
true
Count
24518
Sum
3418.2214
Lowest Bound
0.005
Highest Finite Bound
10
Implied P99 Bound
1

Testing contract

Expected to pass
Scenario
Parse the family and compute a 99th-percentile estimate from the buckets.
Expected result
Bucket counts increase monotonically to 24518, the +Inf bucket equals _count exactly, and the p99 estimate falls inside the 0.5 to 1.0 second bucket.

What is a .prom file?

A .prom file holds metrics in the Prometheus text exposition format, the same body a `/metrics` endpoint returns. Each metric family is introduced by `# HELP` and `# TYPE` comments and followed by one sample per line: a metric name, an optional brace-delimited label set, a value, and an optional millisecond timestamp. Counters, gauges, histograms (with `_bucket`, `_sum`, `_count` series and a `+Inf` bucket), and summaries with quantile labels all use this one grammar.

How to use this file

Use an example .prom file to test exposition-format parsers, scrapers, and the node_exporter textfile collector — checking label escaping, histogram bucket ordering and cumulative counts, and the handling of `NaN` and `+Inf` values.

How to use this file for testing

“Prometheus Exposition — Cumulative Histogram (prom)” is a deterministic Novus Examples fixture for Observability, Time-series data, Time-series data. Structured and plain-text telemetry with known timestamps, levels, request identifiers, and error states for testing log ingestion, correlation, dashboards, and alert pipelines.

Documented properties for this file: PROM · 1,171 bytes. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.

Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such — expect parsers to fail loudly rather than silently accept them.

Telemetry fixtures use fixed trace IDs, span IDs, and timestamps so ingestion is reproducible run to run. Point your collector, parser, or query layer at the file and assert the documented span tree, metric families, or severity mix; service and host names are invented.

Generated by generation/observability.py. Free for any use, no attribution required — license.