Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add eigenda-blob-scraper #43

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,20 @@ docker pull prom/node-exporter
docker run -d -p 9100:9100 --name node-exporter prom/node-exporter
```

### Blob scraper

The [eigenda-blob-scraper](https://github.com/NethermindEth/eigenda-blob-scrapper) is an application developed by Nethermind that gets the blob data in a JSON form from an EigenDA public endpoint and transforms it into Prometheus metrics every `FETCH_INTERVAL` seconds. The metrics are then exposed via a Prometheus server at port 9600.

The tool is deployed via Docker image to DockerHub. The image can be found here: https://hub.docker.com/repository/docker/nethermind/eigenda-blob-scraper.

The scraper is included in the docker-compose file and must be added as a prometheus target in the prometheus.yml file as shown in the `monitoring/prometheus.yml` file.

You can use the following PromQL query to see if there has been requested blobs in the last 10 minutes:

```
(requested_at{} - (time() - (10 * 60))) > 0 and (requested_at{} - time()) <= 0
```

## Troubleshooting
* If you see the following error:
```
Expand Down
10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,16 @@ services:
- "${NODE_LOG_PATH_HOST}:/app/logs:rw"
- "${NODE_DB_PATH_HOST}:/data/operator/db:rw"
restart: unless-stopped
scraper:
image: nethermind/eigenda-blob-scraper:latest
expose:
- "9600"
networks:
- eigenda
environment:
- FETCH_INTERVAL=60
- API_URL=https://blobs-goerli.eigenda.xyz/api/trpc/blobs.getBlobs
restart: unless-stopped
networks:
eigenda:
name: ${NETWORK_NAME}
7 changes: 6 additions & 1 deletion monitoring/prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,9 @@ scrape_configs:

- job_name: 'node'
static_configs:
- targets: ['node-exporter:9100']
- targets: ['node-exporter:9100']

- job_name: 'scraper'
scrape_interval: 1m
static_configs:
- targets: ['scraper:9600']