java.lang.Object
com.societegenerale.failover.dashboard.metrics.source.prometheus.PrometheusClient

public class PrometheusClient extends Object
Thin, read-only client for the Prometheus HTTP API (GET /api/v1/query). Used by PrometheusMetricsSource to aggregate the failover.* meters across all instances.

Stateless and side-effect-free: it only issues instant queries and parses the vector result into label/value PrometheusClient.Samples. Any transport, HTTP-status, or parse failure surfaces as a PrometheusException so the caller can fall back to the local registry.

Author:
Anand Manissery