Class PrometheusClient

java.lang.Object
de.cuioss.benchmarking.common.metrics.PrometheusClient

public class PrometheusClient extends Object
HTTP client for querying Prometheus API endpoints. Supports query_range operations for time-series data retrieval during benchmark execution.
  • Constructor Details

    • PrometheusClient

      public PrometheusClient(String prometheusUrl)
      Creates a new Prometheus client with default timeout.
      Parameters:
      prometheusUrl - Base URL of Prometheus server (e.g., http://localhost:9090)
    • PrometheusClient

      public PrometheusClient(String prometheusUrl, Duration timeout)
      Creates a new Prometheus client with custom timeout.
      Parameters:
      prometheusUrl - Base URL of Prometheus server
      timeout - HTTP request timeout
  • Method Details