Skip to content

namcxn/prometheus-pusher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prometheus Pusher to Atlassian Status Page

How to?

  • Build
git clone git@github.com:cxnam/prometheus-pusher.git
cd prometheus-pusher
go get -u
go build
  • Docker
docker pull namcx/prometheus-pusher
  • Config

Copy example to config.yaml

Or use Env

SYSTEMMETRIC__PROM_URL: https://localhost
SYSTEMMETRIC__PAGE_URL: https://api.statuspage.io
SYSTEMMETRIC__PAGE_TOKEN: xxxxxxx-xxxx-xxxx-xxxx-xxxxxxe6ad2a
SYSTEMMETRIC__PAGE_ID: xxxxxxxxx826
  • Queries

Copy query example to queries.yaml

The prometheus expr needs to return a single element vector

Docs Prometheus query: QUERYING PROMETHEUS