Ransomware attackers specifically target and attempt to destroy backup systems to increase the probability of payment. Hardening your system is critical. Please ensure you have reviewed your platform security using the Security Hardening Checklist
Cohesity

COHESITY Documentation

Explore our documentation to get started, discover products & new features, access troubleshooting guides, register sources, platforms support.

Products
Data Security Alliance
Visit Cohesity.com
Demos
Support
Blogs
Developers
Partner Portals
Cohesity Community
© 2026 Cohesity, Inc. All Rights Reserved.
Terms of Use|
Privacy Policy|
Legal|
  1. Home
  2. IT Analytics Help
  3. Section IV. End user
  4. Work with the SQL template designer
  5. Example of a Bar Chart SQL Template: Host CPU Performance

Example of a Bar Chart SQL Template: Host CPU Performance

The following example illustrates how to create a Bar Chart and then format it with a dual axis. This example produces a bar chart for Host CPU Performance.

  1. From the Template Designer tabbed window, select Date Range and Host Groups and Client Scope and Static Custom Combo Box.

  2. Create a query that has a field for the caption, each of the bars, and the line.

    SELECT
    trunc(log_date,DECODE('${freeCombo1}','Hour','HH24','Day',
    'DD','Week','WW','Month','MM',
    'Quarter','Q','Year')) the_date,
    avg(system_processing_time_pct) avg_system,
    avg(user_processing_time_pct) avg_user,
    max(system_processing_time_pct) max_system
    FROM apt_v_host_cpu_log
    WHERE log_date between ${startDate} AND ${endDate}
    GROUP BY
    trunc(log_date,DECODE('${freeCombo1}','Hour','HH24','Day',
    'DD','Week','WW','Month','MM',
    'Quarter','Q','Year'))
    ORDER BY
    trunc(log_date,DECODE('${freeCombo1}','Hour','HH24','Day',
    'DD','Week','WW','Month','MM',
    'Quarter','Q','Year')) ASC
    
  3. In the Formatting tabbed section, select each field (data points) and format each so that you have:

    • 1 caption, n bars, and 1 line

    Note:

    The line will be charted on the right-hand axis.

  4. Set the color of the bars and specify the line formatting, as shown in the following screen.

  5. Save the report to the My Reports report menu group. Then, click on the saved report to generate it. The output will look something like this:

Feedback

Was this page helpful?
Previous

Configure a Bar Chart SQL Template

Next

Configure a Line Chart SQL Template

Feedback

Was this page helpful?