Skip to content
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

feat(metrics): add info nox config metrics #2387

Merged
merged 5 commits into from
Sep 26, 2024
Merged

feat(metrics): add info nox config metrics #2387

merged 5 commits into from
Sep 26, 2024

Conversation

kmd-fl
Copy link
Contributor

@kmd-fl kmd-fl commented Sep 24, 2024

Description

Add Info metrics with the used nox config

Proposed Changes

Used Nox Settings:

  • Network Info
    pub tcp_port: u16,
    pub websocket_port: u16,
    pub listen_ip: String,
    pub network_type: String,
    pub bootstrap_nodes: Addresses,
    pub external_address: Option<String>,
    pub external_multiaddresses: Addresses,
  • Vm Info
    pub allow_gpu: u8,
    pub public_ip: String,
    pub host_ssh_port: u16,
    pub vm_ssh_port: u16,
    pub port_range: String,
  • System Info
    pub cpus_range: String,
    pub system_cpu_count: usize,
    pub particle_execution_timeout_sec: u64,
    pub max_spell_particle_ttl_sec: u64,

Looks like this:

# HELP nox_build Nox Info.
# TYPE nox_build info
nox_build_info{node_version="0.1.0",air_version="0.1.0",spell_version="0.1.0"} 1
# HELP nox_chain Chain Nox Info.
# TYPE nox_chain info
nox_chain_info{peer_id="peer_id",http_endpoint="",diamond_contract_address="",network_id="0",default_base_fee="",default_priority_fee="",ws_endpoint="",proof_poll_period_secs="0",min_batch_count="0",max_batch_count="0",max_proof_batch_size="0",epoch_end_window_secs="0"} 1
# HELP nox_network Network Nox Info.
# TYPE nox_network info
nox_network_info{tcp_port="0",websocket_port="0",listen_ip="",network_type="",bootstrap_nodes="",external_address="",external_multiaddresses=""} 1
# HELP nox_vm VM Nox Info.
# TYPE nox_vm info
nox_vm_info{allow_gpu="0",public_ip="",host_ssh_port="0",vm_ssh_port="0",port_range=""} 1
# HELP nox_system System Nox Info.
# TYPE nox_system info
nox_system_info{cpus_range="",system_cpu_count="0",particle_execution_timeout_sec="0",max_spell_particle_ttl_sec="0"} 1
# EOF

@kmd-fl kmd-fl requested a review from folex September 24, 2024 15:17
Copy link
Member

@folex folex left a comment

Choose a reason for hiding this comment

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

Awesome, I think this will be tremendously useful to observe our Providers!

@kmd-fl kmd-fl added the e2e Run e2e workflow label Sep 25, 2024
@kmd-fl kmd-fl enabled auto-merge (squash) September 25, 2024 10:50
@kmd-fl kmd-fl merged commit 9e70b08 into master Sep 26, 2024
3 of 7 checks passed
@kmd-fl kmd-fl deleted the config-metrics branch September 26, 2024 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
e2e Run e2e workflow
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants