open-telemetry / opentelemetry-collector-contrib

Contrib repository for the OpenTelemetry Collector
https://opentelemetry.io
Apache License 2.0
3.02k stars 2.34k forks source link

New component: GitLab Receiver #35207

Open adrielp opened 1 month ago

adrielp commented 1 month ago

The purpose and use-cases of the new component

The purpose of this receiver is the same as the GitHub Receiver but in the context of GItLab. It will support metrics, logs, and traces from GitLab in almost the same way as the GitLab receiver. Much of this code exists in some form or another.

Really, the logic and metrics are the same as the GitHub receiver. The differences are:

Everything else is closely aligned. The CICD SIG will leverage this as one of the prototypes alongside the GitHub receiver helping to inform conventions and support telemetry in GitLab.

Example configuration for the component

extensions: bearertokenauth/gitlab: token: ${env:TOKEN}

receivers: gitlab: interval: 15s #the interval at which the scraper scrapes group: mygroup #the organization name in github query: traces: .... auth: authenticator: bearertokenauth/gitlab

Telemetry data types supported

Metrics, Logs, Traces

Is this a vendor-specific component?

Code Owner(s)

adrielp

Sponsor (optional)

@atoulme

Additional context

No response

atoulme commented 1 week ago

I will sponsor this.