Skip to content

A simple Prometheus-compatible metrics exporter for the Chia blockchain harvester

Notifications You must be signed in to change notification settings

uplol/chia-harvester-metrics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chia-harvester-metrics

Collects and exports useful metrics from the chia-blockchain harvester.

Metrics Exported

  • chia_log_lines [level] - The total number of log lines processed, with a 'level' label (INFO, WARNING, ERROR, etc).
  • chia_harvester_events_total - The total number of harvester events processed.
  • chia_harvester_plots_total - The total number of active plots the harvester is harvesting.
  • chia_harvester_plots_eligible - The total number of harvester plots found eligible.
  • chia_harvester_plots_proofs - The total number of proofs found 😁

Running

You must pass the path to Chia's debug.log file, which will need to be enabled in the chia-blockchain config first. You may also pass an optional socket address and port the metrics server will listen on, by default we listen on all interfaces on port 4041.

chia-harvester-metrics --log-file /home/ubuntu/.chia/mainnet/log/debug.log --listen-addr 0.0.0.0:4041

It's best to run the metrics server in a service or something that will maintain itself through system restarts.

Monitoring

You can use these metrics to display some useful info on, for example, a Grafana dashboard! Here's an example:

dashboard

This project works great in combination with node_exporter for more detailed disk/cpu/network statistics on a machine. Go wild!

Releases

No releases published

Packages

No packages published

Languages