-
Notifications
You must be signed in to change notification settings - Fork 1
Supernode self report #83
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
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
29344e8
Implement supernode metrics reporting and postponement (#79)
mateeullahmalik 2e16550
Add supernode metrics
mateeullahmalik 61f0d29
Enhancements, update README
mateeullahmalik 0a4de12
fix unit tests
mateeullahmalik 8275591
Add metrics query
mateeullahmalik 9acc675
Add system tests
mateeullahmalik 68f98d7
Fix tests go mod
mateeullahmalik 5d23eb4
Fix tests
mateeullahmalik ed0e060
Increase time out
mateeullahmalik 690e628
feat(supernode): tri-state open_ports and relaxed compliance
mateeullahmalik File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| DO NOT PUSH ANY CHANGES TO REMOTE | ||
| DO NOT BUILD OR TEST using cache if sandbox doesnt all building/testing directly |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| syntax = "proto3"; | ||
| package lumera.supernode.v1; | ||
|
|
||
| option go_package = "x/supernode/v1/types"; | ||
|
|
||
| import "gogoproto/gogo.proto"; | ||
|
|
||
| // PortState defines tri-state port reporting. UNKNOWN is the default for proto3 | ||
| // and is treated as "not reported / not measured". | ||
| enum PortState { | ||
| PORT_STATE_UNKNOWN = 0; | ||
| PORT_STATE_OPEN = 1; | ||
| PORT_STATE_CLOSED = 2; | ||
| } | ||
|
|
||
| // PortStatus reports the state of a specific TCP port. | ||
| message PortStatus { | ||
| uint32 port = 1; | ||
| PortState state = 2; | ||
| } | ||
|
|
||
| // SupernodeMetrics defines the structured metrics reported by a supernode. | ||
| message SupernodeMetrics { | ||
| // Semantic version of the supernode software. | ||
| uint32 version_major = 1; | ||
| uint32 version_minor = 2; | ||
| uint32 version_patch = 3; | ||
|
|
||
| // CPU metrics. | ||
| double cpu_cores_total = 4; | ||
| double cpu_usage_percent = 5; | ||
|
|
||
| // Memory metrics (GB). | ||
| double mem_total_gb = 6; | ||
| double mem_usage_percent = 7; | ||
| double mem_free_gb = 8; | ||
|
|
||
| // Storage metrics (GB). | ||
| double disk_total_gb = 9; | ||
| double disk_usage_percent = 10; | ||
| double disk_free_gb = 11; | ||
|
|
||
| // Uptime and connectivity. | ||
| double uptime_seconds = 12; | ||
| uint32 peers_count = 13; | ||
|
|
||
| // Tri-state port reporting for required ports. | ||
| repeated PortStatus open_ports = 14 [(gogoproto.nullable) = false]; | ||
| } | ||
|
|
||
| // SupernodeMetricsState stores the latest metrics state for a validator. | ||
| message SupernodeMetricsState { | ||
| string validator_address = 1 [(gogoproto.moretags) = "yaml:\"validator_address\""]; | ||
| SupernodeMetrics metrics = 2; | ||
| uint64 report_count = 3; | ||
| int64 height = 4; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.