This repo is use to deploy a demo application for spinnaker
Перейти к файлу
sergeunity d98d044d99
Add files via upload
2020-03-09 16:05:54 -04:00
app add all 2020-02-17 15:56:33 -05:00
deploy add all 2020-02-17 15:56:33 -05:00
.gitignore add all 2020-02-17 15:56:33 -05:00
Dockerfile test 2020-02-17 16:41:00 -05:00
README.md add all 2020-02-17 15:56:33 -05:00
main.go add all 2020-02-17 15:56:33 -05:00
rules-exporter-0.1.0.tgz Add files via upload 2020-03-09 16:05:54 -04:00
values-prd.yaml add override 2020-02-17 10:28:16 -05:00
values-stg.yaml add override 2020-02-17 10:28:16 -05:00
values-test.yaml add override 2020-02-17 10:28:16 -05:00

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