qq: Can I use the built in `MeterView` as a custom...
# random
m
qq: Can I use the built in
MeterView
as a custom meter to calculate a simple record rate in my code? Will it be updated automatically in the background?
I’ve found an example for this, but I’m missing the updater thread for this solution. https://www.alibabacloud.com/blog/metrics-principles-and-practices-flink-advanced-tutorials_596634
c
The thread is provided by Flink.
m
Via the
ViewUpdater
? Looking at the code
c
yes
m
sweet 🙂 thanks for the quick reply
c
Generating a rate over some count is pretty much all it does
m
Well this is what I need atm :)
For a quick demonstration
c
For demo purposes I'd create MetricRegistryImpl and register the meter with it.
👍 1
🙏 1