Closed fludo closed 1 year ago
Error in my nginx base.conf file.
I missed the include of opentelemetry module config:
include /etc/nginx/conf.d/opentelemetry_module.conf;
Now I got
2023/06/02 12:51:19 [emerg] 1#1: unknown directive "NginxModuleOtelExporterOtlpHeaders" in /etc/nginx/conf.d/opentelemetry_module.conf:4 nginx: [emerg] unknown directive "NginxModuleOtelExporterOtlpHeaders" in /etc/nginx/conf.d/opentelemetry_module.conf:4
Not in 1.0.3GA, will need amore recent version.
Closing.
Error in my nginx base.conf file. I missed the include of opentelemetry module config:
include /etc/nginx/conf.d/opentelemetry_module.conf;
This was my issue as well. Solved by adding the include statement to the http section of my nginx.conf:
error_log /dev/stdout warn;
pid /var/run/nginx.pid;
load_module /opt/opentelemetry-webserver-sdk/WebServerModule/Nginx/ngx_http_opentelemetry_module.so;
http {
include /etc/nginx/conf.d/opentelemetry_module.conf;
...
@fludo thanks for sharing the knowledge!
@gaffneyd4 Thanks!
Describe your environment Environnement: ubuntu lunar on docker (Docker version 23.0.6, build ef23cbc) running in WSL Installed ngx_http_opentelemetry_module with Dockerfile. Module version version 1.0.3GA
Steps to reproduce Followed the step describe on https://opentelemetry.io/blog/2022/instrument-nginx/
in base.conf:
Settings in opentelemetry_module.conf:
Describe exactly how to reproduce the error. Include a code sample if applicable.
What is the expected behavior? Opentelemetry metrics sent to destination
What is the actual behavior?
Additional context Docker run with docker run -p8080:8080, acessing on localhost:8080 from Windows.