Skip to content

Commit

Permalink
fix: fixed branch data bug and fixed diff metrics(#101)
Browse files Browse the repository at this point in the history
* fix: fix com count value in getCommitData

* fix: update metadata metrics and change to separate behind and aheadby

* fix: moved branch variables so they are reset for each repo

* chore: fix linting issue and remove comments

---------

Co-authored-by: Adriel Perkins <adrielp@liatrio.com>
Co-authored-by: rhoofard <Ryan.Hoofard@blueyonder.com>
  • Loading branch information
3 people authored Sep 7, 2023
1 parent 90a478a commit 874b5b0
Show file tree
Hide file tree
Showing 8 changed files with 193 additions and 70 deletions.
23 changes: 19 additions & 4 deletions pkg/receiver/gitproviderreceiver/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ metrics:
enabled: false
```
### git.repository.branch.count
### git.repository.branch.commit.aheadby.count
Number of branches that exist in the repository
Number of commits the branch is ahead of the default branch
| Unit | Metric Type | Value Type |
| ---- | ----------- | ---------- |
Expand All @@ -25,10 +25,11 @@ Number of branches that exist in the repository
| Name | Description | Values |
| ---- | ----------- | ------ |
| repository.name | The full name of the Git repository | Any Str |
| branch.name | The name of the branch in a given repository | Any Str |
### git.repository.branch.diff
### git.repository.branch.commit.behindby.count
Difference in commits between the branch and main
Number of commits the branch is behind the default branch
| Unit | Metric Type | Value Type |
| ---- | ----------- | ---------- |
Expand All @@ -41,6 +42,20 @@ Difference in commits between the branch and main
| repository.name | The full name of the Git repository | Any Str |
| branch.name | The name of the branch in a given repository | Any Str |
### git.repository.branch.count
Number of branches that exist in the repository
| Unit | Metric Type | Value Type |
| ---- | ----------- | ---------- |
| 1 | Gauge | Int |
#### Attributes
| Name | Description | Values |
| ---- | ----------- | ------ |
| repository.name | The full name of the Git repository | Any Str |
### git.repository.branch.time
Time the branch has existed
Expand Down

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.

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

Loading

0 comments on commit 874b5b0

Please sign in to comment.