statuscake-exporter

command module
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

README

statuscake-exporter

Prometheus StatusCake exporter

Exporter consumes data from StatusCake API using the official lib exposing it to Prometheus on port X.

Supported metrics:

statuscake_test_up: Current status at last test statuscake_test_uptime: 7 Day Uptime

BUILD

make build

The binary will be created on ./bin dir.

USAGE

  • Show metrics from all StatusCake Tests

./bin/statuscake-exporter -stk.username my_stk_user -stk.apikey my_stk_apikey

# HELP statuscake_test_up Status Cake test Status
# TYPE statuscake_test_up gauge
statuscake_test_up{name="MyApp01_-_api"} 1
statuscake_test_up{name="MyApp02_-_front"} 1
# HELP statuscake_test_uptime Status Cake test Uptime from the last 7 day
# TYPE statuscake_test_uptime gauge
statuscake_test_uptime{name="MyApp01_-_api"} 100
statuscake_test_uptime{name="MyApp02_-_front"} 100
  • Show metrics filtering by Tags from StatusCake Tests

./bin/statuscake-exporter -stk.username my_stk_user -stk.apikey my_stk_apikey -stk.tags "MyApp01"

# HELP statuscake_test_up Status Cake test Status
# TYPE statuscake_test_up gauge
statuscake_test_up{name="MyApp01_-_api"} 1
# HELP statuscake_test_uptime Status Cake test Uptime from the last 7 day
# TYPE statuscake_test_uptime gauge
statuscake_test_uptime{name="MyApp01_-_api"} 100

USAGE DOCKER

TODO

CONTRIBUTOR

  • Fork me
  • Open an PR with enhancements, bugfixes, etc
  • Open an issue

You are welcome. =)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL