Hi Guys,
I am trying to check the service status with Ambari rest API, However I am not able to find any documention which explain thing in great details.
For example, If I hit following REST URL
http://localhost:8080/api/v1/clusters/Sandbox/services/HDFS
I get following output
"maintenance_state": "OFF",
"repository_state": "CURRENT",
"service_name": "HDFS",
"state": "STARTED"
},
"alerts_summary": {
"CRITICAL": 0,
"MAINTENANCE": 8,
"OK": 293,
"UNKNOWN": 4,
"WARNING": 0
},
However, I am not sure how to interpret this things. Should I care about MAINTENANCE, UNKNOWN and WARNING and just checking that nothing CRITICAL is good enough.
This is mainly for developers to understand and track the time how much any service is down.