feat(api): serve felis_* metrics on the internal face (build-failure counter's only scrape path)

This commit is contained in:
Lemon-miaow committed 2026-09-23 16:17:50 +08:00
1 parent 17ede3c6aa
commit 94f71eea19
4 files changed
+103 -1

No files matched your search

+20
View File
@@ -467,6 +467,26 @@ paths:
'503':
$ref: '#/components/responses/ServiceUnavailable'
/metrics:
get:
tags: [metrics]
operationId: metrics
summary: Prometheus metrics (felis_* collectors) on the internal face.
description: >-
Scrape-only infrastructure route, not a product API: the internal listener is
ClusterIP-only and a Prometheus scrape carries no token, the same stance as the
probes. Serves the felis_* exposition documented in troubleshooting §14; the
external face never serves it.
x-felis-face: [internal]
x-felis-tier: public
security: []
responses:
'200':
description: Prometheus text exposition format.
content:
text/plain:
schema: { type: string }
/session/minecraft/hasJoined:
get:
tags: [nano]