Skip to content

Poll Prometheus and send results to Statuspage custom metrics

License

Notifications You must be signed in to change notification settings

bytebeamio/prometheus-statuspage-pusher

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

prometheus-statuspage-pusher

Usage

Usage of ./prometheus-statuspage-pusher:
  -c string
    	Query config file (default "queries.yaml")
  -i duration
    	Metric push interval (default 30s)
  -pu string
    	URL of Prometheus API (default "http://localhost:9091/prometheus")
  -si string
    	Statuspage page ID
  -st string
    	Statuspage Oauth token (defaults to value of STATUSPAGE_TOKEN environment variable)
  -su string
    	URL of Statuspage API (default "https://api.statuspage.io")
  -prometheusPort int
      Port to serve Prometheus metrics from (default 9095)

Config:

Syntax:

metricID: prometheus-expression

The prometheus-expression needs to return a single element vector, like:

abcdef: avg(up{job="web"})

About

Poll Prometheus and send results to Statuspage custom metrics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 77.6%
  • Dockerfile 15.1%
  • Shell 7.3%