kennel 1.52.0 → 1.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Readme.md +6 -0
- data/lib/kennel/models/monitor.rb +2 -2
- data/lib/kennel/models/team.rb +3 -2
- data/lib/kennel/version.rb +1 -1
- data/template/Readme.md +6 -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: 95c82242166781e34d9132c511942a71c45c480951cb4b986702479cca60e271
|
4
|
+
data.tar.gz: 44ab3de5ad5709b6be941bfc8706ae4b712f94a3d1b9ae75a2f028a4e2c42926
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb2bf40bccca3072b58c6eb7e7342de8ed51f6a716eba29eb5d717aeb013da18e082fdc0b4565fa666d6a7146d8dd77bc085f343b06d08fb81a285da7d64d520
|
7
|
+
data.tar.gz: be449f1b2c32d1f5996d16d17baa3e215c4446ae2ce4c865bd3cb160baece6bd8f56049cc7e29a56f025339a660ba474b6258fc042d808222a156cc2eb90f8e5
|
data/Readme.md
CHANGED
@@ -154,6 +154,12 @@ end
|
|
154
154
|
Some validations might be too strict for your usecase or just wrong, please [open an issue](https://github.com/grosser/kennel/issues) and
|
155
155
|
to unblock use the `validate: -> { false }` option.
|
156
156
|
|
157
|
+
### Monitor re-notification
|
158
|
+
|
159
|
+
Monitors inherit the re-notification setting from their `project.team`.
|
160
|
+
Set this to for example `renotify_interval: -> { 120 }` minutes,
|
161
|
+
to make alerts not get ignored by popping back up if they are still alerting.
|
162
|
+
|
157
163
|
### Linking with kennel_ids
|
158
164
|
|
159
165
|
To link to existing monitors via their kennel_id
|
@@ -15,7 +15,7 @@ module Kennel
|
|
15
15
|
evaluation_delay: nil,
|
16
16
|
new_host_delay: 300,
|
17
17
|
timeout_h: 0,
|
18
|
-
renotify_interval:
|
18
|
+
renotify_interval: 0,
|
19
19
|
no_data_timeframe: nil # this works out ok since if notify_no_data is on, it would never be nil
|
20
20
|
}.freeze
|
21
21
|
DEFAULT_ESCALATION_MESSAGE = ["", nil].freeze
|
@@ -29,7 +29,7 @@ module Kennel
|
|
29
29
|
defaults(
|
30
30
|
message: -> { "\n\n@slack-#{project.slack}" },
|
31
31
|
escalation_message: -> { DEFAULT_ESCALATION_MESSAGE.first },
|
32
|
-
renotify_interval: -> {
|
32
|
+
renotify_interval: -> { project.team.renotify_interval },
|
33
33
|
warning: -> { nil },
|
34
34
|
ok: -> { nil },
|
35
35
|
id: -> { nil },
|
data/lib/kennel/models/team.rb
CHANGED
@@ -2,9 +2,10 @@
|
|
2
2
|
module Kennel
|
3
3
|
module Models
|
4
4
|
class Team < Base
|
5
|
-
settings :slack, :email, :tags, :kennel_id
|
5
|
+
settings :slack, :email, :tags, :renotify_interval, :kennel_id
|
6
6
|
defaults(
|
7
|
-
tags: -> { ["team:#{kennel_id.sub(/^teams_/, "")}"] }
|
7
|
+
tags: -> { ["team:#{kennel_id.sub(/^teams_/, "")}"] },
|
8
|
+
renotify_interval: -> { 0 }
|
8
9
|
)
|
9
10
|
|
10
11
|
def initialize(*)
|
data/lib/kennel/version.rb
CHANGED
data/template/Readme.md
CHANGED
@@ -136,12 +136,18 @@ end
|
|
136
136
|
Some validations might be too strict for your usecase or just wrong, please [open an issue](https://github.com/grosser/kennel/issues) and
|
137
137
|
to unblock use the `validate: -> { false }` option.
|
138
138
|
|
139
|
+
### Monitor re-notification
|
140
|
+
|
141
|
+
Monitors inherit the re-notification setting from their projects team.
|
142
|
+
By default this is `renotify_interval: -> { 120 }` minutes, which will make alerts not get ignored by popping back up.
|
143
|
+
|
139
144
|
### Linking with kennel_ids
|
140
145
|
|
141
146
|
To link to existing monitors via their kennel_id
|
142
147
|
|
143
148
|
- Screens `uptime` widgets can use `monitor: {id: "foo:bar"}`
|
144
149
|
- Screens `alert_graph` widgets can use `alert_id: "foo:bar"`
|
150
|
+
- Monitors `composite` can use `query: -> { "%{foo:bar} || %{foo:baz}" }`
|
145
151
|
|
146
152
|
### Debugging changes locally
|
147
153
|
|
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.53.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: 2019-09-
|
11
|
+
date: 2019-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|