File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
observability-lib/grafana Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -440,8 +440,9 @@ func NewTimeSeriesPanel(options *TimeSeriesPanelOptions) *Panel {
440
440
441
441
type BarGaugePanelOptions struct {
442
442
* PanelOptions
443
- ShowUnfilled bool
444
- Orientation common.VizOrientation
443
+ ShowUnfilled bool
444
+ Orientation common.VizOrientation
445
+ ShowAllValues bool
445
446
}
446
447
447
448
func NewBarGaugePanel (options * BarGaugePanelOptions ) * Panel {
@@ -457,7 +458,7 @@ func NewBarGaugePanel(options *BarGaugePanelOptions) *Panel {
457
458
Unit (options .Unit ).
458
459
ReduceOptions (
459
460
common .NewReduceDataOptionsBuilder ().
460
- Calcs ([]string {"lastNotNull" }).Values (false ),
461
+ Calcs ([]string {"lastNotNull" }).Values (options . ShowAllValues ),
461
462
)
462
463
463
464
if options .Interval != "" {
@@ -515,6 +516,7 @@ func NewBarGaugePanel(options *BarGaugePanelOptions) *Panel {
515
516
516
517
type GaugePanelOptions struct {
517
518
* PanelOptions
519
+ ShowAllValues bool
518
520
}
519
521
520
522
func NewGaugePanel (options * GaugePanelOptions ) * Panel {
@@ -530,7 +532,7 @@ func NewGaugePanel(options *GaugePanelOptions) *Panel {
530
532
Unit (options .Unit ).
531
533
ReduceOptions (
532
534
common .NewReduceDataOptionsBuilder ().
533
- Calcs ([]string {"lastNotNull" }).Values (false ),
535
+ Calcs ([]string {"lastNotNull" }).Values (options . ShowAllValues ),
534
536
)
535
537
536
538
if options .Interval != "" {
You can’t perform that action at this time.
0 commit comments