Skip to content

Commit

Permalink
[cicd] change instrument from gauge to updowncounter
Browse files Browse the repository at this point in the history
for vcs.repository.change.count
and vcs.repository.ref.count
  • Loading branch information
christophe-kamphaus-jemmic committed Sep 15, 2024
1 parent c232041 commit aab9f90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/cicd/cicd-metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ but more may be added in the future.

| Name | Instrument Type | Unit (UCUM) | Description | Stability |
| -------- | --------------- | ----------- | -------------- | --------- |
| `vcs.repository.change.count` | Gauge | `{change}` | The number of changes (pull requests) in a repository, categorized by their state (either open or merged) | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
| `vcs.repository.change.count` | UpDownCounter | `{change}` | The number of changes (pull requests) in a repository, categorized by their state (either open or merged) | ![Experimental](https://img.shields.io/badge/-experimental-blue) |


<!-- markdownlint-restore -->
Expand Down Expand Up @@ -205,7 +205,7 @@ but more may be added in the future.

| Name | Instrument Type | Unit (UCUM) | Description | Stability |
| -------- | --------------- | ----------- | -------------- | --------- |
| `vcs.repository.ref.count` | Gauge | `{ref}` | The number of refs of type branch or tag in a repository | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
| `vcs.repository.ref.count` | UpDownCounter | `{ref}` | The number of refs of type branch or tag in a repository | ![Experimental](https://img.shields.io/badge/-experimental-blue) |


<!-- markdownlint-restore -->
Expand Down
4 changes: 2 additions & 2 deletions model/metrics/vcs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ groups:
type: metric
metric_name: vcs.repository.change.count
brief: 'The number of changes (pull requests) in a repository, categorized by their state (either open or merged)'
instrument: gauge
instrument: updowncounter
unit: "{change}"
stability: experimental
#extends: metric_attributes.vcs
Expand Down Expand Up @@ -50,7 +50,7 @@ groups:
type: metric
metric_name: vcs.repository.ref.count
brief: 'The number of refs of type branch or tag in a repository'
instrument: gauge
instrument: updowncounter
unit: "{ref}"
stability: experimental
attributes:
Expand Down

0 comments on commit aab9f90

Please sign in to comment.