Skip to main content

Introduction

Proper monitoring ensures your Fenine node runs reliably and helps you detect issues before they become critical. This guide covers monitoring setup using industry-standard tools.
Recommended Stack: Prometheus + Grafana + Node Exporter

Metrics to Monitor

Critical Metrics

  • Sync Status: Node is fully synchronized
  • Peer Count: Connected to 20+ peers
  • Block Height: Matches network head
  • Chain Forks: No unexpected reorgs
Alert Thresholds:
  • Peers < 5: Warning
  • Peers < 2: Critical
  • Sync lag > 50 blocks: Warning
  • Sync lag > 200 blocks: Critical
  • CPU Usage: Should stay < 80%
  • Memory Usage: Should stay < 85%
  • Disk Usage: Alert at 80% full
  • Disk I/O: Monitor for bottlenecks
  • Network Bandwidth: Track usage trends
Alert Thresholds:
  • CPU > 90% for 5min: Warning
  • Memory > 95%: Critical
  • Disk > 90%: Critical
  • Disk I/O wait > 50%: Warning
  • Request Rate: Requests per second
  • Response Time: p50, p95, p99 latency
  • Error Rate: Failed requests
  • Concurrent Connections: Active clients
Alert Thresholds:
  • Response time p95 > 1s: Warning
  • Error rate > 5%: Warning
  • Error rate > 10%: Critical
  • Block Production: New blocks every 3s
  • Transaction Pool: Pending tx count
  • Gas Price: Current base fee
  • Validator Set: Active validators
Alert Thresholds:
  • No new block > 15s: Warning
  • No new block > 30s: Critical
  • Mempool > 10,000 tx: Warning

Prometheus Setup

Install Prometheus

Configure Prometheus

Create /etc/prometheus/prometheus.yml:

Enable Metrics in Fene-Geth

Update /var/lib/fenine/config.toml:
Or add to systemd service:
Add --metrics --metrics.addr 0.0.0.0 --metrics.port 6060 to ExecStart:
Restart node:

Create Prometheus Service

Add:
Create user and set permissions:
Start Prometheus:
Verify at http://YOUR_IP:9090

Node Exporter Setup

Install system metrics exporter:
Add:
Start service:

Grafana Setup

Install Grafana

Access Grafana at http://YOUR_IP:3000 (default login: admin/admin)

Add Prometheus Data Source

  1. Navigate to ConfigurationData Sources
  2. Click Add data source
  3. Select Prometheus
  4. Set URL to http://localhost:9090
  5. Click Save & Test

Import Fenine Dashboard

Download dashboard JSON:
In Grafana:
  1. Click +Import
  2. Upload fenine-node.json
  3. Select Prometheus data source
  4. Click Import
Official Fenine dashboard includes: Sync status, peer count, block height, gas usage, TPS, memory/CPU, disk I/O

Alerting Setup

Configure Alertmanager

Install Alertmanager:
Create /etc/alertmanager/alertmanager.yml:

Define Alert Rules

Create /etc/prometheus/alerts.yml:
Update Prometheus config to include rules:
Restart Prometheus:

Log Monitoring

Centralized Logging with Loki

Install Loki:
Basic config:

Install Promtail (Log Shipper)

Config:
Add Loki to Grafana as data source, then explore logs.

Quick Health Check Script

Create /usr/local/bin/fenine-health.sh:
Make executable:
Run health check:

Automated Monitoring Cron

Add to crontab:
Add:

Next Steps

Upgrade Guide

Keep your node up to date

Backup & Recovery

Protect your node data

Troubleshooting

Fix common issues

Grafana Dashboards

Official monitoring templates