| 1 |
#!/usr/bin/python |
| 2 |
# -*- coding: utf-8 -*- |
| 3 |
# Copyright: (c) 2021, Ansible Project |
| 4 |
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) |
| 5 |
# template: header.j2 |
| 6 |
# This module is autogenerated using the ansible.content_builder. |
| 7 |
# See: https://github.com/ansible-community/ansible.content_builder |
| 8 |
|
| 9 |
|
| 10 |
DOCUMENTATION = r""" |
| 11 |
module: appliance_monitoring_info |
| 12 |
short_description: Get monitored item info |
| 13 |
description: Get monitored item info |
| 14 |
options: |
| 15 |
session_timeout: |
| 16 |
description: |
| 17 |
- 'Timeout settings for client session. ' |
| 18 |
- 'The maximal number of seconds for the whole operation including connection |
| 19 |
establishment, request sending and response. ' |
| 20 |
- The default value is 300s. |
| 21 |
type: float |
| 22 |
version_added: 2.1.0 |
| 23 |
stat_id: |
| 24 |
description: |
| 25 |
- statistic item id |
| 26 |
- The parameter must be the id of a resource returned by M(vmware.vmware_rest.appliance_monitoring_info). |
| 27 |
Required with I(state=['get']) |
| 28 |
type: str |
| 29 |
vcenter_hostname: |
| 30 |
description: |
| 31 |
- The hostname or IP address of the vSphere vCenter |
| 32 |
- If the value is not specified in the task, the value of environment variable |
| 33 |
C(VMWARE_HOST) will be used instead. |
| 34 |
required: true |
| 35 |
type: str |
| 36 |
vcenter_password: |
| 37 |
description: |
| 38 |
- The vSphere vCenter password |
| 39 |
- If the value is not specified in the task, the value of environment variable |
| 40 |
C(VMWARE_PASSWORD) will be used instead. |
| 41 |
required: true |
| 42 |
type: str |
| 43 |
vcenter_rest_log_file: |
| 44 |
description: |
| 45 |
- 'You can use this optional parameter to set the location of a log file. ' |
| 46 |
- 'This file will be used to record the HTTP REST interaction. ' |
| 47 |
- 'The file will be stored on the host that runs the module. ' |
| 48 |
- 'If the value is not specified in the task, the value of ' |
| 49 |
- environment variable C(VMWARE_REST_LOG_FILE) will be used instead. |
| 50 |
type: str |
| 51 |
vcenter_username: |
| 52 |
description: |
| 53 |
- The vSphere vCenter username |
| 54 |
- If the value is not specified in the task, the value of environment variable |
| 55 |
C(VMWARE_USER) will be used instead. |
| 56 |
required: true |
| 57 |
type: str |
| 58 |
vcenter_validate_certs: |
| 59 |
default: true |
| 60 |
description: |
| 61 |
- Allows connection when SSL certificates are not valid. Set to C(false) when |
| 62 |
certificates are not trusted. |
| 63 |
- If the value is not specified in the task, the value of environment variable |
| 64 |
C(VMWARE_VALIDATE_CERTS) will be used instead. |
| 65 |
type: bool |
| 66 |
author: |
| 67 |
- Ansible Cloud Team (@ansible-collections) |
| 68 |
version_added: 2.0.0 |
| 69 |
requirements: |
| 70 |
- vSphere 7.0.3 or greater |
| 71 |
- python >= 3.6 |
| 72 |
- aiohttp |
| 73 |
notes: |
| 74 |
- Tested on vSphere 7.0.3 |
| 75 |
""" |
| 76 |
|
| 77 |
EXAMPLES = r""" |
| 78 |
- name: Get the list of the monitored items |
| 79 |
vmware.vmware_rest.appliance_monitoring_info: |
| 80 |
register: result |
| 81 |
""" |
| 82 |
RETURN = r""" |
| 83 |
# content generated by the update_return_section callback# task: Get the list of the monitored items |
| 84 |
value: |
| 85 |
description: Get the list of the monitored items |
| 86 |
returned: On success |
| 87 |
sample: |
| 88 |
- category: com.vmware.applmgmt.mon.cat.disk |
| 89 |
description: com.vmware.applmgmt.mon.descr.disk.read.rate.dm-1 |
| 90 |
id: disk.read.rate.dm-1 |
| 91 |
instance: dm-1 |
| 92 |
name: com.vmware.applmgmt.mon.name.disk.read.rate.dm-1 |
| 93 |
units: com.vmware.applmgmt.mon.unit.num_of_io_per_msec |
| 94 |
- category: com.vmware.applmgmt.mon.cat.disk |
| 95 |
description: com.vmware.applmgmt.mon.descr.disk.read.rate.dm-10 |
| 96 |
id: disk.read.rate.dm-10 |
| 97 |
instance: dm-10 |
| 98 |
name: com.vmware.applmgmt.mon.name.disk.read.rate.dm-10 |
| 99 |
units: com.vmware.applmgmt.mon.unit.num_of_io_per_msec |
| 100 |
- category: com.vmware.applmgmt.mon.cat.disk |
| 101 |
description: com.vmware.applmgmt.mon.descr.disk.read.rate.dm-11 |
| 102 |
id: disk.read.rate.dm-11 |
| 103 |
instance: dm-11 |
| 104 |
name: com.vmware.applmgmt.mon.name.disk.read.rate.dm-11 |
| 105 |
units: com.vmware.applmgmt.mon.unit.num_of_io_per_msec |
| 106 |
- category: com.vmware.applmgmt.mon.cat.disk |
| 107 |
description: com.vmware.applmgmt.mon.descr.disk.read.rate.dm-12 |
| 108 |
id: disk.read.rate.dm-12 |
| 109 |
instance: dm-12 |
| 110 |
name: com.vmware.applmgmt.mon.name.disk.read.rate.dm-12 |
| 111 |
units: com.vmware.applmgmt.mon.unit.num_of_io_per_msec |
| 112 |
- category: com.vmware.applmgmt.mon.cat.disk |
| 113 |
description: com.vmware.applmgmt.mon.descr.disk.read.rate.dm-13 |
| 114 |
id: disk.read.rate.dm-13 |
| 115 |
instance: dm-13 |
| 116 |
name: com.vmware.applmgmt.mon.name.disk.read.rate.dm-13 |
| 117 |
units: com.vmware.applmgmt.mon.unit.num_of_io_per_msec |
| 118 |
- category: com.vmware.applmgmt.mon.cat.disk |
| 119 |
description: com.vmware.applmgmt.mon.descr.disk.read.rate.dm-14 |
| 120 |
id: disk.read.rate.dm-14 |
| 121 |
instance: dm-14 |
| 122 |
name: com.vmware.applmgmt.mon.name.disk.read.rate.dm-14 |
| 123 |
units: com.vmware.applmgmt.mon.unit.num_of_io_per_msec |
| 124 |
- category: com.vmware.applmgmt.mon.cat.disk |
| 125 |
description: com.vmware.applmgmt.mon.descr.disk.read.rate.dm-15 |
| 126 |
id: disk.read.rate.dm-15 |
| 127 |
instance: dm-15 |
| 128 |
name: com.vmware.applmgmt.mon.name.disk.read.rate.dm-15 |
| 129 |
units: com.vmware.applmgmt.mon.unit.num_of_io_per_msec |
| 130 |
- category: com.vmware.applmgmt.mon.cat.disk |
| 131 |
description: com.vmware.applmgmt.mon.descr.disk.read.rate.dm-2 |
| 132 |
id: disk.read.rate.dm-2 |
| 133 |
instance: dm-2 |
| 134 |
name: com.vmware.applmgmt.mon.name.disk.read.rate.dm-2 |
| 135 |
units: com.vmware.applmgmt.mon.unit.num_of_io_per_msec |
| 136 |
- category: com.vmware.applmgmt.mon.cat.disk |
| 137 |
description: com.vmware.applmgmt.mon.descr.disk.read.rate.dm-3 |
| 138 |
id: disk.read.rate.dm-3 |
| 139 |
instance: dm-3 |
| 140 |
name: com.vmware.applmgmt.mon.name.disk.read.rate.dm-3 |
| 141 |
units: com.vmware.applmgmt.mon.unit.num_of_io_per_msec |
| 142 |
- category: com.vmware.applmgmt.mon.cat.disk |
| 143 |
description: com.vmware.applmgmt.mon.descr.disk.read.rate.dm-4 |
| 144 |
id: disk.read.rate.dm-4 |
| 145 |
instance: dm-4 |
| 146 |
name: com.vmware.applmgmt.mon.name.disk.read.rate.dm-4 |
| 147 |
units: com.vmware.applmgmt.mon.unit.num_of_io_per_msec |
| 148 |
- category: com.vmware.applmgmt.mon.cat.disk |
| 149 |
description: com.vmware.applmgmt.mon.descr.disk.read.rate.dm-5 |
| 150 |
id: disk.read.rate.dm-5 |
| 151 |
instance: dm-5 |
| 152 |
name: com.vmware.applmgmt.mon.name.disk.read.rate.dm-5 |
| 153 |
units: com.vmware.applmgmt.mon.unit.num_of_io_per_msec |
| 154 |
- category: com.vmware.applmgmt.mon.cat.disk |
| 155 |
description: com.vmware.applmgmt.mon.descr.disk.read.rate.dm-6 |
| 156 |
id: disk.read.rate.dm-6 |
| 157 |
instance: dm-6 |
| 158 |
name: com.vmware.applmgmt.mon.name.disk.read.rate.dm-6 |
| 159 |
units: com.vmware.applmgmt.mon.unit.num_of_io_per_msec |
| 160 |
- category: com.vmware.applmgmt.mon.cat.disk |
| 161 |
description: com.vmware.applmgmt.mon.descr.disk.read.rate.dm-7 |
| 162 |
id: disk.read.rate.dm-7 |
| 163 |
instance: dm-7 |
| 164 |
name: com.vmware.applmgmt.mon.name.disk.read.rate.dm-7 |
| 165 |
units: com.vmware.applmgmt.mon.unit.num_of_io_per_msec |
| 166 |
- category: com.vmware.applmgmt.mon.cat.disk |
| 167 |
description: com.vmware.applmgmt.mon.descr.disk.read.rate.dm-8 |
| 168 |
id: disk.read.rate.dm-8 |
| 169 |
instance: dm-8 |
| 170 |
name: com.vmware.applmgmt.mon.name.disk.read.rate.dm-8 |
| 171 |
units: com.vmware.applmgmt.mon.unit.num_of_io_per_msec |
| 172 |
- category: com.vmware.applmgmt.mon.cat.disk |
| 173 |
description: com.vmware.applmgmt.mon.descr.disk.read.rate.dm-9 |
| 174 |
id: disk.read.rate.dm-9 |
| 175 |
instance: dm-9 |
| 176 |
name: com.vmware.applmgmt.mon.name.disk.read.rate.dm-9 |
| 177 |
units: com.vmware.applmgmt.mon.unit.num_of_io_per_msec |
| 178 |
- category: com.vmware.applmgmt.mon.cat.disk |
| 179 |
description: com.vmware.applmgmt.mon.descr.disk.write.rate.dm-1 |
| 180 |
id: disk.write.rate.dm-1 |
| 181 |
instance: dm-1 |
| 182 |
name: com.vmware.applmgmt.mon.name.disk.write.rate.dm-1 |
| 183 |
units: com.vmware.applmgmt.mon.unit.num_of_io_per_msec |
| 184 |
- category: com.vmware.applmgmt.mon.cat.disk |
| 185 |
description: com.vmware.applmgmt.mon.descr.disk.write.rate.dm-10 |
| 186 |
id: disk.write.rate.dm-10 |
| 187 |
instance: dm-10 |
| 188 |
name: com.vmware.applmgmt.mon.name.disk.write.rate.dm-10 |
| 189 |
units: com.vmware.applmgmt.mon.unit.num_of_io_per_msec |
| 190 |
- category: com.vmware.applmgmt.mon.cat.disk |
| 191 |
description: com.vmware.applmgmt.mon.descr.disk.write.rate.dm-11 |
| 192 |
id: disk.write.rate.dm-11 |
| 193 |
instance: dm-11 |
| 194 |
name: com.vmware.applmgmt.mon.name.disk.write.rate.dm-11 |
| 195 |
units: com.vmware.applmgmt.mon.unit.num_of_io_per_msec |
| 196 |
- category: com.vmware.applmgmt.mon.cat.disk |
| 197 |
description: com.vmware.applmgmt.mon.descr.disk.write.rate.dm-12 |
| 198 |
id: disk.write.rate.dm-12 |
| 199 |
instance: dm-12 |
| 200 |
name: com.vmware.applmgmt.mon.name.disk.write.rate.dm-12 |
| 201 |
units: com.vmware.applmgmt.mon.unit.num_of_io_per_msec |
| 202 |
- category: com.vmware.applmgmt.mon.cat.disk |
| 203 |
description: com.vmware.applmgmt.mon.descr.disk.write.rate.dm-13 |
| 204 |
id: disk.write.rate.dm-13 |
| 205 |
instance: dm-13 |
| 206 |
name: com.vmware.applmgmt.mon.name.disk.write.rate.dm-13 |
| 207 |
units: com.vmware.applmgmt.mon.unit.num_of_io_per_msec |
| 208 |
- category: com.vmware.applmgmt.mon.cat.disk |
| 209 |
description: com.vmware.applmgmt.mon.descr.disk.write.rate.dm-14 |
| 210 |
id: disk.write.rate.dm-14 |
| 211 |
instance: dm-14 |
| 212 |
name: com.vmware.applmgmt.mon.name.disk.write.rate.dm-14 |
| 213 |
units: com.vmware.applmgmt.mon.unit.num_of_io_per_msec |
| 214 |
- category: com.vmware.applmgmt.mon.cat.disk |
| 215 |
description: com.vmware.applmgmt.mon.descr.disk.write.rate.dm-15 |
| 216 |
id: disk.write.rate.dm-15 |
| 217 |
instance: dm-15 |
| 218 |
name: com.vmware.applmgmt.mon.name.disk.write.rate.dm-15 |
| 219 |
units: com.vmware.applmgmt.mon.unit.num_of_io_per_msec |
| 220 |
- category: com.vmware.applmgmt.mon.cat.disk |
| 221 |
description: com.vmware.applmgmt.mon.descr.disk.write.rate.dm-2 |
| 222 |
id: disk.write.rate.dm-2 |
| 223 |
instance: dm-2 |
| 224 |
name: com.vmware.applmgmt.mon.name.disk.write.rate.dm-2 |
| 225 |
units: com.vmware.applmgmt.mon.unit.num_of_io_per_msec |
| 226 |
- category: com.vmware.applmgmt.mon.cat.disk |
| 227 |
description: com.vmware.applmgmt.mon.descr.disk.write.rate.dm-3 |
| 228 |
id: disk.write.rate.dm-3 |
| 229 |
instance: dm-3 |
| 230 |
name: com.vmware.applmgmt.mon.name.disk.write.rate.dm-3 |
| 231 |
units: com.vmware.applmgmt.mon.unit.num_of_io_per_msec |
| 232 |
- category: com.vmware.applmgmt.mon.cat.disk |
| 233 |
description: com.vmware.applmgmt.mon.descr.disk.write.rate.dm-4 |
| 234 |
id: disk.write.rate.dm-4 |
| 235 |
instance: dm-4 |
| 236 |
name: com.vmware.applmgmt.mon.name.disk.write.rate.dm-4 |
| 237 |
units: com.vmware.applmgmt.mon.unit.num_of_io_per_msec |
| 238 |
- category: com.vmware.applmgmt.mon.cat.disk |
| 239 |
description: com.vmware.applmgmt.mon.descr.disk.write.rate.dm-5 |
| 240 |
id: disk.write.rate.dm-5 |
| 241 |
instance: dm-5 |
| 242 |
name: com.vmware.applmgmt.mon.name.disk.write.rate.dm-5 |
| 243 |
units: com.vmware.applmgmt.mon.unit.num_of_io_per_msec |
| 244 |
- category: com.vmware.applmgmt.mon.cat.disk |
| 245 |
description: com.vmware.applmgmt.mon.descr.disk.write.rate.dm-6 |
| 246 |
id: disk.write.rate.dm-6 |
| 247 |
instance: dm-6 |
| 248 |
name: com.vmware.applmgmt.mon.name.disk.write.rate.dm-6 |
| 249 |
units: com.vmware.applmgmt.mon.unit.num_of_io_per_msec |
| 250 |
- category: com.vmware.applmgmt.mon.cat.disk |
| 251 |
description: com.vmware.applmgmt.mon.descr.disk.write.rate.dm-7 |
| 252 |
id: disk.write.rate.dm-7 |
| 253 |
instance: dm-7 |
| 254 |
name: com.vmware.applmgmt.mon.name.disk.write.rate.dm-7 |
| 255 |
units: com.vmware.applmgmt.mon.unit.num_of_io_per_msec |
| 256 |
- category: com.vmware.applmgmt.mon.cat.disk |
| 257 |
description: com.vmware.applmgmt.mon.descr.disk.write.rate.dm-8 |
| 258 |
id: disk.write.rate.dm-8 |
| 259 |
instance: dm-8 |
| 260 |
name: com.vmware.applmgmt.mon.name.disk.write.rate.dm-8 |
| 261 |
units: com.vmware.applmgmt.mon.unit.num_of_io_per_msec |
| 262 |
- category: com.vmware.applmgmt.mon.cat.disk |
| 263 |
description: com.vmware.applmgmt.mon.descr.disk.write.rate.dm-9 |
| 264 |
id: disk.write.rate.dm-9 |
| 265 |
instance: dm-9 |
| 266 |
name: com.vmware.applmgmt.mon.name.disk.write.rate.dm-9 |
| 267 |
units: com.vmware.applmgmt.mon.unit.num_of_io_per_msec |
| 268 |
- category: com.vmware.applmgmt.mon.cat.disk |
| 269 |
description: com.vmware.applmgmt.mon.descr.disk.latency.rate.dm-1 |
| 270 |
id: disk.latency.rate.dm-1 |
| 271 |
instance: dm-1 |
| 272 |
name: com.vmware.applmgmt.mon.name.disk.latency.rate.dm-1 |
| 273 |
units: com.vmware.applmgmt.mon.unit.msec_per_io |
| 274 |
- category: com.vmware.applmgmt.mon.cat.disk |
| 275 |
description: com.vmware.applmgmt.mon.descr.disk.latency.rate.dm-10 |
| 276 |
id: disk.latency.rate.dm-10 |
| 277 |
instance: dm-10 |
| 278 |
name: com.vmware.applmgmt.mon.name.disk.latency.rate.dm-10 |
| 279 |
units: com.vmware.applmgmt.mon.unit.msec_per_io |
| 280 |
- category: com.vmware.applmgmt.mon.cat.disk |
| 281 |
description: com.vmware.applmgmt.mon.descr.disk.latency.rate.dm-11 |
| 282 |
id: disk.latency.rate.dm-11 |
| 283 |
instance: dm-11 |
| 284 |
name: com.vmware.applmgmt.mon.name.disk.latency.rate.dm-11 |
| 285 |
units: com.vmware.applmgmt.mon.unit.msec_per_io |
| 286 |
- category: com.vmware.applmgmt.mon.cat.disk |
| 287 |
description: com.vmware.applmgmt.mon.descr.disk.latency.rate.dm-12 |
| 288 |
id: disk.latency.rate.dm-12 |
| 289 |
instance: dm-12 |
| 290 |
name: com.vmware.applmgmt.mon.name.disk.latency.rate.dm-12 |
| 291 |
units: com.vmware.applmgmt.mon.unit.msec_per_io |
| 292 |
- category: com.vmware.applmgmt.mon.cat.disk |
| 293 |
description: com.vmware.applmgmt.mon.descr.disk.latency.rate.dm-13 |
| 294 |
id: disk.latency.rate.dm-13 |
| 295 |
instance: dm-13 |
| 296 |
name: com.vmware.applmgmt.mon.name.disk.latency.rate.dm-13 |
| 297 |
units: com.vmware.applmgmt.mon.unit.msec_per_io |
| 298 |
- category: com.vmware.applmgmt.mon.cat.disk |
| 299 |
description: com.vmware.applmgmt.mon.descr.disk.latency.rate.dm-14 |
| 300 |
id: disk.latency.rate.dm-14 |
| 301 |
instance: dm-14 |
| 302 |
name: com.vmware.applmgmt.mon.name.disk.latency.rate.dm-14 |
| 303 |
units: com.vmware.applmgmt.mon.unit.msec_per_io |
| 304 |
- category: com.vmware.applmgmt.mon.cat.disk |
| 305 |
description: com.vmware.applmgmt.mon.descr.disk.latency.rate.dm-15 |
| 306 |
id: disk.latency.rate.dm-15 |
| 307 |
instance: dm-15 |
| 308 |
name: com.vmware.applmgmt.mon.name.disk.latency.rate.dm-15 |
| 309 |
units: com.vmware.applmgmt.mon.unit.msec_per_io |
| 310 |
- category: com.vmware.applmgmt.mon.cat.disk |
| 311 |
description: com.vmware.applmgmt.mon.descr.disk.latency.rate.dm-2 |
| 312 |
id: disk.latency.rate.dm-2 |
| 313 |
instance: dm-2 |
| 314 |
name: com.vmware.applmgmt.mon.name.disk.latency.rate.dm-2 |
| 315 |
units: com.vmware.applmgmt.mon.unit.msec_per_io |
| 316 |
- category: com.vmware.applmgmt.mon.cat.disk |
| 317 |
description: com.vmware.applmgmt.mon.descr.disk.latency.rate.dm-3 |
| 318 |
id: disk.latency.rate.dm-3 |
| 319 |
instance: dm-3 |
| 320 |
name: com.vmware.applmgmt.mon.name.disk.latency.rate.dm-3 |
| 321 |
units: com.vmware.applmgmt.mon.unit.msec_per_io |
| 322 |
- category: com.vmware.applmgmt.mon.cat.disk |
| 323 |
description: com.vmware.applmgmt.mon.descr.disk.latency.rate.dm-4 |
| 324 |
id: disk.latency.rate.dm-4 |
| 325 |
instance: dm-4 |
| 326 |
name: com.vmware.applmgmt.mon.name.disk.latency.rate.dm-4 |
| 327 |
units: com.vmware.applmgmt.mon.unit.msec_per_io |
| 328 |
- category: com.vmware.applmgmt.mon.cat.disk |
| 329 |
description: com.vmware.applmgmt.mon.descr.disk.latency.rate.dm-5 |
| 330 |
id: disk.latency.rate.dm-5 |
| 331 |
instance: dm-5 |
| 332 |
name: com.vmware.applmgmt.mon.name.disk.latency.rate.dm-5 |
| 333 |
units: com.vmware.applmgmt.mon.unit.msec_per_io |
| 334 |
- category: com.vmware.applmgmt.mon.cat.disk |
| 335 |
description: com.vmware.applmgmt.mon.descr.disk.latency.rate.dm-6 |
| 336 |
id: disk.latency.rate.dm-6 |
| 337 |
instance: dm-6 |
| 338 |
name: com.vmware.applmgmt.mon.name.disk.latency.rate.dm-6 |
| 339 |
units: com.vmware.applmgmt.mon.unit.msec_per_io |
| 340 |
- category: com.vmware.applmgmt.mon.cat.disk |
| 341 |
description: com.vmware.applmgmt.mon.descr.disk.latency.rate.dm-7 |
| 342 |
id: disk.latency.rate.dm-7 |
| 343 |
instance: dm-7 |
| 344 |
name: com.vmware.applmgmt.mon.name.disk.latency.rate.dm-7 |
| 345 |
units: com.vmware.applmgmt.mon.unit.msec_per_io |
| 346 |
- category: com.vmware.applmgmt.mon.cat.disk |
| 347 |
description: com.vmware.applmgmt.mon.descr.disk.latency.rate.dm-8 |
| 348 |
id: disk.latency.rate.dm-8 |
| 349 |
instance: dm-8 |
| 350 |
name: com.vmware.applmgmt.mon.name.disk.latency.rate.dm-8 |
| 351 |
units: com.vmware.applmgmt.mon.unit.msec_per_io |
| 352 |
- category: com.vmware.applmgmt.mon.cat.disk |
| 353 |
description: com.vmware.applmgmt.mon.descr.disk.latency.rate.dm-9 |
| 354 |
id: disk.latency.rate.dm-9 |
| 355 |
instance: dm-9 |
| 356 |
name: com.vmware.applmgmt.mon.name.disk.latency.rate.dm-9 |
| 357 |
units: com.vmware.applmgmt.mon.unit.msec_per_io |
| 358 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 359 |
description: com.vmware.applmgmt.mon.descr.swap.util |
| 360 |
id: swap.util |
| 361 |
instance: '' |
| 362 |
name: com.vmware.applmgmt.mon.name.swap.util |
| 363 |
units: com.vmware.applmgmt.mon.unit.kb |
| 364 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 365 |
description: com.vmware.applmgmt.mon.descr.storage.used.filesystem.swap |
| 366 |
id: storage.used.filesystem.swap |
| 367 |
instance: '' |
| 368 |
name: com.vmware.applmgmt.mon.name.storage.used.filesystem.swap |
| 369 |
units: com.vmware.applmgmt.mon.unit.percent |
| 370 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 371 |
description: com.vmware.applmgmt.mon.descr.swap |
| 372 |
id: swap |
| 373 |
instance: '' |
| 374 |
name: com.vmware.applmgmt.mon.name.swap |
| 375 |
units: com.vmware.applmgmt.mon.unit.kb |
| 376 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 377 |
description: com.vmware.applmgmt.mon.descr.storage.totalsize.filesystem.swap |
| 378 |
id: storage.totalsize.filesystem.swap |
| 379 |
instance: '' |
| 380 |
name: com.vmware.applmgmt.mon.name.storage.totalsize.filesystem.swap |
| 381 |
units: com.vmware.applmgmt.mon.unit.percent |
| 382 |
- category: com.vmware.applmgmt.mon.cat.cpu |
| 383 |
description: com.vmware.applmgmt.mon.descr.cpu.totalfrequency |
| 384 |
id: cpu.totalfrequency |
| 385 |
instance: '' |
| 386 |
name: com.vmware.applmgmt.mon.name.cpu.totalfrequency |
| 387 |
units: com.vmware.applmgmt.mon.unit.mhz |
| 388 |
- category: com.vmware.applmgmt.mon.cat.cpu |
| 389 |
description: com.vmware.applmgmt.mon.descr.cpu.systemload |
| 390 |
id: cpu.systemload |
| 391 |
instance: '' |
| 392 |
name: com.vmware.applmgmt.mon.name.cpu.systemload |
| 393 |
units: com.vmware.applmgmt.mon.unit.load_per_min |
| 394 |
- category: com.vmware.applmgmt.mon.cat.memory |
| 395 |
description: com.vmware.applmgmt.mon.descr.mem.util |
| 396 |
id: mem.util |
| 397 |
instance: '' |
| 398 |
name: com.vmware.applmgmt.mon.name.mem.util |
| 399 |
units: com.vmware.applmgmt.mon.unit.kb |
| 400 |
- category: com.vmware.applmgmt.mon.cat.memory |
| 401 |
description: com.vmware.applmgmt.mon.descr.mem.total |
| 402 |
id: mem.total |
| 403 |
instance: '' |
| 404 |
name: com.vmware.applmgmt.mon.name.mem.total |
| 405 |
units: com.vmware.applmgmt.mon.unit.kb |
| 406 |
- category: com.vmware.applmgmt.mon.cat.memory |
| 407 |
description: com.vmware.applmgmt.mon.descr.mem.usage |
| 408 |
id: mem.usage |
| 409 |
instance: '' |
| 410 |
name: com.vmware.applmgmt.mon.name.mem.usage |
| 411 |
units: com.vmware.applmgmt.mon.unit.percent |
| 412 |
- category: com.vmware.applmgmt.mon.cat.network |
| 413 |
description: com.vmware.applmgmt.mon.descr.net.rx.error.eth0 |
| 414 |
id: net.rx.error.eth0 |
| 415 |
instance: eth0 |
| 416 |
name: com.vmware.applmgmt.mon.name.net.rx.error.eth0 |
| 417 |
units: com.vmware.applmgmt.mon.unit.errors_per_sample |
| 418 |
- category: com.vmware.applmgmt.mon.cat.network |
| 419 |
description: com.vmware.applmgmt.mon.descr.net.rx.error.lo |
| 420 |
id: net.rx.error.lo |
| 421 |
instance: lo |
| 422 |
name: com.vmware.applmgmt.mon.name.net.rx.error.lo |
| 423 |
units: com.vmware.applmgmt.mon.unit.errors_per_sample |
| 424 |
- category: com.vmware.applmgmt.mon.cat.network |
| 425 |
description: com.vmware.applmgmt.mon.descr.net.tx.error.eth0 |
| 426 |
id: net.tx.error.eth0 |
| 427 |
instance: eth0 |
| 428 |
name: com.vmware.applmgmt.mon.name.net.tx.error.eth0 |
| 429 |
units: com.vmware.applmgmt.mon.unit.errors_per_sample |
| 430 |
- category: com.vmware.applmgmt.mon.cat.network |
| 431 |
description: com.vmware.applmgmt.mon.descr.net.tx.error.lo |
| 432 |
id: net.tx.error.lo |
| 433 |
instance: lo |
| 434 |
name: com.vmware.applmgmt.mon.name.net.tx.error.lo |
| 435 |
units: com.vmware.applmgmt.mon.unit.errors_per_sample |
| 436 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 437 |
description: com.vmware.applmgmt.mon.descr.storage.totalsize.directory.vcdb_hourly_stats |
| 438 |
id: storage.totalsize.directory.vcdb_hourly_stats |
| 439 |
instance: '' |
| 440 |
name: com.vmware.applmgmt.mon.name.storage.totalsize.directory.vcdb_hourly_stats |
| 441 |
units: com.vmware.applmgmt.mon.unit.kb |
| 442 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 443 |
description: com.vmware.applmgmt.mon.descr.storage.totalsize.directory.vcdb_daily_stats |
| 444 |
id: storage.totalsize.directory.vcdb_daily_stats |
| 445 |
instance: '' |
| 446 |
name: com.vmware.applmgmt.mon.name.storage.totalsize.directory.vcdb_daily_stats |
| 447 |
units: com.vmware.applmgmt.mon.unit.kb |
| 448 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 449 |
description: com.vmware.applmgmt.mon.descr.storage.totalsize.directory.vcdb_monthly_stats |
| 450 |
id: storage.totalsize.directory.vcdb_monthly_stats |
| 451 |
instance: '' |
| 452 |
name: com.vmware.applmgmt.mon.name.storage.totalsize.directory.vcdb_monthly_stats |
| 453 |
units: com.vmware.applmgmt.mon.unit.kb |
| 454 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 455 |
description: com.vmware.applmgmt.mon.descr.storage.totalsize.directory.vcdb_yearly_stats |
| 456 |
id: storage.totalsize.directory.vcdb_yearly_stats |
| 457 |
instance: '' |
| 458 |
name: com.vmware.applmgmt.mon.name.storage.totalsize.directory.vcdb_yearly_stats |
| 459 |
units: com.vmware.applmgmt.mon.unit.kb |
| 460 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 461 |
description: com.vmware.applmgmt.mon.descr.storage.totalsize.directory.vcdb_stats |
| 462 |
id: storage.totalsize.directory.vcdb_stats |
| 463 |
instance: '' |
| 464 |
name: com.vmware.applmgmt.mon.name.storage.totalsize.directory.vcdb_stats |
| 465 |
units: com.vmware.applmgmt.mon.unit.percent |
| 466 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 467 |
description: com.vmware.applmgmt.mon.descr.storage.totalsize.filesystem.seat |
| 468 |
id: storage.totalsize.filesystem.seat |
| 469 |
instance: '' |
| 470 |
name: com.vmware.applmgmt.mon.name.storage.totalsize.filesystem.seat |
| 471 |
units: com.vmware.applmgmt.mon.unit.kb |
| 472 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 473 |
description: com.vmware.applmgmt.mon.descr.storage.util.directory.vcdb_stats |
| 474 |
id: storage.util.directory.vcdb_stats |
| 475 |
instance: '' |
| 476 |
name: com.vmware.applmgmt.mon.name.storage.util.directory.vcdb_stats |
| 477 |
units: com.vmware.applmgmt.mon.unit.percent |
| 478 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 479 |
description: com.vmware.applmgmt.mon.descr.storage.totalsize.directory.vcdb_events |
| 480 |
id: storage.totalsize.directory.vcdb_events |
| 481 |
instance: '' |
| 482 |
name: com.vmware.applmgmt.mon.name.storage.totalsize.directory.vcdb_events |
| 483 |
units: com.vmware.applmgmt.mon.unit.kb |
| 484 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 485 |
description: com.vmware.applmgmt.mon.descr.storage.util.directory.vcdb_events |
| 486 |
id: storage.util.directory.vcdb_events |
| 487 |
instance: '' |
| 488 |
name: com.vmware.applmgmt.mon.name.storage.util.directory.vcdb_events |
| 489 |
units: com.vmware.applmgmt.mon.unit.percent |
| 490 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 491 |
description: com.vmware.applmgmt.mon.descr.storage.totalsize.directory.vcdb_alarms |
| 492 |
id: storage.totalsize.directory.vcdb_alarms |
| 493 |
instance: '' |
| 494 |
name: com.vmware.applmgmt.mon.name.storage.totalsize.directory.vcdb_alarms |
| 495 |
units: com.vmware.applmgmt.mon.unit.kb |
| 496 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 497 |
description: com.vmware.applmgmt.mon.descr.storage.util.directory.vcdb_alarms |
| 498 |
id: storage.util.directory.vcdb_alarms |
| 499 |
instance: '' |
| 500 |
name: com.vmware.applmgmt.mon.name.storage.util.directory.vcdb_alarms |
| 501 |
units: com.vmware.applmgmt.mon.unit.percent |
| 502 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 503 |
description: com.vmware.applmgmt.mon.descr.storage.totalsize.directory.vcdb_tasks |
| 504 |
id: storage.totalsize.directory.vcdb_tasks |
| 505 |
instance: '' |
| 506 |
name: com.vmware.applmgmt.mon.name.storage.totalsize.directory.vcdb_tasks |
| 507 |
units: com.vmware.applmgmt.mon.unit.kb |
| 508 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 509 |
description: com.vmware.applmgmt.mon.descr.storage.util.directory.vcdb_tasks |
| 510 |
id: storage.util.directory.vcdb_tasks |
| 511 |
instance: '' |
| 512 |
name: com.vmware.applmgmt.mon.name.storage.util.directory.vcdb_tasks |
| 513 |
units: com.vmware.applmgmt.mon.unit.percent |
| 514 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 515 |
description: com.vmware.applmgmt.mon.descr.storage.used.filesystem.seat |
| 516 |
id: storage.used.filesystem.seat |
| 517 |
instance: '' |
| 518 |
name: com.vmware.applmgmt.mon.name.storage.used.filesystem.seat |
| 519 |
units: com.vmware.applmgmt.mon.unit.kb |
| 520 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 521 |
description: com.vmware.applmgmt.mon.descr.storage.util.filesystem.seat |
| 522 |
id: storage.util.filesystem.seat |
| 523 |
instance: '' |
| 524 |
name: com.vmware.applmgmt.mon.name.storage.util.filesystem.seat |
| 525 |
units: com.vmware.applmgmt.mon.unit.percent |
| 526 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 527 |
description: com.vmware.applmgmt.mon.descr.storage.used.filesystem.db |
| 528 |
id: storage.used.filesystem.db |
| 529 |
instance: '' |
| 530 |
name: com.vmware.applmgmt.mon.name.storage.used.filesystem.db |
| 531 |
units: com.vmware.applmgmt.mon.unit.kb |
| 532 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 533 |
description: com.vmware.applmgmt.mon.descr.storage.totalsize.filesystem.db |
| 534 |
id: storage.totalsize.filesystem.db |
| 535 |
instance: '' |
| 536 |
name: com.vmware.applmgmt.mon.name.storage.totalsize.filesystem.db |
| 537 |
units: com.vmware.applmgmt.mon.unit.kb |
| 538 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 539 |
description: com.vmware.applmgmt.mon.descr.storage.util.filesystem.db |
| 540 |
id: storage.util.filesystem.db |
| 541 |
instance: '' |
| 542 |
name: com.vmware.applmgmt.mon.name.storage.util.filesystem.db |
| 543 |
units: com.vmware.applmgmt.mon.unit.percent |
| 544 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 545 |
description: com.vmware.applmgmt.mon.descr.storage.used.filesystem.dblog |
| 546 |
id: storage.used.filesystem.dblog |
| 547 |
instance: '' |
| 548 |
name: com.vmware.applmgmt.mon.name.storage.used.filesystem.dblog |
| 549 |
units: com.vmware.applmgmt.mon.unit.kb |
| 550 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 551 |
description: com.vmware.applmgmt.mon.descr.storage.totalsize.filesystem.dblog |
| 552 |
id: storage.totalsize.filesystem.dblog |
| 553 |
instance: '' |
| 554 |
name: com.vmware.applmgmt.mon.name.storage.totalsize.filesystem.dblog |
| 555 |
units: com.vmware.applmgmt.mon.unit.kb |
| 556 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 557 |
description: com.vmware.applmgmt.mon.descr.storage.util.filesystem.dblog |
| 558 |
id: storage.util.filesystem.dblog |
| 559 |
instance: '' |
| 560 |
name: com.vmware.applmgmt.mon.name.storage.util.filesystem.dblog |
| 561 |
units: com.vmware.applmgmt.mon.unit.percent |
| 562 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 563 |
description: com.vmware.applmgmt.mon.descr.storage.totalsize.filesystem.root |
| 564 |
id: storage.totalsize.filesystem.root |
| 565 |
instance: / |
| 566 |
name: com.vmware.applmgmt.mon.name.storage.totalsize.filesystem.root |
| 567 |
units: com.vmware.applmgmt.mon.unit.kb |
| 568 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 569 |
description: com.vmware.applmgmt.mon.descr.storage.util.filesystem.root |
| 570 |
id: storage.util.filesystem.root |
| 571 |
instance: / |
| 572 |
name: com.vmware.applmgmt.mon.name.storage.util.filesystem.root |
| 573 |
units: com.vmware.applmgmt.mon.unit.percent |
| 574 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 575 |
description: com.vmware.applmgmt.mon.descr.storage.totalsize.filesystem.boot |
| 576 |
id: storage.totalsize.filesystem.boot |
| 577 |
instance: /boot |
| 578 |
name: com.vmware.applmgmt.mon.name.storage.totalsize.filesystem.boot |
| 579 |
units: com.vmware.applmgmt.mon.unit.kb |
| 580 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 581 |
description: com.vmware.applmgmt.mon.descr.storage.util.filesystem.boot |
| 582 |
id: storage.util.filesystem.boot |
| 583 |
instance: /boot |
| 584 |
name: com.vmware.applmgmt.mon.name.storage.util.filesystem.boot |
| 585 |
units: com.vmware.applmgmt.mon.unit.percent |
| 586 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 587 |
description: com.vmware.applmgmt.mon.descr.storage.totalsize.filesystem.archive |
| 588 |
id: storage.totalsize.filesystem.archive |
| 589 |
instance: /storage/archive |
| 590 |
name: com.vmware.applmgmt.mon.name.storage.totalsize.filesystem.archive |
| 591 |
units: com.vmware.applmgmt.mon.unit.kb |
| 592 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 593 |
description: com.vmware.applmgmt.mon.descr.storage.util.filesystem.archive |
| 594 |
id: storage.util.filesystem.archive |
| 595 |
instance: /storage/archive |
| 596 |
name: com.vmware.applmgmt.mon.name.storage.util.filesystem.archive |
| 597 |
units: com.vmware.applmgmt.mon.unit.percent |
| 598 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 599 |
description: com.vmware.applmgmt.mon.descr.storage.totalsize.filesystem.autodeploy |
| 600 |
id: storage.totalsize.filesystem.autodeploy |
| 601 |
instance: /storage/autodeploy |
| 602 |
name: com.vmware.applmgmt.mon.name.storage.totalsize.filesystem.autodeploy |
| 603 |
units: com.vmware.applmgmt.mon.unit.kb |
| 604 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 605 |
description: com.vmware.applmgmt.mon.descr.storage.util.filesystem.autodeploy |
| 606 |
id: storage.util.filesystem.autodeploy |
| 607 |
instance: /storage/autodeploy |
| 608 |
name: com.vmware.applmgmt.mon.name.storage.util.filesystem.autodeploy |
| 609 |
units: com.vmware.applmgmt.mon.unit.percent |
| 610 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 611 |
description: com.vmware.applmgmt.mon.descr.storage.totalsize.filesystem.core |
| 612 |
id: storage.totalsize.filesystem.core |
| 613 |
instance: /storage/core |
| 614 |
name: com.vmware.applmgmt.mon.name.storage.totalsize.filesystem.core |
| 615 |
units: com.vmware.applmgmt.mon.unit.kb |
| 616 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 617 |
description: com.vmware.applmgmt.mon.descr.storage.util.filesystem.core |
| 618 |
id: storage.util.filesystem.core |
| 619 |
instance: /storage/core |
| 620 |
name: com.vmware.applmgmt.mon.name.storage.util.filesystem.core |
| 621 |
units: com.vmware.applmgmt.mon.unit.percent |
| 622 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 623 |
description: com.vmware.applmgmt.mon.descr.storage.totalsize.filesystem.imagebuilder |
| 624 |
id: storage.totalsize.filesystem.imagebuilder |
| 625 |
instance: /storage/imagebuilder |
| 626 |
name: com.vmware.applmgmt.mon.name.storage.totalsize.filesystem.imagebuilder |
| 627 |
units: com.vmware.applmgmt.mon.unit.kb |
| 628 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 629 |
description: com.vmware.applmgmt.mon.descr.storage.util.filesystem.imagebuilder |
| 630 |
id: storage.util.filesystem.imagebuilder |
| 631 |
instance: /storage/imagebuilder |
| 632 |
name: com.vmware.applmgmt.mon.name.storage.util.filesystem.imagebuilder |
| 633 |
units: com.vmware.applmgmt.mon.unit.percent |
| 634 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 635 |
description: com.vmware.applmgmt.mon.descr.storage.totalsize.filesystem.lifecycle |
| 636 |
id: storage.totalsize.filesystem.lifecycle |
| 637 |
instance: /storage/lifecycle |
| 638 |
name: com.vmware.applmgmt.mon.name.storage.totalsize.filesystem.lifecycle |
| 639 |
units: com.vmware.applmgmt.mon.unit.kb |
| 640 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 641 |
description: com.vmware.applmgmt.mon.descr.storage.util.filesystem.lifecycle |
| 642 |
id: storage.util.filesystem.lifecycle |
| 643 |
instance: /storage/lifecycle |
| 644 |
name: com.vmware.applmgmt.mon.name.storage.util.filesystem.lifecycle |
| 645 |
units: com.vmware.applmgmt.mon.unit.percent |
| 646 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 647 |
description: com.vmware.applmgmt.mon.descr.storage.totalsize.filesystem.log |
| 648 |
id: storage.totalsize.filesystem.log |
| 649 |
instance: /storage/log |
| 650 |
name: com.vmware.applmgmt.mon.name.storage.totalsize.filesystem.log |
| 651 |
units: com.vmware.applmgmt.mon.unit.kb |
| 652 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 653 |
description: com.vmware.applmgmt.mon.descr.storage.util.filesystem.log |
| 654 |
id: storage.util.filesystem.log |
| 655 |
instance: /storage/log |
| 656 |
name: com.vmware.applmgmt.mon.name.storage.util.filesystem.log |
| 657 |
units: com.vmware.applmgmt.mon.unit.percent |
| 658 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 659 |
description: com.vmware.applmgmt.mon.descr.storage.totalsize.filesystem.lvm_snapshot |
| 660 |
id: storage.totalsize.filesystem.lvm_snapshot |
| 661 |
instance: /storage/lvm_snapshot |
| 662 |
name: com.vmware.applmgmt.mon.name.storage.totalsize.filesystem.lvm_snapshot |
| 663 |
units: com.vmware.applmgmt.mon.unit.kb |
| 664 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 665 |
description: com.vmware.applmgmt.mon.descr.storage.util.filesystem.lvm_snapshot |
| 666 |
id: storage.util.filesystem.lvm_snapshot |
| 667 |
instance: /storage/lvm_snapshot |
| 668 |
name: com.vmware.applmgmt.mon.name.storage.util.filesystem.lvm_snapshot |
| 669 |
units: com.vmware.applmgmt.mon.unit.percent |
| 670 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 671 |
description: com.vmware.applmgmt.mon.descr.storage.totalsize.filesystem.netdump |
| 672 |
id: storage.totalsize.filesystem.netdump |
| 673 |
instance: /storage/netdump |
| 674 |
name: com.vmware.applmgmt.mon.name.storage.totalsize.filesystem.netdump |
| 675 |
units: com.vmware.applmgmt.mon.unit.kb |
| 676 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 677 |
description: com.vmware.applmgmt.mon.descr.storage.util.filesystem.netdump |
| 678 |
id: storage.util.filesystem.netdump |
| 679 |
instance: /storage/netdump |
| 680 |
name: com.vmware.applmgmt.mon.name.storage.util.filesystem.netdump |
| 681 |
units: com.vmware.applmgmt.mon.unit.percent |
| 682 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 683 |
description: com.vmware.applmgmt.mon.descr.storage.totalsize.filesystem.updatemgr |
| 684 |
id: storage.totalsize.filesystem.updatemgr |
| 685 |
instance: /storage/updatemgr |
| 686 |
name: com.vmware.applmgmt.mon.name.storage.totalsize.filesystem.updatemgr |
| 687 |
units: com.vmware.applmgmt.mon.unit.kb |
| 688 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 689 |
description: com.vmware.applmgmt.mon.descr.storage.util.filesystem.updatemgr |
| 690 |
id: storage.util.filesystem.updatemgr |
| 691 |
instance: /storage/updatemgr |
| 692 |
name: com.vmware.applmgmt.mon.name.storage.util.filesystem.updatemgr |
| 693 |
units: com.vmware.applmgmt.mon.unit.percent |
| 694 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 695 |
description: com.vmware.applmgmt.mon.descr.storage.totalsize.filesystem.vtsdb |
| 696 |
id: storage.totalsize.filesystem.vtsdb |
| 697 |
instance: /storage/vtsdb |
| 698 |
name: com.vmware.applmgmt.mon.name.storage.totalsize.filesystem.vtsdb |
| 699 |
units: com.vmware.applmgmt.mon.unit.kb |
| 700 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 701 |
description: com.vmware.applmgmt.mon.descr.storage.util.filesystem.vtsdb |
| 702 |
id: storage.util.filesystem.vtsdb |
| 703 |
instance: /storage/vtsdb |
| 704 |
name: com.vmware.applmgmt.mon.name.storage.util.filesystem.vtsdb |
| 705 |
units: com.vmware.applmgmt.mon.unit.percent |
| 706 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 707 |
description: com.vmware.applmgmt.mon.descr.storage.totalsize.filesystem.vtsdblog |
| 708 |
id: storage.totalsize.filesystem.vtsdblog |
| 709 |
instance: /storage/vtsdblog |
| 710 |
name: com.vmware.applmgmt.mon.name.storage.totalsize.filesystem.vtsdblog |
| 711 |
units: com.vmware.applmgmt.mon.unit.kb |
| 712 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 713 |
description: com.vmware.applmgmt.mon.descr.storage.util.filesystem.vtsdblog |
| 714 |
id: storage.util.filesystem.vtsdblog |
| 715 |
instance: /storage/vtsdblog |
| 716 |
name: com.vmware.applmgmt.mon.name.storage.util.filesystem.vtsdblog |
| 717 |
units: com.vmware.applmgmt.mon.unit.percent |
| 718 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 719 |
description: com.vmware.applmgmt.mon.descr.storage.used.filesystem.root |
| 720 |
id: storage.used.filesystem.root |
| 721 |
instance: / |
| 722 |
name: com.vmware.applmgmt.mon.name.storage.used.filesystem.root |
| 723 |
units: com.vmware.applmgmt.mon.unit.kb |
| 724 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 725 |
description: com.vmware.applmgmt.mon.descr.storage.used.filesystem.boot |
| 726 |
id: storage.used.filesystem.boot |
| 727 |
instance: /boot |
| 728 |
name: com.vmware.applmgmt.mon.name.storage.used.filesystem.boot |
| 729 |
units: com.vmware.applmgmt.mon.unit.kb |
| 730 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 731 |
description: com.vmware.applmgmt.mon.descr.storage.used.filesystem.archive |
| 732 |
id: storage.used.filesystem.archive |
| 733 |
instance: /storage/archive |
| 734 |
name: com.vmware.applmgmt.mon.name.storage.used.filesystem.archive |
| 735 |
units: com.vmware.applmgmt.mon.unit.kb |
| 736 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 737 |
description: com.vmware.applmgmt.mon.descr.storage.used.filesystem.autodeploy |
| 738 |
id: storage.used.filesystem.autodeploy |
| 739 |
instance: /storage/autodeploy |
| 740 |
name: com.vmware.applmgmt.mon.name.storage.used.filesystem.autodeploy |
| 741 |
units: com.vmware.applmgmt.mon.unit.kb |
| 742 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 743 |
description: com.vmware.applmgmt.mon.descr.storage.used.filesystem.core |
| 744 |
id: storage.used.filesystem.core |
| 745 |
instance: /storage/core |
| 746 |
name: com.vmware.applmgmt.mon.name.storage.used.filesystem.core |
| 747 |
units: com.vmware.applmgmt.mon.unit.kb |
| 748 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 749 |
description: com.vmware.applmgmt.mon.descr.storage.used.filesystem.imagebuilder |
| 750 |
id: storage.used.filesystem.imagebuilder |
| 751 |
instance: /storage/imagebuilder |
| 752 |
name: com.vmware.applmgmt.mon.name.storage.used.filesystem.imagebuilder |
| 753 |
units: com.vmware.applmgmt.mon.unit.kb |
| 754 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 755 |
description: com.vmware.applmgmt.mon.descr.storage.used.filesystem.lifecycle |
| 756 |
id: storage.used.filesystem.lifecycle |
| 757 |
instance: /storage/lifecycle |
| 758 |
name: com.vmware.applmgmt.mon.name.storage.used.filesystem.lifecycle |
| 759 |
units: com.vmware.applmgmt.mon.unit.kb |
| 760 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 761 |
description: com.vmware.applmgmt.mon.descr.storage.used.filesystem.log |
| 762 |
id: storage.used.filesystem.log |
| 763 |
instance: /storage/log |
| 764 |
name: com.vmware.applmgmt.mon.name.storage.used.filesystem.log |
| 765 |
units: com.vmware.applmgmt.mon.unit.kb |
| 766 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 767 |
description: com.vmware.applmgmt.mon.descr.storage.used.filesystem.lvm_snapshot |
| 768 |
id: storage.used.filesystem.lvm_snapshot |
| 769 |
instance: /storage/lvm_snapshot |
| 770 |
name: com.vmware.applmgmt.mon.name.storage.used.filesystem.lvm_snapshot |
| 771 |
units: com.vmware.applmgmt.mon.unit.kb |
| 772 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 773 |
description: com.vmware.applmgmt.mon.descr.storage.used.filesystem.netdump |
| 774 |
id: storage.used.filesystem.netdump |
| 775 |
instance: /storage/netdump |
| 776 |
name: com.vmware.applmgmt.mon.name.storage.used.filesystem.netdump |
| 777 |
units: com.vmware.applmgmt.mon.unit.kb |
| 778 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 779 |
description: com.vmware.applmgmt.mon.descr.storage.used.filesystem.updatemgr |
| 780 |
id: storage.used.filesystem.updatemgr |
| 781 |
instance: /storage/updatemgr |
| 782 |
name: com.vmware.applmgmt.mon.name.storage.used.filesystem.updatemgr |
| 783 |
units: com.vmware.applmgmt.mon.unit.kb |
| 784 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 785 |
description: com.vmware.applmgmt.mon.descr.storage.used.filesystem.vtsdb |
| 786 |
id: storage.used.filesystem.vtsdb |
| 787 |
instance: /storage/vtsdb |
| 788 |
name: com.vmware.applmgmt.mon.name.storage.used.filesystem.vtsdb |
| 789 |
units: com.vmware.applmgmt.mon.unit.kb |
| 790 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 791 |
description: com.vmware.applmgmt.mon.descr.storage.used.filesystem.vtsdblog |
| 792 |
id: storage.used.filesystem.vtsdblog |
| 793 |
instance: /storage/vtsdblog |
| 794 |
name: com.vmware.applmgmt.mon.name.storage.used.filesystem.vtsdblog |
| 795 |
units: com.vmware.applmgmt.mon.unit.kb |
| 796 |
- category: com.vmware.applmgmt.mon.cat.cpu |
| 797 |
description: com.vmware.applmgmt.mon.descr.cpu.util |
| 798 |
id: cpu.util |
| 799 |
instance: '' |
| 800 |
name: com.vmware.applmgmt.mon.name.cpu.util |
| 801 |
units: com.vmware.applmgmt.mon.unit.percent |
| 802 |
- category: com.vmware.applmgmt.mon.cat.cpu |
| 803 |
description: com.vmware.applmgmt.mon.descr.cpu.steal |
| 804 |
id: cpu.steal |
| 805 |
instance: '' |
| 806 |
name: com.vmware.applmgmt.mon.name.cpu.steal |
| 807 |
units: com.vmware.applmgmt.mon.unit.percent |
| 808 |
- category: com.vmware.applmgmt.mon.cat.memory |
| 809 |
description: com.vmware.applmgmt.mon.descr.swap.pageRate |
| 810 |
id: swap.pageRate |
| 811 |
instance: '' |
| 812 |
name: com.vmware.applmgmt.mon.name.swap.pageRate |
| 813 |
units: com.vmware.applmgmt.mon.unit.pages_per_sec |
| 814 |
- category: com.vmware.applmgmt.mon.cat.disk |
| 815 |
description: com.vmware.applmgmt.mon.descr.disk.read.rate.dm-0 |
| 816 |
id: disk.read.rate.dm-0 |
| 817 |
instance: dm-0 |
| 818 |
name: com.vmware.applmgmt.mon.name.disk.read.rate.dm-0 |
| 819 |
units: com.vmware.applmgmt.mon.unit.num_of_io_per_msec |
| 820 |
- category: com.vmware.applmgmt.mon.cat.disk |
| 821 |
description: com.vmware.applmgmt.mon.descr.disk.write.rate.dm-0 |
| 822 |
id: disk.write.rate.dm-0 |
| 823 |
instance: dm-0 |
| 824 |
name: com.vmware.applmgmt.mon.name.disk.write.rate.dm-0 |
| 825 |
units: com.vmware.applmgmt.mon.unit.num_of_io_per_msec |
| 826 |
- category: com.vmware.applmgmt.mon.cat.disk |
| 827 |
description: com.vmware.applmgmt.mon.descr.disk.latency.rate.dm-0 |
| 828 |
id: disk.latency.rate.dm-0 |
| 829 |
instance: dm-0 |
| 830 |
name: com.vmware.applmgmt.mon.name.disk.latency.rate.dm-0 |
| 831 |
units: com.vmware.applmgmt.mon.unit.msec_per_io |
| 832 |
- category: com.vmware.applmgmt.mon.cat.network |
| 833 |
description: com.vmware.applmgmt.mon.descr.net.rx.activity.eth0 |
| 834 |
id: net.rx.activity.eth0 |
| 835 |
instance: eth0 |
| 836 |
name: com.vmware.applmgmt.mon.name.net.rx.activity.eth0 |
| 837 |
units: com.vmware.applmgmt.mon.unit.kb_per_sec |
| 838 |
- category: com.vmware.applmgmt.mon.cat.network |
| 839 |
description: com.vmware.applmgmt.mon.descr.net.rx.activity.lo |
| 840 |
id: net.rx.activity.lo |
| 841 |
instance: lo |
| 842 |
name: com.vmware.applmgmt.mon.name.net.rx.activity.lo |
| 843 |
units: com.vmware.applmgmt.mon.unit.kb_per_sec |
| 844 |
- category: com.vmware.applmgmt.mon.cat.network |
| 845 |
description: com.vmware.applmgmt.mon.descr.net.rx.packetRate.eth0 |
| 846 |
id: net.rx.packetRate.eth0 |
| 847 |
instance: eth0 |
| 848 |
name: com.vmware.applmgmt.mon.name.net.rx.packetRate.eth0 |
| 849 |
units: com.vmware.applmgmt.mon.unit.packets_per_sec |
| 850 |
- category: com.vmware.applmgmt.mon.cat.network |
| 851 |
description: com.vmware.applmgmt.mon.descr.net.rx.packetRate.lo |
| 852 |
id: net.rx.packetRate.lo |
| 853 |
instance: lo |
| 854 |
name: com.vmware.applmgmt.mon.name.net.rx.packetRate.lo |
| 855 |
units: com.vmware.applmgmt.mon.unit.packets_per_sec |
| 856 |
- category: com.vmware.applmgmt.mon.cat.network |
| 857 |
description: com.vmware.applmgmt.mon.descr.net.rx.drop.eth0 |
| 858 |
id: net.rx.drop.eth0 |
| 859 |
instance: eth0 |
| 860 |
name: com.vmware.applmgmt.mon.name.net.rx.drop.eth0 |
| 861 |
units: com.vmware.applmgmt.mon.unit.drops_per_sample |
| 862 |
- category: com.vmware.applmgmt.mon.cat.network |
| 863 |
description: com.vmware.applmgmt.mon.descr.net.rx.drop.lo |
| 864 |
id: net.rx.drop.lo |
| 865 |
instance: lo |
| 866 |
name: com.vmware.applmgmt.mon.name.net.rx.drop.lo |
| 867 |
units: com.vmware.applmgmt.mon.unit.drops_per_sample |
| 868 |
- category: com.vmware.applmgmt.mon.cat.network |
| 869 |
description: com.vmware.applmgmt.mon.descr.net.tx.activity.eth0 |
| 870 |
id: net.tx.activity.eth0 |
| 871 |
instance: eth0 |
| 872 |
name: com.vmware.applmgmt.mon.name.net.tx.activity.eth0 |
| 873 |
units: com.vmware.applmgmt.mon.unit.kb_per_sec |
| 874 |
- category: com.vmware.applmgmt.mon.cat.network |
| 875 |
description: com.vmware.applmgmt.mon.descr.net.tx.activity.lo |
| 876 |
id: net.tx.activity.lo |
| 877 |
instance: lo |
| 878 |
name: com.vmware.applmgmt.mon.name.net.tx.activity.lo |
| 879 |
units: com.vmware.applmgmt.mon.unit.kb_per_sec |
| 880 |
- category: com.vmware.applmgmt.mon.cat.network |
| 881 |
description: com.vmware.applmgmt.mon.descr.net.tx.packetRate.eth0 |
| 882 |
id: net.tx.packetRate.eth0 |
| 883 |
instance: eth0 |
| 884 |
name: com.vmware.applmgmt.mon.name.net.tx.packetRate.eth0 |
| 885 |
units: com.vmware.applmgmt.mon.unit.packets_per_sec |
| 886 |
- category: com.vmware.applmgmt.mon.cat.network |
| 887 |
description: com.vmware.applmgmt.mon.descr.net.tx.packetRate.lo |
| 888 |
id: net.tx.packetRate.lo |
| 889 |
instance: lo |
| 890 |
name: com.vmware.applmgmt.mon.name.net.tx.packetRate.lo |
| 891 |
units: com.vmware.applmgmt.mon.unit.packets_per_sec |
| 892 |
- category: com.vmware.applmgmt.mon.cat.network |
| 893 |
description: com.vmware.applmgmt.mon.descr.net.tx.drop.eth0 |
| 894 |
id: net.tx.drop.eth0 |
| 895 |
instance: eth0 |
| 896 |
name: com.vmware.applmgmt.mon.name.net.tx.drop.eth0 |
| 897 |
units: com.vmware.applmgmt.mon.unit.drops_per_sample |
| 898 |
- category: com.vmware.applmgmt.mon.cat.network |
| 899 |
description: com.vmware.applmgmt.mon.descr.net.tx.drop.lo |
| 900 |
id: net.tx.drop.lo |
| 901 |
instance: lo |
| 902 |
name: com.vmware.applmgmt.mon.name.net.tx.drop.lo |
| 903 |
units: com.vmware.applmgmt.mon.unit.drops_per_sample |
| 904 |
- category: com.vmware.applmgmt.mon.cat.storage |
| 905 |
description: com.vmware.applmgmt.mon.descr.storage.util.filesystem.swap |
| 906 |
id: storage.util.filesystem.swap |
| 907 |
instance: '' |
| 908 |
name: com.vmware.applmgmt.mon.name.storage.util.filesystem.swap |
| 909 |
units: com.vmware.applmgmt.mon.unit.percent |
| 910 |
type: list |
| 911 |
""" |
| 912 |
|
| 913 |
|
| 914 |
# This structure describes the format of the data expected by the end-points |
| 915 |
PAYLOAD_FORMAT = { |
| 916 |
"get": {"query": {}, "body": {}, "path": {"stat_id": "stat_id"}}, |
| 917 |
"list": {"query": {}, "body": {}, "path": {}}, |
| 918 |
} # pylint: disable=line-too-long |
| 919 |
|
| 920 |
from ansible.module_utils.basic import env_fallback |
| 921 |
import os |
| 922 |
|
| 923 |
if os.getenv("VMWARE_ENABLE_TURBO", False): |
| 924 |
try: |
| 925 |
from ansible_collections.cloud.common.plugins.module_utils.turbo.module import ( |
| 926 |
AnsibleTurboModule as AnsibleModule, |
| 927 |
) |
| 928 |
|
| 929 |
AnsibleModule.collection_name = "vmware.vmware_rest" |
| 930 |
except ImportError: |
| 931 |
from ansible.module_utils.basic import AnsibleModule |
| 932 |
else: |
| 933 |
from ansible.module_utils.basic import AnsibleModule |
| 934 |
|
| 935 |
from ansible_collections.vmware.vmware_rest.plugins.module_utils.vmware_rest import ( |
| 936 |
build_full_device_list, |
| 937 |
exists, |
| 938 |
gen_args, |
| 939 |
open_session, |
| 940 |
session_timeout, |
| 941 |
update_changed_flag, |
| 942 |
) |
| 943 |
|
| 944 |
|
| 945 |
def prepare_argument_spec(): |
| 946 |
argument_spec = { |
| 947 |
"vcenter_hostname": dict( |
| 948 |
type="str", |
| 949 |
required=True, |
| 950 |
fallback=(env_fallback, ["VMWARE_HOST"]), |
| 951 |
), |
| 952 |
"vcenter_username": dict( |
| 953 |
type="str", |
| 954 |
required=True, |
| 955 |
fallback=(env_fallback, ["VMWARE_USER"]), |
| 956 |
), |
| 957 |
"vcenter_password": dict( |
| 958 |
type="str", |
| 959 |
required=True, |
| 960 |
no_log=True, |
| 961 |
fallback=(env_fallback, ["VMWARE_PASSWORD"]), |
| 962 |
), |
| 963 |
"vcenter_validate_certs": dict( |
| 964 |
type="bool", |
| 965 |
required=False, |
| 966 |
default=True, |
| 967 |
fallback=(env_fallback, ["VMWARE_VALIDATE_CERTS"]), |
| 968 |
), |
| 969 |
"vcenter_rest_log_file": dict( |
| 970 |
type="str", |
| 971 |
required=False, |
| 972 |
fallback=(env_fallback, ["VMWARE_REST_LOG_FILE"]), |
| 973 |
), |
| 974 |
"session_timeout": dict( |
| 975 |
type="float", |
| 976 |
required=False, |
| 977 |
fallback=(env_fallback, ["VMWARE_SESSION_TIMEOUT"]), |
| 978 |
), |
| 979 |
} |
| 980 |
|
| 981 |
argument_spec["stat_id"] = {"type": "str"} |
| 982 |
|
| 983 |
return argument_spec |
| 984 |
|
| 985 |
|
| 986 |
async def main(): |
| 987 |
required_if = list([]) |
| 988 |
|
| 989 |
module_args = prepare_argument_spec() |
| 990 |
module = AnsibleModule( |
| 991 |
argument_spec=module_args, required_if=required_if, supports_check_mode=True |
| 992 |
) |
| 993 |
if not module.params["vcenter_hostname"]: |
| 994 |
module.fail_json("vcenter_hostname cannot be empty") |
| 995 |
if not module.params["vcenter_username"]: |
| 996 |
module.fail_json("vcenter_username cannot be empty") |
| 997 |
if not module.params["vcenter_password"]: |
| 998 |
module.fail_json("vcenter_password cannot be empty") |
| 999 |
try: |
| 1000 |
session = await open_session( |
| 1001 |
vcenter_hostname=module.params["vcenter_hostname"], |
| 1002 |
vcenter_username=module.params["vcenter_username"], |
| 1003 |
vcenter_password=module.params["vcenter_password"], |
| 1004 |
validate_certs=module.params["vcenter_validate_certs"], |
| 1005 |
log_file=module.params["vcenter_rest_log_file"], |
| 1006 |
) |
| 1007 |
except Exception as err: |
| 1008 |
if hasattr(err, "get_message"): |
| 1009 |
module.fail_json(err.get_message()) |
| 1010 |
else: |
| 1011 |
module.fail_json(str(err)) |
| 1012 |
result = await entry_point(module, session) |
| 1013 |
module.exit_json(**result) |
| 1014 |
|
| 1015 |
|
| 1016 |
# template: info_list_and_get_module.j2 |
| 1017 |
def build_url(params): |
| 1018 |
import yarl |
| 1019 |
|
| 1020 |
if params.get("stat_id"): |
| 1021 |
_in_query_parameters = PAYLOAD_FORMAT["get"]["query"].keys() |
| 1022 |
return yarl.URL( |
| 1023 |
("https://{vcenter_hostname}" "/api/appliance/monitoring/").format(**params) |
| 1024 |
+ params["stat_id"] |
| 1025 |
+ gen_args(params, _in_query_parameters), |
| 1026 |
encoded=True, |
| 1027 |
) |
| 1028 |
_in_query_parameters = PAYLOAD_FORMAT["list"]["query"].keys() |
| 1029 |
return yarl.URL( |
| 1030 |
("https://{vcenter_hostname}" "/api/appliance/monitoring").format(**params) |
| 1031 |
+ gen_args(params, _in_query_parameters), |
| 1032 |
encoded=True, |
| 1033 |
) |
| 1034 |
|
| 1035 |
|
| 1036 |
async def entry_point(module, session): |
| 1037 |
url = build_url(module.params) |
| 1038 |
async with session.get(url, **session_timeout(module.params)) as resp: |
| 1039 |
_json = await resp.json() |
| 1040 |
|
| 1041 |
if "value" not in _json: # 7.0.2+ |
| 1042 |
_json = {"value": _json} |
| 1043 |
|
| 1044 |
if module.params.get("stat_id"): |
| 1045 |
_json["id"] = module.params.get("stat_id") |
| 1046 |
elif module.params.get("label"): # TODO extend the list of filter |
| 1047 |
_json = await exists(module.params, session, str(url)) |
| 1048 |
elif ( |
| 1049 |
isinstance(_json["value"], list) |
| 1050 |
and len(_json["value"]) > 0 |
| 1051 |
and isinstance(_json["value"][0], str) |
| 1052 |
): |
| 1053 |
# this is a list of id, we fetch the details |
| 1054 |
full_device_list = await build_full_device_list(session, str(url), _json) |
| 1055 |
_json = {"value": [i["value"] for i in full_device_list]} |
| 1056 |
|
| 1057 |
return await update_changed_flag(_json, resp.status, "get") |
| 1058 |
|
| 1059 |
|
| 1060 |
if __name__ == "__main__": |
| 1061 |
import asyncio |
| 1062 |
|
| 1063 |
current_loop = asyncio.new_event_loop() |
| 1064 |
try: |
| 1065 |
asyncio.set_event_loop(current_loop) |
| 1066 |
current_loop.run_until_complete(main()) |
| 1067 |
finally: |
| 1068 |
current_loop.close() |