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

chore(prometheus): add localhost:9001 scrape target #3606

Merged
merged 3 commits into from
Jul 6, 2023

Conversation

shekhirin
Copy link
Collaborator

@shekhirin shekhirin commented Jul 5, 2023

Current default Prometheus config doesn't work if Reth is running standalone, without Docker, as we describe in the book: https://paradigmxyz.github.io/reth/run/observability.html. Node exposes port 9001 on localhost, and the prometheus.yml contains only reth:9001 target for Docker.

I added another target for localhost:9001, so Prometheus will always have one target that's DOWN, but also will work without adjusting the config.

@shekhirin shekhirin added the A-observability Related to tracing, metrics, logs and other observability tools label Jul 5, 2023
@shekhirin shekhirin marked this pull request as ready for review July 5, 2023 14:40
@shekhirin shekhirin requested a review from gakonst as a code owner July 5, 2023 14:40
@shekhirin shekhirin enabled auto-merge July 5, 2023 14:42
@codecov
Copy link

codecov bot commented Jul 5, 2023

Codecov Report

Merging #3606 (5f4e19f) into main (fdc8a05) will decrease coverage by 0.11%.
The diff coverage is n/a.

❗ Current head 5f4e19f differs from pull request most recent head 331bd90. Consider uploading reports for the commit 331bd90 to get more accurate results

Impacted file tree graph

see 43 files with indirect coverage changes

Flag Coverage Δ
integration-tests 16.09% <ø> (+0.12%) ⬆️
unit-tests 63.99% <ø> (-0.13%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
reth binary 26.41% <ø> (+0.01%) ⬆️
blockchain tree 81.25% <ø> (ø)
pipeline 86.91% <ø> (+0.21%) ⬆️
storage (db) 73.48% <ø> (-0.01%) ⬇️
trie 95.09% <ø> (+0.43%) ⬆️
txpool 49.73% <ø> (+0.59%) ⬆️
networking 77.87% <ø> (-0.12%) ⬇️
rpc 58.05% <ø> (-0.19%) ⬇️
consensus 62.69% <ø> (-0.67%) ⬇️
revm 34.90% <ø> (+0.03%) ⬆️
payload builder 6.83% <ø> (ø)
primitives 88.29% <ø> (+0.05%) ⬆️

@shekhirin shekhirin added this pull request to the merge queue Jul 5, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to a conflict with the base branch Jul 5, 2023
@gakonst gakonst enabled auto-merge July 6, 2023 19:39
@gakonst gakonst added this pull request to the merge queue Jul 6, 2023
Merged via the queue into main with commit b8a5476 Jul 6, 2023
@gakonst gakonst deleted the alexey/prometheus-config-localhost branch July 6, 2023 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-observability Related to tracing, metrics, logs and other observability tools
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants