environment is blank as well as the services
# support
v
environment is blank as well as the services
n
for the filters to work the logs should have the corresponding fields, you can check the mapping here https://signoz.io/docs/logs-management/features/logs-quick-filters/#available-filters
v
why i'm not able to view the service configured in k8s
@nitya-signoz do we have any proper documentation for apm monitoring for python application. The one mentioned on official websites are not working. I'm not able to send any traces to selfhosted signoz.
n
Your question is not clear, the autoinstrumentation for python is very straight forward, what issue are you facing while instrumenting your application ?
v
i've one application running on the k8s cluster. I need to get traces of that application. my signoz is selfhosted. my problem is that i'm not able to get the trace on the selfhosted signoz although i've configured everything per the documentation.
@nitya-signoz
n
After instrumenting your application did you try running the application locally and send traces to your self hosted SigNoz ?
v
yes, on standalone docker it's working
its your application only, sample flask one.
n
okay how are you running it on k8s, can you share the deployment config?
v
apiVersion: v1 kind: Pod metadata: creationTimestamp: null labels: app: sample-flask-app name: sample-flask-app-2 spec: containers: - image: mongo:latest name: mongo ports: - name: mongo containerPort: 27017 - image: signoz/sample-flask-app:latest name: sample-app command: ["opentelemetry-instrument", "python3","./app.py"] args: ["OTEL_RESOURCE_ATTRIBUTES=service.name=flaskApp", "OTEL_EXPORTER_OTLP_ENDPOINT="ENDPOINT-removed", "OTEL_EXPORTER_OTLP_PROTOCOL=grpc"] ports: - name: flask containerPort: 5002 env: - name: HOST_IP valueFrom: fieldRef: fieldPath: status.hostIP - name: K8S_POD_IP valueFrom: fieldRef: apiVersion: v1 fieldPath: status.podIP - name: K8S_POD_UID valueFrom: fieldRef: fieldPath: metadata.uid - name: OTEL_EXPORTER_OTLP_INSECURE value: "true" - name: OTEL_EXPORTER_OTLP_ENDPOINT value: $(HOST_IP):4317 - name: OTEL_RESOURCE_ATTRIBUTES value: service.name=sample-app,k8s.pod.ip=$(K8S_POD_IP),k8s.pod.uid=$(K8S_POD_UID) - name: MONGO_HOST value: localhost - name: OTEL_EXPORTER_OTLP_PROTOCOL value: grpc imagePullSecrets: - name: gcp-artifact-registry dnsPolicy: ClusterFirst restartPolicy: Always
n
Also can you check the pod logs of this app, if it says something ?
v
nope, all clear, all network is reachable.
n
can you try this ? https://signoz.io/docs/instrumentation/opentelemetry-python/#spans-are-not-being-reported to check if the spans are being printed to console ?
v
will try and let you know