Skip to content

Conversation

@Rastusik
Copy link
Contributor

Zero ttl for metrics entries does not work well on deployments with low global apcu.ttl value, metrics data are expiring randomly. so by default, all metrics values have a (configurable) ttl which is very high - 120 days

…ll with apcu entry expiration algorithm when low global ttl is set, entry ttl needs to be very high

Signed-off-by: Rastusik <[email protected]>
Copy link
Member

@LKaemmerling LKaemmerling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @Rastusik,

sorry for the late reply. I have a small comment, nothing major :)

Thank you!

* @throws StorageException
*/
public function __construct(string $prometheusPrefix = self::PROMETHEUS_PREFIX, int $decimalPrecision = 3)
public function __construct(string $prometheusPrefix = self::PROMETHEUS_PREFIX, int $ttl = 10368000, int $decimalPrecision = 3)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please move this at the end, as it would be a breaking change otherwise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants