Skip to content

docs: add API reference for all metric types #1159

Open
k1chik wants to merge 1 commit intoprometheus:masterfrom
k1chik:fix/1021-api-reference-docs
Open

docs: add API reference for all metric types #1159
k1chik wants to merge 1 commit intoprometheus:masterfrom
k1chik:fix/1021-api-reference-docs

Conversation

@k1chik
Copy link
Copy Markdown

@k1chik k1chik commented Apr 1, 2026

Closes #1021

Adds constructor parameter tables, method documentation, and runnable real world examples for Counter, Gauge, Histogram, Summary, Info, and Enum. The _index.md quick-pick table now covers all six types. Also fixes labels.md, which was missing remove(), remove_by_labels(), and clear(). The metric pages were already linking to them.

cc @csmarchbanks

Adds constructor parameter tables, method documentation, and runnable
real-world examples for Counter, Gauge, Histogram, Summary, Info, and
Enum. The _index.md quick-pick table now covers all six types. Also
fixes labels.md which was missing remove(), remove_by_labels(), and
clear() -- the metric pages were already linking to it for those methods.

Closes prometheus#1021

Signed-off-by: k1chik <107162115+k1chik@users.noreply.github.com>
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.

real reference for API

1 participant