mirror of
https://github.com/ceph/ceph
synced 2026-08-02 07:03:18 +00:00
monitoring/grafana: ValueError instead of RuntimeError
Signed-off-by: Pere Diaz Bou <pdiazbou@redhat.com>
This commit is contained in:
parent
4c302234ff
commit
b381a83e9b
@ -66,7 +66,7 @@ def add_dashboard_queries(data: Dict[str, Any], dashboard_data: Dict[str, Any],
|
||||
data['queries'][query_id] = {'query': target['expr'], 'path': path}
|
||||
data['stats'][path]['total'] += 1
|
||||
if error:
|
||||
raise RuntimeError(f'Missing legend_format in queries, please add a proper value.')
|
||||
raise ValueError(f'Missing legend_format in queries, please add a proper value.')
|
||||
|
||||
|
||||
def add_dashboard_variables(data: Dict[str, Any], dashboard_data: Dict[str, Any]) -> None:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user