Skip to content

Metrics

OSA Proxy Go exposes Prometheus metrics at:

GET /metrics

Example:

curl http://localhost:8080/metrics

The Go 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-go
    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.

Страница была полезна?