Skip to content

[receiver/vcenter] The function of disabling metrics does not work #38489

@fisherdept

Description

@fisherdept

Component(s)

receiver/vcenter

Describe the issue you're reporting

I'am used grafana alloy, component otelcol.receiver.vcenter. The function of disabling metrics does not work.

My config:

otelcol.receiver.vcenter "vc16" {
	endpoint            = "https://vc16.local"
	username            = "[email protected]"
	password            = sys.env("VC_16")
	collection_interval = "15s"
	metrics {
            vcenter.cluster.vsan.congestions {enabled = false}
            vcenter.cluster.vsan.latency.avg {enabled = false}
            vcenter.cluster.vsan.operations {enabled = false}
            vcenter.cluster.vsan.throughput {enabled = false}
            vcenter.host.vsan.cache.hit_rate {enabled = false}
            vcenter.host.vsan.congestions {enabled = false}
            vcenter.host.vsan.latency.avg {enabled = false}
            vcenter.host.vsan.operations {enabled = false}
            vcenter.host.vsan.throughput {enabled = false}
            vcenter.vm.vsan.latency.avg {enabled = false}
            vcenter.vm.vsan.operations {enabled = false}
            vcenter.vm.vsan.throughput {enabled = false}
        }

	tls {
		insecure_skip_verify = true
	}

	output {
		metrics = [otelcol.processor.batch.default.input]
	}
}

Debug output:
{"ts":"2025-03-10T07:40:00.495224042Z","level":"info","msg":"couldn't determine UUID necessary for vSAN metrics for cluster VC16-CL","component_path":"/","component_id":"otelcol.receiver.vcenter.vc16"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions