-
Notifications
You must be signed in to change notification settings - Fork 107
Feature/system ha peer #347
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Feature/system ha peer #347
Conversation
Signed-off-by: Örnfeldt Philip (66140321) <[email protected]>
Signed-off-by: Örnfeldt Philip (66140321) <[email protected]>
Signed-off-by: Philip Örnfeldt <[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]>
2e087a1 to
2e5b08f
Compare
Signed-off-by: Örnfeldt Philip (66140321) <[email protected]>
51c20c8 to
404c0d5
Compare
| * _System/HAChecksums_ | ||
| * `fortigate_ha_member_has_role` | ||
| * _System/HAPeer_ | ||
| * `fortigate_ha_peer` |
There was a problem hiding this comment.
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 | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| // Copyright 2025 The Prometheus Authors | |
| // Copyright The Prometheus Authors |
| @@ -0,0 +1,73 @@ | |||
| // Copyright 2025 The Prometheus Authors | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| // Copyright 2025 The Prometheus Authors | |
| // Copyright The Prometheus Authors |
| ) | ||
|
|
||
| func probeSystemHaPeer(c http.FortiHTTP, meta *TargetMetadata) ([]prometheus.Metric, bool) { | ||
| Info := prometheus.NewDesc( |
There was a problem hiding this comment.
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.
| Info := prometheus.NewDesc( | |
| info := prometheus.NewDesc( |
| []string{"serial", "vcluster", "hostname", "priority"}, nil, | ||
| ) | ||
|
|
||
| Primary := prometheus.NewDesc( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Primary := prometheus.NewDesc( | |
| primary := prometheus.NewDesc( |
Information Metric for online and standby status of HA Peer