Giter Site home page Giter Site logo

rickstaa / livepeer-value-redeemed-publisher Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 7 KB

A small Prometheus publisher that can be used to correct the `livepeer_value_redeemed` metric.

License: MIT License

Go 100.00%
exporter livepeer prometheus

livepeer-value-redeemed-publisher's Introduction

Livepeer_value_redeemed publisher

A simple Prometheus exporter that can be used to temporarily increment the livepeer_value_redeemed vector counter metric with a given value and publish it on http://localhost:7935/metrics. This can be used to correct the livepeer_value_redeemed metric due to a bug that was present in the go-livepeer binary before go-livepeer/2916 was merged.

Usage

Build

go build

Run

  1. Run the go-livepeer binary without the -monitor flag.

  2. To increment the metric, Run the livepeer_value_redeemed binary with the -value and -node_id flags. The value should be in wei and represent the error in the livepeer_value_redeemed metric.

    ./livepeer_value_redeemed -value number -node_id string
  3. Wait for the value to be published.

  4. Stop the livepeer_value_redeemed binary.

  5. Start the go-livepeer binary with the -monitor flag.

Note

You can also change the prometheus.yml to listen for Livepeer metrics on a different port than the default 7935 port and then run the livepeer_value_redeemed binary with the -port flag.

livepeer-value-redeemed-publisher's People

Contributors

rickstaa 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.