Commit Graph

230 Commits

Author SHA1 Message Date
guoguangwu
da422bb452 chore: pkg imported more than once 2023-06-21 14:14:53 +08:00
MartinForReal
75095b2573 remove heapster from project dependencies 2023-05-18 01:38:29 +00:00
Mike Miranda
22157af0e5 Split proc default and validation between Linux and Windows 2023-04-13 18:52:59 +00:00
Kubernetes Prow Robot
b586bd9231 Merge pull request #717 from zendesk/grosser/space
health-checker cri: fix invalid command
2023-01-31 23:51:06 -08:00
Kubernetes Prow Robot
7b6805491c Merge pull request #716 from zendesk/grosser/silence
remove "Start watching journald" to avoid plugin log spam
2023-01-31 23:13:06 -08:00
Michael Grosser
8578b779e2 health-checker cri: fix invalid command 2023-01-31 21:53:59 -08:00
Michael Grosser
a83ef25930 remove "Start watching journald" to avoid plugin log spam 2023-01-31 21:31:31 -08:00
Kubernetes Prow Robot
d77d8f2992 Merge pull request #721 from UiPath/new-os-distributions
Add support for SLES, Oracle and Amazon Linux
2023-01-31 10:48:56 -08:00
Kubernetes Prow Robot
0dc032e76f Merge pull request #715 from zendesk/grosser/check-result
log failed results at a higher verbosity level
2023-01-31 10:48:49 -08:00
Kubernetes Prow Robot
49fbd5cf4b Merge pull request #727 from yordis/fix-spelling
chore: fix misspelling
2023-01-31 10:06:56 -08:00
Yordis Prieto Lazo
0842910049 chore: fix misspelling 2022-12-18 22:58:07 -05:00
jasonjung
cc6c049522 add comments for cpm 2022-11-12 13:43:02 -08:00
Alexandru Matei
0afa7cc6ff Add support for SLES, Oracle and Amazon Linux 2022-10-27 14:54:42 +03:00
Michael Grosser
169ff4f9fe log failed results at a higher verbosity level 2022-10-19 14:31:18 -07:00
Izaak Alpert (karlhungus)
b6d8069610 allow setting crictl timeout 2022-09-15 14:31:41 -04:00
Izaak Alpert (karlhungus)
6de3fabc9f output stdout and stderr from custom commands 2022-09-15 14:31:24 -04:00
Kubernetes Prow Robot
d8b2940b3c Merge pull request #679 from 2rs2ts/condition-change-event-severity
Use Warn severity on K8s Event when Node condition is True
2022-08-01 16:22:28 -07:00
whwreflux
3fba7a9e86 fix README under systemlogmonitor 2022-07-29 17:14:46 +08:00
Kubernetes Prow Robot
9a9b06d24d Merge pull request #660 from grosser/grosser/latest
simplify cri health check
2022-07-26 20:00:28 -07:00
Kubernetes Prow Robot
7bc362cfdc Merge pull request #668 from grosser/grosser/systemd
show failed statuses as warning
2022-07-26 19:16:38 -07: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
Kubernetes Prow Robot
72f1672634 Merge pull request #675 from mmiranda96/feat/net-monitor-groupings
Add ExcludeInterfaceRegexp to Net Dev monitor
2022-06-29 14:50:06 -07:00
Andrew Garrett
72ad051dd6 Use Warn severity on K8s Event when Node condition is True
If temporary errors generate an Event with a Warn severity, then surely
permanent errors should generate an Event with at least that high of a
severity level.
2022-06-17 22:13:21 +00:00
Mike Miranda
1471f74d98 Add ExcludeInterfaceRegexp to Net Dev monitor 2022-06-15 23:22:38 +00:00
Andrew Garrett
b1bd8e7424 Use %q instead of %s 2022-06-09 17:18:30 +00: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
Michael Grosser
011b9e6a46 show failed statuses as warning 2022-04-26 11:50:10 -07:00
Taylor Chaparro
9344c938bb Allow skipping condition during customplugin initialization 2022-04-26 10:12:01 -07:00
Kubernetes Prow Robot
c083db10f0 Merge pull request #628 from mx-psi/master
Change to using new dependency name for osreleaser
2022-04-22 11:35:37 -07:00
Kubernetes Prow Robot
9c23553e0b Merge pull request #650 from yankay/fix-deprecated-maintainer-in-dockerfile
FIx deprecated "MAINTAINER" in Dockerfile
2022-04-21 12:28:12 -07:00
Neo Zhuo
11ddb5e6bf support custom /proc path 2022-04-11 18:15:08 +08:00
Neo Zhuo
78c11c4ceb reimplement net collector metrics register, config check and recording 2022-04-11 18:15:07 +08:00
Michael Grosser
d764b1ab87 simplify cri health check 2022-03-28 17:05:53 -07:00
Kay Yan
bc89bbce56 MAINTAINER in Dockerfile is deprecated, change to label
Signed-off-by: Kay Yan <kay.yan@daocloud.io>
2022-03-07 15:27:08 +08:00
Pablo Baeyens
a859b5f027 Change to using new dependency name for osreleaser
To do this I
1. changed the name in go.mod and the Go code that used it,
2. ran `go mod tidy -go=1.15` and
3. ran `go mod vendor`.

Step 3 added another vendored dependency unrelated AFAIK to this change.
2021-11-29 16:45:48 +01:00
michelletandya
3344efd552 ensure time is in Universal Time Zone to properly calculate uptime 2021-09-02 17:41:54 +00:00
Kubernetes Prow Robot
56c592a5d7 Merge pull request #587 from vteratipally/bug_fix
Add a check if the metric is nil so that collector doesn't collect metrics.
2021-08-31 09:21:37 -07:00
Kubernetes Prow Robot
3c3609b5fa Merge pull request #612 from mcshooter/updateUptimeCMd
Update powershell command for uptime to help efficiency
2021-08-20 18:42:05 -07:00
michelletandya
dd0d0d71ab Update powershell command for uptime to help efficiency 2021-08-20 01:16:45 +00:00
michelletandya
26f070bfd4 Prevent uptimeFunc from being called everytime CheckHealth is being called 2021-08-17 19:30:28 +00:00
Julie Qi
fe09e416bd remove aufs hung check 2021-07-30 13:53:25 -07:00
Varsha Teratipally
ebdd9038b7 Add a check if the metric is nil so that collector doesn't collect the
metrics.
2021-06-30 19:50:16 +00:00
Oleg Atamanenko
c8629cea5d Check kube-proxy health on linux 2021-06-29 21:36:27 -07:00
Kubernetes Prow Robot
cbb029d905 Merge pull request #583 from pezzak/log-kubeapi-error
Log error from kube-api
2021-06-25 10:18:51 -07:00
Kubernetes Prow Robot
a0b0f9460f Merge pull request #578 from kubernetes/partitions
Reduce the number of reads to /proc/partitions file and gofmt.
2021-06-25 10:18:45 -07:00
Kubernetes Prow Robot
e349323507 Merge pull request #539 from smileusd/health_check
improvement health-checker
2021-06-25 09:48:45 -07:00
pezzak
ed97725ea1 Log error from kube-api 2021-06-17 12:51:44 +03:00
michelletandya
a14577dfa4 update CriCtl path for windows 2021-06-15 01:03:04 +00:00
varsha teratipally
7b51a90328 Reduce the number of reads to /proc/partitions file
to retrive the partitions on disk
2021-06-13 21:11:34 +00:00