Skip to content

Commit

Permalink
Merge pull request #409 from slok/slok/release-v0.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
slok authored Oct 22, 2022
2 parents cc58893 + 4fc2745 commit b4b2fb6
Show file tree
Hide file tree
Showing 31 changed files with 290 additions and 140 deletions.
12 changes: 8 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@

## [Unreleased]

## [v0.11.0] - 2022-10-22

### Changed

- Optimized SLI recording rules now have the same labels as the non-optimized ones.
- Update to Go 1.19
- Update to Kubernetes v1.25
- Optimized SLI recording rules now have the same labels as the non-optimized ones, avoiding promtool check warnings.
- Update to Go 1.19.
- Update to Kubernetes v1.25.
- `sloth_window` is ignored in alerts reducing the noise of refiring alerts.

## [v0.10.0] - 2022-03-22

Expand Down Expand Up @@ -159,7 +162,8 @@
- Support raw query based SLI.
- Kubernetes (prometheus-operator) CRD generation support.

[unreleased]: https://github.com/slok/sloth/compare/v0.10.0...HEAD
[unreleased]: https://github.com/slok/sloth/compare/v0.11.0...HEAD
[v0.11.0]: https://github.com/slok/sloth/compare/v0.10.0...v0.11.0
[v0.10.0]: https://github.com/slok/sloth/compare/v0.9.0...v0.10.0
[v0.9.0]: https://github.com/slok/sloth/compare/v0.8.0...v0.9.0
[v0.8.0]: https://github.com/slok/sloth/compare/v0.7.0...v0.8.0
Expand Down
2 changes: 1 addition & 1 deletion deploy/kubernetes/helm/sloth/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ description: Base chart for Sloth.
type: application
home: https://github.com/slok/sloth
kubeVersion: ">= 1.19.0-0"
version: 0.5.2
version: 0.6.0
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
Expand Down Expand Up @@ -261,9 +260,3 @@ spec:
storage: true
subresources:
status: {}
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ spec:
cpu: 5m
memory: 75Mi
- name: git-sync-plugins
image: k8s.gcr.io/git-sync/git-sync:v3.3.4
image: k8s.gcr.io/git-sync/git-sync:v3.6.1
args:
- --repo=https://github.com/slok/sloth-test-common-sli-plugins
- --branch=main
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
serviceAccountName: sloth
containers:
- name: sloth
image: ghcr.io/slok/sloth:v0.10.0
image: ghcr.io/slok/sloth:v0.11.0
args:
- kubernetes-controller
- --sli-plugins-path=/plugins
Expand All @@ -50,7 +50,7 @@ spec:
cpu: 5m
memory: 75Mi
- name: git-sync-plugins
image: k8s.gcr.io/git-sync/git-sync:v3.3.4
image: k8s.gcr.io/git-sync/git-sync:v3.6.1
args:
- --repo=https://github.com/slok/sloth-common-sli-plugins
- --branch=main
Expand Down
4 changes: 2 additions & 2 deletions deploy/kubernetes/helm/sloth/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ labels: {}

image:
repository: ghcr.io/slok/sloth
tag: v0.10.0
tag: v0.11.0

