This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

Custom Metric - CPU Busy (Sybase)

Description

This custom metric will collect the percentage of CPU work the Adaptive Server spent since the last time Adaptive Server was started. 

Metric Definition

To create the custom metric, click on Options > Custom Resource Metrics and configure the metric similar to this:

  • Database Type: Sybase
  • Database Versions: <no limitations>
  • Display Name: CPU Busy
  • Description: <add your own description>
  • Category: <add to whatever category you like or create a new one>
  • Units: Check the "Chart as a Percent (0-100)" box
  • Metric Type: Single Value
  • Frequency: 60
  • Timeout: 20

SQL Statement

SELECT convert(DECIMAL(5, 2), (100 * convert(FLOAT, @@cpu_busy) / convert(FLOAT, (@@idle + @@io_busy + @@cpu_busy))))