Metrics

OSA Proxy implementation

This page describes the current OSA Proxy implementation. The archived Java/Spring implementation is available in Archived Java/Spring implementation.

OSA Proxy exposes Prometheus metrics at:

GET /metrics

Example:

curl http://localhost:8080/metrics

The current version does not provide Spring Boot actuator endpoints. Use /metrics for scraping, not /actuator/metrics or /actuator/prometheus.

Prometheus scrape config example

scrape_configs:
  - job_name: osa-proxy
    metrics_path: /metrics
    static_configs:
      - targets:
          - osa-proxy.example.com:8080

Post-installation check

  1. Check that the service responds to the health check:

    curl http://localhost:8080/healthz
  2. Check that the metrics endpoint returns Prometheus data:

    curl http://localhost:8080/metrics
  3. Configure scraping in Prometheus or through the Helm chart ServiceMonitor if the service is deployed in Kubernetes.

Was this page helpful?