Skip to content

Commit

Permalink
Updates OTEL version to v0.101.0.
Browse files Browse the repository at this point in the history
Updates vcenterreceiver and its many bug fixes and updates for use by Alloy.
Updates probabilisticsampleprocessor to use new failed_closed config.
  • Loading branch information
StefanKurek committed May 22, 2024
1 parent e3ef9d3 commit ef5d783
Show file tree
Hide file tree
Showing 13 changed files with 681 additions and 545 deletions.
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,33 @@ Main (unreleased)
- Added `scrape_protocols` option to `prometheus.scrape`, which allows to
control the preferred order of scrape protocols. (@thampiotr)

- Updates `processor/probabilistic_sampler` to use new `FailedClosed` field from OTEL release v0.101.0
(but with a default value of `false`). (@StefanKurek)

- Updates `receiver/vcenter` to use many new features and bugfixes introduces from OTEL releases
v0.100.0 and v0.101.0. Please see the release notes for more detailed descriptions here for
[v0.100.0](https://github.com/open-telemetry/opentelemetry-collector-contrib/releases/tag/v0.100.0)
and here [v0.101.0](https://github.com/open-telemetry/opentelemetry-collector-contrib/releases/tag/v0.101.0).
Changes that directly affected the configuration are as follows: (@StefanKurek)
- The resource attribute `vcenter.datacenter.name` has been added and enabled by default for all resource types.
- The resource attribute `vcenter.virtual_app.inventory_path` has been added and enabled by default to
differentiate between resource pools and virtual apps.
- The resource attribute `vcenter.virtual_app.name` has been added and enabled by default to differentiate
between resource pools and virtual apps.
- The resource attribute `vcenter.vm_template.id` has been added and enabled by default to differentiate between
virtual machines and virtual machine templates.
- The resource attribute `vcenter.vm_template.name` has been added and enabled by default to differentiate between
virtual machines and virtual machine templates.
- The metric `vcenter.cluster.memory.used` has been removed.
- The metric `vcenter.host.network.packet.count` has been hidden (removed from docs & disabled from default).
It has been replaced by a new metric `vcenter.host.network.packet.rate` that is enabled by default.
- The metric `vcenter.host.network.packet.errors` has been hidden (removed from docs & disabled from default).
It has been replaced by a new metric `vcenter.host.network.packet.error.rate` that is enabled by default.
- The metric `vcenter.vm.network.packet.count` has been hidden (removed from docs & disabled from default).
It has been replaced by a new metric `vcenter.vm.network.packet.rate` that is enabled by default.
- The metric `vcenter.vm.network.packet.drop.rate` has been added and enabled by default.
- The metric `vcenter.cluster.vm_template.count` has been added and enabled by default.

### Bugfixes

- Fix panic when component ID contains `/` in `otelcomponent.MustNewType(ID)`.(@qclaogui)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Name | Type | Description
----------------------|-----------|----------------------------------------------------------------------------------------------------------------------|-------------|---------
`hash_seed` | `uint32` | An integer used to compute the hash algorithm. | `0` | no
`sampling_percentage` | `float32` | Percentage of traces or logs sampled. | `0` | no
`fail_closed` | `bool` | Whether to reject items with sampling-related errors. | `false` | no
`attribute_source` | `string` | Defines where to look for the attribute in `from_attribute`. | `"traceID"` | no
`from_attribute` | `string` | The name of a log record attribute used for sampling purposes. | `""` | no
`sampling_priority` | `string` | The name of a log record attribute used to set a different sampling priority from the `sampling_percentage` setting. | `""` | no
Expand All @@ -45,6 +46,8 @@ It is also possible to leverage a different `hash_seed` at different collector t

`sampling_percentage` determines the percentage at which traces or logs are sampled. All traces or logs are sampled if you set this argument to a value greater than or equal to 100.

`fail_closed` determines whether items with sampling-related errors will be rejected.

`attribute_source` (logs only) determines where to look for the attribute in `from_attribute`. The allowed values are `traceID` or `record`.

`from_attribute` (logs only) determines the name of a log record attribute used for sampling purposes, such as a unique log record ID. The value of the attribute is only used if the trace ID is absent or if `attribute_source` is set to `record`.
Expand Down
16 changes: 11 additions & 5 deletions docs/sources/reference/components/otelcol.receiver.vcenter.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ Name | Type | Description | Default | Required
`vcenter.cluster.host.count` | [metric][] | Enables the `vcenter.cluster.host.count` metric. | `true` | no
`vcenter.cluster.memory.effective` | [metric][] | Enables the `vcenter.cluster.memory.effective` metric. | `true` | no
`vcenter.cluster.memory.limit` | [metric][] | Enables the `vcenter.cluster.memory.limit` metric. | `true` | no
`vcenter.cluster.memory.used` | [metric][] | Enables the `vcenter.cluster.memory.used` metric. | `true` | no
`vcenter.cluster.vm.count` | [metric][] | Enables the `vcenter.cluster.vm.count` metric. | `true` | no
`vcenter.cluster.vm_template.count` | [metric][] | Enables the `vcenter.cluster.vm_template.count` metric. | `true` | no
`vcenter.datastore.disk.usage` | [metric][] | Enables the `vcenter.datastore.disk.usage` metric. | `true` | no
`vcenter.datastore.disk.utilization` | [metric][] | Enables the `vcenter.datastore.disk.utilization` metric. | `true` | no
`vcenter.host.cpu.usage` | [metric][] | Enables the `vcenter.host.cpu.usage` metric. | `true` | no
Expand All @@ -112,8 +112,8 @@ Name | Type | Description | Default | Required
`vcenter.host.disk.throughput` | [metric][] | Enables the `vcenter.host.disk.throughput` metric. | `true` | no
`vcenter.host.memory.usage` | [metric][] | Enables the `vcenter.host.memory.usage` metric. | `true` | no
`vcenter.host.memory.utilization` | [metric][] | Enables the `vcenter.host.memory.utilization` metric. | `true` | no
`vcenter.host.network.packet.count` | [metric][] | Enables the `vcenter.host.network.packet.count` metric. | `true` | no
`vcenter.host.network.packet.errors` | [metric][] | Enables the `vcenter.host.network.packet.errors` metric. | `true` | no
`vcenter.host.network.packet.rate` | [metric][] | Enables the `vcenter.host.network.packet.rate` metric. | `true` | no
`vcenter.host.network.packet.error.rate` | [metric][] | Enables the `vcenter.host.network.packet.error.rate` metric. | `true` | no
`vcenter.host.network.throughput` | [metric][] | Enables the `vcenter.host.network.throughput` metric. | `true` | no
`vcenter.host.network.usage` | [metric][] | Enables the `vcenter.host.network.usage` metric. | `true` | no
`vcenter.resource_pool.cpu.shares` | [metric][] | Enables the `vcenter.resource_pool.cpu.shares` metric. | `true` | no
Expand All @@ -131,8 +131,9 @@ Name | Type | Description | Default | Required
`vcenter.vm.memory.swapped` | [metric][] | Enables the `vcenter.vm.memory.swapped` metric. | `true` | no
`vcenter.vm.memory.swapped_ssd` | [metric][] | Enables the `vcenter.vm.memory.swapped_ssd` metric. | `true` | no
`vcenter.vm.memory.usage` | [metric][] | Enables the `vcenter.vm.memory.usage` metric. | `true` | no
`vcenter.vm.memory.utilization` | [metric][] | Enables the `vcenter.vm.memory.utilization` metric. | `false` | no
`vcenter.vm.network.packet.count` | [metric][] | Enables the `vcenter.vm.network.packet.count` metric. | `true` | no
`vcenter.vm.memory.utilization` | [metric][] | Enables the `vcenter.vm.memory.utilization` metric. | `true` | no
`vcenter.vm.network.packet.rate` | [metric][] | Enables the `vcenter.vm.network.packet.rate` metric. | `true` | no
`vcenter.vm.network.packet.drop.rate` | [metric][] | Enables the `vcenter.vm.network.packet.drop.rate` metric. | `true` | no
`vcenter.vm.network.throughput` | [metric][] | Enables the `vcenter.vm.network.throughput` metric. | `true` | no
`vcenter.vm.network.usage` | [metric][] | Enables the `vcenter.vm.network.usage` metric. | `true` | no

Expand All @@ -149,13 +150,18 @@ Name | Type | Description | Default | Required

Name | Type | Description | Default | Required
---- | ---- | ----------- | ------- | --------
`vcenter.datacenter.name` | [resource_attribute][] | Enables the `vcenter.datacenter.name` resource attribute. | `true` | no
`vcenter.cluster.name` | [resource_attribute][] | Enables the `vcenter.cluster.name` resource attribute. | `true` | no
`vcenter.datastore.name` | [resource_attribute][] | Enables the `vcenter.cluster.resource_pool` resource attribute. | `true` | no
`vcenter.host.name` | [resource_attribute][] | Enables the `vcenter.host.name` resource attribute. | `true` | no
`vcenter.resource_pool.inventory_path` | [resource_attribute][] | Enables the `vcenter.resource_pool.inventory_path` resource attribute. | `true` | no
`vcenter.resource_pool.name` | [resource_attribute][] | Enables the `vcenter.resource_pool.name` resource attribute. | `true` | no
`vcenter.virtual_app.inventory_path` | [resource_attribute][] | Enables the `vcenter.virtual_app.inventory_path` resource attribute. | `true` | no
`vcenter.virtual_app.name` | [resource_attribute][] | Enables the `vcenter.virtual_app.name` resource attribute. | `true` | no
`vcenter.vm.id` | [resource_attribute][] | Enables the `vcenter.vm.id` resource attribute. | `true` | no
`vcenter.vm.name` | [resource_attribute][] | Enables the `vcenter.vm.name` resource attribute. | `true` | no
`vcenter.vm_template.id` | [resource_attribute][] | Enables the `vcenter.vm_template.id` resource attribute. | `true` | no
`vcenter.vm_template.name` | [resource_attribute][] | Enables the `vcenter.vm_template.name` resource attribute. | `true` | no

[resource_attribute]: #resource_attribute-block

Expand Down
Loading

0 comments on commit ef5d783

Please sign in to comment.