-
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(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
- Loading branch information
Showing
17 changed files
with
904 additions
and
76 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
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
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.