Skip to content

Conversation

@Philldomd
Copy link
Contributor

Information Metric for online and standby status of HA Peer

Philldomd and others added 8 commits August 12, 2025 13:43
Signed-off-by: Örnfeldt Philip (66140321) <[email protected]>
Signed-off-by: Örnfeldt Philip (66140321) <[email protected]>
Signed-off-by: Örnfeldt Philip (66140321) <[email protected]>
Signed-off-by: Örnfeldt Philip (66140321) <[email protected]>
Signed-off-by: Örnfeldt Philip (66140321) <[email protected]>
@Philldomd Philldomd force-pushed the feature/system-ha-peer branch from 2e087a1 to 2e5b08f Compare November 18, 2025 08:56
Signed-off-by: Örnfeldt Philip (66140321) <[email protected]>
@Philldomd Philldomd force-pushed the feature/system-ha-peer branch from 51c20c8 to 404c0d5 Compare November 19, 2025 10:07
* _System/HAChecksums_
* `fortigate_ha_member_has_role`
* _System/HAPeer_
* `fortigate_ha_peer`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be updated to match the metrics exported.

@@ -0,0 +1,71 @@
// Copyright 2025 The Prometheus Authors
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// Copyright 2025 The Prometheus Authors
// Copyright The Prometheus Authors

@@ -0,0 +1,73 @@
// Copyright 2025 The Prometheus Authors
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// Copyright 2025 The Prometheus Authors
// Copyright The Prometheus Authors

)

func probeSystemHaPeer(c http.FortiHTTP, meta *TargetMetadata) ([]prometheus.Metric, bool) {
Info := prometheus.NewDesc(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These should be lower case, they're not exported variables.

Suggested change
Info := prometheus.NewDesc(
info := prometheus.NewDesc(

[]string{"serial", "vcluster", "hostname", "priority"}, nil,
)

Primary := prometheus.NewDesc(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Primary := prometheus.NewDesc(
primary := prometheus.NewDesc(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants