You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flink.apache.org by Oscar Perez via user <us...@flink.apache.org> on 2023/11/27 12:41:49 UTC

Metrics not available

Hi,

We are using flink 1.16 and we woud like to monitor the state metrics of a
certain job. Looking at the documentation I see that there are some state
access latencies:

https://nightlies.apache.org/flink/flink-docs-release-1.16/docs/ops/metrics/

Namely, I would like to access the following:

*mapStateGetLatency*

How could I achieve this? I would expect to be accessed via

flink.task/operator.mapStateGetLatency but I dont see any related state
access latency metrics available. Needs to be enabled/configured in some
way?

Thanks,
Oscar

Re: Metrics not available

Posted by Feng Jin <ji...@gmail.com>.
Hi Oscar

Did you set
state.backend.latency-track.keyed-state-enabled=true;

https://nightlies.apache.org/flink/flink-docs-release-1.16/docs/deployment/config/#state-backend-latency-track-keyed-state-enabled

Best,
Feng


On Mon, Nov 27, 2023 at 8:42 PM Oscar Perez via user <us...@flink.apache.org>
wrote:

> Hi,
>
> We are using flink 1.16 and we woud like to monitor the state metrics of a
> certain job. Looking at the documentation I see that there are some state
> access latencies:
>
>
> https://nightlies.apache.org/flink/flink-docs-release-1.16/docs/ops/metrics/
>
> Namely, I would like to access the following:
>
> *mapStateGetLatency*
>
> How could I achieve this? I would expect to be accessed via
>
> flink.task/operator.mapStateGetLatency but I dont see any related state
> access latency metrics available. Needs to be enabled/configured in some
> way?
>
> Thanks,
> Oscar
>