Skip to content

Latest commit

 

History

History
77 lines (60 loc) · 2.94 KB

File metadata and controls

77 lines (60 loc) · 2.94 KB

Scheduling

The default settings on collections are good for most use cases. If you find that you need to change the intervals, you have the option to do so.

Scheduling: without docker

You can update the frequency of the data collection in the conf file hnt_monitor.conf. The intervals are in (seconds).

# info_interval: How many seconds to wait before running the info collector
info_interval=86400

# reward_interval: How many seconds to wait before running the reward collector
rewards_interval=300

# witness_interval: How many seconds to wait before running the witness collectors
witness_interval=86400

Scheduling: using docker

If you're using docker to manage the collections, you can change the collection intervals by supplying the correct variables.

$> docker run -d -e REWARDS_INTERVAL=300 hnt_monitor

Full stack run every 5 minutes. Update the hnt_monitor.yml at the hnt_monitor service section

  hnt_monitor:
    container_name: hnt_monitor
    image: hnt_monitor:latest
    build:
      dockerfile: ./build/docker/Dockerfile
      context: .
    environment:
      HNT_REWARDS_INTERVAL: "300"
      HNT_HOTSPOT_MONITOR: "true"
      HNT_HOTSPOT_ADDRESSES: "<myminersaddress> "
      HNT_PROMETHEUS_PG_HOST: "prometheus_pushgateway"
      HNT_DEBUG: "true"
    networks:
      hnt_monitor:
        ipv4_address: 10.30.0.05
    depends_on:
      - prometheus_pushgateway

Then stand up the stack

$> docker-compose -f hnt_monitor.yml up -d

composeup

Collector Intervals

Each collector has an interval to set. Go with the defaults or change to your own frequency.

Variable Description Default
HNT_INFO_INTERVAL Frequency in seconds to collect miner information 86400
HNT_REWARD_INTERVAL Frequency in seconds to collect miner rewards 300
HNT_WITNESS_INTERVAL Frequency in seconds to collect miner wintess data 86400
HNT_DATA_CLEANUP_INTERVAL Frequency in seconds to cleanup miner data 86400
HNT_BLOCKS_INTERVAL Frequency in seconds to collect blockchain data 60
HNT_INFO_INTERVAL Frequency in seconds to collect hotspot miner data 86400
HNT_REWARDS_INTERVAL Frequency in seconds to collect reward data 300
HNT_WITNESS_INTERVAL Frequency in seconds to collect witness data 3600
HNT_BOBCAT_STATUS_INTERVAL Frequency in seconds to collect bobcat miner status data 300
HNT_BOBCAT_TEMPERATURE_INTERVAL Frequency in seconds to collect bobcat miner temperature data 60
HNT_BOBCAT_INFO_INTERVAL Frequency in seconds to collect bobcat miner info data 21600
HNT_LONGAP_DATA_INTERVAL Frequency in seconds to collect longap miner data 60
HNT_NEBRA_DATA_INTERVAL Frequency in seconds to collect nebra miner data 60
HNT_SENSECAP_DATA_INTERVAL Frequency in seconds to collect sensecap miner data 60