@@ -91,13 +91,13 @@ func probeSystemNtpStatus(c fortigatehttpclient.FortiHTTP, meta *TargetMetadata)
9191 if meta .VersionMajor >= 7 && meta .VersionMinor >= 4 {
9292 for _ , res := range result {
9393 for _ , r := range res .Results {
94- m = append (m , prometheus .MustNewConstMetric (ntpExpires , prometheus .GaugeValue , float64 (r .Expires ), r .IP , r .Server , strconv .FormatBool (r .Reachable ), strconv .FormatBool (r .Reachable ), strconv .Itoa (r .Version ), res .VDOM ))
95- m = append (m , prometheus .MustNewConstMetric (ntpStratum , prometheus .GaugeValue , float64 (r .Stratum ), r .IP , r .Server , strconv .FormatBool (r .Reachable ), strconv .FormatBool (r .Reachable ), strconv .Itoa (r .Version ), res .VDOM ))
96- m = append (m , prometheus .MustNewConstMetric (ntpRefTime , prometheus .CounterValue , float64 (r .Reftime ), r .IP , r .Server , strconv .FormatBool (r .Reachable ), strconv .FormatBool (r .Reachable ), strconv .Itoa (r .Version ), res .VDOM ))
97- m = append (m , prometheus .MustNewConstMetric (ntpOffset , prometheus .GaugeValue , float64 (r .Offset )* 0.001 , r .IP , r .Server , strconv .FormatBool (r .Reachable ), strconv .FormatBool (r .Reachable ), strconv .Itoa (r .Version ), res .VDOM ))
98- m = append (m , prometheus .MustNewConstMetric (ntpDelay , prometheus .GaugeValue , float64 (r .Delay )* 0.001 , r .IP , r .Server , strconv .FormatBool (r .Reachable ), strconv .FormatBool (r .Reachable ), strconv .Itoa (r .Version ), res .VDOM ))
99- m = append (m , prometheus .MustNewConstMetric (ntpDispersion , prometheus .GaugeValue , float64 (r .Dispersion )* 0.001 , r .IP , r .Server , strconv .FormatBool (r .Reachable ), strconv .FormatBool (r .Reachable ), strconv .Itoa (r .Version ), res .VDOM ))
100- m = append (m , prometheus .MustNewConstMetric (ntpPeerDispersion , prometheus .GaugeValue , float64 (r .PeerDispersion )* 0.001 , r .IP , r .Server , strconv .FormatBool (r .Reachable ), strconv .FormatBool (r .Reachable ), strconv .Itoa (r .Version ), res .VDOM ))
94+ m = append (m , prometheus .MustNewConstMetric (ntpExpires , prometheus .GaugeValue , float64 (r .Expires ), r .IP , r .Server , strconv .FormatBool (r .Reachable ), strconv .FormatBool (r .Selected ), strconv .Itoa (r .Version ), res .VDOM ))
95+ m = append (m , prometheus .MustNewConstMetric (ntpStratum , prometheus .GaugeValue , float64 (r .Stratum ), r .IP , r .Server , strconv .FormatBool (r .Reachable ), strconv .FormatBool (r .Selected ), strconv .Itoa (r .Version ), res .VDOM ))
96+ m = append (m , prometheus .MustNewConstMetric (ntpRefTime , prometheus .CounterValue , float64 (r .Reftime ), r .IP , r .Server , strconv .FormatBool (r .Reachable ), strconv .FormatBool (r .Selected ), strconv .Itoa (r .Version ), res .VDOM ))
97+ m = append (m , prometheus .MustNewConstMetric (ntpOffset , prometheus .GaugeValue , float64 (r .Offset )* 0.001 , r .IP , r .Server , strconv .FormatBool (r .Reachable ), strconv .FormatBool (r .Selected ), strconv .Itoa (r .Version ), res .VDOM ))
98+ m = append (m , prometheus .MustNewConstMetric (ntpDelay , prometheus .GaugeValue , float64 (r .Delay )* 0.001 , r .IP , r .Server , strconv .FormatBool (r .Reachable ), strconv .FormatBool (r .Selected ), strconv .Itoa (r .Version ), res .VDOM ))
99+ m = append (m , prometheus .MustNewConstMetric (ntpDispersion , prometheus .GaugeValue , float64 (r .Dispersion )* 0.001 , r .IP , r .Server , strconv .FormatBool (r .Reachable ), strconv .FormatBool (r .Selected ), strconv .Itoa (r .Version ), res .VDOM ))
100+ m = append (m , prometheus .MustNewConstMetric (ntpPeerDispersion , prometheus .GaugeValue , float64 (r .PeerDispersion )* 0.001 , r .IP , r .Server , strconv .FormatBool (r .Reachable ), strconv .FormatBool (r .Selected ), strconv .Itoa (r .Version ), res .VDOM ))
101101 }
102102 }
103103 } else {
0 commit comments