go.d whoisquery change default days until expiration 90/30 => 30/15 (#18000)
Ilya Mashchenko committed
Jun 24, 2024 at 12:40 UTC
ecc9c3e29a36d13ccaf836ebf9ea0b56f100e58c
2 files changed
+4
-4
src/go/collectors/go.d.plugin/modules/whoisquery/whoisquery.go
+2
-2
@@ -29,8 +29,8 @@ func New() *WhoisQuery {
29
return &WhoisQuery{
30
Config: Config{
31
Timeout: web.Duration(time.Second * 5),
32
- DaysUntilWarn: 90,
33
- DaysUntilCrit: 30,
32
+ DaysUntilWarn: 30,
33
+ DaysUntilCrit: 15,
34
},
35
}
36
}
src/go/collectors/go.d.plugin/modules/whoisquery/whoisquery_test.go
+2
-2
@@ -105,8 +105,8 @@ func TestWhoisQuery_Collect(t *testing.T) {
105
106
expected := map[string]int64{
107
"expiry": 12345,
108
- "days_until_expiration_warning": 90,
109
- "days_until_expiration_critical": 30,
108
+ "days_until_expiration_warning": 30,
109
+ "days_until_expiration_critical": 15,
110
}
111
112
assert.NotZero(t, collected)