Skip to content

Commit

Permalink
Add central-metrics.yml (#1575)
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickdowne authored Oct 24, 2023
1 parent d2d1eba commit 89dddfe
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions central-metrics.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# For scraping with central-proxy-docker, when all you want is the metrics exporter

version: "3.9"
x-logging: &logging
logging:
driver: json-file
options:
max-size: 100m
max-file: "3"
tag: '{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}'

services:
ethereum-metrics-exporter:
restart: "unless-stopped"
build:
context: ./eth-metrics
image: ethereum-metrics-exporter:local
environment:
- CLIENT=${COMPOSE_FILE}
entrypoint:
- docker-entrypoint.sh
- /ethereum-metrics-exporter
labels:
- metrics.scrape=true
- metrics.path=/metrics
- metrics.port=9090
<<: *logging

0 comments on commit 89dddfe

Please sign in to comment.