Skip to content

Commit 094bc66

Browse files
committed
fix: correct swapped min/max metric names in vdom-resource
The min_guaranteed_value map key was mapped to the _max_value metric name and vice versa. Any dashboard using these metrics silently showed inverted values.
1 parent b3a54c2 commit 094bc66

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/probe/system_vdom-resource.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,12 @@ func probeSystemVdomResource(c fortigatehttpclient.FortiHTTP, _ *TargetMetadata)
6969
[]string{"vdom", "object"}, nil,
7070
)
7171
vdomDesc["min_guaranteed_value"] = prometheus.NewDesc(
72-
"fortigate_vdom_resource_object_guaranteed_max_value",
72+
"fortigate_vdom_resource_object_guaranteed_min_value",
7373
"Object Minimum guaranteed value",
7474
[]string{"vdom", "object"}, nil,
7575
)
7676
vdomDesc["max_guaranteed_value"] = prometheus.NewDesc(
77-
"fortigate_vdom_resource_object_guaranteed_min_value",
77+
"fortigate_vdom_resource_object_guaranteed_max_value",
7878
"Object Maximum guaranteed value",
7979
[]string{"vdom", "object"}, nil,
8080
)

0 commit comments

Comments
 (0)