Hi Dev Community, Can you please throw some light please?

On Sun, May 4, 2025, 11:26 PM Subrahmanya Oruganti <
chakravarthi.oruga...@gmail.com> wrote:

> Dear DEV Community,
>
> The nifi-api/flow/metrics/prometheus api endpoint is generating prometheus
> metrics from componentEventRepository field of RingBufferEventRepository.
> This componentEventRepository uses SecondPrecisionEventContainer internally
> and the events will be purged after 5 minutes. As a result, the metrics
> provided by the api endpoint nifi-api/flow/metrics/prometheus are incorrect.
>
> Example: I have a GenerateFlowFile processor which generates 1 flowfile
> per minute. I connected UpdateCounter processor and incrementing
> "generated_flowfiles" by 1. (delta).
>
> When I monitor this metric in grafana, it never shows a value more than 5.
>
>
> Reading from aggregateValues field of RingBufferEventRepository may give
> correct value.
>
> Can you please help me whether my analysis is right? or I need to do some
> other configuration to get the metrics right in grafana.
>
> Thanks in advance.
> Subrahmanya
>

Reply via email to