global: scrape_interval: 10s scrape_timeout: 3s evaluation_interval: 5s scrape_configs: - job_name: erigon # example, how to connect prometheus to Erigon metrics_path: /debug/metrics/prometheus scheme: http static_configs: - targets: - erigon:6060 # If Erigon runned by default docker-compose, then it's available on `erigon` host. - erigon:6061 - erigon:6062 - host.docker.internal:6060 # this is how docker-for-mac allow to access host machine - host.docker.internal:6061 - host.docker.internal:6062 - 192.168.255.134:6060 - 192.168.255.134:6061 - 192.168.255.134:6062 - 192.168.255.138:6060 - 192.168.255.138:6061 - 192.168.255.138:6062 - job_name: erigon2 # this job collecting metrics in OpenMetrics format metrics_path: /debug/metrics/prometheus2 scheme: http static_configs: - targets: - erigon:6060 - erigon:6061 - erigon:6062 - host.docker.internal:6060 - host.docker.internal:6061 - host.docker.internal:6062 - 192.168.255.134:6060 - 192.168.255.134:6061 - 192.168.255.134:6062 - 192.168.255.138:6060 - 192.168.255.138:6061 - 192.168.255.138:6062