Skip to content

Commit

Permalink
Merge pull request #116 from jshufro/jms/external-eth1-metrics
Browse files Browse the repository at this point in the history
Fix eth1 metrics for externally managed execution clients
  • Loading branch information
0xfornax authored Feb 8, 2024
2 parents 4e35499 + 7a47d7c commit 3750042
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions install/prometheus.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3750042

Please sign in to comment.