unarmedcivilian / prometheus-pushgateway-cleaner

A tool to delete old metrics from Prometheus Pushgateway

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:Go 89.7%Language:Dockerfile 10.3%