Skip to Content

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:

MetricTypeDescription
galaxy_proxy_cache_hits_totalCounterTotal number of cache hits.
galaxy_proxy_cache_expires_totalCounterTotal number of expired cache entries.
galaxy_proxy_cache_misses_totalCounterTotal number of cache misses.
galaxy_proxy_upstream_success_totalCounterTotal number of successful upstream responses.
galaxy_proxy_upstream_server_4XX_errors_totalCounterTotal number of upstream client errors (HTTP 400–499).
galaxy_proxy_upstream_server_5XX_errors_totalCounterTotal number of upstream server errors (HTTP 500–599).
galaxy_proxy_upstream_no_response_totalCounterTotal number of failed upstream requests (no response).
galaxy_proxy_upstream_avg_response_secondsGaugeAverage response time for upstream requests, in seconds.
galaxy_proxy_cache_hit_avg_response_secondsGaugeAverage 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.