Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/addons/alloy/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ services:
expose:
- 12345
ports:
- 12345:12345
- 127.0.0.1:12345:12345
volumes:
- ./config.alloy:/etc/alloy/config.alloy
- /var/run/docker.sock:/var/run/docker.sock
Expand Down
7 changes: 6 additions & 1 deletion scripts/addons/alloy/config.alloy
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ discovery.relabel "filter_metrics_enabled" {
action = "replace"
}

rule {
source_labels = ["__meta_docker_container_label_metrics_path"]
target_label = "__metrics_path__"
action = "replace"
}

rule {
source_labels = ["__meta_docker_container_label_com_docker_compose_service"]
target_label = "app"
Expand Down Expand Up @@ -88,7 +94,6 @@ prometheus.scrape "docker_containers" {
forward_to = [prometheus.remote_write.remote.receiver]
job_name = "docker_containers"
scrape_interval = sys.env("METRICS_SCRAPE_INTERVAL")
metrics_path = sys.env("METRICS_ENDPOINT_PATH")
}

prometheus.remote_write "remote" {
Expand Down
21 changes: 21 additions & 0 deletions scripts/addons/node-exporter/compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
services:
node-exporter:
image: prom/node-exporter:latest
restart: unless-stopped
networks:
- gas
expose:
- 9100
ports:
- 127.0.0.1:9100:9100
volumes:
- "/:/host:ro,rslave"
command:
- "--path.rootfs=/host"
- "--web.listen-address=0.0.0.0:9100"
labels:
metrics_enabled: "true"
metrics_port: "9100"
metrics_path: "/metrics"
logs_enabled: "false"
instance: "${GA_METRICS_LABELS_INSTANCE}"
5 changes: 5 additions & 0 deletions scripts/besu/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ services:
labels:
metrics_enabled: "true"
metrics_port: "8008"
metrics_path: "/metrics"
logs_enabled: "false"
instance: "${GA_METRICS_LABELS_INSTANCE}"
alloy:
Expand All @@ -55,6 +56,10 @@ services:
extends:
file: ../addons/alloy/compose.yaml
service: alloy
node-exporter:
extends:
file: ../addons/node-exporter/compose.yaml
service: node-exporter
networks:
gas:
name: gas-network
6 changes: 5 additions & 1 deletion scripts/erigon/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,19 @@ services:
labels:
metrics_enabled: "true"
metrics_port: "8008"
metrics_path: "/debug/metrics/prometheus"
logs_enabled: "false"
instance: "${GA_METRICS_LABELS_INSTANCE}"
alloy:
environment:
METRICS_LABELS_EXECUTION_CLIENT: "erigon"
METRICS_ENDPOINT_PATH: "/debug/metrics/prometheus"
extends:
file: ../addons/alloy/compose.yaml
service: alloy
node-exporter:
extends:
file: ../addons/node-exporter/compose.yaml
service: node-exporter
networks:
gas:
name: gas-network
16 changes: 16 additions & 0 deletions scripts/ethrex/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,22 @@ services:
options:
max-size: 10m
max-file: "10"
labels:
metrics_enabled: "true"
metrics_port: "8008"
metrics_path: "/metrics"
logs_enabled: "false"
instance: "${GA_METRICS_LABELS_INSTANCE}"
alloy:
environment:
METRICS_LABELS_EXECUTION_CLIENT: "ethrex"
extends:
file: ../addons/alloy/compose.yaml
service: alloy
node-exporter:
extends:
file: ../addons/node-exporter/compose.yaml
service: node-exporter
networks:
gas:
name: gas-network
6 changes: 5 additions & 1 deletion scripts/geth/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,19 @@ services:
labels:
metrics_enabled: "true"
metrics_port: "8008"
metrics_path: "/debug/metrics/prometheus"
logs_enabled: "false"
instance: "${GA_METRICS_LABELS_INSTANCE}"
alloy:
environment:
METRICS_LABELS_EXECUTION_CLIENT: "geth"
METRICS_ENDPOINT_PATH: "/debug/metrics/prometheus"
extends:
file: ../addons/alloy/compose.yaml
service: alloy
node-exporter:
extends:
file: ../addons/node-exporter/compose.yaml
service: node-exporter
networks:
gas:
name: gas-network
5 changes: 5 additions & 0 deletions scripts/nethermind/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ services:
labels:
metrics_enabled: "true"
metrics_port: "8008"
metrics_path: "/metrics"
logs_enabled: "false"
instance: "${GA_METRICS_LABELS_INSTANCE}"
alloy:
Expand All @@ -60,6 +61,10 @@ services:
extends:
file: ../addons/alloy/compose.yaml
service: alloy
node-exporter:
extends:
file: ../addons/node-exporter/compose.yaml
service: node-exporter
networks:
gas:
name: gas-network
16 changes: 16 additions & 0 deletions scripts/nimbus/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,22 @@ services:
options:
max-size: 10m
max-file: "10"
labels:
metrics_enabled: "true"
metrics_port: "8008"
metrics_path: "/metrics"
logs_enabled: "false"
instance: "${GA_METRICS_LABELS_INSTANCE}"
alloy:
environment:
METRICS_LABELS_EXECUTION_CLIENT: "nimbus-el"
extends:
file: ../addons/alloy/compose.yaml
service: alloy
node-exporter:
extends:
file: ../addons/node-exporter/compose.yaml
service: node-exporter
networks:
gas:
name: gas-network
6 changes: 5 additions & 1 deletion scripts/reth/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,19 @@ services:
labels:
metrics_enabled: "true"
metrics_port: "8008"
metrics_path: "/debug/metrics/prometheus"
logs_enabled: "false"
instance: "${GA_METRICS_LABELS_INSTANCE}"
alloy:
environment:
METRICS_LABELS_EXECUTION_CLIENT: "reth"
METRICS_ENDPOINT_PATH: "/debug/metrics/prometheus"
extends:
file: ../addons/alloy/compose.yaml
service: alloy
node-exporter:
extends:
file: ../addons/node-exporter/compose.yaml
service: node-exporter
networks:
gas:
name: gas-network