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
Copy file name to clipboardExpand all lines: README.md
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,9 +3,9 @@
3
3
## Features
4
4
This project is actually a proof of concept to demonstrate the following features:
5
5
1. The ability to run **many** containers on a **Raspberry Pi 3 Model B+** (see [section 1. What](#1-what)).
6
-
2. The Built and Deployment of this multi container application using the **BalenaCloud** services.(see [section 2. How to install ...](#2-how-to-install-this-application-on-an-edge-device))
6
+
2. The Built and Deployment of this multi container application using the **BalenaCloud** services(see [section 2. How to install ...](#2-how-to-install-this-application-on-an-edge-device)).
7
7
3. Monitoring the system resources of the raspberry pi using the **TIG** stack (see [section 3. System resource monitoring ...](#3-system-resource-monitoring-using-the-tig-stack-telegraf-influxdb--grafana)):
8
-
4. That **Grafana** is very nice and powerful tool to create dashboards (see [section 4. Grafana](#4-grafana)) and that it is easy to create or update those dashboards (see [section 4.1 Updating and adding ...](https://github.com/janvda/balena-edge-device-monitoring/blob/node-red/README.md#41-updating--adding-new-grafana-dashboards)).
8
+
4. That **Grafana** is very nice and powerful tool to create dashboards (see [section 4. Grafana](#4-grafana)) and that it is easy to create or update those dashboards (see [section 4.1 Updating and adding ...](#41-updating--adding-new-grafana-dashboards)).
9
9
5. It is possible to run multiple Node-RED instances on the same device.
10
10
6. It is possible to run multiple MQTT brokers on the same device.
11
11
7. A USB memory stick connected to the pi can be used for storing specific data (in this case it is the influxdb data)
@@ -20,7 +20,7 @@ So, this application consists of the following 8 docker containers (= TIG stack
20
20
3.[Grafana](https://grafana.com/) - create, explore and share dashboards
21
21
4. 2x [Node-RED](https://nodered.org/) - flow based programming for the Internet of Things (accessible through path `/nodered` )
4.[nginx](http://nginx.org/en/docs/) - configured as reverse-proxyserver so that the http/https request becomes routed to grafana (port 30000) and the http/https request for path `/node-red` become routed to node-red (port 1880).
23
+
4.[nginx](http://nginx.org/en/docs/) - is open source software for web serving, reverse proxying, caching, load balancing,....
24
24
25
25
## 2. How to install this application on an edge device
26
26
It is very easy to install this application using the [BalenaCloud](https://www.balena.io/) services through following steps:
@@ -57,6 +57,12 @@ If you want to add a new Grafana dashboard then this can be done through followi
57
57
4. Substitute the ID number you can fiInfluxDB system metrics dashboard]nd in that file just after field `"graphTooltip"` by `null`. E.g. ` "id": 1,` should be changed into ` "id": null,`
58
58
5. Commit your changes in git and push them to your balena git remote endpoint (`git push balena master`)
59
59
60
+
## 5. Node-RED
61
+
The application consists of 2 [Node-RED](https://nodered.org/) containers:
62
+
-*Node-RED*: the editor is accessble through Host OS port and path : `<Host OS>:1880/node-red/`
63
+
-*Node-Red-Test* : the editor is accessble through Host OS port and path : `<Host OS>:1882/node-red-test/`
64
+
Both Node-RED editors are protected by a user name and password that must be set throught the environment variables `USERNAME` and `PASSWORD`. Note that the environment variable `PASSWORD` should contain the hashed password.
65
+
60
66
## Credits
61
67
1.[Initializing Grafana with preconfigured dashboards](https://ops.tips/blog/initialize-grafana-with-preconfigured-dashboards/)[(github repository)](https://github.com/cirocosta/sample-grafana)
62
68
2.[InfluxDB system metrics dashboard](https://grafana.com/dashboards/1138)
0 commit comments