Created 02-23-2016 06:51 PM
Is there any built-in way to query Ambari for (a) when a service was last in maintenance mode, (b) the last error for a service plus why, etc. Accessing this information via the REST API would be ok if it is possible. Accessing it via Phoenix could also work, but is there a working example?
Created 02-24-2016 12:52 PM
Sounds like an enhancement jira
Created 03-07-2016 02:56 AM
Is your goal to query historical information for Ambari server that is not available from Ambari Rest API ? Look at Temporal metrics section
https://github.com/apache/ambari/blob/trunk/ambari-server/docs/api/v1/index.md#temporal-metrics
and you may be able to build your query using this info.
Created 03-07-2016 03:53 AM
@Shishir Saxena does Ambari maintain the dates and times of all maintenance modes?
Created 03-07-2016 02:34 PM
@Artem Ervits @Peter CoatesI looked at Ambari db tables and there is no table with a history of dates and times for maintenance modes but I could get indirectly this info from Alerts. As you suggested, it sounds like an enhancement jira.