You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have found it very strange but PrometheusPushGatewayReporter is created with a hardcoded stale period of 365 days, and this forces all my current metrics to be cleaned here. Here we have from debug:
stalePeriod = PT8760H // which is 365 days
currentInstant = 2024-12-18T00:00:00Z
cutoff = 2023-12-19T00:00:00Z
So here i will give you my config file, and the way i emit metrics.
I faced this issue too and have tracked it down to be an issue in the PeriodSnapshot.Accumulator and I guess this change was not applied here PrometheusPushgatewayReporter.scala#L34.
@muej, yes you are right, the problem is exactly in instantiating the snapshot accumulator.
But PR is there for more than 6 months, hope it will be merged anytime soon.
Hi,
I am using Kamon version 2.1.9
I have found it very strange but
PrometheusPushGatewayReporter
is created with a hardcoded stale period of 365 days, and this forces all my current metrics to be cleaned here. Here we have from debug:So here i will give you my config file, and the way i emit metrics.
PS:
The usual
PrometheusReporter
works well, since stale period there is 5 years as well as period, so cutoff date is basically the now date.The text was updated successfully, but these errors were encountered: