Created 02-08-2017 08:01 PM
We have a virtual machine that is for hosting the clients only. When added to the cluster to manage its configs it got the Ambari Metrics Monitor installed by default. The thresholds for this component alert on this small node. Can the component be removed (delete is grayed out in Ambari) or thresholds changed for this node only?
Created 02-08-2017 11:01 PM
1. Ambari Metrics Monitor is installed by default on all cluster nodes if Ambari Metrics is selected. It cannot be deleted from the UI. It doesn't hurt to leave that on there, but if you really don't want it running on that host, you can go to the Host Details page, shut down Metrics Monitor on that host, and put it in Maintenance Mode, so that alerts are not generated and it won't get started accidentally when doing operations at the Ambari Metrics service level. It's possible to delete it via the API but that's not recommended and you might be on your own because how the UI reacts in that situation isn't really tested (it might get added back automatically, etc). If you are willing to take that risk, you can first stop the Metrics Monitor from the UI on that host and issue the following API call:
curl -u admin:admin -H "X-Requested-By: ambari" -X DELETE http://AMBARI_SERVER_HOST:8080/api/v1/clusters/CLUSTERNAME/hosts/HOSTNAME/host_components/METRICS_MO...
2. You cannot customize alert thresholds on a per-host basis.
Created 02-08-2017 11:19 PM
Thank you. I have been running it the way you suggested in part 1. The client configs don't always get updated while in maintenance mode and cannot upgrade with it that way. Thank you for the answer.
Created 02-09-2017 12:03 AM
Hi Clifton, just to be clear... Are you putting the host in maintenance mode or the specific Metrics Monitor on that host in maintenance mode? If the Metrics Monitor on that host is in maintenance mode but the host is not in maintenance mode, it should technically not affect pushing configs for other components on that host. Also, Metrics Monitor is not part of stack upgrade so the ability to do upgrade should not be affected.
Created 02-09-2017 06:20 PM
Can you confirm if only the Metric Monitor component is in maintenance mode on that host, or the host itself is in maintenance mode?
Created 02-09-2017 06:27 PM
It is host Maintenance Mode, the threshold alerts from Metrics aren't muted unless its in Host Maintenance Mode.
Created 02-09-2017 06:41 PM
Ah, I see. That's a bummer.