Class PrometheusClient
java.lang.Object
com.societegenerale.failover.dashboard.metrics.source.prometheus.PrometheusClient
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
-
Method Summary
Modifier and TypeMethodDescriptionstatic PrometheusClientBuilds a client from the configured base URL, optional bearer token, and timeout.
-
Method Details
-
create
Builds a client from the configured base URL, optional bearer token, and timeout.
-