jennifer registry

@jennifer/prometheus

Prometheus metrics: counters, gauges, histograms and summaries in the text exposition format, and queries against the Prometheus HTTP API

prometheusmetricsmonitoringobservabilityexposition

Depend on it

[decks]
"@jennifer/prometheus" = "^0.1.0"

Versions

VersionStatusKindPinRequiresEnginesCapabilities
0.1.0livegitbd16eda66ff8-jennifer >=0.25.0net

License

LGPL-3.0-only

Source

Released from
0.1.0
Published under
@jennifer mplx
Repository owner
jennifer-language

Resolutions

Times a client asked this registry where to find this deck. Not downloads: the registry only stores metadata, and the code is fetched from its repository directly, so we never see an install and cannot count one. Repeated builds inflate these numbers; installs from an existing lockfile do not appear at all. Counted in UTC.

Readme

@jennifer/prometheus

test Documentation release

A Jennifer deck for Prometheus metrics: build counters, gauges, histograms and summaries, render them in the text exposition format (for a /metrics handler, the node_exporter textfile collector or a Pushgateway), and query a Prometheus server's HTTP API.

It was Jennifer's bundled prometheus.j module until 0.27; the surface is the same, so moving over changes only the import:

import "@jennifer/prometheus/" as prometheus;   # was: import "prometheus.j" as prometheus;

Documentation

Install

jvc add @jennifer/prometheus

This vendors the deck to vendor/<scope>/prometheus/. Without jvc, unpack the src/ subtree of a release archive (<scope>-prometheus-<version>.tar.gz) there.

Usage

import "@jennifer/prometheus/" as prometheus;

def m as prometheus.Metric init prometheus.counter("http_requests_total", "Total HTTP requests");
$m = prometheus.observe($m, {"method": "get", "code": "200"}, 1.0);
io.printf("%s", prometheus.render([$m]));

Requirements

Jennifer 0.25.0 or newer, the default jennifer binary: the module imports http (net), so jennifer-tiny cannot load it.

Development

tools/check-all.sh                   # the full gate, as CI runs it
jennifer test src/prometheus_test.j      # the test overlay
tools/check-docs.sh                  # docs against the code
tools/pack.sh dist                   # build the release archive

Licence

LGPL-3.0-only, see LICENSE. Copyright (C) 2026 mplx <[email protected]>.

tools/check-headers.sh checks every source file's SPDX header against deck.toml.

This deck as JSON