You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nethermind metrics fail to appear in Prometheus due to incorrect target configuration or DNS alias resolution. The issue arises when Prometheus uses a nethermind.dappnode alias that does not correctly resolve to the Nethermind container.
To Reproduce
Install DAppNode Core v0.2.101.
Run Nethermind as the Execution Layer client.
Open Prometheus using DMS within Dappnode's interface and check the Targets page at:
http://<prometheus-ip>:9090/targets
Nethermind appears as DOWN with the target nethermind.dappnode:6060.
Confirm the issue by entering the Prometheus container:
docker exec -it <prometheus_container_name> sh
Test DNS resolution for Nethermind aliases:
ping nethermind.dappnode
Result: DNS resolution fails or outputs permission denied.
Expected Behavior
Nethermind metrics should appear as UP in Prometheus, and dashboards should display relevant data.
Send the SIGHUP signal to reload the configuration:
docker kill -s HUP <prometheus_container_name>
4. Verify the Fix
Check the Prometheus Targets page:
http://<prometheus-ip>:9090/targets
Ensure Nethermind now appears as UP.
Refresh Grafana dashboards to confirm metrics are visible.
Summary
Problem: Prometheus fails to resolve the default nethermind.dappnode alias.
Solution: Verify valid aliases, update the file_sd configuration file, and reload Prometheus.
Best Practices
Use consistent and simple aliases like nethermind:6060.
Verify DNS resolution within the Prometheus container.
Ensure Prometheus uses dynamic service discovery (file_sd) for flexibility.
The text was updated successfully, but these errors were encountered:
jacobourar
changed the title
Fix Nethermind mainnet Metrics Not Appearing in Prometheus
Fix Nethermind Mainnet Metrics Not Appearing in Prometheus
Dec 17, 2024
Nethermind Metrics Not Appearing in Prometheus
Describe the Bug
Nethermind metrics fail to appear in Prometheus due to incorrect target configuration or DNS alias resolution. The issue arises when Prometheus uses a
nethermind.dappnode
alias that does not correctly resolve to the Nethermind container.To Reproduce
nethermind.dappnode:6060
.Expected Behavior
Nethermind metrics should appear as UP in Prometheus, and dashboards should display relevant data.
Screenshots
Prometheus Target Status:
nethermind.dappnode:6060
.DAppNode Version
Additional Context
Root Cause
file_sd
) to define targets.nethermind.dappnode
) used in the target configuration does not match the actual DNS name of the Nethermind container.Steps to Resolve
1. Verify the Correct Alias
Enter the Prometheus container and test possible aliases:
2. Update the Target File
Locate the Prometheus file-based configuration file:
Edit the target file:
Replace the incorrect target (
nethermind.dappnode:6060
) with a valid alias:3. Reload Prometheus
Send the SIGHUP signal to reload the configuration:
4. Verify the Fix
Check the Prometheus Targets page:
Summary
nethermind.dappnode
alias.file_sd
configuration file, and reload Prometheus.Best Practices
nethermind:6060
.file_sd
) for flexibility.The text was updated successfully, but these errors were encountered: