user:jan001:nig_first_steps
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| user:jan001:nig_first_steps [2020/06/26 16:45] – jan001 | user:jan001:nig_first_steps [2023/01/05 14:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 42: | Line 42: | ||
| * Password: db | * Password: db | ||
| * do **not** enable SSL | * do **not** enable SSL | ||
| - | * Name: make up something nice | + | * Name: makeup |
| - Click on save. The database is now saved in node-red and you can use it on every influxdb-node you want to. If you want to, you can delete the node we just created. | - Click on save. The database is now saved in node-red and you can use it on every influxdb-node you want to. If you want to, you can delete the node we just created. | ||
| <WRAP center round important 60%> | <WRAP center round important 60%> | ||
| Line 49: | Line 49: | ||
| === Connect grafana with influxdb === | === Connect grafana with influxdb === | ||
| - | - Open the grafana URL provided in the email and log in with the provided username and password. You will now see an empty flow. You will have to change | + | - Open the grafana URL provided in the email and log in with the provided username and password. You will have to change |
| - We just need to add the influxdb as a data source. Find the gear icon on the left side and while hovering over it select "Data Sources" | - We just need to add the influxdb as a data source. Find the gear icon on the left side and while hovering over it select "Data Sources" | ||
| - Click "Add Data Source" | - Click "Add Data Source" | ||
| Line 70: | Line 70: | ||
| - Edit it with a double-click. As a payload, we just want a number. Type in a number you want. The topic is a value that we will be sent with the value you have chosen. The nodes communicate under each other with message objects as JSON-Objects. The payload is the raw data you want to work with. The topic is just another value inside this JSON-Object. My topic is just named " | - Edit it with a double-click. As a payload, we just want a number. Type in a number you want. The topic is a value that we will be sent with the value you have chosen. The nodes communicate under each other with message objects as JSON-Objects. The payload is the raw data you want to work with. The topic is just another value inside this JSON-Object. My topic is just named " | ||
| - Now we only need a node that sends the value to the influxdb. Drag and drop the " | - Now we only need a node that sends the value to the influxdb. Drag and drop the " | ||
| - | - The last click on deploy | + | - The last click on deploy |
| + | - Grafana-Part: | ||
| + | - Open up your grafana | ||
| + | - Create a new dashboard by hovering over the " | ||
| + | - Click "Add new panel" | ||
| + | - What you will see now can be a bit overwhelming at first but we will just do a little dip into it right now. To display data in our graph we have to query it from our influxdb. We will just need one query for this sample project. | ||
| + | - We just need to change one thing right now. Under query, you will find a row named " | ||
| + | - On the right side of the screen, you can change the panel title if you want. Otherwise, click on Apply in the top right corner. | ||
| + | - You now need to save the dashboard you just created. In the top right corner, you will fond a save icon. Give it some appropriate name and click " | ||
| + | - You just finished the sample! You can now see the dashboard on the grafana home screen. You can click the name to display it. | ||
user/jan001/nig_first_steps.1593182747.txt.gz · Last modified: 2023/01/05 14:38 (external edit)