Prometheus: Change exemplars endpoint (#30378)

This commit is contained in:
Zoltán Bedi 2021-01-19 10:45:15 +01:00 committed by GitHub
parent c95928a1d9
commit 32c51215c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -663,7 +663,7 @@ export class PrometheusDatasource extends DataSourceApi<PromQuery, PromOptions>
} }
getExemplars(query: PromQueryRequest) { getExemplars(query: PromQueryRequest) {
const url = '/api/v1/query_exemplar'; const url = '/api/v1/query_exemplars';
return this._request<PromDataSuccessResponse<PromExemplarData>>( return this._request<PromDataSuccessResponse<PromExemplarData>>(
url, url,
{ query: query.expr, start: query.start.toString(), end: query.end.toString() }, { query: query.expr, start: query.start.toString(), end: query.end.toString() },