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

Update vmware_exporter.py #328

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion vmware_exporter/vmware_exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1423,6 +1423,8 @@ def _vmware_get_host_perf_manager_metrics(self, host_metrics):
'cpu.used.summation',
'disk.read.average',
'disk.write.average',
'disk.deviceReadLatency.average',
'disk.deviceWriteLatency.average',
'mem.active.average',
'mem.latency.average',
'mem.swapin.average',
Expand All @@ -1437,6 +1439,10 @@ def _vmware_get_host_perf_manager_metrics(self, host_metrics):
'net.errorsRx.summation',
'net.errorsTx.summation',
'net.usage.average',
'storageAdapter.totalReadLatency.average',
'storageAdapter.totalWriteLatency.average',
'datastore.datastoreNormalReadLatency.latest',
'datastore.datastoreNormalWriteLatency.latest',
]

# Prepare gauges
Expand All @@ -1455,7 +1461,7 @@ def _vmware_get_host_perf_manager_metrics(self, host_metrics):
counter_key = counter_info[perf_metric]
metrics.append(vim.PerformanceManager.MetricId(
counterId=counter_key,
instance=''
instance='*'
))
metric_names[counter_key] = perf_metric_name

Expand Down