mirror of https://github.com/grafana/grafana.git
Prometheus: Change condition for exemplars availability (#40780)
This commit is contained in:
parent
73e66d97a5
commit
0a97d0fff3
|
|
@ -813,7 +813,7 @@ export class PrometheusDatasource extends DataSourceWithBackend<PromQuery, PromO
|
|||
async areExemplarsAvailable() {
|
||||
try {
|
||||
const res = await this.metadataRequest('/api/v1/query_exemplars', { query: 'test' });
|
||||
if (res.statusText === 'OK') {
|
||||
if (res.data.status === 'success') {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue