#support

Implementing SigNoz Self-Hosted on K8s cluster

TLDR Nicolas was having issues setting up SigNoz on a K8s cluster and forwarding logs through OTel Agent. They were advised by Prashant to use crio log path instead of Docker in Oracle Cloud's managed K8s offering.

Powered by Struct AI
11
3d
Solved
Join the chat
Nov 17, 2023 (1 week ago)
Nicolas
Photo of md5-4a36c3bc25964c64330a5747ba443346
Nicolas
01:34 AM
Hi folks 👋 I'm setting up SigNoz self-hosted on a K8s cluster where I run my application services. I'm trying to use the filelog receiver on the OTel Agent to forward my pod logs to SigNoz, but none of my logs are making it through.

Some things that work:
• Traces: the services I've auto-instrumented are getting their traces into SigNoz
• Manually instrumented logs (via Python OTel SDK): just for debugging, I used the SDK to configure my Python logging with an OTel handler, which successfully forwarded logs to SigNoz
However, I specifically want to leverage an OTel Agent (via K8s Daemonset) to capture logs, since that should provide the highest coverage. This approach is not yielding any success, even though it's claimed as the default out-of-the-box behavior :thinking_face: Any help would be much appreciated!
01:40
Nicolas
01:40 AM
One interesting note, I've been playing around with the k8s-infra preset to try and hone in on the problem. I've hard-coded an expected log file path in the include attribute, and when I tail the logs of the otel agent pod, I do see it detect the log file I care about:
01:40
Nicolas
01:40 AM
2023-11-17T01:18:40.789Z    info    fileconsumer/file.go:194    Started watching file from end. To read preexisting logs, configure the argument 'start_at' to 'beginning'    {"kind": "receiver", "name": "filelog/k8s", "data_type": "logs", "component": "fileconsumer", "path": "/var/log/pods/solver_service-00030-deployment-7bc9bb776d-5nfwl_87c60b29-9487-44c3-a209-767ad8410eb9/retrieval-pod/0.log"}
01:40
Nicolas
01:40 AM
Moreover, I've confirmed that the pod in question is producing logs after the agent spins up and detects the log file
01:40
Nicolas
01:40 AM
yet no logs make it over to SigNoz 😭
nitya-signoz
Photo of md5-a52b9d6c34f193d9a1ff940024f36f77
nitya-signoz
05:49 AM
Are you using EKS ?
Nicolas
Photo of md5-4a36c3bc25964c64330a5747ba443346
Nicolas
05:40 PM
No, but I'm on Oracle Cloud's managed K8s offering (OKE)
10:41
Nicolas
10:41 PM
nitya-signoz any idea what might be going wrong or how to debug further?
Nov 18, 2023 (1 week ago)
nitya-signoz
Photo of md5-a52b9d6c34f193d9a1ff940024f36f77
nitya-signoz
04:15 AM
Prashant might be able to help here.
Nov 21, 2023 (1 week ago)
Nicolas
Photo of md5-4a36c3bc25964c64330a5747ba443346
Nicolas
11:48 PM
Prashant any suggestions for next steps here?
Nov 26, 2023 (3 days ago)
Prashant
Photo of md5-1899629483c7ab1dccfbee6cc2f637b9
Prashant
09:52 AM
Nicolai In Oracle Cloud, it must be using CRI-O instead of Docker. You will need to use crio log path instead. Update include configuration under presets.logsCollection

SigNoz Community

Built with ClickHouse as datastore, SigNoz is an open-source APM to help you find issues in your deployed applications & solve them quickly | Knowledge Base powered by Struct.AI

Indexed 1023 threads (61% resolved)

Join Our Community

Similar Threads

Troubleshooting Signoz Deployment for Log Collection on OCI k8s Cluster

sudhanshu faces issues with log collection despite successful application performance monitoring after deploying Signoz on OCI k8s cluster. Prashant suggests updating paths used for log collection and verifying container logs on the nodes. Log files' paths seem correct, but issues persist. Further solutions are needed.

22
1mo

Troubleshooting Signoz Log Collection in OCI

Harsh had problems collecting logs with Signoz after moving to OCI. Prashant helped pinpoint the problem to OCI's CRI and provided a solution using a specific crio logs path.

10
1mo
Solved

Troubleshooting Signoz Deployment Issues

Juan is having issues running signoz data, only logs are working. The issues were identified by Srikanth as non-working network and harmless table issues in a k8s cluster. However, the issues are not yet resolved.

5
2mo

Issues with Installing Signoz on Standalone VM with Two Additional Disks

vvpreo is having difficulty installing Signoz on a standalone VM due to an issue with OTEL collector not starting because of migration problems. Ankit and vishal-signoz proposed various solutions, but the issue remained unresolved. They planned a screen-sharing session to resolve it.

1

30
2mo

Configuring Logs in Signoz and Clickhouse

Varaprasad queries on pushing logs to ClickHouse and analyzing from SigNoz. Srikanth advises using `signoz-otel-collector` and shares a guide. Varaprasad explains their plan of action. Ankit confirms vector parsing and sharding setup in ClickHouse.

7
1mo
Solved