zshot/cliDownload

--server-enable-prometheus

Serves the GET /metrics Prometheus endpoint and collects its metrics.

Protect or relocate the endpoint with --server-prometheus-auth, --server-prometheus-bind-address, and --server-prometheus-bind-port.

Enterprise license. Requires --server.

Exposed metrics

All series share the zshot_ prefix. The zshot_requests_* / render metrics describe renders by their semantics (output format, cache, endpoint); the lower-level zshot_http_requests_* metrics describe raw HTTP traffic by route, method, and status.

MetricTypeLabelsDescription
zshot_requests_totalcounterendpoint, format, outcomeCompleted renders. endpoint is get/post/mcp; outcome is success/error. Filter outcome="success" for successful renders by format and endpoint.
zshot_request_duration_secondshistogramformat, cache, statusREST render response time in seconds, segmented by output type, cache hit/miss, and HTTP status. MCP is not included here.
zshot_auth_failures_totalcounterendpoint, format, reasonAuthentication rejections. reason is missing_credentials, invalid_credentials, missing_signature, invalid_signature, expired_signature, missing_expires, or expires_too_far.
zshot_requests_in_flightgaugeRenders currently being processed.
zshot_requests_queuedgaugeRenders waiting in the concurrency queue.
zshot_http_requests_totalcountermethod, status, endpointAll HTTP responses, by route.
zshot_http_requests_duration_secondshistogrammethod, status, endpointLatency of all HTTP requests, by route.
zshot_http_requests_pendinggaugemethod, endpointIn-flight HTTP requests, by route.