Trying to ingest data into thanos-receive without prometheus #8079
Replies: 1 comment
-
Hello @pmcarreiro, I'm here to help you with any bugs, questions, or contributions. Let's work together to solve this issue. The "snappy decode error" with the message "s2: corrupt input" suggests that there might be an issue with how the data is being encoded or compressed before being sent to Thanos-receive. Thanos-receive expects data in the Prometheus remote-write format, which uses protobuf messages and typically involves snappy compression. Here are a few steps you can take to troubleshoot and resolve this issue:
If you continue to encounter issues, reviewing the specific implementation details in your Python client might be necessary to identify any discrepancies in the data formatting or compression process. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
Beta Was this translation helpful? Give feedback.
-
Hello all,
I have a request to ingest data into thanos-receive without using Prometheus. I have made a client in Python, but when I send the information I'm getting the following in Thanos-receive logs:
ts=2025-01-29T17:45:06.364294622Z caller=handler.go:535 level=error component=receive component=receive-handler tenant=default-tenant msg="snappy decode error" err="s2: corrupt input"
Attached my python file, i want to know if some one can help on this.
The thanos version that i'm using is 0.3
sendtoprometheus.txt
7.2
Many thanks and best regards,
Paulo
Beta Was this translation helpful? Give feedback.
All reactions