Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Average CPU usage for last 30 days, data granularity = "hourly"

Average CPU usage for last 30 days, data granularity = "hourly"

New Contributor

Hi,

 

we are trying to export csv/Json for average CPU usage for last 30 days (with data granularity "Hourly") using Cloudera manager and used following query:-

 

SELECT cpu_percent_across_hosts WHERE entityName = "1" AND category = CLUSTER

 

Queries:-

1. is this correct query/parameter to pull average cpu usage for cluster?  if not, please suggest on how can we get this data.

2. If answer to question 1 is yes, challenge is, If we take data for last 30 days, we do not get granularity lesser than 6 hours but if we select last 7 days, we get data grouped by 1 hour (which we need). can we do something about this?

 

thanks, 

Gaurav

@admin 

@support 

1 REPLY 1
Highlighted

Re: Average CPU usage for last 30 days, data granularity = "hourly"

Contributor

@GauravCha 

 

Yes your query to get the cluster CPU usage is correct. 

Regarding the Data Granularity, in the chart builder you can select Show Additional Options next to 30d in the time frame. In the Additional Options you can select the granularity to be Hourly.

 

Kindly let me know if this is what you are looking for.

 

Don't have an account?
Coming from Hortonworks? Activate your account here