Skip to content

Commit

Permalink
chore: rollback modification on .yml files
Browse files Browse the repository at this point in the history
  • Loading branch information
EclesioMeloJunior committed Apr 26, 2023
1 parent f9d7e43 commit 3ba7e4c
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 62 deletions.
15 changes: 8 additions & 7 deletions chain/westend-local/config-alice.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[global]
basepath = "./tmp/.gossamer/westend-local-alice"
basepath = "~/.gossamer/westend-local-alice"
log = "info"
metrics-address = ":9876"

Expand All @@ -11,20 +11,21 @@ state = ""
runtime = ""
babe = ""
grandpa = ""
sync = "trace"
digest = "trace"
sync = ""
digest = ""

[init]
genesis = "./chain/westend-local/westend-local-spec-raw.json"

[account]
key = ""
key = "alice"
unlock = ""

[core]
roles = 4
babe-authority = false
grandpa-authority = false
babe-authority = true
grandpa-authority = true
babe-lead = true

[network]
port = 7001
Expand All @@ -51,7 +52,7 @@ modules = [
ws-port = 8546

[pprof]
enabled = true
enabled = false
listening-address = "localhost:6060"
block-rate = 0
mutex-rate = 0
5 changes: 1 addition & 4 deletions chain/westend-local/westend-local-spec-raw.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
"name": "Westend Local Testnet",
"id": "westend_local_testnet",
"chainType": "Local",
"bootNodes": [
"/ip4/127.0.0.1/tcp/30337/p2p/12D3KooWEFF1y4eJ5viWdU7Tn6UtdjVY6LiZfmg6dVdCyDocNc6q",
"/ip4/127.0.0.1/tcp/30333/p2p/12D3KooWCS3voVrcMs4xW1qaFQhRpMttncmjFfGCNpDHaNkTkVQk"
],
"bootNodes": [],
"telemetryEndpoints": null,
"protocolId": "dot",
"properties": null,
Expand Down
6 changes: 3 additions & 3 deletions chain/westend/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ metrics-address = "localhost:9876"
core = ""
network = ""
rpc = ""
state = "debug"
state = ""
runtime = ""
babe = ""
grandpa = ""
sync = "trace"
digest = "trace"
sync = ""
digest = ""

[init]
genesis = "./chain/westend/genesis.json"
Expand Down
82 changes: 41 additions & 41 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,50 +11,50 @@
#
# To rebuild the Gossamer Docker image: `docker-compose build`

version: "3"
version: '3'

services:
gossamer:
image: chainsafe/gossamer
build: .
volumes:
# Remove with: docker volume rm gossamer
- gossamer:/data/gossamer
command:
- --basepath=/data/gossamer
- --chain=kusama
- --log=info
- --publish-metrics
- --metrics-address=:9876
- --pprofserver
ports:
- 6060:6060/tcp # Pprof server
- 7001:7001/tcp # Network port
- 8545:8545/tcp # RPC HTTP port
- 8546:8546/tcp # RPC Websocket port
expose:
- 9876/tcp # Prometheus metrics for Prometheus server
gossamer:
image: chainsafe/gossamer
build: .
volumes:
# Remove with: docker volume rm gossamer
- gossamer:/data/gossamer
command:
- --basepath=/data/gossamer
- --chain=kusama
- --log=info
- --publish-metrics
- --metrics-address=:9876
- --pprofserver
ports:
- 6060:6060/tcp # Pprof server
- 7001:7001/tcp # Network port
- 8545:8545/tcp # RPC HTTP port
- 8546:8546/tcp # RPC Websocket port
expose:
- 9876/tcp # Prometheus metrics for Prometheus server

prometheus:
image: prom/prometheus
volumes:
- ./docker/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
# The following line can be uncommented to persist metrics data.
# - gossamer-prometheus:/prometheus
expose:
- 9090/tcp # Prometheus metrics for Grafana
prometheus:
image: prom/prometheus
volumes:
- ./docker/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
# The following line can be uncommented to persist metrics data.
# - gossamer-prometheus:/prometheus
expose:
- 9090/tcp # Prometheus metrics for Grafana

grafana:
image: grafana/grafana-oss
ports:
- 3000:3000/tcp # HTTP Web interface at http://localhost:3000/
volumes:
- ./docker/grafana/grafana.ini:/etc/grafana/grafana.ini:ro
- ./docker/grafana/provisioning:/etc/grafana/provisioning:ro
# The following line can be uncommented to persist modifications.
# - gossamer-grafana:/var/lib/grafana
grafana:
image: grafana/grafana-oss
ports:
- 3000:3000/tcp # HTTP Web interface at http://localhost:3000/
volumes:
- ./docker/grafana/grafana.ini:/etc/grafana/grafana.ini:ro
- ./docker/grafana/provisioning:/etc/grafana/provisioning:ro
# The following line can be uncommented to persist modifications.
# - gossamer-grafana:/var/lib/grafana

volumes:
gossamer:
gossamer-prometheus:
gossamer-grafana:
gossamer:
gossamer-prometheus:
gossamer-grafana:
12 changes: 6 additions & 6 deletions docker/grafana/provisioning/dashboards/gossamer.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"type": "prometheus",
"uid": "prometheus_id"
},
"expr": "go_goroutines{instance=~\".*internal.*\"}",
"expr": "go_goroutines{instance=~\".*gossamer.*\"}",
"refId": "A"
}
],
Expand Down Expand Up @@ -148,7 +148,7 @@
"type": "prometheus",
"uid": "prometheus_id"
},
"expr": "go_threads{instance=~\".*internal.*\"}",
"expr": "go_threads{instance=~\".*gossamer.*\"}",
"refId": "A"
}
],
Expand Down Expand Up @@ -207,7 +207,7 @@
"type": "prometheus",
"uid": "prometheus_id"
},
"expr": "process_resident_memory_bytes{instance=~\".*internal.*\"}",
"expr": "process_resident_memory_bytes{instance=~\".*gossamer.*\"}",
"refId": "A"
}
],
Expand Down Expand Up @@ -292,7 +292,7 @@
"uid": "prometheus_id"
},
"editorMode": "code",
"expr": "process_resident_memory_bytes{instance=~\".*internal.*\"}",
"expr": "process_resident_memory_bytes{instance=~\".*gossamer.*\"}",
"legendFormat": "Resident memory",
"range": true,
"refId": "A"
Expand All @@ -303,7 +303,7 @@
"uid": "prometheus_id"
},
"editorMode": "code",
"expr": "go_memstats_heap_inuse_bytes{instance=~\".*internal.*\"}",
"expr": "go_memstats_heap_inuse_bytes{instance=~\".*gossamer.*\"}",
"hide": false,
"legendFormat": "Heap",
"range": true,
Expand All @@ -315,7 +315,7 @@
"uid": "prometheus_id"
},
"editorMode": "code",
"expr": "go_memstats_stack_inuse_bytes{instance=~\".*internal.*\"}",
"expr": "go_memstats_stack_inuse_bytes{instance=~\".*gossamer.*\"}",
"hide": false,
"legendFormat": "Stack",
"range": true,
Expand Down
2 changes: 1 addition & 1 deletion docker/prometheus/prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ scrape_configs:
- job_name: gossamer
metrics_path: /metrics
static_configs:
- targets: ["host.docker.internal:9876"]
- targets: ["gossamer:9876"]

0 comments on commit 3ba7e4c

Please sign in to comment.