Grafana incorrectly logs errors when YAML is used for metrics

Bug #1837400 reported by Dantali0n
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
watcher
New
Low
Unassigned

Bug Description

The Grafana datasource will incorrectly log not being configured for any metrics if the metric YAML file is used for configuration:

2019-07-22 16:05:47.137 25086 CRITICAL watcher.decision_engine.datasources.grafana [req-d26638e6-add9-49ca-aa6d-9578c0f2a35a - - - - -] GrafanaHelper not configured for any metrics

Ideally, this should not be logged until after the configuration from the metric file is applied to the datasource. This could be achieved by only printing this error if Grafana is not configured for any metrics after the construction has finished and self.configured = True.

Dantali0n (dantalion)
Changed in watcher:
importance: Undecided → Low
Dantali0n (dantalion)
summary: - Grafna incorrectly logs errors when YAML is used for metrics
+ Grafana incorrectly logs errors when YAML is used for metrics
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.