> For the complete documentation index, see [llms.txt](https://feiyu563.gitbook.io/prometheusalert/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://feiyu563.gitbook.io/prometheusalert/system/system-gitlab.md).

# Gitlab webhook接入配置

***

将Gitlab webhook event通过PrometheusAlert通知到其它软件。

目前支持的gitlab event类型:

* Push
* Tag Push
* Issue
* Comment
* Merge Request
* Wiki Page
* Pipeline
* Job
* Deployment
* Feature Flag
* Release

目前支持通知到:

* 企业微信机器人(`/gitlab/weixin?wxurl=xxx`)
* 钉钉机器人(`/gitlab/dingding?ddurl=xxx`)
* 飞书机器人(`/gitlab/dingding?fsurl=xxx`)

地址不支持写多个，如需要多个，可创建多个gitlab webhoook。

## 配置步骤

进入gitlab仓库界面，在`设置->Webhooks`里，填写接口地址和机器人地址，选择触发来源事件，之后就可以测试了。

![gitlab配置](/files/PGOVYfwuiVUGqmDkRAXO)

## 展示效果

### Push事件

微信机器人效果:

![push-weixin](/files/ja8khnKpNTuRi6QL7b3Y)

钉钉机器人效果:

![push-dingding](/files/vK25Pftx0ldAwBqnBax4)

飞书机器人效果:

![push-feishu](/files/a4ZMj3CvxUr4VyVEGQoV)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://feiyu563.gitbook.io/prometheusalert/system/system-gitlab.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
