Releasesv0.1.0
Operations

Prometheus metrics (absent when OHS_METRICS=false)

GET
/metrics

Instance wide counters, never per-tenant data. On the API listener a scrape presents the OHS_METRICS_TOKEN bearer token; with no token configured every scrape is refused with 403. With OHS_METRICS_LISTEN set the route moves to that address (404 here), where the token is asked for only when set.

Authorization

metricsToken
headerAuthorizationBearer <token>

The instance's OHS_METRICS_TOKEN, for Prometheus scrapes of /metrics.

Response Body

Prometheus text exposition format 0.0.4.

response?stringtext/plain
curl -X GET 'http://localhost:8080/metrics'
"string"
Edit on GitHub