kennel 1.149.0 → 1.151.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Readme.md +1 -0
- data/lib/kennel/models/dashboard.rb +8 -0
- data/lib/kennel/models/monitor.rb +7 -1
- data/lib/kennel/version.rb +1 -1
- data/template/Readme.md +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb3596164ed93f9fc95cd1fd986d70f106eaa6bcf5131411f878334a292b23aa
|
4
|
+
data.tar.gz: 87212f9093312ba1f824478ea96c521752aa570ba3bd8b0d717a292e5a9e314f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7edd9655e8ec4eed27ed7d0a8865195aed604e7bfddcef7cd7c48d2d681052d31058747ecbc2d516653fc352fec96f34ab6a16996443eaa8007613c32fe12b10
|
7
|
+
data.tar.gz: 993452d3c4dbe9b71b98b10bf0bb5e5cea9a30b88b90bf100eff1709fb706064aee9238cbc9e9fec674f9672526dc8bd82a986e935ad2219e2a030d9f3a85a76
|
data/Readme.md
CHANGED
@@ -342,6 +342,7 @@ so they can be created in a single update and can be re-created if any of them i
|
|
342
342
|
|Dashboard|uptime|`monitor: {id: "foo:bar"}`|
|
343
343
|
|Dashboard|alert_graph|`alert_id: "foo:bar"`|
|
344
344
|
|Dashboard|slo|`slo_id: "foo:bar"`|
|
345
|
+
|Dashboard|timeseries|`queries: [{ data_source: "slo", slo_id: "foo:bar" }]`|
|
345
346
|
|Monitor|composite|`query: -> { "%{foo:bar} && %{foo:baz}" }`|
|
346
347
|
|Monitor|slo alert|`query: -> { "error_budget(\"%{foo:bar}\").over(\"7d\") > 123.0" }`|
|
347
348
|
|Slo|monitor|`monitor_ids: -> ["foo:bar"]`|
|
@@ -195,6 +195,14 @@ module Kennel
|
|
195
195
|
if id = definition[:slo_id]
|
196
196
|
definition[:slo_id] = resolve(id, :slo, id_map, **args) || id
|
197
197
|
end
|
198
|
+
when "timeseries"
|
199
|
+
definition[:requests]&.each do |request|
|
200
|
+
request[:queries]&.each do |query|
|
201
|
+
if query[:data_source] == "slo" && (slo_id = query[:slo_id])
|
202
|
+
query[:slo_id] = resolve(slo_id, :slo, id_map, **args) || slo_id
|
203
|
+
end
|
204
|
+
end
|
205
|
+
end
|
198
206
|
end
|
199
207
|
end
|
200
208
|
end
|
@@ -83,7 +83,7 @@ module Kennel
|
|
83
83
|
include_tags: true,
|
84
84
|
escalation_message: Utils.presence(escalation_message.strip),
|
85
85
|
evaluation_delay: evaluation_delay,
|
86
|
-
locked: false, # setting this to true
|
86
|
+
locked: false, # deprecated: setting this to true will likely fail
|
87
87
|
renotify_interval: renotify_interval || 0,
|
88
88
|
variables: variables
|
89
89
|
}
|
@@ -153,6 +153,9 @@ module Kennel
|
|
153
153
|
options[:notification_preset_name] = notification_preset_name
|
154
154
|
end
|
155
155
|
|
156
|
+
# locked is deprecated, will fail if used
|
157
|
+
options.delete :locked
|
158
|
+
|
156
159
|
data
|
157
160
|
end
|
158
161
|
|
@@ -231,6 +234,9 @@ module Kennel
|
|
231
234
|
options.delete(:escalation_message)
|
232
235
|
expected_options.delete(:escalation_message)
|
233
236
|
end
|
237
|
+
# locked is deprecated: ignored when diffing
|
238
|
+
options.delete(:locked)
|
239
|
+
expected_options.delete(:locked)
|
234
240
|
end
|
235
241
|
|
236
242
|
private
|
data/lib/kennel/version.rb
CHANGED
data/template/Readme.md
CHANGED
@@ -324,6 +324,7 @@ so they can be created in a single update and can be re-created if any of them i
|
|
324
324
|
|Dashboard|uptime|`monitor: {id: "foo:bar"}`|
|
325
325
|
|Dashboard|alert_graph|`alert_id: "foo:bar"`|
|
326
326
|
|Dashboard|slo|`slo_id: "foo:bar"`|
|
327
|
+
|Dashboard|timeseries|`queries: [{ data_source: "slo", slo_id: "foo:bar" }]`|
|
327
328
|
|Monitor|composite|`query: -> { "%{foo:bar} && %{foo:baz}" }`|
|
328
329
|
|Monitor|slo alert|`query: -> { "error_budget(\"%{foo:bar}\").over(\"7d\") > 123.0" }`|
|
329
330
|
|Slo|monitor|`monitor_ids: -> ["foo:bar"]`|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kennel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.151.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Grosser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: diff-lcs
|