-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: PC-14244 Add flag to filter SLOs by service (#264)
## Release Notes Added filtering SLOs by service name. Example: `sloctl get slo -s my-service` or `sloctl get slo --service=my-service`. --------- Co-authored-by: Mateusz Hawrus <[email protected]>
- Loading branch information
1 parent
f909509
commit 526c6bf
Showing
7 changed files
with
162 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
- apiVersion: n9/v1alpha | ||
kind: SLO | ||
metadata: | ||
name: newrelic-rolling-timeslices-threshold-deputy-office | ||
project: death-star | ||
spec: | ||
description: This SLO is just for the e2e 'sloctl get' tests, it's not supposed to work! | ||
service: deputy-office | ||
indicator: | ||
metricSource: | ||
kind: Direct | ||
name: newrelic-direct | ||
timeWindows: | ||
- count: 1 | ||
isRolling: true | ||
unit: Hour | ||
budgetingMethod: Timeslices | ||
objectives: | ||
- target: 0.99 | ||
op: lte | ||
rawMetric: | ||
query: | ||
newRelic: | ||
nrql: SELECT average(duration) FROM Transaction TIMESERIES | ||
displayName: stretched | ||
timeSliceTarget: 0.99 | ||
value: 1.2 | ||
name: objective-1 | ||
primary: false | ||
alertPolicies: | ||
- trigger-alert-immediately | ||
- budget-will-be-burn-in-3days |