sloth:
resyncInterval: "" # The controller resync interval duration (e.g 15m).
Expand All @@ -19,7 +19,7 @@ commonPlugins:
enabled: true
image:
repository: k8s.gcr.io/git-sync/git-sync
tag: v3.3.4
tag: v3.6.1
gitRepo:
url: https://github.com/slok/sloth-common-sli-plugins
branch: main
Expand Down
16 changes: 8 additions & 8 deletions deploy/kubernetes/raw/sloth-with-common-plugins.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: sloth
namespace: monitoring
labels:
helm.sh/chart: sloth-0.4.2
helm.sh/chart: sloth-0.6.0
app.kubernetes.io/managed-by: Helm
app: sloth
app.kubernetes.io/name: sloth
Expand All @@ -18,7 +18,7 @@ kind: ClusterRole
metadata:
name: sloth
labels:
helm.sh/chart: sloth-0.4.2
helm.sh/chart: sloth-0.6.0
app.kubernetes.io/managed-by: Helm
app: sloth
app.kubernetes.io/name: sloth
Expand All @@ -38,7 +38,7 @@ kind: ClusterRoleBinding
metadata:
name: sloth
labels:
helm.sh/chart: sloth-0.4.2
helm.sh/chart: sloth-0.6.0
app.kubernetes.io/managed-by: Helm
app: sloth
app.kubernetes.io/name: sloth
Expand All @@ -59,7 +59,7 @@ metadata:
name: sloth
namespace: monitoring
labels:
helm.sh/chart: sloth-0.4.2
helm.sh/chart: sloth-0.6.0
app.kubernetes.io/managed-by: Helm
app: sloth
app.kubernetes.io/name: sloth
Expand All @@ -74,7 +74,7 @@ spec:
template:
metadata:
labels:
helm.sh/chart: sloth-0.4.2
helm.sh/chart: sloth-0.6.0
app.kubernetes.io/managed-by: Helm
app: sloth
app.kubernetes.io/name: sloth
Expand All @@ -85,7 +85,7 @@ spec:
serviceAccountName: sloth
containers:
- name: sloth
image: ghcr.io/slok/sloth:v0.10.0
image: ghcr.io/slok/sloth:v0.11.0
args:
- kubernetes-controller
- --sli-plugins-path=/plugins
Expand All @@ -103,7 +103,7 @@ spec:
cpu: 5m
memory: 75Mi
- name: git-sync-plugins
image: k8s.gcr.io/git-sync/git-sync:v3.3.4
image: k8s.gcr.io/git-sync/git-sync:v3.6.1
args:
- --repo=https://github.com/slok/sloth-common-sli-plugins
- --branch=main
Expand All @@ -130,7 +130,7 @@ metadata:
name: sloth
namespace: monitoring
labels:
helm.sh/chart: sloth-0.4.2
helm.sh/chart: sloth-0.6.0
app.kubernetes.io/managed-by: Helm
app: sloth
app.kubernetes.io/name: sloth
Expand Down
14 changes: 7 additions & 7 deletions deploy/kubernetes/raw/sloth.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: sloth
namespace: monitoring
labels:
helm.sh/chart: sloth-0.4.2
helm.sh/chart: sloth-0.6.0
app.kubernetes.io/managed-by: Helm
app: sloth
app.kubernetes.io/name: sloth
Expand All @@ -18,7 +18,7 @@ kind: ClusterRole
metadata:
name: sloth
labels:
helm.sh/chart: sloth-0.4.2
helm.sh/chart: sloth-0.6.0
app.kubernetes.io/managed-by: Helm
app: sloth
app.kubernetes.io/name: sloth
Expand All @@ -38,7 +38,7 @@ kind: ClusterRoleBinding
metadata:
name: sloth
labels:
helm.sh/chart: sloth-0.4.2
helm.sh/chart: sloth-0.6.0
app.kubernetes.io/managed-by: Helm
app: sloth
app.kubernetes.io/name: sloth
Expand All @@ -59,7 +59,7 @@ metadata:
name: sloth
namespace: monitoring
labels:
helm.sh/chart: sloth-0.4.2
helm.sh/chart: sloth-0.6.0
app.kubernetes.io/managed-by: Helm
app: sloth
app.kubernetes.io/name: sloth
Expand All @@ -74,7 +74,7 @@ spec:
template:
metadata:
labels:
helm.sh/chart: sloth-0.4.2
helm.sh/chart: sloth-0.6.0
app.kubernetes.io/managed-by: Helm
app: sloth
app.kubernetes.io/name: sloth
Expand All @@ -85,7 +85,7 @@ spec:
serviceAccountName: sloth
containers:
- name: sloth
image: ghcr.io/slok/sloth:v0.10.0
image: ghcr.io/slok/sloth:v0.11.0
args:
- kubernetes-controller
ports:
Expand All @@ -106,7 +106,7 @@ metadata:
name: sloth
namespace: monitoring
labels:
helm.sh/chart: sloth-0.4.2
helm.sh/chart: sloth-0.6.0
app.kubernetes.io/managed-by: Helm
app: sloth
app.kubernetes.io/name: sloth
Expand Down
11 changes: 9 additions & 2 deletions examples/_gen/getting-started.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,14 @@ groups:
/ ignoring (sloth_window)
count_over_time(slo:sli_error:ratio_rate5m{sloth_id="myservice-requests-availability", sloth_service="myservice", sloth_slo="requests-availability"}[30d])
labels:
cmd: examplesgen.sh
owner: myteam
repo: myorg/myservice
sloth_id: myservice-requests-availability
sloth_service: myservice
sloth_slo: requests-availability
sloth_window: 30d
tier: "2"
- name: sloth-slo-meta-recordings-myservice-requests-availability
rules:
- record: slo:objective:ratio
Expand Down Expand Up @@ -201,7 +208,7 @@ groups:
(
max(slo:sli_error:ratio_rate5m{sloth_id="myservice-requests-availability", sloth_service="myservice", sloth_slo="requests-availability"} > (14.4 * 0.0009999999999999432)) without (sloth_window)
and
max((slo:sli_error:ratio_rate1h{sloth_id="myservice-requests-availability", sloth_service="myservice", sloth_slo="requests-availability"} > (14.4 * 0.0009999999999999432))) without (sloth_window)
max(slo:sli_error:ratio_rate1h{sloth_id="myservice-requests-availability", sloth_service="myservice", sloth_slo="requests-availability"} > (14.4 * 0.0009999999999999432)) without (sloth_window)
)
or
(
Expand All @@ -223,7 +230,7 @@ groups:
(
max(slo:sli_error:ratio_rate2h{sloth_id="myservice-requests-availability", sloth_service="myservice", sloth_slo="requests-availability"} > (3 * 0.0009999999999999432)) without (sloth_window)
and
max((slo:sli_error:ratio_rate1d{sloth_id="myservice-requests-availability", sloth_service="myservice", sloth_slo="requests-availability"} > (3 * 0.0009999999999999432))) without (sloth_window)
max(slo:sli_error:ratio_rate1d{sloth_id="myservice-requests-availability", sloth_service="myservice", sloth_slo="requests-availability"} > (3 * 0.0009999999999999432)) without (sloth_window)
)
or
(
Expand Down
22 changes: 18 additions & 4 deletions examples/_gen/home-wifi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,13 @@ groups:
/ ignoring (sloth_window)
count_over_time(slo:sli_error:ratio_rate5m{sloth_id="home-wifi-good-wifi-client-satisfaction", sloth_service="home-wifi", sloth_slo="good-wifi-client-satisfaction"}[30d])
labels:
cluster: valhalla
cmd: examplesgen.sh
component: ubiquiti
context: home
sloth_id: home-wifi-good-wifi-client-satisfaction
sloth_service: home-wifi
sloth_slo: good-wifi-client-satisfaction
sloth_window: 30d
- name: sloth-slo-meta-recordings-home-wifi-good-wifi-client-satisfaction
rules:
Expand Down Expand Up @@ -201,7 +208,7 @@ groups:
(
max(slo:sli_error:ratio_rate5m{sloth_id="home-wifi-good-wifi-client-satisfaction", sloth_service="home-wifi", sloth_slo="good-wifi-client-satisfaction"} > (14.4 * 0.05)) without (sloth_window)
and
max((slo:sli_error:ratio_rate1h{sloth_id="home-wifi-good-wifi-client-satisfaction", sloth_service="home-wifi", sloth_slo="good-wifi-client-satisfaction"} > (14.4 * 0.05))) without (sloth_window)
max(slo:sli_error:ratio_rate1h{sloth_id="home-wifi-good-wifi-client-satisfaction", sloth_service="home-wifi", sloth_slo="good-wifi-client-satisfaction"} > (14.4 * 0.05)) without (sloth_window)
)
or
(
Expand All @@ -222,7 +229,7 @@ groups:
(
max(slo:sli_error:ratio_rate2h{sloth_id="home-wifi-good-wifi-client-satisfaction", sloth_service="home-wifi", sloth_slo="good-wifi-client-satisfaction"} > (3 * 0.05)) without (sloth_window)
and
max((slo:sli_error:ratio_rate1d{sloth_id="home-wifi-good-wifi-client-satisfaction", sloth_service="home-wifi", sloth_slo="good-wifi-client-satisfaction"} > (3 * 0.05))) without (sloth_window)
max(slo:sli_error:ratio_rate1d{sloth_id="home-wifi-good-wifi-client-satisfaction", sloth_service="home-wifi", sloth_slo="good-wifi-client-satisfaction"} > (3 * 0.05)) without (sloth_window)
)
or
(
Expand Down Expand Up @@ -344,6 +351,13 @@ groups:
/ ignoring (sloth_window)
count_over_time(slo:sli_error:ratio_rate5m{sloth_id="home-wifi-risk-wifi-client-satisfaction", sloth_service="home-wifi", sloth_slo="risk-wifi-client-satisfaction"}[30d])
labels:
cluster: valhalla
cmd: examplesgen.sh
component: ubiquiti
context: home
sloth_id: home-wifi-risk-wifi-client-satisfaction
sloth_service: home-wifi
sloth_slo: risk-wifi-client-satisfaction
sloth_window: 30d
- name: sloth-slo-meta-recordings-home-wifi-risk-wifi-client-satisfaction
rules:
Expand Down Expand Up @@ -435,7 +449,7 @@ groups:
(
max(slo:sli_error:ratio_rate5m{sloth_id="home-wifi-risk-wifi-client-satisfaction", sloth_service="home-wifi", sloth_slo="risk-wifi-client-satisfaction"} > (14.4 * 0.0009999999999999432)) without (sloth_window)
and
max((slo:sli_error:ratio_rate1h{sloth_id="home-wifi-risk-wifi-client-satisfaction", sloth_service="home-wifi", sloth_slo="risk-wifi-client-satisfaction"} > (14.4 * 0.0009999999999999432))) without (sloth_window)
max(slo:sli_error:ratio_rate1h{sloth_id="home-wifi-risk-wifi-client-satisfaction", sloth_service="home-wifi", sloth_slo="risk-wifi-client-satisfaction"} > (14.4 * 0.0009999999999999432)) without (sloth_window)
)
or
(
Expand All @@ -456,7 +470,7 @@ groups:
(
max(slo:sli_error:ratio_rate2h{sloth_id="home-wifi-risk-wifi-client-satisfaction", sloth_service="home-wifi", sloth_slo="risk-wifi-client-satisfaction"} > (3 * 0.0009999999999999432)) without (sloth_window)
and
max((slo:sli_error:ratio_rate1d{sloth_id="home-wifi-risk-wifi-client-satisfaction", sloth_service="home-wifi", sloth_slo="risk-wifi-client-satisfaction"} > (3 * 0.0009999999999999432))) without (sloth_window)
max(slo:sli_error:ratio_rate1d{sloth_id="home-wifi-risk-wifi-client-satisfaction", sloth_service="home-wifi", sloth_slo="risk-wifi-client-satisfaction"} > (3 * 0.0009999999999999432)) without (sloth_window)
)
or
(
Expand Down
11 changes: 9 additions & 2 deletions examples/_gen/k8s-getting-started.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,14 @@ spec:
/ ignoring (sloth_window)
count_over_time(slo:sli_error:ratio_rate5m{sloth_id="myservice-requests-availability", sloth_service="myservice", sloth_slo="requests-availability"}[30d])
labels:
cmd: examplesgen.sh
owner: myteam
repo: myorg/myservice
sloth_id: myservice-requests-availability
sloth_service: myservice
sloth_slo: requests-availability
sloth_window: 30d
tier: "2"
record: slo:sli_error:ratio_rate30d
- name: sloth-slo-meta-recordings-myservice-requests-availability
rules:
Expand Down Expand Up @@ -215,7 +222,7 @@ spec:
(
max(slo:sli_error:ratio_rate5m{sloth_id="myservice-requests-availability", sloth_service="myservice", sloth_slo="requests-availability"} > (14.4 * 0.0009999999999999432)) without (sloth_window)
and
max((slo:sli_error:ratio_rate1h{sloth_id="myservice-requests-availability", sloth_service="myservice", sloth_slo="requests-availability"} > (14.4 * 0.0009999999999999432))) without (sloth_window)
max(slo:sli_error:ratio_rate1h{sloth_id="myservice-requests-availability", sloth_service="myservice", sloth_slo="requests-availability"} > (14.4 * 0.0009999999999999432)) without (sloth_window)
)
or
(
Expand All @@ -237,7 +244,7 @@ spec:
(
max(slo:sli_error:ratio_rate2h{sloth_id="myservice-requests-availability", sloth_service="myservice", sloth_slo="requests-availability"} > (3 * 0.0009999999999999432)) without (sloth_window)
and
max((slo:sli_error:ratio_rate1d{sloth_id="myservice-requests-availability", sloth_service="myservice", sloth_slo="requests-availability"} > (3 * 0.0009999999999999432))) without (sloth_window)
max(slo:sli_error:ratio_rate1d{sloth_id="myservice-requests-availability", sloth_service="myservice", sloth_slo="requests-availability"} > (3 * 0.0009999999999999432)) without (sloth_window)
)
or
(
Expand Down
Loading

0 comments on commit b4b2fb6

Please sign in to comment.