-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(alerting): magic alerting severities (#127)
* feat(alerting): magic alerting hocus pocus Signed-off-by: Hy3n4 <[email protected]> * feat(alert-severities): config like this? Signed-off-by: Robin Opletal <[email protected]> * fix(alert-severities): remove NoSlo severity Signed-off-by: Robin Opletal <[email protected]> * stylistic fixes Signed-off-by: Robin Opletal <[email protected]> * fix(config): nicer Cfg initialization Signed-off-by: Robin Opletal <[email protected]> * stop hardcoding 1-target in alertmanagerrule Signed-off-by: Robin Opletal <[email protected]> * feat(make): make wait for services better when deploying dev infratructure Signed-off-by: Hy3n4 <[email protected]> * feat(alerting): alertmanager config loader edits (#130) * feat(alerting): alertmanager config loader Signed-off-by: Robin Opletal <[email protected]> * generated stuff... Signed-off-by: Robin Opletal <[email protected]> --------- Signed-off-by: Robin Opletal <[email protected]> * chore: add release-drafter gh action (#133) Signed-off-by: Jose Santorum <[email protected]> * feat(magic): some features some fixes mainly fixed duration issues also, added some feature to devel, osko dashboards, kustomize for asier deployment and other cool stuff modified function responsible for creating the alerting rule when magiAlerting is enabled, also added some basic mapping for opsgenie, pagerduty and custom alerting tool. Currently not working as expected tho Signed-off-by: Hy3n4 <[email protected]> * fix(rules): duplicated rules for 5m window Signed-off-by: Hy3n4 <[email protected]> * prometheus helper: simplify unique windows, resolve finalizer API warnings Signed-off-by: Robin Opletal <[email protected]> * at least move uniqueStrings to function Signed-off-by: Robin Opletal <[email protected]> --------- Signed-off-by: Hy3n4 <[email protected]> Signed-off-by: Robin Opletal <[email protected]> Signed-off-by: Jose Santorum <[email protected]> Co-authored-by: Hy3n4 <[email protected]> Co-authored-by: Jose Santorum <[email protected]>
- Loading branch information
1 parent
83c5b03
commit 5ff41f5
Showing
19 changed files
with
981 additions
and
75 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,4 +1,7 @@ | ||
## Append samples of your project ## | ||
resources: | ||
- osko_v1alpha1_alertmanagerconfig.yaml | ||
- openslo_v1_datasource.yaml | ||
- openslo_v1_slo.yaml | ||
- config_secret.yaml | ||
- osko_v1alpha1_alertmanagerconfig.yaml | ||
# +kubebuilder:scaffold:manifestskustomizesamples |
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 |
---|---|---|
@@ -1,39 +1,39 @@ | ||
apiVersion: openslo.com/v1 | ||
kind: SLO | ||
metadata: | ||
name: mimir-ingestion-latency | ||
labels: | ||
label.osko.dev/team: "infrastructure" | ||
label.osko.dev/system: "gatekeeper" | ||
label.osko.dev/domain: "security" | ||
label.osko.dev/team: "infra" | ||
label.osko.dev/system: "monitoring" | ||
label.osko.dev/domain: "observability" | ||
label.osko.dev/service: "mimir" | ||
annotations: | ||
osko.dev/datasourceRef: "mimir-infra-ds" | ||
osko.dev/magicAlerting: "true" | ||
name: gatekeeper-webhook-response-time | ||
spec: | ||
budgetingMethod: Occurrences | ||
description: 99% of Gatekeeper webhook requests return in less than 0.5s | ||
description: 95% of all queries should have a latency of less than 300 milliseconds | ||
indicator: | ||
metadata: | ||
name: gatekeeper-webhook-less-than-05s | ||
name: distributor-query-success-latency | ||
spec: | ||
description: 99% of Gatekeeper webhook requests return in less than 0.5s | ||
description: 95% of all queries should have a latency of less than 500 milliseconds | ||
ratioMetric: | ||
good: | ||
metricSource: | ||
metricSourceRef: mimir-infra-ds | ||
type: Mimir | ||
spec: | ||
query: controller_runtime_webhook_latency_seconds_bucket{le="0.5", job="gatekeeper-metrics"} | ||
query: cortex_distributor_query_duration_seconds_bucket{le="0.5", method="Distributor.QueryStream", status_code="200"} | ||
total: | ||
metricSource: | ||
metricSourceRef: mimir-infra-ds | ||
type: Mimir | ||
spec: | ||
query: controller_runtime_webhook_latency_seconds_count{job="gatekeeper-metrics"} | ||
query: cortex_distributor_query_duration_seconds_count{method="Distributor.QueryStream"} | ||
objectives: | ||
- displayName: gatekeeper-webhook-less-than-05s | ||
target: '0.99' | ||
service: testing | ||
- target: "0.99" | ||
service: mimir | ||
timeWindow: | ||
- duration: 28d | ||
isRolling: true | ||
- duration: 28d | ||
isRolling: true |
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
Oops, something went wrong.