https://github.com/deviavir/gpg-prometheus-exporter
parse expiration of (armored) GPG key files.
https://github.com/deviavir/gpg-prometheus-exporter
Last synced: 6 months ago
JSON representation
parse expiration of (armored) GPG key files.
- Host: GitHub
- URL: https://github.com/deviavir/gpg-prometheus-exporter
- Owner: DeviaVir
- License: mit
- Created: 2021-11-17T13:54:57.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-17T13:59:28.000Z (over 4 years ago)
- Last Synced: 2025-02-07T18:31:45.171Z (over 1 year ago)
- Language: Makefile
- Size: 12.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gpg-prometheus-exporter
A prom exporter for parsing expiration of (armored) GPG (public) key files.
## Metrics
```
# HELP gpg_subkeys_current Active GPG subkeys count: not expired at this time
# TYPE gpg_subkeys_current gauge
gpg_subkeys_current{name="chase.gpg"} 1
# HELP gpg_subkeys_future_1week Active GPG keys count: won't expire in a week
# TYPE gpg_subkeys_future_1week gauge
gpg_subkeys_future_1week{name="chase.gpg"} 1
# HELP gpg_subkeys_future_2weeks Active GPG keys count: won't expire in two weeks
# TYPE gpg_subkeys_future_2weeks gauge
gpg_subkeys_future_2weeks{name="chase.gpg"} 1
```
Use the `future` subsystem to inform users about keys that are about to expire.
## Docker
Usage example:
```
docker run -p 9111:9111 -e GPG_KEYS_FOLDER=/dev/shm/gpg -e HTTP_LISTENADDR=":9119" -it --rm deviavir/gpg-prometheus-exporter:latest
```