Skip to content

Commit

Permalink
[receiver/vcenter] Adds Replacement Packet Metrics (open-telemetry#32876
Browse files Browse the repository at this point in the history
)

**Description:** <Describe what has changed.>
Adds new rate packet metrics which correctly report as per second rates
(avg over 20s).

Adds warnings for existing packet metrics that they will be removed in
v0.102.0.

**Link to tracking Issue:** <Issue number if applicable>
open-telemetry#32835 

**Testing:** <Describe what testing was performed and which tests were
added.>
Unit/integration tests updated and tested. Local environment tested.

**Documentation:** <Describe the documentation added.>
New documentation generated based on the metadata.
  • Loading branch information
StefanKurek authored May 7, 2024
1 parent efbf721 commit a28ca6e
Show file tree
Hide file tree
Showing 11 changed files with 3,550 additions and 711 deletions.
27 changes: 27 additions & 0 deletions .chloggen/fix_vcenter-vm-add-disk-metric copy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Use this changelog template to create an entry for release notes.

# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
change_type: bug_fix

# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver)
component: vcenterreceiver

# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: "Adds inititially disabled new packet rate metrics to replace the existing ones for VMs & Hosts."

# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
issues: [32835]

# (Optional) One or more lines of additional information to render under the primary note.
# These lines will be padded with 2 spaces and then inserted directly into the document.
# Use pipe (|) for multiline entries.
subtext:

# If your change doesn't affect end users or the exported elements of any package,
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label.
# Optional: The change log or logs in which this entry should be included.
# e.g. '[user]' or '[user, api]'
# Include 'user' if the change is relevant to end users.
# Include 'api' if there is a change to a library API.
# Default: '[user]'
change_logs: [user]
51 changes: 51 additions & 0 deletions receiver/vcenterreceiver/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,40 @@ The number of virtual machine templates in the cluster.
| ---- | ----------- | ---------- | ----------------------- | --------- |
| {virtual_machine_templates} | Sum | Int | Cumulative | false |
### vcenter.host.network.packet.error.rate
The rate of packet errors transmitted or received on the host network.
As measured over the most recent 20s interval.
| Unit | Metric Type | Value Type |
| ---- | ----------- | ---------- |
| {errors/sec} | Gauge | Double |
#### Attributes
| Name | Description | Values |
| ---- | ----------- | ------ |
| direction | The direction of network throughput. | Str: ``transmitted``, ``received`` |
| object | The object on the virtual machine or host that is being reported on. | Any Str |
### vcenter.host.network.packet.rate
The rate of packets transmitted or received across each physical NIC (network interface controller) instance on the host.
As measured over the most recent 20s interval.
| Unit | Metric Type | Value Type |
| ---- | ----------- | ---------- |
| {packets/sec} | Gauge | Double |
#### Attributes
| Name | Description | Values |
| ---- | ----------- | ------ |
| direction | The direction of network throughput. | Str: ``transmitted``, ``received`` |
| object | The object on the virtual machine or host that is being reported on. | Any Str |
### vcenter.vm.memory.utilization
The memory utilization of the VM.
Expand All @@ -474,6 +508,23 @@ The memory utilization of the VM.
| ---- | ----------- | ---------- |
| % | Gauge | Double |
### vcenter.vm.network.packet.rate
The rate of packets transmitted or received by each vNIC (virtual network interface controller) on the virtual machine.
As measured over the most recent 20s interval.
| Unit | Metric Type | Value Type |
| ---- | ----------- | ---------- |
| {packets/sec} | Gauge | Double |
#### Attributes
| Name | Description | Values |
| ---- | ----------- | ------ |
| direction | The direction of network throughput. | Str: ``transmitted``, ``received`` |
| object | The object on the virtual machine or host that is being reported on. | Any Str |
## Resource Attributes
| Name | Description | Values | Enabled |
Expand Down
92 changes: 52 additions & 40 deletions receiver/vcenterreceiver/internal/metadata/generated_config.go

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

Loading

0 comments on commit a28ca6e

Please sign in to comment.