This topic tells you about the metrics generated from the on-demand broker provided by On-Demand Services SDK. For general information about logging and metrics in VMware Tanzu Application Service for VMs, see Overview of logging and metrics.
Enabling Metrics: The on-demand broker only emits metrics when deployed with Service Metrics. For more information, see the Deploying a release with Service Metrics in the Service Metrics documentation.
Metrics Format: Metrics are regularly-generated log messages that report measured component states. They are formatted as long, single lines of text, for example:
origin:"BROKER-DEPLOYMENT-NAME" eventType:ValueMetric timestamp:1560950924586744417 deployment:"BROKER-DEPLOYMENT-NAME" job:"broker" index:"0" ip:"BROKER-IP-ADDRESS" tags:<key:"source_id" value:"broker"> valueMetric:<name:"/on-demand-broker/BROKER-DEPLOYMENT-NAME/total_instances" value:10 unit:"count">
The following sections describe the metrics used for monitoring the on-demand broker.
/on-demand-broker/SERVICE-NAME/total_instances |
|
---|---|
Description | Use: This is the global total number of instances created by the broker. Origin: Doppler/Firehose Type: count |
Alert thresholds | This threshold applies if service instance quotas are configured. For instructions, see (Optional) Set Service Instance Quotas. Warning: > quota * 0.8 Critical: > quota * 0.95 |
Recommended response | Delete any unused service instances, or increase the global service instance limit. |
/on-demand-broker/SERVICE-NAME/PLAN-NAME/total_instances |
|
---|---|
Description | Use: This is the total number of instances created by the broker for a given plan. Origin: Doppler/Firehose Type: count |
Alert thresholds | This threshold applies if service instance quotas are configured. For instructions, see (Optional) Set Service Instance Quotas. Warning: > quota * 0.8 Critical: > quota * 0.95 |
Recommended response | Delete any unused service instances, select a different plan, or increase the service instance limit for the given plan. |
/on-demand-broker/SERVICE-NAME/RESOURCE-TYPE/used /on-demand-broker/SERVICE-NAME/RESOURCE-TYPE/remaining |
|
---|---|
Description | Use: These two metrics combine to give a picture of global resource quota usage for instances created by the broker. Origin: Doppler/Firehose Type: count |
Alert thresholds | This threshold applies if service instance resource quotas are configured. For instructions, see (Optional) Set Resource Quotas. Warning: > quota * 0.8 Critical: > quota * 0.95 |
Recommended response | Delete any unused service instances, or increase the global quota for this resource. |
/on-demand-broker/SERVICE-NAME/PLAN-NAME/RESOURCE-TYPE/used /on-demand-broker/SERVICE-NAME/PLAN-NAME/RESOURCE-TYPE/remaining |
|
---|---|
Description | Use: These two metrics combine to give a picture of resource quota usage for instances created by the broker for a given plan. Origin: Doppler/Firehose Type: count |
Alert thresholds | This threshold applies if service instance resource quotas are configured. For instructions, see (Optional) Set Resource Quotas. Warning: > quota * 0.8 Critical: > quota * 0.95 |
Recommended response | Delete any unused service instances, select a different plan, or increase the quota for this resource for the given plan. |