Commit ed6d8be3 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Merge branch 'feat/device-perf-eval' of...

Merge branch 'feat/device-perf-eval' of https://labs.etsi.org/rep/tfs/controller into feat/device-perf-eval
parents 6b246594 edd54e91
Loading
Loading
Loading
Loading
+10 −12
Original line number Diff line number Diff line
@@ -2,6 +2,12 @@

## Description:

- enable prometheus addon:
```
tfs@tfs-vm:~/tfs-ctrl$ microk8s.enable prometheus
tfs@tfs-vm:~/tfs-ctrl$ microk8s.status --wait-ready
```

- deploy as:
```
tfs@tfs-vm:~/tfs-ctrl$ source src/common/perf_eval_method_wrapper/tests/deploy_specs.sh 
@@ -9,20 +15,12 @@ tfs@tfs-vm:~/tfs-ctrl$ ./deploy.sh
```

- expose prometheus and grafana
terminal 1 (prometheus UI):
```
kubectl port-forward -n monitoring service/prometheus-k8s --address 0.0.0.0 9090:9090
```

terminal 2 (prometheus internal grafana):
```
kubectl port-forward -n monitoring service/grafana --address 0.0.0.0 3000:3000
```
  - terminal 1 (prometheus UI): `kubectl port-forward -n monitoring service/prometheus-k8s --address 0.0.0.0 9090:9090`
  - terminal 2 (grafana UI): `kubectl port-forward -n monitoring service/grafana --address 0.0.0.0 3000:3000`
  - terminal 3 (alertmanager UI): `kubectl port-forward -n monitoring service/alertmanager-main --address 0.0.0.0 9093:9093`

terminal 3 (alertmanager):
```
kubectl port-forward -n monitoring service/alertmanager-main --address 0.0.0.0 9093:9093
```
- if using remote server/VM for running MicroK8s and VSCode, forward ports 9090, 3000, 9093

terminal 4 (tun test_set):
```