diff --git a/install/prometheus.tmpl b/install/prometheus.tmpl index 6f28a83..9f3cfc3 100644 --- a/install/prometheus.tmpl +++ b/install/prometheus.tmpl @@ -16,12 +16,14 @@ scrape_configs: # We have to use 'hosts.docker.internal' to refer to it due to this configuration - targets: ['host.docker.internal:{{or .ExporterMetricsPort.Value "9103"}}'] - - job_name: '{{if (eq .ExecutionClient.String "geth")}}geth{{else}}eth1{{end}}' + - job_name: 'geth' static_configs: - targets: ['{{.GetExecutionHostname}}:{{or .EcMetricsPort.Value "9105"}}'] - {{- if (eq .ExecutionClient.String "geth")}} metrics_path: /debug/metrics/prometheus - {{- end}} + + - job_name: 'eth1' + static_configs: + - targets: ['{{.GetExecutionHostname}}:{{or .EcMetricsPort.Value "9105"}}'] - job_name: 'eth2' static_configs: