> For the complete documentation index, see [llms.txt](https://docs.hostedgraphite.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hostedgraphite.com/add-ons-and-integrations-guide/gitlab.md).

# GitLab

Use our webhook in your GitLab environment to report events from your repositories and deployments. These [GitLab events](https://docs.gitlab.com/ee/user/project/integrations/webhook_events.html) are sent to Hosted Graphite in real-time and can be displayed on your graphs in the form of annotations.

First, copy the webhook URL from within the Hosted Graphite Add-Ons UI, and paste into your GitLab account (Settings => Webhooks):

<figure><img src="/files/AUOpuR9HJPkmwlJx5hAr" alt=""><figcaption><p>GitLab Webhook URL</p></figcaption></figure>

Then you can configure a new [annotation](https://docs.hostedgraphite.com/api-guides/annotations-and-events-api#dashboard-annotations) in your dashboard, using the Event Tags for each type of event you want to display:

<figure><img src="/files/PKo427ZNf1lKqAahPhZf" alt=""><figcaption><p>GitLab Annotation Configuration</p></figcaption></figure>

You will now receive dashboard annotations for each type of event configured, such as a push event. These markers are useful because you can see if any of your metric data has changed before or after an event within your codebase.


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.hostedgraphite.com/add-ons-and-integrations-guide/gitlab.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
