Reply
Highlighted
New Contributor
Posts: 2
Registered: ‎11-17-2017
Accepted Solution

Activity Monitor doesn't save data in Oracle

In Cloudera Mgmt Service, Activity Monitor is configured to write to Oracle database and retain data for 7 days. 

I can see the data in the dashboard for various metrics, but when I look in the database, the tables e.g. cdh_monitor.cmon_act_lmv_2017_11_17 are being created, but there is no data in the tables.

 

Not sure why data is not being stored in these tables. And, what's the source of data for charts displayed on the dashboard?

 

Appreciate any help!

 

Thanks!

Posts: 503
Topics: 1
Kudos: 114
Solutions: 63
Registered: ‎04-22-2014

Re: Activity Monitor doesn't save data in Oracle

@PSG01,

 

Activity Monitor is only used if you have MapReduce1 in your cluster.  If you are utilizing only YARN for your jobs, you can remove Activity Monitor without impact as it will not be doing anything

 

-Ben

New Contributor
Posts: 2
Registered: ‎11-17-2017

Re: Activity Monitor doesn't save data in Oracle

[ Edited ]

Thank you for your response, Ben.

 

Could you point me to the source of data where chart builder fetches from?

e.g. this query for Cluster CPU:

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

or this one for HDFS IO:

SELECT total_bytes_written_rate_across_datanodes WHERE entityName = "hdfs:nameservice" AND category = SERVICE

These don't seem to be standard SQL stmts as these don't include the table name and even the "FROM" clause. I am looking to access the raw data behind these metrics and potentially gather data for additional custom metrics that I could define on clients' requests.

Thanks!

 

Posts: 503
Topics: 1
Kudos: 114
Solutions: 63
Registered: ‎04-22-2014

Re: Activity Monitor doesn't save data in Oracle

@PSG01

 

No problem.

Check out this documentation for some background on where the charts data comes from:

 

https://www.cloudera.com/documentation/enterprise/latest/topics/cm_dg_chart_time_series_data.html

 

metrics are stored in the Host Monitor and Service Monitor.  The data used in chart building is avaiable via the tsquery results.  The actual data is stored in leveldb files on disk (by default in /var/lib/cloudera-host-monitor and /var/lib/cloudera-service-monitor)

 

If you wish to view the metrics in JSON format you can click on the properties icon in the chart and choose "Export JSON"

 

-Ben

Announcements