Sergey Kanzhelev
75bf501888
format imports
2025-08-13 16:56:32 +00:00
googs1025
cf0870fa12
chore: refactor custom plugin monitor method
2024-12-27 09:24:47 +08:00
Stanislav
f24dbb13f7
fix bug in skip_initial_status
2024-02-02 14:33:11 +01:00
Manuel Rüger
e43459d86d
Move glog/klog logging to klog/v2
2023-09-17 08:57:33 +03:00
guoguangwu
6dc23ca804
chore: remove refs to deprecated io/ioutil
2023-06-21 12:12:27 +08:00
jasonjung
cc6c049522
add comments for cpm
2022-11-12 13:43:02 -08:00
Kubernetes Prow Robot
341af62275
Merge pull request #646 from notchairmk/notchairmk/custom-skip-initial
...
Allow skipping condition during customplugin initialization
2022-07-26 19:16:31 -07:00
diamondburned
6809f445eb
Remove unused resultChan field in CPM
...
This commit removes the resultChan field in ./pkg/custompluginmonitor's
customPluginMonitor struct. This was detected by staticcheck:
―❤―▶ staticcheck ./pkg/custompluginmonitor/
pkg/custompluginmonitor/custom_plugin_monitor.go:50:2: field resultChan is unused (U1000)
2022-07-12 21:43:05 -07:00
Andrew Garrett
a39a7c6e0f
Add condition message to event message
...
If you're using some monitoring solution that aggregates events from
your Kubernetes cluster, having the underlying reason why a condition
triggered could be very useful, especially if you are using custom
plugin monitors.
Co-authored-by: Micah Norman <micnorman@paypal.com >
Signed-off-by: Ryan Eschinger <reschinger@paypal.com >
2022-06-08 21:42:40 +00:00
Taylor Chaparro
9344c938bb
Allow skipping condition during customplugin initialization
2022-04-26 10:12:01 -07:00
Kubernetes Prow Robot
1e917af560
Merge pull request #455 from ZYecho/fix_newmessage
...
fix: print result's message when status unknown
2020-11-24 16:14:39 -08:00
zhangyue
b51cb3219f
fix: print result's message when status unknown
...
Signed-off-by: zhangyue <huaihuan.zy@alibaba-inc.com >
2020-11-18 19:30:17 +08:00
Archit Bansal
8c94d5e60c
Add logging levels to custom plugin logs.
2020-08-28 12:51:50 -07:00
Frame
9678892546
Fix typo in custom-plugin-monitor
2020-08-03 17:08:42 +08:00
Archit Bansal
f80f3e0dfa
Generate status generation logs from custom plugin run only on condition change.
2020-07-24 09:39:39 -07:00
Lantao Liu
be7cc78aa0
Properly close channel when monitor exits.
...
Signed-off-by: Lantao Liu <lantaol@google.com >
2019-10-25 14:11:39 -07:00
Alex Wong
60e048d2ce
fix close of closed channel
2019-09-24 16:07:47 +08:00
Kubernetes Prow Robot
e280e2075a
Merge pull request #320 from wangzhen127/custom-plugin-fix
...
Don't update condition if status stays False/Unknown for custom plugin
2019-08-07 17:09:18 -07:00
Zhen Wang
2f5d03280a
Don't update condition if status stays False/Unknown for custom plugin
2019-08-01 23:40:16 -07:00
Zhen Wang
182a9450dd
Print monitor config path in the logs
2019-07-30 11:00:47 -07:00
Xuewei Zhang
94af7de97b
Report metrics from custom-plugin-monitor
2019-07-25 11:28:38 -07:00
Xuewei Zhang
a07176073a
Add existing monitors into the problem daemon registration hook.
2019-06-13 00:51:17 -07:00
Andy Xie
33dffe0761
enable codnition updaet when message change for custom plugin
2018-12-11 13:14:49 +08:00
Zhen Wang
3062622d7c
More fix to custom plugin monitor condition change
2018-11-27 10:59:40 -08:00
Andy Xie
e3b37719ec
fix custom plugin monitor condition change
2018-11-12 17:57:55 +08:00
Lantao Liu
ee103dd4ac
Generate event for condition change and support unknown status.
2018-06-21 15:29:53 -07:00
Andy Xie
10dbfef1a8
add custom problem detector plugin
2017-11-22 10:14:09 +08:00