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?
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.
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.
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.
It is host Maintenance Mode, the threshold alerts from Metrics aren't muted unless its in Host Maintenance Mode.