mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-11-10 09:17:10 +00:00
Add per Node Hardware Information to Telemetry Feed (#519)
* code: Add `sysinfo` and `hwbench` to the `AddedNode` message Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * code: Update `AddedNode` on `hwbench` updates Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * core: Rename cli flag `expose_node_ips` to `expose_node_details` Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * core: Add hardware info only if the cli flag is enabled Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * tests: Adjust testing to the new `AddedNode` message Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * core: Move serialization of fields to the details array Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> --------- Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
1 parent
779c5698a0
commit
b25f3fbf22
8 files changed
+65
-21
No files matched your search
@@ -82,9 +82,10 @@ struct Opts {
|
||||
/// How many nodes from third party chains are allowed to connect before we prevent connections from them.
|
||||
#[structopt(long, default_value = "1000")]
|
||||
max_third_party_nodes: usize,
|
||||
/// Flag to expose the IP addresses of all connected nodes to the feed subscribers.
|
||||
/// Flag to expose the node's details (IP address, SysInfo, HwBench) of all connected
|
||||
/// nodes to the feed subscribers.
|
||||
#[structopt(long)]
|
||||
pub expose_node_ips: bool,
|
||||
pub expose_node_details: bool,
|
||||
}
|
||||
|
||||
fn main() {
|
||||
@@ -135,7 +136,7 @@ async fn start_server(num_aggregators: usize, opts: Opts) -> anyhow::Result<()>
|
||||
max_queue_len: aggregator_queue_len,
|
||||
denylist: opts.denylist,
|
||||
max_third_party_nodes: opts.max_third_party_nodes,
|
||||
expose_node_ips: opts.expose_node_ips,
|
||||
expose_node_details: opts.expose_node_details,
|
||||
},
|
||||
)
|
||||
.await?;
|
||||
|
||||
Reference in new issue
Block a user