You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flink.apache.org by "Geldenhuys, Morgan Karl" <mo...@tu-berlin.de> on 2021/12/27 18:43:33 UTC
How to reduce interval between Uptime Metric meaasurements?
Hello everyone,
I have a flink 1.14 job running and im looking at the uptime metric (flink_jobmanager_job_uptime) together with prometheus (scrape every second). It looks as if this metric is updated every 60 seconds, is there a way of decreasing this interval? A fixed delay recovery strategy of 1s is being used. There doesnt seem to be anything related to this in the configs (https://nightlies.apache.org/flink/flink-docs-master/docs/deployment/config/).
Regards,
M.
Re: How to reduce interval between Uptime Metric meaasurements?
Posted by Chesnay Schepler <ch...@apache.org>.
I'd suggest to double check whether you're actually scraping every
second, or every minute.
To my knowledge the uptime metric is not periodically updated but always
reflects the latest state when polled.
On 31/12/2021 16:37, Geldenhuys, Morgan Karl wrote:
>
> Thanks for the hint, however i am not using the prometheus push gateway.
>
>
> Regards,
>
> M.
>
> ------------------------------------------------------------------------
> *From:* Caizhi Weng <ts...@gmail.com>
> *Sent:* 28 December 2021 02:17:34
> *To:* Geldenhuys, Morgan Karl
> *Cc:* user@flink.apache.org
> *Subject:* Re: How to reduce interval between Uptime Metric
> meaasurements?
> Hi!
>
> Have you tried metrics.reporter.promgateway.interval? See [1] for more
> detail.
>
> [1]
> https://nightlies.apache.org/flink/flink-docs-master/docs/deployment/metric_reporters/#prometheuspushgateway
>
> Geldenhuys, Morgan Karl <mo...@tu-berlin.de>
> 于2021年12月28日周二 02:43写道:
>
> Hello everyone,
>
>
> I have a flink 1.14 job running and im looking at the uptime
> metric (flink_jobmanager_job_uptime) together with prometheus
> (scrape every second). It looks as if this metric is updated every
> 60 seconds, is there a way of decreasing this interval? A fixed
> delay recovery strategy of 1s is being used. There doesnt seem to
> be anything related to this in the configs
> (https://nightlies.apache.org/flink/flink-docs-master/docs/deployment/config/).
>
>
>
> Regards,
>
> M.
>
Re: How to reduce interval between Uptime Metric meaasurements?
Posted by "Geldenhuys, Morgan Karl" <mo...@tu-berlin.de>.
Thanks for the hint, however i am not using the prometheus push gateway.
Regards,
M.
________________________________
From: Caizhi Weng <ts...@gmail.com>
Sent: 28 December 2021 02:17:34
To: Geldenhuys, Morgan Karl
Cc: user@flink.apache.org
Subject: Re: How to reduce interval between Uptime Metric meaasurements?
Hi!
Have you tried metrics.reporter.promgateway.interval? See [1] for more detail.
[1] https://nightlies.apache.org/flink/flink-docs-master/docs/deployment/metric_reporters/#prometheuspushgateway
Geldenhuys, Morgan Karl <mo...@tu-berlin.de>> 于2021年12月28日周二 02:43写道:
Hello everyone,
I have a flink 1.14 job running and im looking at the uptime metric (flink_jobmanager_job_uptime) together with prometheus (scrape every second). It looks as if this metric is updated every 60 seconds, is there a way of decreasing this interval? A fixed delay recovery strategy of 1s is being used. There doesnt seem to be anything related to this in the configs (https://nightlies.apache.org/flink/flink-docs-master/docs/deployment/config/).
Regards,
M.
Re: How to reduce interval between Uptime Metric meaasurements?
Posted by Caizhi Weng <ts...@gmail.com>.
Hi!
Have you tried metrics.reporter.promgateway.interval? See [1] for more
detail.
[1]
https://nightlies.apache.org/flink/flink-docs-master/docs/deployment/metric_reporters/#prometheuspushgateway
Geldenhuys, Morgan Karl <mo...@tu-berlin.de> 于2021年12月28日周二
02:43写道:
> Hello everyone,
>
>
> I have a flink 1.14 job running and im looking at the uptime metric (
> flink_jobmanager_job_uptime) together with prometheus (scrape every
> second). It looks as if this metric is updated every 60 seconds, is there a
> way of decreasing this interval? A fixed delay recovery strategy of 1s is
> being used. There doesnt seem to be anything related to this in the configs
> (
> https://nightlies.apache.org/flink/flink-docs-master/docs/deployment/config/
> ).
>
>
> Regards,
>
> M.
>