Skip to content
This repository has been archived by the owner on Jul 19, 2022. It is now read-only.

vmware-archive/cf-sli

Repository files navigation

cf-sli

Service Level Indicator monitors for Pivotal Web Services

Calculates percentage of pushes successful over a period of time

Prerequisites

  • Stable CF CLI
  • Config file (see sample below)
  • Datadog Account (if you would like to send metrics somewhere)

Sample config file

cat > .config
{
  "api": "api.example.com",
  "user": "cf-sli",
  "pass": "abc123",
  "org": "cf-sli",
  "space": "dev"
}

Output format

{
  "app_start_time_in_sec": "Number", 
  "app_stop_time_in_sec": "Number",
  "app_start_status": "Number", 
  "app_stop_status": "Number"
}

inspired by Google SRE's Service Level Objectives