Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rickstaa/livepeer-value-redeemed-publisher
A small Prometheus publisher that can be used to correct the `livepeer_value_redeemed` metric.
https://github.com/rickstaa/livepeer-value-redeemed-publisher
exporter livepeer prometheus
Last synced: about 2 months ago
JSON representation
A small Prometheus publisher that can be used to correct the `livepeer_value_redeemed` metric.
- Host: GitHub
- URL: https://github.com/rickstaa/livepeer-value-redeemed-publisher
- Owner: rickstaa
- License: mit
- Created: 2023-12-12T07:35:09.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-12T08:50:24.000Z (about 1 year ago)
- Last Synced: 2024-10-12T18:51:42.818Z (3 months ago)
- Topics: exporter, livepeer, prometheus
- Language: Go
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://github.com/livepeer/go-livepeer/pull/2916) was merged.
## Usage
### Build
```bash
go build
```### Run
1. Run the [go-livepeer](https://github.com/livepeer/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.```bash
./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](https://github.com/livepeer/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.