Skip to content

Commit

Permalink
add network label to services (#1855)
Browse files Browse the repository at this point in the history
* add network label to services

* Add config to scrape network label to local prometheus
  • Loading branch information
gathecageorge authored Jun 18, 2024
1 parent c0d6cb3 commit 50bd12d
Show file tree
Hide file tree
Showing 32 changed files with 49 additions and 0 deletions.
1 change: 1 addition & 0 deletions besu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ services:
- metrics.path=/metrics
- metrics.port=6060
- metrics.instance=execution
- metrics.network=${NETWORK}

set-prune-marker:
profiles: ["tools"]
Expand Down
1 change: 1 addition & 0 deletions central-metrics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ services:
- metrics.path=/metrics
- metrics.port=9090
- metrics.instance=ethereum-metrics-exporter
- metrics.network=${NETWORK}
1 change: 1 addition & 0 deletions erigon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ services:
- metrics.path=/debug/metrics/prometheus
- metrics.port=6060
- metrics.instance=execution
- metrics.network=${NETWORK}

volumes:
erigon-el-data:
Expand Down
1 change: 1 addition & 0 deletions geth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ services:
- metrics.path=/debug/metrics/prometheus
- metrics.port=6060
- metrics.instance=execution
- metrics.network=${NETWORK}

volumes:
geth-eth1-data:
Expand Down
5 changes: 5 additions & 0 deletions grafana-cloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ services:
- metrics.path=/metrics
- metrics.port=9090
- metrics.instance=prometheus
- metrics.network=${NETWORK}

ethereum-metrics-exporter:
restart: "unless-stopped"
Expand Down Expand Up @@ -77,6 +78,7 @@ services:
- metrics.path=/metrics
- metrics.port=9100
- metrics.instance=node-exporter
- metrics.network=${NETWORK}

blackbox-exporter:
restart: "unless-stopped"
Expand All @@ -103,6 +105,7 @@ services:
- metrics.path=/metrics
- metrics.port=7979
- metrics.instance=json-exporter
- metrics.network=${NETWORK}

cadvisor:
restart: "unless-stopped"
Expand All @@ -122,6 +125,7 @@ services:
- metrics.path=/metrics
- metrics.port=8080
- metrics.instance=cadvisor
- metrics.network=${NETWORK}

promtail:
image: grafana/promtail:latest
Expand All @@ -142,6 +146,7 @@ services:
- metrics.path=/metrics
- metrics.port=9080
- metrics.instance=promtail
- metrics.network=${NETWORK}

volumes:
prom-data:
Expand Down
8 changes: 8 additions & 0 deletions grafana.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ services:
- metrics.path=/metrics
- metrics.port=9090
- metrics.instance=prometheus
- metrics.network=${NETWORK}

ethereum-metrics-exporter:
restart: "unless-stopped"
Expand All @@ -45,6 +46,7 @@ services:
- metrics.path=/metrics
- metrics.port=9090
- metrics.instance=ethereum-metrics-exporter
- metrics.network=${NETWORK}

node-exporter:
image: prom/node-exporter:latest
Expand All @@ -69,6 +71,7 @@ services:
- metrics.path=/metrics
- metrics.port=9100
- metrics.instance=node-exporter
- metrics.network=${NETWORK}

blackbox-exporter:
restart: "unless-stopped"
Expand All @@ -95,6 +98,7 @@ services:
- metrics.path=/metrics
- metrics.port=7979
- metrics.instance=json-exporter
- metrics.network=${NETWORK}

cadvisor:
restart: "unless-stopped"
Expand All @@ -114,6 +118,7 @@ services:
- metrics.path=/metrics
- metrics.port=8080
- metrics.instance=cadvisor
- metrics.network=${NETWORK}

promtail:
image: grafana/promtail:latest
Expand All @@ -136,6 +141,7 @@ services:
- metrics.path=/metrics
- metrics.port=9080
- metrics.instance=promtail
- metrics.network=${NETWORK}

loki:
image: grafana/loki:latest
Expand All @@ -151,6 +157,7 @@ services:
- metrics.path=/metrics
- metrics.port=3100
- metrics.instance=loki
- metrics.network=${NETWORK}

grafana:
restart: "unless-stopped"
Expand Down Expand Up @@ -179,6 +186,7 @@ services:
- metrics.path=/metrics
- metrics.port=3000
- metrics.instance=grafana
- metrics.network=${NETWORK}

volumes:
grafana-data:
Expand Down
1 change: 1 addition & 0 deletions grandine-allin1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ services:
- metrics.path=/metrics
- metrics.port=8008
- metrics.instance=consensus
- metrics.network=${NETWORK}

wipe-db:
profiles: ["tools"]
Expand Down
1 change: 1 addition & 0 deletions grandine-cl-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ services:
- metrics.path=/metrics
- metrics.port=8008
- metrics.instance=consensus
- metrics.network=${NETWORK}

wipe-db:
profiles: ["tools"]
Expand Down
1 change: 1 addition & 0 deletions lighthouse-cl-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ services:
- metrics.path=/metrics
- metrics.port=8008
- metrics.instance=consensus
- metrics.network=${NETWORK}

set-cl-prune-marker:
profiles: ["tools"]
Expand Down
1 change: 1 addition & 0 deletions lighthouse-vc-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ services:
- metrics.path=/metrics
- metrics.port=8009
- metrics.instance=validator
- metrics.network=${NETWORK}

validator-exit:
profiles: ["tools"]
Expand Down
2 changes: 2 additions & 0 deletions lighthouse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ services:
- metrics.path=/metrics
- metrics.port=8008
- metrics.instance=consensus
- metrics.network=${NETWORK}

validator:
restart: "unless-stopped"
Expand Down Expand Up @@ -155,6 +156,7 @@ services:
- metrics.path=/metrics
- metrics.port=8009
- metrics.instance=validator
- metrics.network=${NETWORK}

validator-exit:
profiles: ["tools"]
Expand Down
1 change: 1 addition & 0 deletions lodestar-cl-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ services:
- metrics.path=/metrics
- metrics.port=8008
- metrics.instance=consensus
- metrics.network=${NETWORK}

volumes:
lsconsensus-data:
Expand Down
1 change: 1 addition & 0 deletions lodestar-vc-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ services:
- metrics.path=/metrics
- metrics.port=8009
- metrics.instance=validator
- metrics.network=${NETWORK}

validator-exit:
profiles: ["tools"]
Expand Down
2 changes: 2 additions & 0 deletions lodestar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ services:
- metrics.path=/metrics
- metrics.port=8008
- metrics.instance=consensus
- metrics.network=${NETWORK}

validator:
restart: "unless-stopped"
Expand Down Expand Up @@ -145,6 +146,7 @@ services:
- metrics.path=/metrics
- metrics.port=8009
- metrics.instance=validator
- metrics.network=${NETWORK}

validator-exit:
profiles: ["tools"]
Expand Down
1 change: 1 addition & 0 deletions nethermind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ services:
- metrics.path=/metrics
- metrics.port=6060
- metrics.instance=execution
- metrics.network=${NETWORK}

volumes:
nm-eth1-data:
Expand Down
1 change: 1 addition & 0 deletions nimbus-allin1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ services:
- metrics.path=/metrics
- metrics.port=8008
- metrics.instance=consensus
- metrics.network=${NETWORK}

wipe-db:
profiles: ["tools"]
Expand Down
1 change: 1 addition & 0 deletions nimbus-cl-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ services:
- metrics.path=/metrics
- metrics.port=8008
- metrics.instance=consensus
- metrics.network=${NETWORK}

# Uses keystore-m file and CL, so does belong here
validator-exit:
Expand Down
1 change: 1 addition & 0 deletions nimbus-vc-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ services:
- metrics.path=/metrics
- metrics.port=8009
- metrics.instance=validator
- metrics.network=${NETWORK}

validator-exit:
profiles: ["tools"]
Expand Down
2 changes: 2 additions & 0 deletions nimbus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ services:
- metrics.path=/metrics
- metrics.port=8008
- metrics.instance=consensus
- metrics.network=${NETWORK}

validator:
restart: "unless-stopped"
Expand Down Expand Up @@ -126,6 +127,7 @@ services:
- metrics.path=/metrics
- metrics.port=8009
- metrics.instance=validator
- metrics.network=${NETWORK}

validator-exit:
profiles: ["tools"]
Expand Down
2 changes: 2 additions & 0 deletions prometheus/base-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ scrape_configs:
source_labels:
- __meta_docker_container_label_metrics_instance
target_label: instance
- source_labels: [__meta_docker_container_label_metrics_network]
target_label: network

scrape_config_files:
- /etc/prometheus/conf.d/*.yml
1 change: 1 addition & 0 deletions prysm-cl-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ services:
- metrics.path=/metrics
- metrics.port=8008
- metrics.instance=consensus
- metrics.network=${NETWORK}

volumes:
prysmconsensus-data:
Expand Down
1 change: 1 addition & 0 deletions prysm-vc-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ services:
- metrics.path=/metrics
- metrics.port=8009
- metrics.instance=validator
- metrics.network=${NETWORK}

create-wallet:
profiles: ["tools"]
Expand Down
2 changes: 2 additions & 0 deletions prysm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ services:
- metrics.path=/metrics
- metrics.port=8008
- metrics.instance=consensus
- metrics.network=${NETWORK}

validator:
restart: "unless-stopped"
Expand Down Expand Up @@ -156,6 +157,7 @@ services:
- metrics.path=/metrics
- metrics.port=8009
- metrics.instance=validator
- metrics.network=${NETWORK}

create-wallet:
profiles: ["tools"]
Expand Down
1 change: 1 addition & 0 deletions reth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ services:
- metrics.path=/metrics
- metrics.port=6060
- metrics.instance=execution
- metrics.network=${NETWORK}

volumes:
reth-el-data:
Expand Down
1 change: 1 addition & 0 deletions ssv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ services:
- metrics.path=/metrics
- metrics.port=15000
- metrics.instance=ssv-node
- metrics.network=${NETWORK}

volumes:
ssv-data:
Expand Down
1 change: 1 addition & 0 deletions teku-allin1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ services:
- metrics.path=/metrics
- metrics.port=8008
- metrics.instance=consensus
- metrics.network=${NETWORK}

wipe-db:
profiles: ["tools"]
Expand Down
1 change: 1 addition & 0 deletions teku-cl-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ services:
- metrics.path=/metrics
- metrics.port=8008
- metrics.instance=consensus
- metrics.network=${NETWORK}

volumes:
tekuconsensus-data:
Expand Down
1 change: 1 addition & 0 deletions teku-vc-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ services:
- metrics.path=/metrics
- metrics.port=8009
- metrics.instance=validator
- metrics.network=${NETWORK}

validator-exit:
profiles: ["tools"]
Expand Down
2 changes: 2 additions & 0 deletions teku.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ services:
- metrics.path=/metrics
- metrics.port=8008
- metrics.instance=consensus
- metrics.network=${NETWORK}

validator:
restart: "unless-stopped"
Expand Down Expand Up @@ -134,6 +135,7 @@ services:
- metrics.path=/metrics
- metrics.port=8009
- metrics.instance=validator
- metrics.network=${NETWORK}

validator-exit:
profiles: ["tools"]
Expand Down
1 change: 1 addition & 0 deletions traefik-aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ services:
- metrics.path=/metrics
- metrics.port=8080
- metrics.instance=traefik
- metrics.network=${NETWORK}
<<: *logging

volumes:
Expand Down
1 change: 1 addition & 0 deletions traefik-cf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ services:
- metrics.path=/metrics
- metrics.port=8080
- metrics.instance=traefik
- metrics.network=${NETWORK}
<<: *logging

cf-ddns:
Expand Down
1 change: 1 addition & 0 deletions web3signer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ services:
- metrics.path=/metrics
- metrics.port=9001
- metrics.instance=web3signer
- metrics.network=${NETWORK}

postgres:
restart: "unless-stopped"
Expand Down

0 comments on commit 50bd12d

Please sign in to comment.