title: GitLab: Pipeline status
agents: gitlab
catalog: app/gitlab
license: MIT
distribution: check_mk
description:
 Monitors the latest CI/CD pipeline of a project (optionally restricted to a
 git ref). The GitLab pipeline status is mapped to a monitoring state via the
 rule "GitLab pipeline status" (default: success {OK}, failed {CRIT},
 canceled {WARN}).

 Using the same rule, individual jobs can be ignored via glob patterns: if the
 pipeline is "failed" but every hard-failing job matches an ignore pattern, the
 pipeline service stays {OK}. Jobs flagged allow_failure are treated as
 non-fatal automatically. Optional levels on pipeline duration and on the age
 of the last pipeline are supported.

item:
 The project path and git ref, e.g. {mygroup/myproject / main}.

discovery:
 One service per project (and ref) for which a latest pipeline was found.

 Even without job collection, a pipeline that succeeded despite an
 allow_failure job failure is flagged as "passed with warnings" using the
 pipeline's detailed status (configurable state, default {WARN}).
