Skip to content

Instantly share code, notes, and snippets.

@adrielp
Created April 29, 2024 17:57
Show Gist options
  • Save adrielp/1cfce4f66c425643f6bb37bf9c8a0c0e to your computer and use it in GitHub Desktop.
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.
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