Skip to content

onuryilmaz/prometheus-pushgateway-cleaner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prometheus Pushgateway Cleaner

🔥 ⏳ ♻️

It is a tool to delete old metrics from Prometheus Pushgateway.

Why?

From Pushgateway Non-Goals:

A while ago, we decided to not implement a “timeout” or TTL for pushed metrics because almost all proposed use cases turned out to be anti-patterns we strongly discourage.

How?

$ docker run -it onuryilmaz/prometheus-pushgateway-cleaner:latest --help

Usage of prometheus-pushgateway-cleaner:
  -address string
        Address of Prometheus Pushgateway
  -debug
        Set debug log level, the default is false.
  -dry-run
        Dry run and do not delete the metrics, the default is false
  -ttl duration
        TTL for clearing the expired metrics, the default is 24 hours. (default 24h0m0s)

About

A tool to delete old metrics from Prometheus Pushgateway

Topics

Resources

Stars

Watchers

Forks