Open prity-k opened 2 years ago
Thanks for opening this issue. A team member should give feedback soon. In the meantime, feel free to check out the contributing guidelines.
@prity-k Thanks for creating the issue. Quick questions:
`upstream qa--signoz-backend {
server 10.1.1.230:4317;
}
server {
listen 80;
server_name signoz-backend.test.com;
location / {
proxy_pass http://qa--signoz-backend;
}
access_log /datadrive/logs/nginx/qa--signoz-backend-access.log;
error_log /datadrive/logs/nginx/qa--signoz-backend-error.log;
}`
proxy_pass http://qa--signoz-backend;
Since 4317
is a gRPC port, we should use grpc_pass
instead of proxy_pass
.
grpc_pass grpc://qa--signoz-backend;
listen 80;
Since gRPC uses HTTP/2
, we should add http2
at the end of the listen
command.
listen 80 http2;
@prity-k Do let us know if this works for you.
@prashant-shahi Unfortunately, above solution did not work. Right now I have following configuration: 1 nginx config:
upstream qa--signoz-backend {
server 10.1.1.230:4317;
}
server {
listen 80 http2;
server_name signoz-backend.test.com;
location / {
grpc_pass grpc://qa--signoz-backend;
}
access_log /datadrive/logs/nginx/qa--signoz-backend-access.log;
error_log /datadrive/logs/nginx/qa--signoz-backend-error.log;
}
FastAPI deployment.yaml helm file
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Values.api.name }}
labels:
app: {{ .Values.api.name }}
namespace: {{ .Values.api.namespace }}
spec:
replicas: {{ .Values.api.replicaCount }}
selector:
matchLabels:
app: {{ .Values.api.name }}
template:
metadata:
labels:
app: {{ .Values.api.label }}
spec:
containers:
- name: {{ .Values.api.name }}
image: {{ .Values.api.image }}
env:
- name: OTEL_RESOURCE_ATTRIBUTES
value: {{ .Values.signoz.appTag }}
- name: OTEL_EXPORTER_OTLP_ENDPOINT
value: {{ .Values.signoz.signozBackend }}
imagePullPolicy: {{ .Values.api.pullPolicy }}
ports:
- name: http
containerPort: {{ .Values.api.containerPort }}
protocol: TCP
imagePullSecrets:
- name: {{ .Values.api.imagePullSecrets }}
3. values.yaml
signoz: signozBackend: http://signoz-backend.test.com appTag: service.name=my-api
Application data is not sent to signoz when OTEL_EXPORTER_OTLP_ENDPOINT is set to signoz backend domain name but it works with the IP. Is there a way to make signoz integration work with domain name?