Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Age 66/nginx integration #99

Merged
merged 9 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion receiver/nginxreceiver/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
| Issues | [![Open issues](https://img.shields.io/github/issues-search/open-telemetry/opentelemetry-collector-contrib?query=is%3Aissue%20is%3Aopen%20label%3Areceiver%2Fnginx%20&label=open&color=orange&logo=opentelemetry)](https://github.com/open-telemetry/opentelemetry-collector-contrib/issues?q=is%3Aopen+is%3Aissue+label%3Areceiver%2Fnginx) [![Closed issues](https://img.shields.io/github/issues-search/open-telemetry/opentelemetry-collector-contrib?query=is%3Aissue%20is%3Aclosed%20label%3Areceiver%2Fnginx%20&label=closed&color=blue&logo=opentelemetry)](https://github.com/open-telemetry/opentelemetry-collector-contrib/issues?q=is%3Aclosed+is%3Aissue+label%3Areceiver%2Fnginx) |
| [Code Owners](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/CONTRIBUTING.md#becoming-a-code-owner) | [@djaglowski](https://www.github.com/djaglowski) |

[beta]: https://github.com/open-telemetry/opentelemetry-collector/blob/main/docs/component-stability.md#beta
[beta]: https://github.com/open-telemetry/opentelemetry-collector#beta
[contrib]: https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions/otelcol-contrib
<!-- end autogenerated section -->

Expand Down
2 changes: 2 additions & 0 deletions receiver/nginxreceiver/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ type Config struct {
scraperhelper.ControllerConfig `mapstructure:",squash"`
confighttp.ClientConfig `mapstructure:",squash"`
MetricsBuilderConfig metadata.MetricsBuilderConfig `mapstructure:",squash"`

VTSEndpoint string `mapstructure:"vts_endpoint"`
}
310 changes: 310 additions & 0 deletions receiver/nginxreceiver/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,320 @@ The total number of handled connections. Generally, the parameter value is the s
| ---- | ----------- | ---------- | ----------------------- | --------- |
| connections | Sum | Int | Cumulative | true |

### nginx.load_timestamp

Time of the last reload of configuration (time since Epoch).

| Unit | Metric Type | Value Type |
| ---- | ----------- | ---------- |
| ms | Gauge | Int |

### nginx.net.reading

Current number of connections where NGINX is reading the request header

| Unit | Metric Type | Value Type |
| ---- | ----------- | ---------- |
| connections | Gauge | Int |

### nginx.net.waiting

Current number of connections where NGINX is waiting the response back to the client

| Unit | Metric Type | Value Type |
| ---- | ----------- | ---------- |
| connections | Gauge | Int |

### nginx.net.writing

Current number of connections where NGINX is writing the response back to the client

| Unit | Metric Type | Value Type |
| ---- | ----------- | ---------- |
| connections | Gauge | Int |

### nginx.requests

Total number of requests made to the server since it started

| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
| ---- | ----------- | ---------- | ----------------------- | --------- |
| requests | Sum | Int | Cumulative | true |

### nginx.server_zone.received

Bytes received by server zones

| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
| ---- | ----------- | ---------- | ----------------------- | --------- |
| By | Sum | Int | Cumulative | true |

#### Attributes

| Name | Description | Values |
| ---- | ----------- | ------ |
| serverzone_name | The name of serverzone | Any Str |

### nginx.server_zone.responses.1xx

The number of responses with 1xx status code.

| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
| ---- | ----------- | ---------- | ----------------------- | --------- |
| response | Sum | Int | Cumulative | true |

#### Attributes

| Name | Description | Values |
| ---- | ----------- | ------ |
| serverzone_name | The name of serverzone | Any Str |

### nginx.server_zone.responses.2xx

The number of responses with 2xx status code.

| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
| ---- | ----------- | ---------- | ----------------------- | --------- |
| response | Sum | Int | Cumulative | true |

#### Attributes

| Name | Description | Values |
| ---- | ----------- | ------ |
| serverzone_name | The name of serverzone | Any Str |

### nginx.server_zone.responses.3xx

The number of responses with 3xx status code.

| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
| ---- | ----------- | ---------- | ----------------------- | --------- |
| response | Sum | Int | Cumulative | true |

#### Attributes

| Name | Description | Values |
| ---- | ----------- | ------ |
| serverzone_name | The name of serverzone | Any Str |

### nginx.server_zone.responses.4xx

The number of responses with 4xx status code.

| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
| ---- | ----------- | ---------- | ----------------------- | --------- |
| response | Sum | Int | Cumulative | true |

#### Attributes

| Name | Description | Values |
| ---- | ----------- | ------ |
| serverzone_name | The name of serverzone | Any Str |

### nginx.server_zone.responses.5xx

The number of responses with 5xx status code.

| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
| ---- | ----------- | ---------- | ----------------------- | --------- |
| response | Sum | Int | Cumulative | true |

#### Attributes

| Name | Description | Values |
| ---- | ----------- | ------ |
| serverzone_name | The name of serverzone | Any Str |

### nginx.server_zone.sent

Bytes sent by server zones

| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
| ---- | ----------- | ---------- | ----------------------- | --------- |
| By | Sum | Int | Cumulative | true |

#### Attributes

| Name | Description | Values |
| ---- | ----------- | ------ |
| 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

| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
| ---- | ----------- | ---------- | ----------------------- | --------- |
| By | 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.requests

Number of requests made to upstream servers

| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
| ---- | ----------- | ---------- | ----------------------- | --------- |
| requests | 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.response_time

The average time to receive the last byte of data from this server.

| Unit | Metric Type | Value Type |
| ---- | ----------- | ---------- |
| ms | 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.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

| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
| ---- | ----------- | ---------- | ----------------------- | --------- |
| By | 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.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 |
14 changes: 7 additions & 7 deletions receiver/nginxreceiver/generated_component_test.go

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

3 changes: 1 addition & 2 deletions receiver/nginxreceiver/generated_package_test.go

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

Loading
Loading