Skip to content

api: add prometheus metrics - #48465

Merged
jkarneges merged 1 commit into
mainfrom
jkarneges/api-prom
Oct 29, 2026
Merged

jkarneges merged 1 commit into
mainfrom
jkarneges/api-prom

Conversation

@jkarneges

@jkarneges jkarneges commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

This adds optional prometheus metrics serving, along with an initial component-specific metric (total requests).

# HELP api_log_messages_total Total number of log events emitted by level
# TYPE api_log_messages_total counter
api_log_messages_total{level="debug"} 0
api_log_messages_total{level="error"} 0
api_log_messages_total{level="info"} 2
api_log_messages_total{level="trace"} 0
api_log_messages_total{level="warn"} 0
# HELP api_requests_total Total number of requests processed by api
# TYPE api_requests_total counter
api_requests_total 5

@jkarneges
jkarneges requested a review from a team October 29, 2026 18:20
@jkarneges
jkarneges merged commit a715eb7 into main Oct 29, 2026
21 checks passed
@jkarneges
jkarneges deleted the jkarneges/api-prom branch October 29, 2026 21:48
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