File tree Expand file tree Collapse file tree 4 files changed +12
-6
lines changed
observability/compose/conf Expand file tree Collapse file tree 4 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 1+ - On chain metrics scrape targets
2+ - Allow to specify custom names for blockchain containers
Original file line number Diff line number Diff line change @@ -34,10 +34,11 @@ const (
3434// Input is a blockchain network configuration params
3535type Input struct {
3636 // Common EVM fields
37- Type string `toml:"type" validate:"required,oneof=anvil geth besu solana aptos tron sui ton" envconfig:"net_type"`
38- Image string `toml:"image"`
39- PullImage bool `toml:"pull_image"`
40- Port string `toml:"port"`
37+ Type string `toml:"type" validate:"required,oneof=anvil geth besu solana aptos tron sui ton" envconfig:"net_type"`
38+ Image string `toml:"image"`
39+ PullImage bool `toml:"pull_image"`
40+ Port string `toml:"port"`
41+ ContainerName string `toml:"container_name"`
4142 // Not applicable to Solana, ws port for Solana is +1 of port
4243 WSPort string `toml:"port_ws"`
4344 ChainID string `toml:"chain_id"`
Original file line number Diff line number Diff line change @@ -24,6 +24,9 @@ const (
2424
2525func baseRequest (in * Input , useWS ExposeWs ) testcontainers.ContainerRequest {
2626 containerName := framework .DefaultTCName ("blockchain-node" )
27+ if in .ContainerName != "" {
28+ containerName = in .ContainerName
29+ }
2730 bindPort := fmt .Sprintf ("%s/tcp" , in .Port )
2831 exposedPorts := []string {bindPort }
2932 if useWS {
Original file line number Diff line number Diff line change 44scrape_configs :
55 - job_name : ' on-chain-metrics'
66 metrics_path : /on-chain-metrics
7- scrape_interval : 10s
7+ scrape_interval : 2s
88 static_configs :
9- - targets : [ 'host.docker.internal:9112', 'on-chain-metrics :9112']
9+ - targets : [ 'host.docker.internal:9112', '172.17.0.1 :9112']
1010 - job_name : ' otel-collector'
1111 scrape_interval : 10s
1212 static_configs :
You can’t perform that action at this time.
0 commit comments