- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Activity Monitor doesn't save data in Oracle
- Labels:
-
Cloudera Manager
Created ‎11-17-2017 02:00 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
Created ‎11-19-2017 05:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Created ‎11-19-2017 03:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Created on ‎11-19-2017 04:32 AM - edited ‎11-19-2017 04:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
Created ‎11-19-2017 05:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
