The value of metrics is rounded off in VMware Aria Operations custom payload notifications
search cancel

The value of metrics is rounded off in VMware Aria Operations custom payload notifications

book

Article ID: 445640

calendar_today

Updated On:

Products

VCF Operations/Automation (formerly VMware Aria Suite)

Issue/Introduction

  • You have configured a custom Payload Template for alert notifications.

  • The payload includes a direct dynamic metric parameter, such as ${VMWARE|HostSystem|metric|mem|usage_average}.

  • When the alert is triggered and the email (or standard outbound notification) is delivered, the metric value is rounded off to the nearest whole number (e.g., 74 instead of 74.34).

  • You require the exact metric value to be present in the notification.

Cause

This is an expected behavior within the VMware Aria Operations. 

The payload engine rounds off the value of "${VMWARE|HostSystem|metric|mem|usage_average}". 

Resolution

To get the actual metric valueat which the symptoms were met, use the "${SYMPTOMS}" parameter in the payload.

Additional Information

Sample:

Criticality: ${ALERT_CRITICALITY}
Status:   ${ALERT_STATUS}

Symptom: ${SYMPTOMS}

vCenter:  ${VMWARE|HostSystem|summary|parentVcenter}
DC: ${VMWARE|HostSystem|summary|parentDatacenter}
Cluster : ${VMWARE|HostSystem|summary|parentCluster}
ESXi :  ${VMWARE|HostSystem|config|name}

Memory Usage: ${VMWARE|HostSystem|mem|usage_average}

The above sample payload definition yields the below email alert.