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: test/mock/collector/README.md
+18-10Lines changed: 18 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,30 +1,38 @@
1
1
# Mock Management OTel Collector
2
2
3
-
There are 3 images that need to be built in order to use the mock management OTel collector
3
+
There are 4 images that need to be built in order to use the mock management OTel collector
4
4
* Agent with NGINX Plus image
5
+
* Agent with NGINX Plus & NGINX App Protect image
5
6
* Agent with NGINX OSS image
6
7
* Custom OTel collector image
7
8
8
9
To build these images run the following
9
10
```
10
-
make local-deb-package build-test-plus-image build-test-oss-image build-mock-collector-image
11
+
OSARCH=amd64 make local-deb-package build-test-nginx-plus-and-nap-image
12
+
make local-deb-package build-test-oss-image build-test-plus-image build-mock-management-otel-collector-image
11
13
```
12
14
15
+
[**Note:** We need to build the test NGINX Plus with NAP image with the environment variable `OSARCH=amd64` since NGINX App Protect doesn't support ARM yet.]
16
+
13
17
To start run everything run the following
14
18
```
15
19
make run-mock-management-otel-collector
16
20
```
17
21
18
-
Once everything is started there should be 5 containers running
19
-
```
20
-
8e6df6d0bc73 localhost/nginx_plus_agent_ubuntu_22.04:latest 4 minutes ago Up 4 minutes 80/tcp, 443/tcp mock-collector-agent-with-nginx-plus
21
-
a65a7efaf2b3 localhost/nginx_oss_agent_ubuntu_22.04:latest 4 minutes ago Up 4 minutes 80/tcp, 443/tcp mock-collector-agent-with-nginx-oss
22
-
bf0f247991c0 localhost/mock-collector:latest go run main.go 4 minutes ago Up 4 minutes 0.0.0.0:4320->4317/tcp, 0.0.0.0:9775->9090/tcp mock-collector-otel-collector
23
-
67bb7bde6392 docker.io/prom/prometheus:latest --config.file=/et... 4 minutes ago Up 4 minutes 0.0.0.0:9090->9090/tcp, 9090/tcp mock-collector-prometheus
24
-
a83a997eb652 docker.io/grafana/grafana:latest 4 minutes ago Up 4 minutes 0.0.0.0:3002->3000/tcp, 3000/tcp mock-collector-grafana
22
+
Once everything is started there should be 7 containers running
23
+
```
24
+
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
25
+
e0e57897223d localhost/nginx_plus_and_nap_agent_ubuntu_22.04:latest 17 seconds ago Up 17 seconds 80/tcp, 443/tcp mock-collector-agent-with-nginx-plus-and-nap
26
+
f4e7264ceb0b localhost/nginx_plus_agent_ubuntu_22.04:latest 15 seconds ago Up 16 seconds 80/tcp, 443/tcp mock-collector-agent-with-nginx-plus
27
+
97e9e84679a2 localhost/nginx_oss_agent_ubuntu_22.04:latest 14 seconds ago Up 14 seconds 80/tcp, 443/tcp mock-collector-agent-with-nginx-oss
28
+
04a3bce14c7a localhost/mock-collector:latest /mock-management-... 12 seconds ago Up 13 seconds 0.0.0.0:4320->4317/tcp, 0.0.0.0:9775->9090/tcp mock-collector-otel-collector
29
+
8efe150cbd96 docker.io/prom/prometheus:latest --config.file=/et... 11 seconds ago Up 11 seconds 0.0.0.0:9090->9090/tcp, 9090/tcp mock-collector-prometheus
30
+
e55572131d2a docker.io/grafana/grafana:latest 9 seconds ago Up 10 seconds 0.0.0.0:3002->3000/tcp, 3000/tcp mock-collector-grafana
31
+
69c8efab591b docker.io/grafana/loki:latest -config.file=/etc... 8 seconds ago Up 8 seconds 0.0.0.0:3100->3100/tcp, 3100/tcp mock-collector-loki
32
+
25
33
```
26
34
27
-
To view the metrics, the grafana UI can be used by accessing this URL http://localhost:3002/login (Note: username/password is admin/admin)
35
+
To view the metrics & logs, the grafana UI can be used by accessing this URL http://localhost:3002/login (Note: username/password is admin/admin)
0 commit comments