Skip to content

Instantly share code, notes, and snippets.

apiVersion: reliably.com/v1
kind: Objective
metadata:
labels:
name: 99% of requests over last 1 hour
service: my spring boot app
spec:
indicatorSelector:
prometheus_query: sum by (uri) (http_server_requests_seconds_count{status="200",uri="/"})
/ sum by (uri) (http_server_requests_seconds_count{uri="/"})
global:
scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
scrape_configs:
- job_name: 'prometheus'
static_configs:
- targets: ['localhost:9090']
- job_name: 'my-spring-boot-app'
static_configs:
management.endpoints.web.exposure.include=prometheus,health,info,metrics
# Reliably Simple SLO Report
<style>
html {
font-family: sans-serif;
}
table, th, td {
border: 1px solid #ccc;
border-collapse: collapse;
}
{
"version": "0.1.0",
"title": "Use SLO as safeguard of the experiment. Terminating it as soon as the error budgets are consumed.",
"description": "n/a",
"controls": [
{
"name": "safeguard",
"provider": {
"type": "python",
"module": "chaosaddons.controls.safeguards",
{
"version": "0.1.0",
"title": "Use SLO as steady-states that we must not deviate from.",
"description": "n/a",
"steady-state-hypothesis": {
"title": "We do not consume all of our error budgets during the experiment",
"probes": [
{
"name": "last-3-slos-must-be-ok",
"type": "probe",
name: Run SLO reports of the Noteboard Frontend service
on:
push:
paths:
- '.github/workflows/frontend-service-ci.yaml'
- 'apps/noteboard-frontend/**'
env:
RELIABLY_TOKEN: ${{ secrets.RELIABLY_TOKEN }}
name: Run SLO reports of the Noteboard Frontend service
on:
push:
paths:
- '.github/workflows/frontend-service-ci.yaml'
- 'apps/noteboard-frontend/**'
env:
RELIABLY_TOKEN: ${{ secrets.RELIABLY_TOKEN }}
services:
- name: Website
service-levels:
- name: Website Availability SLO
type: availability
slo: 98
sli:
- id: arn:partition:service:region:account-id:resource-id
provider: aws
Refreshing SLO report every 3 seconds. Press CTRL+C to quit.
Actual Target Delta Time Window
Service #1: website
❌ Website Availability 96% 97% -1.00% 1 day