https://github.com/onuryilmaz/prometheus-pushgateway-cleaner
A tool to delete old metrics from Prometheus Pushgateway
https://github.com/onuryilmaz/prometheus-pushgateway-cleaner
prometheus pushgateway ttl
Last synced: 5 months ago
JSON representation
A tool to delete old metrics from Prometheus Pushgateway
- Host: GitHub
- URL: https://github.com/onuryilmaz/prometheus-pushgateway-cleaner
- Owner: onuryilmaz
- Created: 2020-12-17T22:50:29.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-12-18T00:07:10.000Z (over 5 years ago)
- Last Synced: 2024-06-20T08:21:30.000Z (almost 2 years ago)
- Topics: prometheus, pushgateway, ttl
- Language: Go
- Homepage:
- Size: 14.6 KB
- Stars: 10
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Prometheus Pushgateway Cleaner
# :fire: :hourglass_flowing_sand: :recycle:
It is a tool to delete old metrics from [Prometheus Pushgateway](https://github.com/prometheus/pushgateway).
## Why?
From [Pushgateway Non-Goals](https://github.com/prometheus/pushgateway/blob/master/README.md#non-goals):
> A while ago, we
[decided to not implement a “timeout” or TTL for pushed metrics](https://github.com/prometheus/pushgateway/issues/19)
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)
```