diff --git a/dac/SingleGauge/main.go b/dac/SingleGauge/main.go index 41d3822..5148b03 100644 --- a/dac/SingleGauge/main.go +++ b/dac/SingleGauge/main.go @@ -41,6 +41,18 @@ func main() { query.PromQL("100 - ((node_memory_MemAvailable_bytes{env=\"demo\", instance=\"demo.do.prometheus.io:9100\"} * 100) / node_memory_MemTotal_bytes{env=\"demo\", instance=\"demo.do.prometheus.io:9100\"})"), ), ), + panelgroup.AddPanel("Second Gauge", + gauge.Chart( + gauge.Calculation(common.LastCalculation), + gauge.Format(common.Format{ + Unit: common.BytesUnit, + }), + gauge.Max(20), + ), + panel.AddQuery( + query.PromQL("100 - ((node_memory_MemAvailable_bytes{env=\"demo\", instance=\"demo.do.prometheus.io:9100\"} * 100) / node_memory_MemTotal_bytes{env=\"demo\", instance=\"demo.do.prometheus.io:9100\"})"), + ), + ), ), )