Skip to content

Commit fec5543

Browse files
authored
[receiver/vcenter] Switches Over Metadata Configs Waiting for v0.100.0 Release (#32913)
**Description:** <Describe what has changed.> A number of configurations were disabled by default and had warnings that they were going to be enabled in v0.101.0 (1 metric had a warning that it was going to be removed). Now that v0.100.0 has been release, I have removed all of these warnings, and made the modifications that the warnings "warned" about. I have also updated the tests to reflect this. **Link to tracking Issue:** <Issue number if applicable> #32803 #32805 #32821 #32531 #32557 **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.
1 parent 497fed7 commit fec5543

14 files changed

+741
-3511
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Use this changelog template to create an entry for release notes.
2+
3+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
4+
change_type: enhancement
5+
6+
# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver)
7+
component: vcenterreceiver
8+
9+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
10+
note: Changing various default configurations for vcenterreceiver and removing warnings about future release.
11+
12+
# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
13+
issues: [32803, 32805, 32821, 32531, 32557]
14+
15+
# (Optional) One or more lines of additional information to render under the primary note.
16+
# These lines will be padded with 2 spaces and then inserted directly into the document.
17+
# Use pipe (|) for multiline entries.
18+
subtext: |
19+
The resource attributes that will now be enabled by default are `vcenter.datacenter.name`, `vcenter.virtual_app.name`,
20+
`vcenter.virtual_app.inventory_path`, `vcenter.vm_template.name`, and `vcenter.vm_template.id`. The metric
21+
`vcenter.cluster.memory.used` will be removed. The metrics `vcenter.cluster.vm_template.count` and
22+
`vcenter.vm.memory.utilization` will be enabled by default.
23+
24+
# If your change doesn't affect end users or the exported elements of any package,
25+
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label.
26+
# Optional: The change log or logs in which this entry should be included.
27+
# e.g. '[user]' or '[user, api]'
28+
# Include 'user' if the change is relevant to end users.
29+
# Include 'api' if there is a change to a library API.
30+
# Default: '[user]'
31+
change_logs: [user]

receiver/vcenterreceiver/documentation.md

Lines changed: 21 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,6 @@ The available memory of the cluster.
6060
| ---- | ----------- | ---------- | ----------------------- | --------- |
6161
| By | Sum | Int | Cumulative | false |
6262
63-
### vcenter.cluster.memory.used
64-
65-
The memory that is currently used by the cluster.
66-
67-
| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
68-
| ---- | ----------- | ---------- | ----------------------- | --------- |
69-
| By | Sum | Int | Cumulative | false |
70-
7163
### vcenter.cluster.vm.count
7264
7365
The number of virtual machines in the cluster.
@@ -82,6 +74,14 @@ The number of virtual machines in the cluster.
8274
| ---- | ----------- | ------ |
8375
| power_state | The current power state of the virtual machine. | Str: ``on``, ``off``, ``suspended`` |
8476
77+
### vcenter.cluster.vm_template.count
78+
79+
The number of virtual machine templates in the cluster.
80+
81+
| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
82+
| ---- | ----------- | ---------- | ----------------------- | --------- |
83+
| {virtual_machine_templates} | Sum | Int | Cumulative | false |
84+
8585
### vcenter.datastore.disk.usage
8686
8787
The amount of space in the datastore.
@@ -400,6 +400,14 @@ The amount of memory that is used by the virtual machine.
400400
| ---- | ----------- | ---------- | ----------------------- | --------- |
401401
| MiBy | Sum | Int | Cumulative | false |
402402
403+
### vcenter.vm.memory.utilization
404+
405+
The memory utilization of the VM.
406+
407+
| Unit | Metric Type | Value Type |
408+
| ---- | ----------- | ---------- |
409+
| % | Gauge | Double |
410+
403411
### vcenter.vm.network.packet.count
404412
405413
The amount of packets that was received or transmitted over the instance's network.
@@ -458,14 +466,6 @@ metrics:
458466
enabled: true
459467
```
460468
461-
### vcenter.cluster.vm_template.count
462-
463-
The number of virtual machine templates in the cluster.
464-
465-
| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
466-
| ---- | ----------- | ---------- | ----------------------- | --------- |
467-
| {virtual_machine_templates} | Sum | Int | Cumulative | false |
468-
469469
### vcenter.host.network.packet.error.rate
470470
471471
The rate of packet errors transmitted or received on the host network.
@@ -500,14 +500,6 @@ As measured over the most recent 20s interval.
500500
| direction | The direction of network throughput. | Str: ``transmitted``, ``received`` |
501501
| object | The object on the virtual machine or host that is being reported on. | Any Str |
502502
503-
### vcenter.vm.memory.utilization
504-
505-
The memory utilization of the VM.
506-
507-
| Unit | Metric Type | Value Type |
508-
| ---- | ----------- | ---------- |
509-
| % | Gauge | Double |
510-
511503
### vcenter.vm.network.packet.drop.rate
512504
513505
The rate of transmitted or received packets dropped by each vNIC (virtual network interface controller) on the virtual machine.
@@ -547,14 +539,14 @@ As measured over the most recent 20s interval.
547539
| Name | Description | Values | Enabled |
548540
| ---- | ----------- | ------ | ------- |
549541
| vcenter.cluster.name | The name of the vCenter cluster. | Any Str | true |
550-
| vcenter.datacenter.name | The name of the vCenter datacenter. | Any Str | false |
542+
| vcenter.datacenter.name | The name of the vCenter datacenter. | Any Str | true |
551543
| vcenter.datastore.name | The name of the vCenter datastore. | Any Str | true |
552544
| vcenter.host.name | The hostname of the vCenter ESXi host. | Any Str | true |
553545
| vcenter.resource_pool.inventory_path | The inventory path of the resource pool. | Any Str | true |
554546
| vcenter.resource_pool.name | The name of the resource pool. | Any Str | true |
555-
| vcenter.virtual_app.inventory_path | The inventory path of the vApp. | Any Str | false |
556-
| vcenter.virtual_app.name | The name of the vApp. | Any Str | false |
547+
| vcenter.virtual_app.inventory_path | The inventory path of the vApp. | Any Str | true |
548+
| vcenter.virtual_app.name | The name of the vApp. | Any Str | true |
557549
| vcenter.vm.id | The instance UUID of the virtual machine. | Any Str | true |
558550
| vcenter.vm.name | The name of the virtual machine. | Any Str | true |
559-
| vcenter.vm_template.id | The instance UUID of the virtual machine template. | Any Str | false |
560-
| vcenter.vm_template.name | The name of the virtual machine template. | Any Str | false |
551+
| vcenter.vm_template.id | The instance UUID of the virtual machine template. | Any Str | true |
552+
| vcenter.vm_template.name | The name of the virtual machine template. | Any Str | true |

receiver/vcenterreceiver/internal/metadata/generated_config.go

Lines changed: 7 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

receiver/vcenterreceiver/internal/metadata/generated_config_test.go

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

receiver/vcenterreceiver/internal/metadata/generated_metrics.go

Lines changed: 0 additions & 80 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)