Skip to content

Commit a85508d

Browse files
committed
Updated metric.md and corrected lint errors
Signed-off-by: Örnfeldt Philip (66140321) <philip.ornfeldt@forsakringskassan.se>
1 parent 366b6da commit a85508d

2 files changed

Lines changed: 12 additions & 8 deletions

File tree

metrics.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,10 @@ Per-VDOM:
175175
Per-BGP-Neighbor and VDOM:
176176
* _BGP/Neighbors/IPv4_
177177
* `fortigate_bgp_neighbor_ipv4_info`
178+
* `fortigate_bgp_neighbor_ipv4_state`
178179
* _BGP/Neighbors/IPv6_
179180
* `fortigate_bgp_neighbor_ipv6_info`
181+
* `fortigate_bgp_neighbor_ipv6_state`
180182
* _BGP/NeighborPaths/IPv4_
181183
* `fortigate_bgp_neighbor_ipv4_paths`
182184
* `fortigate_bgp_neighbor_ipv4_best_paths`

pkg/probe/bgp_neighbors.go

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,11 @@ func probeBGPNeighborsIPv4(c http.FortiHTTP, meta *TargetMetadata) ([]prometheus
133133
return probeBGPNeighborsIPv4Old(c, meta)
134134
}
135135

136-
var mBGPNeighborState= prometheus.NewDesc(
137-
"fortigate_bgp_neighbor_ipv4_state",
138-
"Configured bgp neighbor over ipv4 state",
139-
[]string{"vdom", "remote_as", "admin_status", "local_ip", "neighbor_ip", "state"}, nil,)
136+
mBGPNeighborState := prometheus.NewDesc(
137+
"fortigate_bgp_neighbor_ipv4_state",
138+
"Configured bgp neighbor over ipv4 state",
139+
[]string{"vdom", "remote_as", "admin_status", "local_ip", "neighbor_ip", "state"}, nil,
140+
)
140141

141142
var rs []BGPNeighborResponse
142143

@@ -183,10 +184,11 @@ func probeBGPNeighborsIPv6(c http.FortiHTTP, meta *TargetMetadata) ([]prometheus
183184
return probeBGPNeighborsIPv6Old(c, meta)
184185
}
185186

186-
var mBGPNeighborState = prometheus.NewDesc(
187-
"fortigate_bgp_neighbor_ipv6_state",
188-
"Configured bgp neighbor over ipv4 state",
189-
[]string{"vdom", "remote_as", "admin_status", "local_ip", "neighbor_ip", "state"}, nil,)
187+
mBGPNeighborState := prometheus.NewDesc(
188+
"fortigate_bgp_neighbor_ipv6_state",
189+
"Configured bgp neighbor over ipv6 state",
190+
[]string{"vdom", "remote_as", "admin_status", "local_ip", "neighbor_ip", "state"}, nil,
191+
)
190192

191193
var rs []BGPNeighborResponse
192194

0 commit comments

Comments
 (0)