Skip to content

Commit

Permalink
[receiver/gitproviderreceiver] add branch age and commit metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
adrielp committed Apr 30, 2024
1 parent 3ad0294 commit a4cce65
Show file tree
Hide file tree
Showing 7 changed files with 346 additions and 4 deletions.
45 changes: 45 additions & 0 deletions receiver/gitproviderreceiver/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,36 @@ metrics:
enabled: false
```
### git.repository.branch.commit.aheadby_count
Number of commits a branch is ahead of the default branch.
| Unit | Metric Type | Value Type |
| ---- | ----------- | ---------- |
| {branch} | Gauge | Int |
#### Attributes
| Name | Description | Values |
| ---- | ----------- | ------ |
| repository.name | The name of a Git repository | Any Str |
| branch.name | The name of a Git branch | Any Str |
### git.repository.branch.commit.behindby_count
Number of commits a branch is behing the default branch.
| Unit | Metric Type | Value Type |
| ---- | ----------- | ---------- |
| {branch} | Gauge | Int |
#### Attributes
| Name | Description | Values |
| ---- | ----------- | ------ |
| repository.name | The name of a Git repository | Any Str |
| branch.name | The name of a Git branch | Any Str |
### git.repository.branch.count
Number of branches in a repository
Expand All @@ -26,6 +56,21 @@ Number of branches in a repository
| ---- | ----------- | ------ |
| repository.name | The name of a Git repository | Any Str |
### git.repository.branch.time
Time the branch has existed.
| Unit | Metric Type | Value Type |
| ---- | ----------- | ---------- |
| {branch} | Gauge | Int |
#### Attributes
| Name | Description | Values |
| ---- | ----------- | ------ |
| repository.name | The name of a Git repository | Any Str |
| branch.name | The name of a Git branch | Any Str |
### git.repository.count
Number of repositories in an organization
Expand Down
12 changes: 12 additions & 0 deletions receiver/gitproviderreceiver/internal/metadata/generated_config.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

188 changes: 184 additions & 4 deletions receiver/gitproviderreceiver/internal/metadata/generated_metrics.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a4cce65

Please sign in to comment.