Support Questions

Find answers, ask questions, and share your expertise

How Using the Cloudera Manager API for view alerts in services in Cloudera Manager

avatar
Expert Contributor

hi community cloudera,

Using the Cloudera Manager API, I am unable to view the "warning" alerts in the services

example:

the impala service has a "warning" alert regarding "head dump free space":

alert_impala_cdh_634.png

and consulting the cloudera manager api (https://cloudera-manager:7183/api/{api_version}/clusters/{cluster_name}/services) does not shows the alert in the "healthSummary" or "serviceState" fields:

return_api_cm.png

Is the Cloudera Manager API possible to view these types of alerts?

2 REPLIES 2

avatar
Super Collaborator

Hi @yagoaparecidoti please try the below API call with a view as FULL_WITH_HEALTH_CHECK_EXPLANATION parameter, please change the cluster name, host IP, API version etc, this should show all the kinds of health test running on the cluster.


curl -X GET "http://10.129.116.234:7180/api/v54/clusters/xsczx/services?view=FULL_WITH_HEALTH_CHECK_EXPLANATION" -H "accept: application/json"

avatar
Expert Contributor

hi @Rajat_710 , 

Even using "FULL_WITH HEALTH_CHECK EXPLANATION" in curl, the result is the same, it shows that the service is GOOD, but it is not 100% GOOD, the service has a warning about "heap dump space":

return_api_cm_02.png