Skip to content

Instantly share code, notes, and snippets.

@adrielp
Last active May 24, 2023 13:14
Show Gist options
  • Save adrielp/8c49fa111bec67c7d3f3fcc94190e30b to your computer and use it in GitHub Desktop.
Save adrielp/8c49fa111bec67c7d3f3fcc94190e30b to your computer and use it in GitHub Desktop.
githubmetricsreceiver-metadata.yaml
name: githubreceiver
status:
type: receiver
stability: development
pipelines: [metrics]
warnings: []
resource_attributes:
organization.name:
enabled: true
description: "GitHub organization name"
type: string
attributes:
repository.name:
description: "The full name of the GitHub repository"
type: string
branch.name:
description: "The name of the branch in a given repository"
type: string
metrics:
github.repository.count:
enabled: true
description: "Number of repositories that exist in an organization"
unit: 1
gauge:
value_type: int
attributes: []
github.branches.count:
enabled: true
description: "Number of branches that exist in the repository"
unit: 1
gauge:
value_type: int
attributes: [github.repo.name]
github.contributors.count:
enabled: true
description: "Total number of unique contributors to this repository"
unit: 1
gauge:
value_type: int
attributes: [github.repo.name]
github.branch.commits.count:
enabled: true
description: "The total number of commits on a given branch"
unit: 1
gauge:
value_type: int
attributes: [github.repo.name, github.repo.branch.name]
github.repo.branch.age:
enabled: true
description: "Total age of the open branches"
unit: 1
gauge:
value_type: int
attributes: [github.repo.name, github.repo.branch.name]
github.repo.prsMeanAge:
enabled: true
description: "The mean amount of time in hours that PRs have been open within a given repository."
unit: 1
gauge:
value_type: int
attributes: [github.repo]
github.repo.prsStdDev:
enabled: true
description: "The standard deviation of a the PR lifetimes"
unit: 1
gauge:
value_type: double
attributes: [github.repo]
github.repo.branchesMeanAge:
enabled: true
description: "The mean age of the branches in the repository"
unit: 1
gauge:
value_type: int
attributes: [github.repo]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment