-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ServiceName column missing in the Otel Table in Clickhouse #1166
Comments
WunderGraph commits fully to Open Source and we want to make sure that we can help you as fast as possible. |
Hi @anmolghosh, this must be related to an old migration issue. I'd assume that you run Cosmo already for a while. You should be able to fix this by adding the column manually to the tables. The schema definition can be found here. |
Hi @StarpTech Yes we are running it for some time now. We are also in process of migrating the clickhouse from kubernetes hosted to cloud managed. I am assuming running the migration from scratch on the new cloud instance should fix any table inconsistencies. |
Hi @StarpTech Any reason the Table Schema is not updated in either of the schema file or migration folder:
Since the Cosmo's helm chart run the Clickhouse migration job by default using
So even if anyone is setting up cosmo from scratch, might face similar issue |
Hi @StarpTech I see the team have added helm hooks to handle it. Will do a fresh run and see how it goes. Thanks again. Suggestion: We should either delete the tables from |
Hi, yes this should fix it.
This file is no longer in active use and is considered obsolete, so we plan to clean it up. Unfortunately, OTEL collector migration was not included, and the fix has only been applied to customers who encountered issues. We understand this is not ideal, and we will make every effort to prevent such situations in the future.
The OTEL collector apply its own migrations. There is no automatism yet to modify the OTEL collector schema after the initial migration. |
Feel free to reopen it when you think it was not resolved. |
Hi @StarpTech, is this issue still unresolved? Currently, I’m deploying Cosmo on Kubernetes using the Helm chart version 0.12.3, and I’m encountering problems with the versions: |
HI @MnLujan, this issue has been resolved a long time ago. Please share your exact steps and complete logs of the error. Also ensure that you are on the latest helm version. The tables are created by the otelcollector automatically + a few by the clickhouse migration job from the gqlmetrics collector. |
Hey @StarpTech, thanks for your response. Here’s the flow of events: We updated Cosmo from Helm chart version
After the update, we noticed that metrics weren’t working. It turned out to be a communication issue between the Router and OtelCollector. Once that was resolved, I encountered another issue, which led me here. I tried running the migrations manually and faced issues with another column, so I decided to recreate the PVC (since the data wasn’t critical). When recreating the PVC via Helm, the
I executed the command
My understanding is that the table Do you have any suggestions? I’d really appreciate your help. Thanks! 🙌🏼 |
Component(s)
otelcollector
Component version
0.17.1
wgc version
0.40.2
controlplane version
0.107.0
router version
0.109.1
What happened?
Description
We have Cosmo deployed inside kubernetes cluster using the standard helm chart provided by Wundergraph team. When we are looking at the logs of otelcollector, we see following errors
Running a count query on the above table table inside clickhouse show all 3 tables have zero record.
Also, if we review the schema on the following file, we can verify that the column
ServiceName
was never defined in first placehttps://github.com/wundergraph/cosmo/blob/main/controlplane/db/schema.sql
Steps to Reproduce
Install Wundergraph cosmo using the standard helm chart with otelcollector enabled
Prometheus is kept disabled on all components.
Expected Result
There are no errors in otelcollector logs and records are being inserted into corresponding clickhouse tables
Actual Result
All inserts to otel_metrics_sum, otel_metrics_gauge and otel_metrics_histogram are failing with error
Environment information
Environment
WunderGraph Cosmo Stack running on AWS EKS Kubernetes Cluster.
Stack deployed using helm chart
Versions:
Router configuration
Router execution config
No response
Log output
Additional context
No response
The text was updated successfully, but these errors were encountered: