-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into Load-generator-Web-request-spamming
- Loading branch information
Showing
19 changed files
with
140 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Copyright The OpenTelemetry Authors | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
FROM nginx:1.25.3 | ||
|
||
RUN apt-get update ; apt-get install lsb-release --no-install-recommends --no-install-suggests -y | ||
|
||
# This file is needed for nginx-module-otel to be found. | ||
RUN echo "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] http://nginx.org/packages/mainline/debian `lsb_release -cs` nginx" | tee /etc/apt/sources.list.d/nginx.list | ||
|
||
RUN apt-get update ; apt-get install nginx-module-otel --no-install-recommends --no-install-suggests -y | ||
|
||
RUN mkdir /static | ||
COPY src/imageprovider/static /static | ||
|
||
EXPOSE ${IMAGE_PROVIDER_PORT} | ||
|
||
STOPSIGNAL SIGQUIT | ||
|
||
COPY src/imageprovider/nginx.conf.template /nginx.conf.template | ||
|
||
# Start nginx | ||
CMD ["/bin/sh" , "-c" , "envsubst '$OTEL_COLLECTOR_HOST $IMAGE_PROVIDER_PORT $OTEL_COLLECTOR_PORT_GRPC $OTEL_SERVICE_NAME' < /nginx.conf.template > /etc/nginx/nginx.conf && cat /etc/nginx/nginx.conf && exec nginx -g 'daemon off;'"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
load_module modules/ngx_otel_module.so; | ||
|
||
events { | ||
worker_connections 1024; | ||
} | ||
|
||
http { | ||
otel_exporter { | ||
endpoint ${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_GRPC}; | ||
} | ||
otel_trace on; | ||
otel_trace_context propagate; | ||
otel_service_name ${OTEL_SERVICE_NAME}; | ||
otel_span_name imageprovider; | ||
|
||
|
||
include mime.types; | ||
sendfile on; | ||
server { | ||
listen ${IMAGE_PROVIDER_PORT}; | ||
listen [::]:${IMAGE_PROVIDER_PORT}; | ||
|
||
resolver 127.0.0.11; | ||
autoindex off; | ||
|
||
server_name _; | ||
server_tokens off; | ||
|
||
root /static; | ||
gzip_static on; | ||
} | ||
} |
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes