Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix for APCng prometheus storage - very high ttl for metrics entries #101

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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