Fix remote write HTTP header (#9302)
Vladimir Kobal committed
Jun 10, 2020 at 16:53 UTC
7d46fbd479707b308099c7afdc8a793e05eaf442
1 file changed
+1
exporting/prometheus/remote_write/remote_write.c
+1
@@ -35,6 +35,7 @@ int prometheus_remote_write_send_header(int *sock, struct instance *instance)
35
"POST %s HTTP/1.1\r\n"
36
"Host: %s\r\n"
37
"Accept: */*\r\n"
38
+ "X-Prometheus-Remote-Write-Version: 0.1.0\r\n"
39
"Content-Length: %zu\r\n"
40
"Content-Type: application/x-www-form-urlencoded\r\n\r\n",
41
connector_specific_config->remote_write_path,