collector/

directory
v3.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2025 License: Apache-2.0

README

Mock Management OTel Collector

There are 4 images that need to be built in order to use the mock management OTel collector

  • Agent with NGINX Plus image
  • Agent with NGINX Plus & NGINX App Protect image
  • Agent with NGINX OSS image
  • Custom OTel collector image

To build these images run the following

OSARCH=amd64 make local-deb-package build-test-nginx-plus-and-nap-image
make local-deb-package build-test-oss-image build-test-plus-image build-mock-management-otel-collector-image

[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.]

To build all images except the NGINX Plus & NGINX App Protect run the following

make local-deb-package build-test-oss-image build-test-plus-image build-mock-management-otel-collector-image

To start run everything run the following

make run-mock-management-otel-collector

Once everything is started there should be 7 containers running

CONTAINER ID  IMAGE                                                   COMMAND               CREATED         STATUS         PORTS                                           NAMES
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
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
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
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
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
e55572131d2a  docker.io/grafana/grafana:latest                                              9 seconds ago   Up 10 seconds  0.0.0.0:3002->3000/tcp, 3000/tcp                mock-collector-grafana
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

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)

To stop everything run the following

make stop-mock-management-otel-collector

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL