Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 1.16 KB

README.md

File metadata and controls

36 lines (25 loc) · 1.16 KB

net-stats-daemon

Ownership Info

Codeowner: @peeech Consulted: @jetttech Informed: None

HPOS daemon for collecting statistics from holoport and PUSHing them to database via match-service-api.

Currently script is collecting following information:

  Holo Network    # can be one of devNet, alphaNet, flexNet...
  Channel         # nix-channel that HPOS is following
  Model           # HP or HP+
  SSH status      # is SSH enabled?
  ZT IP           # IP address on Zerotier network
  IP address      # IPv4 address on internet
  Holoport ID     # base36 encoded public key of the host
  ChannelVersion  # The git revision channel that HPOS has downloaded
  HposVersion     # The git revision that HPOS is currently running

Once collected payload is signed with holoport's private key and sent to match-service-api.

Prerequisites

Location of an hpos-config.toml file is hard-coded in keypair.rs module. Binary needs an env var DEVICE_SEED_DEFAULT_PASSWORD for unlocking this file.

Debugging

export RUST_LOG=DEBUG; cargo run for debugging info.

Decision log

Decisions made around architecture and functionality are saved in docs folder.