Hi,
that should be possible. Did you have a look at the documentation for
setting up a Prometheus metrics reporter:
https://ci.apache.org/projects/flink/flink-docs-master/monitoring/metrics.html#prometheus-orgapacheflinkmetricsprometheusprometheusreporter
Best,
Aljoscha
On 06.05.20 03:02, Eleanore Jin wrote:
Hi all,
I just wonder is it possible to use Flink Metrics endpoint to allow
Prometheus to scrape user defined metrics?
Context:
In addition to Flink metrics, we also collect some application level
metrics using opencensus. And we run opencensus agent as side car in
kubernetes pod to collect metrics (opencensus agent talks to task manager
container via rpcs)
The issue with this approach is: it looks like opencensus agent keeps
staled metrics, causing the metrics reporting inaccurate, and this project
is not actively maintained anymore.
So I wonder if it is possible to use Flink metrics endpoint for user
defined metrics.
Thanks a lot!
Eleanore