From: Vallari Agrawal Date: Fri, 21 Mar 2025 08:09:31 +0000 (+0530) Subject: monitoring: add 'noValue' config to garfana panels X-Git-Tag: testing/wip-vshankar-testing-20250407.170244-debug~12^2~4 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=2ae0d91ed31b5e67fbbe6737b310c76fa878e065;p=ceph-ci.git monitoring: add 'noValue' config to garfana panels Add noValue param to garfana panel functions: - timeSeriesPanel - addStatPanel Signed-off-by: Vallari Agrawal --- diff --git a/monitoring/ceph-mixin/dashboards/timeseries_panel.libsonnet b/monitoring/ceph-mixin/dashboards/timeseries_panel.libsonnet index 6cd7e70a42e..10e7885f1ce 100644 --- a/monitoring/ceph-mixin/dashboards/timeseries_panel.libsonnet +++ b/monitoring/ceph-mixin/dashboards/timeseries_panel.libsonnet @@ -43,6 +43,7 @@ scaleDistributionLog=null, sortBy=null, sortDesc=null, + noValue=null, ):: { title: title, type: 'timeseries', @@ -90,6 +91,7 @@ mode: thresholdsMode, steps: [], }, + [if noValue != null then 'noValue']: noValue, unit: unit, }, overrides: [], diff --git a/monitoring/ceph-mixin/dashboards/utils.libsonnet b/monitoring/ceph-mixin/dashboards/utils.libsonnet index 50fa0027f28..3e5d685b686 100644 --- a/monitoring/ceph-mixin/dashboards/utils.libsonnet +++ b/monitoring/ceph-mixin/dashboards/utils.libsonnet @@ -412,6 +412,7 @@ local timeSeries = import 'timeseries_panel.libsonnet'; isGrayOnNoData=null, isHideAlertsOnDisable=null, isIgnoreOKColors=null, + noValue=null, ):: g.statPanel.new( title=title, @@ -428,6 +429,7 @@ local timeSeries = import 'timeseries_panel.libsonnet'; pluginVersion=pluginVersion, decimals=decimals, thresholdsMode=thresholdsMode, + noValue=noValue ) + { [if interval != null then 'interval']: interval, [if maxDataPoints != null then 'maxDataPoints']: maxDataPoints, @@ -609,6 +611,7 @@ local timeSeries = import 'timeseries_panel.libsonnet'; scaleDistributionLog=null, sortBy=null, sortDesc=null, + noValue=null, ):: timeSeries.new( title=title, @@ -643,6 +646,7 @@ local timeSeries = import 'timeseries_panel.libsonnet'; scaleDistributionLog=scaleDistributionLog, sortBy=sortBy, sortDesc=sortDesc, + noValue=noValue, ) + { pluginVersion: pluginVersion, [if interval != null then 'interval']: interval,