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

promtool command for dynamic retention #3628

Open
gouthamve opened this Issue Dec 27, 2017 · 1 comment

Comments

Projects
None yet
3 participants
@gouthamve
Copy link
Member

gouthamve commented Dec 27, 2017

This would be a simple tool that hits the right endpoints based on a simple config-file that looks like this:

# The frequency at which tombstone cleanup needs to be run.
# This means the /clean_tombstones endpoint is hit every 1h
cleanup_interval: 1h
# The frequency at which the deletes need to be run.
# This means that the /delete_series endpoint is hit every 5mins for the below deletes.
delete_interval: 5m

deletes:
  - queries:
      - {__name__=~"job1_.*"}
      - {job="tempJob"}
    retention: 10h # The retention time of every series that matches the above queries.

@brian-brazil Are you ok with including this in promtool?

@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented Dec 27, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.