Skip to content

Commit

Permalink
add view attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanWamsley committed Jan 7, 2022
1 parent ac72012 commit 2cd020f
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 4 deletions.
3 changes: 2 additions & 1 deletion receiver/couchdbreceiver/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ These are the metrics available for this scraper.
| couchdb.httpd.bulk_requests | The number of bulk requests. | {requests} | Sum(Int) | <ul> </ul> |
| couchdb.httpd.requests | The number of HTTP requests by method. | {requests} | Sum(Int) | <ul> <li>http.method</li> </ul> |
| couchdb.httpd.responses | The number of each HTTP status code. | {responses} | Sum(Int) | <ul> <li>http.status_code</li> </ul> |
| couchdb.httpd.views | The number of views read. | {views} | Sum(Int) | <ul> </ul> |
| couchdb.httpd.views | The number of views read. | {views} | Sum(Int) | <ul> <li>view</li> </ul> |

## Attributes

Expand All @@ -25,3 +25,4 @@ These are the metrics available for this scraper.
| http.method | An HTTP request method. |
| http.status_code | An HTTP status code. |
| operation | The operation type. |
| view | The view type. |
29 changes: 26 additions & 3 deletions receiver/couchdbreceiver/internal/metadata/generated_metrics_v2.go

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

4 changes: 4 additions & 0 deletions receiver/couchdbreceiver/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ attributes:
enum: [ COPY, DELETE, GET, HEAD, OPTIONS, POST, PUT ]
http.status_code:
description: An HTTP status code.
view:
description: The view type.
enum: [ temporary_view_reads, view_reads ]
operation:
description: The operation type.
enum: [ writes, reads ]
Expand Down Expand Up @@ -53,6 +56,7 @@ metrics:
value_type: int
monotonic: true
aggregation: cumulative
attributes: [ view ]
couchdb.database.open:
enabled: true
description: The number of open databases.
Expand Down

0 comments on commit 2cd020f

Please sign in to comment.