Skip to content

Feature request: persistent disk cache #902

@eenchevlp

Description

@eenchevlp

Is your feature request related to a problem? Please describe.
Currently the metrics can be served from cache utilizing the min_interval setting. However, on collector restart (for example in Kubernetes environment), the cache is essentially cleared as it is in-memory only and the initial scrapes put a lot of load on the target databases ("thundering herd" issue)

Describe the solution you'd like
Despite this issue could be worked around with some clever separation of service monitors and using non-overlapping intervals, it would be better if there was an option to have cache persisted on disk, so the restart is not so intrusive operation.

Of course, to keep feature-compatibility, it would be best if the disk cache is optional and not the default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions