nix machine / user configurations

feat(wolumonde): add panel for pet distance travelled

ptr.pet 86237e44 c2593c90

verified
Changed files
+25 -3
hosts
wolumonde
modules
perses
dashboards
provision
+14 -2
hosts/wolumonde/modules/perses/dashboards/wolumonde.go
···
),
)
-
var gazesys_pet_panel = panels.AddPanel("gazesys pet bounce count",
-
stat.Chart(),
+
var gazesys_pet_panel = panels.AddPanel("gazesys pet",
+
stat.Chart(
+
stat.Format(common.Format{
+
Unit: "decimal",
+
ShortValues: true,
+
DecimalPlaces: 0,
+
}),
+
),
panel.AddQuery(
query.PromQL(
"gazesys_pet_bounce_total",
query.SeriesNameFormat("bounce count"),
+
),
+
),
+
panel.AddQuery(
+
query.PromQL(
+
"gazesys_pet_distance_total",
+
query.SeriesNameFormat("distance travelled"),
),
),
)
+11 -1
hosts/wolumonde/modules/perses/provision/90-wolumonde.yaml
···
kind: Panel
spec:
display:
-
name: gazesys pet bounce count
+
name: gazesys pet
plugin:
kind: StatChart
spec:
calculation: last
+
format:
+
unit: decimal
+
shortValues: true
queries:
- kind: TimeSeriesQuery
spec:
···
spec:
query: gazesys_pet_bounce_total
seriesNameFormat: bounce count
+
- kind: TimeSeriesQuery
+
spec:
+
plugin:
+
kind: PrometheusTimeSeriesQuery
+
spec:
+
query: gazesys_pet_distance_total
+
seriesNameFormat: distance travelled
"4_0":
kind: Panel
spec: