There's currently no way to change this.

A related enhancement was proposed on FLINK-17495 that would at least allow you to attach a custom label, but the initial implementation wasn't general enough.

On 22/06/2020 15:08, Arvid Heise wrote:
Hi Ori,

I see that the PrometheusPushGatewayReporter [1] has an option for a job name, maybe you can use that.

I'm also including Chesnay who probably has more ideas.

[1] https://ci.apache.org/projects/flink/flink-docs-master/monitoring/metrics.html#prometheuspushgateway-orgapacheflinkmetricsprometheusprometheuspushgatewayreporter

On Mon, Jun 22, 2020 at 9:01 AM Ori Popowski <ori....@gmail.com <mailto:ori....@gmail.com>> wrote:

    I have two Flink clusters sending metrics via Prometheus and they
    share all the metric names (i.e.
    flink_taskmanager_job_task_operator_currentOutputWatermark).

    I want to change the flink_ prefix to something else to
    distinguish between the clusters (maybe the job-name).

    How can I do it?

    Thanks.



--

Arvid Heise| Senior Java Developer

<https://www.ververica.com/>


Follow us @VervericaData

--

Join Flink Forward <https://flink-forward.org/>- The Apache FlinkConference

Stream Processing | Event Driven | Real Time

--

Ververica GmbH | Invalidenstrasse 115, 10115 Berlin, Germany

--

Ververica GmbHRegistered at Amtsgericht Charlottenburg: HRB 158244 BManaging Directors: Timothy Alexander Steinert, Yip Park Tung Jason, Ji (Toni) Cheng


Reply via email to