Parapet.SLO.Generator (parapet v1.0.0)

Copy Markdown View Source

Generates provider-first Prometheus recording and alert rules from bounded slice specs while retaining legacy %Parapet.SLO{} support.

Experimental

This module is experimental in v1.x. Its API may change in a minor release with a single-version notice in CHANGELOG.md. See Stability & Deprecation Policy for details.

Summary

Functions

alert_groups(entries)

build_artifacts(entries, windows \\ ["5m", "30m", "1h", "2h", "6h", "3d"])

generate_yaml(slo)

Generates legacy YAML for a single SLO.

provider_artifacts(windows \\ ["5m", "30m", "1h", "2h", "6h", "3d"])

recording_groups(entries, windows \\ ["5m", "30m", "1h", "2h", "6h", "3d"])

windows()

yaml_value(value)