mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Prometheus: Add info that using Loki as Prometheus data source is no longer supported and might stop working (#34650)
* Add information that Loki as Prometheus data source is not supported * Fix ugly error when loki as prometheus used * Refactor, add test * Fix type error * Fix test by passing missing method * Update public/app/plugins/datasource/prometheus/query_hints.ts * Remove optionality in prop
This commit is contained in:
@@ -119,7 +119,7 @@ export default class PromQlLanguageProvider extends LanguageProvider {
|
||||
|
||||
// TODO #33976: make those requests parallel
|
||||
await this.fetchLabels();
|
||||
this.metrics = await this.fetchLabelValues('__name__');
|
||||
this.metrics = (await this.fetchLabelValues('__name__')) || [];
|
||||
this.metricsMetadata = fixSummariesMetadata(await this.request('/api/v1/metadata', {}));
|
||||
this.processHistogramMetrics(this.metrics);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user