Akka Stream buffer size monitoring

171 views
Skip to first unread message

hbf

unread,
Jan 15, 2017, 2:15:15 PM1/15/17
to Akka User List
Hey Akka Stream'ers,

I'm trying to monitor the current size of the buffer of a Akka Stream buffer() stage to something like Grafana.

Is there a way to hook a call to my metrics framework into the buffer? I was hoping for a second parameter to buffer, maybe

    flow.buffer(1000, size => Metrics.gauge("Buffer size", size))

(where Metrics.gauge() is just an example call to a metrics framework).

Any ideas?

Thanks,
Hbf

Konrad Malawski

unread,
Jan 15, 2017, 2:20:06 PM1/15/17
to akka...@googlegroups.com, hbf
That's something we'll work on at Lightbend in 2017, it's be part of Lightbend/Reactive Monitoring.
As far as I can tell none of the other monitoring tools nowadays can handle such things (neither for akka or any other reactive-streams impl), 
we'll get there rather soon I hope since the underlying infrastructure leans itself very well towards instrumentation.

-- 
Konrad `ktoso` Malawski
Akka @ Lightbend
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Andreas H. Presthammer

unread,
Apr 11, 2020, 2:36:53 PM4/11/20
to Akka User List
Did anything ever happen to this. Was there ever made a mechanism for monitoring a buffer?


On Sunday, January 15, 2017 at 8:20:06 PM UTC+1, Konrad Malawski wrote:
That's something we'll work on at Lightbend in 2017, it's be part of Lightbend/Reactive Monitoring.
As far as I can tell none of the other monitoring tools nowadays can handle such things (neither for akka or any other reactive-streams impl), 
we'll get there rather soon I hope since the underlying infrastructure leans itself very well towards instrumentation.

-- 
Konrad `ktoso` Malawski
Akka @ Lightbend

On 15 January 2017 at 20:15:18, hbf (k...@iaeth.ch) wrote:

Hey Akka Stream'ers,

I'm trying to monitor the current size of the buffer of a Akka Stream buffer() stage to something like Grafana.

Is there a way to hook a call to my metrics framework into the buffer? I was hoping for a second parameter to buffer, maybe

    flow.buffer(1000, size => Metrics.gauge("Buffer size", size))

(where Metrics.gauge() is just an example call to a metrics framework).

Any ideas?

Thanks,
Hbf
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to akka...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages