Skip to content

Instantly share code, notes, and snippets.

@russmiles
Created June 16, 2021 08:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save russmiles/ab0cfacdb1df1e69f9febb9292278c5d to your computer and use it in GitHub Desktop.
Save russmiles/ab0cfacdb1df1e69f9febb9292278c5d to your computer and use it in GitHub Desktop.
# Reliably Simple SLO Report
<style>
html {
font-family: sans-serif;
}
table, th, td {
border: 1px solid #ccc;
border-collapse: collapse;
}
td {
padding: 5px;
}
</style>
Service Level Objectives identify what you should care about on your system.
They are what good looks like for the users of your system.
If an SLO is underperforming, it will be impacting your users in some way.
For more details of an SLO report, see the Reliably documentation on [How the Reliably CLI works]
[How the Reliably CLI works]:https://reliably.com/docs/guides/how-it-works/slo-reports/
{{ $report := .Rep }}
Report time: {{ dateTime $report.Timestamp }}
{{ $reps := .Lreps }}
{{ range $index, $service := $report.Services }}
## Service #{{ serviceNo $index}}: {{$service.Name}}
| | Name | Current | Objective| Time Window | Type | Trend |
|-|------------| ---:| ---:|---:|----|:--:|
{{ range $ind, $sl := $service.ServiceLevels -}}
|{{- svcLevelGetStatusIcon $sl -}}
|{{- svcLevelGetName $sl -}}|
{{- svcLevelGetActualResult $sl}}|
{{- svcLevelGetObjective $sl }}|
{{- svcLevelGetTimeWindow $sl }}|
{{- svcLevelGetType $sl }}|
{{- svcLevelGetTrends $service.Name $sl $reps }}
{{ end }}
The Error Budget metrics are:
| Type | Name | ErrorBudget(%) | Time Window | Downtime | Consumed | Remain
|-|------|--:|--:|--:|--:|--:|
{{ range $ind, $sl := $service.ServiceLevels -}}
|{{- svcLevelGetType $sl -}}|
{{- svcLevelGetName $sl}}|
{{- errBudgetPercentage $sl }}|
{{- svcLevelGetTimeWindow $sl }}|
{{- errBudgetAllowedDownTime $sl }}|
{{- errBudgetConsumed $sl }}|
{{- errBudgetRemain $sl }}|
{{ end }}
{{ end }}
<small>Generating with: The Reliably CLI Version {{ reliablyVersion }}</small>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment