Go to file
Matt Johnstone b331072a4d
Merge pull request #32 from asymmetric-research/address-configurable
Address configurable leader slots tracking (3)
2024-10-04 12:28:14 +02:00
.github/workflows updated test workflow to run on merge to main as well 2024-10-04 07:45:45 +02:00
cmd/solana_exporter added leader-slot-addresses warnings 2024-10-04 12:24:44 +02:00
pkg/rpc fixed Collect 2024-10-01 22:07:53 +02:00
.gitignore
.tool-versions
Dockerfile
LICENSE
README.md
Solana-Dashboard.json
go.mod added GetBalance tests 2024-10-01 21:38:28 +02:00
go.sum

README.md

solana_exporter

solana_exporter exports basic monitoring data from a Solana node.

Docker images are available on Docker Hub.

Metrics

Metrics tracked with confirmation level recent:

  • solana_validator_root_slot - Latest root seen by each validator.
  • solana_validator_last_vote - Latest vote by each validator (not necessarily on the majority fork!)
  • solana_validator_delinquent - Whether node considers each validator to be delinquent.
  • solana_validator_activated_stake - Active stake for each validator.
  • solana_active_validators - Total number of active/delinquent validators.

Metrics tracked with confirmation level max:

  • solana_leader_slots_total - Number of leader slots per leader, grouped by skip status.
  • solana_confirmed_epoch_first_slot - Current epoch's first slot.
  • solana_confirmed_epoch_last_slot - Current epoch's last slot.
  • solana_confirmed_epoch_number - Current epoch.
  • solana_confirmed_slot_height - Last confirmed slot height observed.
  • solana_confirmed_transactions_total - Total number of transactions processed since genesis.

Metrics with no confirmation level:

  • solana_node_version - Current solana-validator node version.

Command line arguments

You typically only need to set the RPC URL, pointing to one of your own nodes:

./solana_exporter -rpcURI=http://yournode:8899

If you want verbose logs, specify -v=<num>. Higher verbosity means more debug output. For most users, the default verbosity level is fine. If you want detailed log output for missed blocks, run with -v=1.

Usage of solana_exporter:
  -add_dir_header
        If true, adds the file directory to the header of the log messages
  -addr string
        Listen address (default ":8080")
  -alsologtostderr
        log to standard error as well as files
  -log_backtrace_at value
        when logging hits line file:N, emit a stack trace
  -log_dir string
        If non-empty, write log files in this directory
  -log_file string
        If non-empty, use this log file
  -log_file_max_size uint
        Defines the maximum size a log file can grow to. Unit is megabytes. If the value is 0, the maximum file size is unlimited. (default 1800)
  -logtostderr
        log to standard error instead of files (default true)
  -one_output
        If true, only write logs to their native severity level (vs also writing to each lower severity level
  -rpcURI string
        Solana RPC URI (including protocol and path)
  -skip_headers
        If true, avoid header prefixes in the log messages
  -skip_log_headers
        If true, avoid headers when opening log files
  -stderrthreshold value
        logs at or above this threshold go to stderr (default 2)
  -v value
        number for the log level verbosity
  -vmodule value
        comma-separated list of pattern=N settings for file-filtered logging
  -votepubkey
        Validator vote address (will only return results of this address)