Support Questions
Find answers, ask questions, and share your expertise

Remove Metrics Monitor or change thresholds for one node

Highlighted

Remove Metrics Monitor or change thresholds for one node

New Contributor

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?

6 REPLIES 6
Highlighted

Re: Remove Metrics Monitor or change thresholds for one node

Contributor

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.

Highlighted

Re: Remove Metrics Monitor or change thresholds for one node

New Contributor

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.

Highlighted

Re: Remove Metrics Monitor or change thresholds for one node

Contributor

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.

Re: Remove Metrics Monitor or change thresholds for one node

Contributor
@Clifton Eyre

Can you confirm if only the Metric Monitor component is in maintenance mode on that host, or the host itself is in maintenance mode?

Highlighted

Re: Remove Metrics Monitor or change thresholds for one node

New Contributor

It is host Maintenance Mode, the threshold alerts from Metrics aren't muted unless its in Host Maintenance Mode.

Highlighted

Re: Remove Metrics Monitor or change thresholds for one node

Contributor

Ah, I see. That's a bummer.