chunked remote read: sending multiple series per frame?

29 views
Skip to first unread message

Tristan Su

unread,
Jun 15, 2020, 9:12:42 AM6/15/20
to Prometheus Developers
hi,
I'm trying to implement a remote read server and got a question regarding chunked response. 

From following comments:

which says:
// Send at most one series per frame; series may be split over multiple frames according to maxBytesInFrame.

Is this a protocol constraint to not allow sending multiple series per frame? Or anything else I'm missing?

Thanks in advance,
Tristan

Bartłomiej Płotka

unread,
Jun 15, 2020, 3:08:38 PM6/15/20
to Tristan Su, Prometheus Developers
Hi Tristian,

That's correct. It will send at max 1 series per frame, even if small.

Kind Regards,
Bartek

--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-devel...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/593ef169-5da0-4740-b45c-1506ec9e32f1n%40googlegroups.com.

Tristan Su

unread,
Jun 15, 2020, 11:02:44 PM6/15/20
to Prometheus Developers
Bartek,

Thanks for your quick reply. Could you share some background for this constraint?
To me it seems each `ChunkedSeries` has labels so a `ChunkedReadResponse` with different series is not a problem.  I may be missing something but just wondering...

Tristan

Bartłomiej Płotka

unread,
Jun 18, 2020, 1:19:51 PM6/18/20
to Tristan Su, Prometheus Developers
Correct, it's not a problem. However, still, the implementation and API guarantees that. We are kind of prepared for flexibility here in future, but I think we will need to version, or negotiate this etc.


Particularly: "We strictly stream full series after series, optionally split by time."


Hope that helps! 🤗

Kind Regards,
Bartek

Tristan Su

unread,
Jun 18, 2020, 11:25:35 PM6/18/20
to Prometheus Developers
fair enough. Thanks!
Reply all
Reply to author
Forward
0 new messages