Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added namespace #85

Merged
merged 25 commits into from
May 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
8e91d35
added namespace
krgrsebastian Mar 14, 2023
7aa159d
Merge main into fix/76/specify_namespace
github-actions[bot] Mar 14, 2023
1f2390c
Merge main into fix/76/specify_namespace
github-actions[bot] Mar 14, 2023
21d4728
Merge main into fix/76/specify_namespace
github-actions[bot] Mar 14, 2023
09f7b41
Merge main into fix/76/specify_namespace
github-actions[bot] Mar 14, 2023
3d3a2f1
Merge main into fix/76/specify_namespace
github-actions[bot] Mar 16, 2023
e84ae0f
Merge main into fix/76/specify_namespace
github-actions[bot] Mar 17, 2023
80b91d7
Merge main into fix/76/specify_namespace
github-actions[bot] Mar 17, 2023
6340ea4
Merge main into fix/76/specify_namespace
github-actions[bot] Mar 17, 2023
4809870
Merge main into fix/76/specify_namespace
github-actions[bot] Mar 22, 2023
fca1f28
Merge main into fix/76/specify_namespace
github-actions[bot] Mar 23, 2023
af15034
Merge main into fix/76/specify_namespace
github-actions[bot] Mar 31, 2023
98754b1
Merge main into fix/76/specify_namespace
github-actions[bot] Apr 4, 2023
7f10eec
Merge main into fix/76/specify_namespace
github-actions[bot] Apr 4, 2023
c827a02
Merge main into fix/76/specify_namespace
github-actions[bot] Apr 5, 2023
4a7254e
Merge main into fix/76/specify_namespace
github-actions[bot] Apr 5, 2023
00a9224
Merge main into fix/76/specify_namespace
github-actions[bot] Apr 17, 2023
2053b81
Merge main into fix/76/specify_namespace
github-actions[bot] Apr 26, 2023
100fc80
Merge main into fix/76/specify_namespace
github-actions[bot] Apr 27, 2023
cf32644
included Matteos Feedback (resource) and fixed a random ÜÜ
krgrsebastian Apr 28, 2023
774e173
included Matteos Feedback
krgrsebastian Apr 28, 2023
badb2dd
Merge main into fix/76/specify_namespace
github-actions[bot] Apr 28, 2023
22a7f0d
Merge main into fix/76/specify_namespace
github-actions[bot] May 5, 2023
d171503
Merge main into fix/76/specify_namespace
github-actions[bot] May 5, 2023
5681812
Merge main into fix/76/specify_namespace
github-actions[bot] May 5, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ The United Manufacturing Hub has several simulators. These simulators simulate d
7. In this column, you can view all incoming messages and their respective topics. The incoming topics follow this format: `ia/raw/development/ioTSensors/`. For the purpose of this tutorial, we will be using only the temperature topic, but feel free to choose any topic you'd like. To proceed, copy the temperature topic (`ia/raw/development/ioTSensors/Temperature`), open the **mqtt-in** node, paste the copied topic in the **Topic** field, click on **Done**, and then press **Deploy** again to apply the changes.

![Untitled](/images/getstarted/dataAcquisitionManipulation/getStartedDataAcqManNewTopic.png)
8. To format the incoming message, add a **JSONÜÜ node and a **Function** node to your flow. Connect the nodes in the following order: **mqtt-in → JSON → Function → mqtt-out**.
8. To format the incoming message, add a **JSON** node and a **Function** node to your flow. Connect the nodes in the following order: **mqtt-in → JSON → Function → mqtt-out**.

![Untitled](/images/getstarted/dataAcquisitionManipulation/getStartedDataAcqManNewNodes.png)
9. Open the **function** node and paste in the following:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,18 @@ In this chapter, we'll guide you through connecting to our Kubernetes cluster us
## 1. Connect to UMH

1. Download & install UMHLens [here](https://github.com/united-manufacturing-hub/UMHLens/releases).
2. If you installed the UMH using the management console, you should see a cluster named "k3d-united-manufacturing-hub" under **Browse**. Click on it to connect.
3. On the right side of UMHLens under **workloads** -> **pods** you can check the status of all pods. Depending on your system, it may take a while for all pods to start.
2. If you installed the UMH using the management console, you should see a cluster named "k3d-united-manufacturing-hub"
under **Browse**. Click on it to connect.
3. You can check the status of all pods by navigating to **Workloads** -> **Wods** and selecting
{{< resource type="ns" name="umh" >}} as the namespace on the top right. Depending on your system, it may take a while for all pods to start.

![Untitled](/images/getstarted/managingTheSystem/getStartedManagingPods.png?width=75%)
4. To access the web interfaces of the microservices, e.g. node-red or grafana, navigate to **network**->**services** on the left-hand side.
![Untitled](/images/getstarted/managingTheSystem/LensSelectNamespace.png)
4. To access the web interfaces of the microservices, e.g. node-red or grafana, navigate to **Network** -> **Services** on
the left-hand side. Again make sure to change the namespace to {{< resource type="ns" name="umh" >}} at the top right.

![Untitled](/images/getstarted/managingTheSystem/getStartedManagingServices.png?width=75%)
![Untitled](/images/getstarted/managingTheSystem/LensSelectNamespace.png)
5. Click on the appropriate service you wish to connect to, scroll down to **Connection** and forward the port.

![Untitled](/images/getstarted/managingTheSystem/getStartedManagingForwarding.png?width=75%)
Expand All @@ -38,13 +43,16 @@ In this chapter, we'll guide you through connecting to our Kubernetes cluster us
3. Now copy [this json file](/json/getstarted/noderedGetStarted.json) and paste it into the import field. Then press **Import**.

![Untitled](/images/getstarted/managingTheSystem/getStartedManagingPasteJson.png?width=75%)
4. To activate the imported flow, simply click on the **Deploy** button located at the top right of the screen. If everything is working as expected, you should see green dots above the input and output. Once you've confirmed that the data is flowing correctly, you can proceed to display it in Grafana
4. To activate the imported flow, simply click on the **Deploy** button located at the top right of the screen.
If everything is working as expected, you should see green dots above the input and output. Once you've confirmed
that the data is flowing correctly, you can proceed to display it in Grafana
![Untitled](/images/getstarted/managingTheSystem/getStartedManagingDeploy.png?width=75%)


## 3. Import flows to Grafana & view dashboard

1. Go into UMHLens and forward the grafana service as you did with node-red. To log in, you need the grafana Secrets, which you can find in UMHLens under **Config** -> **Secrets** -> **Grafana-Secret**. Click on the eye to display the username and password and enter it in grafana.
1. Go into UMHLens and forward the grafana service as you did with node-red. To log in, you need the grafana Secrets,
which you can find in UMHLens under **Config** -> **Secrets** -> **Grafana-Secret**. Click on the eye to display the username and password and enter it in grafana.

![Untitled](/images/getstarted/managingTheSystem/getStartedManagingGrafanaSecrets.png?width=75%)
2. Once you are logged in, click on **Dashboards** on the left and select **Import**. Now copy [this Grafana json](/json/getstarted/GrafanaGetStarted.json) and paste it into **Import via panel json**. Then click on **Load**. You will then be redirected to **Options** where you need to select the **umh-v2-datasource**. Finally, click on **Import**.
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.