nginxinc/nginx-otel

E: Unable to locate package nginx-module-otel

yomofo2s opened this issue · 9 comments

Describe the bug

While configuring the OTel module, I am unable to locate package nginx-module-otel. I tried building the module on Ubuntu system.

To reproduce

Steps to reproduce the behavior:

E: Unable to locate package nginx-module-otel

Expected behavior

This module should be created modules/ngx_otel_module.so

Your environment

NAME="Ubuntu"
VERSION_ID="23.10"
VERSION="23.10 (Mantic Minotaur)"
VERSION_CODENAME=mantic
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=mantic
LOGO=ubuntu-logo

Additional context

Add any other context about the problem here.

Hi @yomofo2s, which repos are you using to get the packages from?

I came acros a similar issue. I started using Debian stable, but it turn out Otel is in mainline. Same for Ubuntu: https://nginx.org/en/linux_packages.html#Ubuntu

Hi @thresheek I am using Ubuntu jammy repo

@fede843 i recently noticed that nginx-module-otel is not public available in nginx image but in nginx-plus (which is a paid version). Correct me if I am wrong.

mmm I am not an expert, and I did not get to install it at the end. Gave up and came back to the otel cpp project.

Yet I can see http://nginx.org/packages/mainline/ubuntu/pool/nginx/n/nginx-module-otel/
Did you add the repo and update it?

and also by reading at https://docs.nginx.com/nginx/admin-guide/dynamic-modules/opentelemetry/
says

"the code of NGINX OpenTelemetry module is open source since [NGINX Open Source](https://nginx.org/) 1.25.2 and [NGINX Plus Release 30](https://docs.nginx.com/nginx/releases/#r30). The source code is available on [GitHub](https://github.com/nginxinc/nginx-otel)."

@fede843 yes i add and updated the repo. I also used this repo https://nginx.org/en/linux_packages.html#instructions

I just tried

docker run --name nginx_test_ubu --rm -it ubuntu:mantic
root@97a00adca755:/# apt update
root@97a00adca755:/# apt install curl gnupg2 ca-certificates lsb-release ubuntu-keyring
root@97a00adca755:/# curl https://nginx.org/keys/nginx_signing.key | gpg --dearmor     | tee /usr/share/keyrings/nginx-archive-keyring.gpg >/dev/null
root@97a00adca755:/# echo "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] http://nginx.org/packages/mainline/ubuntu `lsb_release -cs` nginx"     | tee /etc/apt/sources.list.d/nginx.list
apt update
root@97a00adca755:/# apt install nginx-module-otel
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  cron cron-daemon-common libc-ares2 libpopt0 libre2-10 logrotate nginx
Suggested packages:
  anacron checksecurity default-mta | mail-transport-agent bsd-mailx | mailx
The following NEW packages will be installed:
  cron cron-daemon-common libc-ares2 libpopt0 libre2-10 logrotate nginx nginx-module-otel
0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
Need to get 3588 kB of archives.
After this operation, 15.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
...
The OpenTelemetry dynamic module for nginx has been installed.
To enable this module, add the following to /etc/nginx/nginx.conf
and reload nginx:

    load_module modules/ngx_otel_module.so;

Thanks this works :)

Indeed, otel module is available since 1.25.3 in the nginx.org repositories. So mainline only for now.