Giter Club home page Giter Club logo

hived-exporter's Introduction

hived exporter

Metrics exporter for hived node. Currently exports block stats and data from hived API.

Required Dependencies

  • nodejs and pnpm (Latest LTS, v20 minimum supported), or Docker
  • Running hived node

Setup hived config

Enable block stats notification in hived config.ini file as follows:

notifications-endpoint = 127.0.0.1:8088

block-stats-report-type = FULL
block-stats-report-output = NOTIFY

Standalone Installation

git clone https://github.com/techcoderx/hived-exporter
cd hived-exporter
pnpm i
pnpm run compile

Start

pnpm start

Docker

A docker compose file has been included consisting of hived-exporter and VictoriaMetrics. Two instances of hived-exporter will be created, one of which exports data from hived notifications (every 3 seconds) and the other exports data from hived APIs (every 30 seconds).

Configure the containers by copying the included .env.docker.example file into .env, and modifying the copied .env file as follows:

Env Variable Description Default
HIVED_EXPORTER_LOG_LEVEL Sets log level for exporter instances info
HIVED_EXPORTER_API_NODE_URL hived API endpoint to scrape API data from
HIVED_EXPORTER_ACCOUNTS Comma-separated list of Hive accounts to export metrics
VICTORIA_PORT Listening port for VictoriaMetrics 8428
VICTORIA_RETENTION_PERIOD Metrics retention period 90d

Run the docker compose as follows:

docker compose up -d

To stop the docker compose:

docker compose down

One-liner update command:

docker compose down; git pull; docker compose build; docker compose up -d

⚠️ Warning

When running the exporter with haf_api_node (especially in the same Docker Compose), the exporter process must be running first before starting hived, otherwise the haf container will crash and fail to start .

hived-exporter's People

Contributors

techcoderx avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.