Skip to content

Commit

Permalink
server config stats
Browse files Browse the repository at this point in the history
  • Loading branch information
naman47vyas committed Nov 14, 2024
1 parent bd03dc3 commit c4e660e
Show file tree
Hide file tree
Showing 11 changed files with 1,120 additions and 119 deletions.
120 changes: 120 additions & 0 deletions receiver/nginxreceiver/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,36 @@ Bytes sent by server zones
| ---- | ----------- | ------ |
| serverzone_name | The name of serverzone | Any Str |
### nginx.upstream.peers.backup
Whether upstream server is a backup server
| Unit | Metric Type | Value Type |
| ---- | ----------- | ---------- |
| {state} | Gauge | Int |
#### Attributes
| Name | Description | Values |
| ---- | ----------- | ------ |
| upstream_block_name | The name of the upstream block | Any Str |
| upstream_peer_address | The address f the upstream server | Any Str |
### nginx.upstream.peers.health_checks.last_passed
Boolean indicating if the last health check request was successful and passed tests.
| Unit | Metric Type | Value Type |
| ---- | ----------- | ---------- |
| {status} | Gauge | Int |
#### Attributes
| Name | Description | Values |
| ---- | ----------- | ------ |
| upstream_block_name | The name of the upstream block | Any Str |
| upstream_peer_address | The address f the upstream server | Any Str |
### nginx.upstream.peers.received
Bytes received from upstream servers
Expand Down Expand Up @@ -225,6 +255,81 @@ The average time to receive the last byte of data from this server.
| upstream_block_name | The name of the upstream block | Any Str |
| upstream_peer_address | The address f the upstream server | Any Str |
### nginx.upstream.peers.responses.1xx
Number of responses from upstream with 1xx status codes
| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
| ---- | ----------- | ---------- | ----------------------- | --------- |
| responses | Sum | Int | Cumulative | true |
#### Attributes
| Name | Description | Values |
| ---- | ----------- | ------ |
| upstream_block_name | The name of the upstream block | Any Str |
| upstream_peer_address | The address f the upstream server | Any Str |
### nginx.upstream.peers.responses.2xx
Number of responses from upstream with 2xx status codes
| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
| ---- | ----------- | ---------- | ----------------------- | --------- |
| responses | Sum | Int | Cumulative | true |
#### Attributes
| Name | Description | Values |
| ---- | ----------- | ------ |
| upstream_block_name | The name of the upstream block | Any Str |
| upstream_peer_address | The address f the upstream server | Any Str |
### nginx.upstream.peers.responses.3xx
Number of responses from upstream with 3xx status codes
| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
| ---- | ----------- | ---------- | ----------------------- | --------- |
| responses | Sum | Int | Cumulative | true |
#### Attributes
| Name | Description | Values |
| ---- | ----------- | ------ |
| upstream_block_name | The name of the upstream block | Any Str |
| upstream_peer_address | The address f the upstream server | Any Str |
### nginx.upstream.peers.responses.4xx
Number of responses from upstream with 4xx status codes
| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
| ---- | ----------- | ---------- | ----------------------- | --------- |
| responses | Sum | Int | Cumulative | true |
#### Attributes
| Name | Description | Values |
| ---- | ----------- | ------ |
| upstream_block_name | The name of the upstream block | Any Str |
| upstream_peer_address | The address f the upstream server | Any Str |
### nginx.upstream.peers.responses.5xx
Number of responses from upstream with 5xx status codes
| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
| ---- | ----------- | ---------- | ----------------------- | --------- |
| responses | Sum | Int | Cumulative | true |
#### Attributes
| Name | Description | Values |
| ---- | ----------- | ------ |
| upstream_block_name | The name of the upstream block | Any Str |
| upstream_peer_address | The address f the upstream server | Any Str |
### nginx.upstream.peers.sent
Bytes sent from upstream servers
Expand All @@ -239,3 +344,18 @@ Bytes sent from upstream servers
| ---- | ----------- | ------ |
| upstream_block_name | The name of the upstream block | Any Str |
| upstream_peer_address | The address f the upstream server | Any Str |
### nginx.upstream.peers.weight
Weight of upstream server
| Unit | Metric Type | Value Type |
| ---- | ----------- | ---------- |
| weight | Gauge | Double |
#### Attributes
| Name | Description | Values |
| ---- | ----------- | ------ |
| upstream_block_name | The name of the upstream block | Any Str |
| upstream_peer_address | The address f the upstream server | Any Str |
1 change: 0 additions & 1 deletion receiver/nginxreceiver/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ go 1.21.0

require (
github.com/google/go-cmp v0.6.0
github.com/nginxinc/nginx-prometheus-exporter v0.11.0
github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal v0.102.0
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/golden v0.102.0
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.102.0
Expand Down
2 changes: 0 additions & 2 deletions receiver/nginxreceiver/go.sum

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

70 changes: 51 additions & 19 deletions receiver/nginxreceiver/internal/metadata/generated_config.go

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

92 changes: 54 additions & 38 deletions receiver/nginxreceiver/internal/metadata/generated_config_test.go

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

Loading

0 comments on commit c4e660e

Please sign in to comment.