Go to All Forums

Delete monitor for server in autoscaling

Hi all,
i'm planning to use server monitoring and docker monitoring in server created by autoscaling.
It's clear how install and configure , but is not clear to me how delete servers when they are terminated or stopped.
Trying disinstalling agent will not solve issue because i still  have servers in red state.

Regards,
Enrico Casti
Like (2) Reply
Replies (11)

Hello Enrico, 

Once the server is terminated or stopped, you can remove the monitors by placing a mouse cursor on the lined icon and choose "Delete or Suspend" from the list. 

Please check and let me know if that helps. 

Regards, 
Rafee
Like (0) Reply

Hi Rafee,
yes, is true, 
but we already have some  automation creating and deleting servers in our CI/CD Environment,
so we don't want to manually manage zombie server on monitoring.
Best Solution should be calling some API that delete servers from our system

Regards,
Enrico
Like (0) Reply

Hello Enrico, 

We do have an option to add, delete, activate and suspend the monitors through an API call. Please check the link below for more details. 


Regards, 
Rafee
Like (0) Reply

All actions require a monitorid.  How do you retrieve the monitorid for say a server with a hostname of 'testserver'?  I dont see the monitorid in the local agent config, so wondering how you would get the id in the first place.
Like (0) Reply

You can get the monitor ID using the "List Monitors" API. Please check the link below for more details. 


Regards, 
Rafee
Like (0) Reply

I was worried that was the solution.  That return will get huge and already with only 50 ish monitors takes several seconds to return.  Then we have to parse that for a single monitor we are looking for.  There has to be a better way!  This has to be a burden on your infrastructure, and is definitely an unnecessary hurdle for customers.
Like (0) Reply


We will have support for Name driven API's soon. Hope that should solve your problem.

We will keep you posted on the development regarding this.

Like (0) Reply

Any news on this?  I need this ability as well.
Like (0) Reply

I am trying to figure this out too.  I want to automatically add new monitors for AWS instances to particular monitoring groups and  then delete them on instance termination.  But how to tell my API call which monitor id is the question.  I have 117 monitors and parsing the response to "list" would be nearly impossible to maintain.  The instance would terminate before the script finished.
Like (0) Reply

Been a few months so I thought I would check in.  Any progress or idea on when this would be available?

Thank you,
K
Like (0) Reply

Hello folks,

Automatic clean up of terminated AutoScaling instances has already been handled and is applicable for both EC2 instances monitored via our CloudWatch integration and our integrated EC2 monitors (CloudWatch + Agent). When instances scale down or when they are manually terminated, the corresponding monitors in the Site24x7 console move to a suspended state and get automatically removed after 10days.

For more details regarding our powerful EC2 monitoring, please visit the following link

https://site24x7.com/amazon-ec2-monitoring.html

Like (0) Reply

Was this post helpful?