You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once you have made the changes in the `config.toml` you will need to stop Heimdall service and restart it.
23
+
Once you have made the changes in the `config.toml` you will need to stop Heimdall service and restart it. Note that you only need to restart Heimdall service if you have made changes to it.
25
24
26
25
To stop heimdall service:
27
26
28
-
**Linux Packages**: `sudo service heimdalld stop`
29
-
**Binaries**: `pkill heimdalld`
27
+
`sudo service heimdalld stop`
30
28
31
29
To restart heimdall service:
32
30
33
-
**Linux Packages**: `sudo service heimdalld start`
34
-
**Binaries**: `heimdalld start`
31
+
`sudo service heimdalld start`
35
32
36
33
**Step 3:**
37
34
38
35
You will make changes in the Bor service file. To access the `bor.service` file you can run this command:
39
36
40
-
`locate bor.service`
37
+
`nano /home/ubuntu/node/bor/start.sh`
41
38
42
-
There would be multiple entries. You will need to edit the file in this system path: `/etc/systemd/system/bor.service`
39
+
There would be multiple entries. By default the following parameters should be automatically added, but if they're not added then you can the parameters from below.
43
40
44
-
To edit the service file you can run the following command:
41
+
Now in this you would see multiple paramaters in a list format. Add this in the following format. You can add it anywhere, for example, you can add it after `--maxpeers 150`
45
42
46
-
`sudo nano /etc/systemd/system/bor.service`
43
+
```js
44
+
--metrics \
45
+
--pprof --pprofport 7071--pprofaddr '0.0.0.0' \
46
+
```
47
47
48
-
Now in this you would see `ExecStart=/bin/bash` with multiple paramaters in line to it. Add this, `--metrics --pprof --pprofport 7071 --pprofaddr 0.0.0.0`to this line of paramaters. You can add it anywhere, for example, you can add it after `--maxpeers 150`
48
+
Note that these parameters should already be added as part of your setup. You only need to add these parameters if they're not already present in the `start.sh` file.
49
49
50
50
You need to make sure that the spaces and formatting are intact.
51
51
52
52
Now you will notice that your bor will stop because we made changes to the service file. You will need to stop the bor service and restart it.
53
53
54
54
To Stop Bor service:
55
55
56
-
**Linux Packages**: `sudo service bor stop`
57
-
**Binaries**: `pkill bor`
56
+
`sudo service bor stop`
58
57
59
58
Note: When you stop the service of Bor you may encounter a warning asking you run `systemctl daemon-reload` to reload units.
60
59
61
60
You will need to run this as `sudo systemctl daemon-reload`. Once this is successfull you can proceed with starting the Bor service.
@@ -81,6 +78,14 @@ Then install Docker by running the following command:
81
78
82
79
Once Docker is installed then you run docker by running the following command to start Prometheus: `sudo docker-compose up -d`
83
80
81
+
Note: If you're getting an error after running `docker-compose up -d` please run the following commands on your remote machine
82
+
83
+
`sudo usermod -aG docker ubuntu`
84
+
85
+
`newgrp docker`
86
+
87
+
And then you can run `docker-compose up -d` again.
88
+
84
89
**Step 5:**
85
90
86
91
Open Grafana at following URL:
@@ -128,7 +133,7 @@ Grafana uses web based APIs to connect to prometheus server for indexed data. Fo
128
133

129
134
130
135
131
-
3. Change the HTTP url to http://host_ip:9090 and save. After the success message, go to Grafana home:
136
+
3. Change the HTTP url to http://host_ip:9090 and save. Make sure `9090` port is open. Click on `Save and Test` button to chek if the connection is a success. After the success message, go to Grafana home:
132
137
133
138
134
139

@@ -151,4 +156,3 @@ Grafana uses web based APIs to connect to prometheus server for indexed data. Fo
151
156
152
157

0 commit comments