Skip to content

Examples Overview

The examples/ directory contains production-ready SLO definitions organized by monitoring framework and use case.

Summary

Example Set SLOs Framework Layer Description
RED Metrics 5 RED Service Request-driven service monitoring
USE Metrics 11 USE Infrastructure Resource monitoring
AI Agents 20 Custom Business AI platform metrics
SaaS CRM 25 Custom Business User journey metrics
Budgeting Methods 3 Custom Service Budget method comparison

Total: 64 SLOs

Example Features

Each example includes:

  • โœ… Complete, working Go code
  • ๐Ÿ“‹ Detailed descriptions of what is being measured
  • ๐Ÿท๏ธ OpenSLO-compliant metadata with ontology labels
  • ๐Ÿ” Prometheus/BigQuery query examples
  • ๐Ÿงช Automated validation tests
  • ๐Ÿ“š README with methodology explanations

By Monitoring Framework

RED (Rate, Errors, Duration)

Request-driven monitoring for services and APIs:

USE (Utilization, Saturation, Errors)

Infrastructure and resource monitoring:

Custom / Business

Business metrics and custom implementations:

By Audience

SRE / Platform

Product

Executive

By Use Case

Service Monitoring

Monitor API and microservice health:

// RED metrics for API
slo := redmetrics.ExampleAvailabilitySLO()

Infrastructure Monitoring

Monitor underlying resources:

// USE metrics for CPU
slo := usemetrics.ExampleCPUUtilizationSLO()

User Engagement

Track user activity and stickiness:

// DAU/MAU ratio (stickiness)
slo := saascrm.ExampleDAUMAURatioSLO()

AI/ML Platforms

Monitor AI agent performance:

// AI response quality
slo := aiagents.ExampleAgentResponseQualitySLO()

Label Distribution

See the Metrics Report for detailed analysis of label distribution across all 64 SLOs.