Skip to content

Commit 7a47d7c

Browse files
committed
Fix eth1 metrics for externally managed execution clients
1 parent 60f07a8 commit 7a47d7c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

install/prometheus.tmpl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@ scrape_configs:
1616
# We have to use 'hosts.docker.internal' to refer to it due to this configuration
1717
- targets: ['host.docker.internal:{{or .ExporterMetricsPort.Value "9103"}}']
1818

19-
- job_name: '{{if (eq .ExecutionClient.String "geth")}}geth{{else}}eth1{{end}}'
19+
- job_name: 'geth'
2020
static_configs:
2121
- targets: ['{{.GetExecutionHostname}}:{{or .EcMetricsPort.Value "9105"}}']
22-
{{- if (eq .ExecutionClient.String "geth")}}
2322
metrics_path: /debug/metrics/prometheus
24-
{{- end}}
23+
24+
- job_name: 'eth1'
25+
static_configs:
26+
- targets: ['{{.GetExecutionHostname}}:{{or .EcMetricsPort.Value "9105"}}']
2527

2628
- job_name: 'eth2'
2729
static_configs:

0 commit comments

Comments
 (0)