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

fix(inputs.vsphere): Add tags to VSAN ESA disks #15960

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jaymzmac
Copy link

@jaymzmac jaymzmac commented Oct 1, 2024

Some VSAN metrics e.g. "vsan-esa-disk-layer" and "vsan-esa-disk-scsifw" are missing "hostname" and "devicename" tags.

Fixes: #15938

@telegraf-tiger telegraf-tiger bot added area/vsphere fix pr to fix corresponding bug plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins labels Oct 1, 2024
@telegraf-tiger
Copy link
Contributor

telegraf-tiger bot commented Oct 1, 2024

Copy link
Member

@srebhan srebhan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jaymzmac thank you for your contribution! Just a request to document the invalid SSD-UUID for ESA disks in the code...

@@ -440,8 +441,10 @@ func populateCMMDSTags(tags map[string]string, entityName, uuid string, cmmds ma
newTags["hostname"] = host.Content.Hostname
}
newTags["devicename"] = e.Content.DevName
if int(e.Content.IsSsd) == 0 {
newTags["ssduuid"] = e.Content.SsdUUID
if !(strings.Contains(entityName, "-esa-")) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please add a comment to the code noting that the ssduuid is invalid for esa disks? If possible, add a link to a VSphere document describing that fact...

@srebhan srebhan self-assigned this Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/vsphere fix pr to fix corresponding bug plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins
Projects
None yet
Development

Successfully merging this pull request may close these issues.

vSphere Plugin - VSAN ESA disk performance metrics missing hostname & devicename tags
2 participants