kubernetes / node-problem-detector

This is a place for various problem detectors running on the Kubernetes nodes.
Apache License 2.0
2.95k stars 627 forks source link

Make pattern match all systemd StatusUnitFormat #849

Closed linxiulei closed 8 months ago

linxiulei commented 8 months ago

According to https://www.freedesktop.org/software/systemd/man/latest/systemd-system.conf.html#StatusUnitFormat=, the systemd may log with different formats when changing a unit's status (e.g. systemctl start containerd.service). For example, there are three possible formats:

  1. Starting containerd.service... when StatusUnitFormat=name
  2. Starting containerd container runtime... when StatusUnitFormat=description
  3. Starting containerd.service - containerd container runtime... when StatusUnitFormat=combined
vteratipally commented 8 months ago

/lgtm /approve /ok-to-test

k8s-ci-robot commented 8 months ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: linxiulei, vteratipally

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/kubernetes/node-problem-detector/blob/master/OWNERS)~~ [vteratipally] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment