get custom gauge metric from WebMonitorEndpoint

Posted by Georgi Stoyanov on
URL: http://deprecated-apache-flink-user-mailing-list-archive.369.s1.nabble.com/get-custom-gauge-metric-from-WebMonitorEndpoint-tp27453.html

I've got custom metric ->


And I'm using them as suggested in the documentation ->

getRuntimeContext().getMetricGroup().gauge("MyCustomMetric", new TestMetric());

I want to get this metric with GET method, but so far I tried almost everything in the API documentation (https://ci.apache.org/projects/flink/flink-docs-release-1.8/monitoring/rest_api.html ) but didn't find that metric. Do you know how (or even could I) get that custom metric via API?



Kind Regards,
Georgi