Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public class PrometheusSplitManager
implements ConnectorSplitManager
{
static final long OFFSET_MILLIS = 1L;
static final String QUERY_ENDPOINT = "/api/v1/query";
private final PrometheusClient prometheusClient;
private final PrometheusClock prometheusClock;

Expand Down Expand Up @@ -118,8 +119,7 @@ private static URI buildQuery(URI baseURI, String time, String metricName, Durat
nameValuePairs.add(new BasicNameValuePair("query", metricName + "[" + queryChunkSizeDuration.roundTo(queryChunkSizeDuration.getUnit()) +
Duration.timeUnitToString(queryChunkSizeDuration.getUnit()) + "]"));
nameValuePairs.add(new BasicNameValuePair("time", time));
return new URIBuilder(baseURI.toString())
.setPath("api/v1/query")
return new URIBuilder(baseURI.toString() + QUERY_ENDPOINT)
.setParameters(nameValuePairs)
.build();
}
Expand Down