Skip to content

Commit 9114bf3

Browse files
committed
metric fortigate_location_info added to metrics.md
Signed-off-by: Michael Lucka <michael.lucka@rnetx.com>
1 parent 5837e13 commit 9114bf3

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

metrics.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Global:
44

55
* _Network/Dns/Latency_
66
* `fortigate_network_dns_latency_`
7+
* _System/Global/Location_
8+
* `fortigate_location_info`
79
* _System/SensorInfo_
810
* `fortigate_sensor_alarm_status`
911
* `fortigate_sensor_fan_rpm`

pkg/probe/probe.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ func (p *Collector) Probe(ctx context.Context, target map[string]string, hc *htt
147147
{"System/AvailableCertificates", probeSystemAvailableCertificates},
148148
{"System/Central-Management/Status", probeSystemCentralManagementStatus},
149149
{"System/Fortimanager/Status", probeSystemFortimanagerStatus},
150-
{"System/Global/Location",probeSystemGlobalLocation},
150+
{"System/Global/Location", probeSystemGlobalLocation},
151151
{"System/HAStatistics", probeSystemHAStatistics},
152152
{"System/Interface", probeSystemInterface},
153153
{"System/Interface/Transceivers", probeSystemInterfaceTransceivers},

pkg/probe/system_global_location.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ import (
1818
"log"
1919

2020
"github.com/prometheus/client_golang/prometheus"
21+
2122
"github.com/prometheus-community/fortigate_exporter/pkg/http"
2223
)
2324

2425
func probeSystemGlobalLocation(c http.FortiHTTP, _ *TargetMetadata) ([]prometheus.Metric, bool) {
25-
2626
location := prometheus.NewDesc(
2727
"fortigate_location_info",
2828
"System geographic location (static metadata)",

0 commit comments

Comments
 (0)