diff options
author | Pere Diaz Bou <pdiazbou@redhat.com> | 2021-12-16 15:31:28 +0100 |
---|---|---|
committer | Pere Diaz Bou <pdiazbou@redhat.com> | 2022-01-18 13:24:12 +0100 |
commit | b381a83e9bcde79c0695906e749c7b758faff674 (patch) | |
tree | ddf3d8dc45070b70557d431178d0f29ef07970a3 /monitoring | |
parent | monitoring/grafana: Replace missing legendFormat warning with error (diff) | |
download | ceph-b381a83e9bcde79c0695906e749c7b758faff674.tar.xz ceph-b381a83e9bcde79c0695906e749c7b758faff674.zip |
monitoring/grafana: ValueError instead of RuntimeError
Signed-off-by: Pere Diaz Bou <pdiazbou@redhat.com>
Diffstat (limited to 'monitoring')
-rw-r--r-- | monitoring/grafana/dashboards/tests/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/monitoring/grafana/dashboards/tests/util.py b/monitoring/grafana/dashboards/tests/util.py index 1b7e1ac265d..88337728e80 100644 --- a/monitoring/grafana/dashboards/tests/util.py +++ b/monitoring/grafana/dashboards/tests/util.py @@ -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: |