I believe remote-write in Prometheus will send samples if the outgoing 
buffer is full or the deadline is reached.
So increasing both max_samples_per_send and batch_send_deadline in 
queue_config should work.
You should be able to increase the number of parallel sends via min_shards , 
so it doesn't all go in one buffer.
Then there's metadata -  by default it will send once per minute in 
metadata_config.send_interval 

I don't see anything defaulting to 15 seconds, so check your config to see 
if that is set anywhere.

Bryan

On Wednesday, 15 November 2023 at 10:27:55 UTC [email protected] wrote:

> I'm trying to a implement remote write setup via only pushing at strict 10 
> minute interval requirement. Both push based and time intervals are must 
> for me :(
>
> Is remote write is possible without streaming? In Prometheus remote write 
> spec, streaming is mentioned but I'm ok with losing data and scalability 
> problems due to high humber of new tcp connection creation.
>
> I increased `batch_send_deadlines` but still get requests in every 15 
> second, there's an http config called `keepAlivesEnabled`  in 
> [prometheus/common](
> https://github.com/prometheus/common/blob/main/config/http_config.go#L50) 
> . AFAIK from code and documentation there's no way to disable this option.
>
> I tested via `tcpdump`:
> - `tcpdump -i eth0 'port 9090'`: Main server (receives data) gets request 
> in every 15 second
> - `tcpdump -i eth0 'port 9090 and tcp[tcpflags] & (tcp-syn) != 0'`: Only 
> one tcp connection is created and persisted
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/bff0eae5-ac11-4bd9-81ec-66eac250b3a3n%40googlegroups.com.

Reply via email to