Monitoring
Galaxy Proxy exposes a health check and Prometheus metrics. Neither endpoint requires the API token.
Health check
GET /healthz returns 200 with the body OK while the proxy is running. Kubernetes readiness, liveness, and startup probes use this endpoint.
Prometheus metrics
GET /metrics returns metrics in the Prometheus text format:
| Metric | Type | Description |
|---|---|---|
galaxy_proxy_cache_hits_total | Counter | Total number of cache hits. |
galaxy_proxy_cache_expires_total | Counter | Total number of expired cache entries. |
galaxy_proxy_cache_misses_total | Counter | Total number of cache misses. |
galaxy_proxy_upstream_success_total | Counter | Total number of successful upstream responses. |
galaxy_proxy_upstream_server_4XX_errors_total | Counter | Total number of upstream client errors (HTTP 400–499). |
galaxy_proxy_upstream_server_5XX_errors_total | Counter | Total number of upstream server errors (HTTP 500–599). |
galaxy_proxy_upstream_no_response_total | Counter | Total number of failed upstream requests (no response). |
galaxy_proxy_upstream_avg_response_seconds | Gauge | Average response time for upstream requests, in seconds. |
galaxy_proxy_cache_hit_avg_response_seconds | Gauge | Average response time for cache hits, in seconds. |
The cache and upstream counters cover Galaxy API responses; artifact downloads are not counted. Metrics are saved to the cache directory, so they persist across restarts; they are reset when the cache is cleared with CLEAR_CACHE_ON_START.
Logs
The proxy logs each request and every cache hit, miss, and expiry. Set LOG_FORMAT to json for structured logs, and DEBUG to true for verbose logging. See Configuration.