-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: PC-14184 Add sourceSLO field in replay config file (#213)
## Motivation Run replay using an SLO as a data source. ## Summary * Added `sourceSLO` field to replay configuration file. ``` - slo: a-prometheus-http-requests-goodtotal-ratio project: pkw-test from: 2024-09-12T00:00:00+02:00 sourceSLO: slo: prometheus-http-requests-goodtotal-ratio project: amazon-prometheus objectivesMap: - source: objective-1 target: objective-2 ``` * All `sourceSLO` slos are added to the initial sloctl request that checks if the user has permissions to all SLOs and if they exist. ## Related changes * n9: nobl9/n9#15419 * nobl9-go: nobl9/nobl9-go#543 ## Testing - Added unit tests for `sourceSLO` validation in nobl9-go ## Release Notes Replaying SLOs using file configuration now allows for replays to be run using another SLO as a data source. This can be done by specifying the `sourceSLO` field in a replayed SLO. The field must provide the slo name, its project, and a mapping for objectives to match the source and target SLO objectives. --------- Co-authored-by: Jakub Gruszecki <[email protected]>
- Loading branch information
1 parent
abf97f8
commit e502ae2
Showing
3 changed files
with
17 additions
and
11 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