d98d044d99 | ||
---|---|---|
app | ||
deploy | ||
.gitignore | ||
Dockerfile | ||
README.md | ||
main.go | ||
rules-exporter-0.1.0.tgz | ||
values-prd.yaml | ||
values-stg.yaml | ||
values-test.yaml |
README.md
Rules exporter
The alerts system of prometheus does not retrun when an alert is not firing. This exporter will get rules configured on the inventory website and create a new metric with all rules up and firing in prometheus format.
Rules
We use labels to select rules in the list. To be consider, a rule have to have labels:
- type: cloud_health
- service: what ever the content, it will use in the global dashboard to group health status by services
Configuration
Environment variable | Default Value | Required |
---|---|---|
INVENTORY_URL | None | yes |
INVENTORY_TOKEN | None | yes |
INVENTORY_ENV | None | yes |
EXPORTER_PORT | 8000 | no |
LOG_LEVEL | info | no |
Development
Log in on inventory website and go to rules list. When you inspect the code with your browser in the network tab you will find the bear token ok api call