Created
April 29, 2024 17:57
-
-
Save adrielp/1cfce4f66c425643f6bb37bf9c8a0c0e to your computer and use it in GitHub Desktop.
An example configuration for the OpenTelemetry (OTEL) collector running with the GitProvider Receiver. This can be used with the Engineering Effectiveness Metrics Grafana Dashboard.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extensions: | |
bearertokenauth/team1: | |
token: ${env:TOKEN} | |
receivers: | |
gitprovider/team1: | |
initial_delay: 10s | |
collection_interval: 300s | |
scrapers: | |
github: | |
github_org: liatrio | |
search_query: org:myorg topic:team1 archived:false | |
auth: | |
authenticator: bearertokenauth/team1 | |
metrics: | |
git.repository.contributor.count: | |
enabled: true | |
git.repository.cve.count: | |
enabled: true | |
processors: | |
resource/team1: | |
attributes: | |
- key: team.name | |
value: team1 | |
action: upsert | |
service: | |
extensions: [bearertokenauth/team1] | |
pipelines: | |
metrics: | |
receivers: [gitprovider/team1] | |
processors: [resource/o11y] | |
exporters: [debug, otlp] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment