Re: Integrating prometheus
Posted by
Manish G on
URL: http://deprecated-apache-flink-user-mailing-list-archive.369.s1.nabble.com/Integrating-prometheus-tp36355p36377.html
Also, it seems custom metrics can only be recorded if we extend RichFunction, as it allows us to override open wherein we can get hold of context and metrics constructs.
Please let me know if there are other ways too.
Hi,
I am basically looking for : throughput, success rate, error rate.
For experimental purposes I could complete all configurations as explained in the official documentation. But somehow my custom metrics(a simple Counter) is still not shown on the prometheus board, though default metrics I can see.
Anything I am missing?
On Fri, Jul 3, 2020 at 8:57 PM Chesnay Schepler <
[hidden email]> wrote:
What metrics specifically are you
interested in?
On 03/07/2020 17:22, Robert Metzger
wrote:
Hi Manish,
Currently, Flink's metric system does not support metrics
via annotations. You need to go with the documented approach.
But of course, you can try to build your own metrics
abstraction based on Flink's metric system.
Hi,
I am following
this link on
how to integrate prometheus with flink.
Going by the code sample, I would need to insert
related metrics code in the main logic.
Is it avoidable, like by using some annotations on
methods?
Manish