Open ashishmodi7 opened 1 month ago
Verified on my end. I can also see negative values here.
fluentbit_output_upstream_busy_connections{name="forward"} -899
@drbugfinder-work Is there any additional information we can provide to help get this resolved?
Just as a side note This is where the calculation is done (without mutex): https://github.com/fluent/fluent-bit/blob/8aee285464c30d1af03fdfbf1dcbdf784b5ace33/src/flb_upstream.c#L1157-L1214
Called here: https://github.com/fluent/fluent-bit/blob/8aee285464c30d1af03fdfbf1dcbdf784b5ace33/src/flb_upstream.c#L801-L807
(First guess: Is access to the metrics thread-safe? cc @leonardo-albertovich)
Bug Report
Describe the bug Prometheus metrics "fluentbit_output_upstream_busy_connections" showing negative value during connection timed out
To Reproduce Steps to reproduce the problem:
Expected behavior Prometheus Metrics "fluentbit_output_upstream_busy_connections" should show 0 or positive value.
Screenshots![image](https://github.com/fluent/fluent-bit/assets/144995052/3acbfd85-fc97-4f73-b502-97525083f00e)
Your Environment
Additional context Monitoring graphs are not showing correct values