Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ispringle/bandaid
A tool for triggering events based off Prometheus exporters running on localhost
https://github.com/ispringle/bandaid
Last synced: 9 days ago
JSON representation
A tool for triggering events based off Prometheus exporters running on localhost
- Host: GitHub
- URL: https://github.com/ispringle/bandaid
- Owner: ispringle
- License: mit
- Created: 2020-03-07T15:00:31.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-24T15:23:48.000Z (over 4 years ago)
- Last Synced: 2024-04-16T20:24:23.307Z (8 months ago)
- Language: Go
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bandaid
A tool for triggering events based of Prometheus exporters on localhost.
It will also scrape remote, which can be configured with flags, but I
intend for this only to be for testing purposes.## Usage (intended)
Bandaid is intended to be a stopgap for bad alerts that require brainless
reactions in order to resolve. Bandaid will scrape `localhost` and if an
alert matches the bandaid config (tbd) it will trigger an event. The event
will be standalone from bandaid.Like all bandaids, this one is gross and I hope you never have to use it.
### bandaid.conf (wip)
```yaml
name: bad_alert
trigger: >
node_systemd_unit_state{name="trash_tier_service.service",state="active"} == 0
event: >
systemctl restart trash_tier_service.service
name: anoter_one
trigger: >
node_systemd_unit_state{name="technical_debt.service",state="active"} == 0
event: >
sh /path/to/further_technical_debt.sh
```## TODO
- [ ] get parsing working
- [ ] determine a format for configs