Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upPrometheus sends packages with different Content-Type in HTTP header #4560
Comments
This comment has been minimized.
This comment has been minimized.
|
Remote write doesn't use gzip or text/plain, that's some other packet you've captured. All remote write is via snappy-compressed protobufs, and if you're using remote write then https://github.com/prometheus/prometheus/tree/master/documentation/examples/remote_storage/example_write_adapter will help you get going. |
This comment has been minimized.
This comment has been minimized.
|
Hello Brian, yes, you're right. Before a while I found out that my I'll check your link. Thx for your answer. |
waldauf
closed this
Aug 29, 2018
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 22, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
waldauf commentedAug 29, 2018
•
edited
Proposal
Globaly Promehteus supports remote_write to InfluxDB. If I use direct write into InfluxDB everything works great. Scheme:
I captured sent packages by Prometheus to InfluxDB by
tcpdump. All packages are sent wiht Context-Type: text/plain in HTTP header.Example of one captured package:
In my case is not possible to write directly into InfluxDB because I need to save metrics into Kafka first. That's why I included stream processor Benthos (tried Telegraf too) in the flow - between Prometheus and Kafka.
Scheme:
But all packages sent by Prometheus have binary content and it's not possible to work with them. In HTTP header is set Content-Type: application/x-protobuf:
For me it looks like Prometheus decides which *Content-Type* choose and use. That's why I'm not possible to include stream processor between Prometheus and InfluxDB.
Can I ask you for help how to set Prometheus to keep Content-Type: text/plain?
Environment