Please check the FAQ, and search existing issues for similar questions before creating a new issue.YOU MAY DELETE THIS PREREQUISITES SECTION.
Hii All
i love pinpoint and now is already deployed on my production enviroment,
my server is autoscale, instance will up and down anytime, thats make my pinpoint dashboard is dirty, can i remove inactive hosts withoud wait 30day ..? for example every 2 day..?
thanks
Hi @harissutanrafiq
There's an API in Pinpoint Web to delete any agents that were not active for the last n days (30 default) - /admin/removeInactiveAgents.pinpoint, request parameter : durationDays.
You can call this API periodically for housekeeping.
Also, perhaps a more relevant point to your issue, you might want to add -Dpinpoint.container option when launching agents running in a containerized environment. This will clean up the agent list in the inspector view by filtering out agents that were not alive during the queried time period.
thanks @xylus , ah i will try you suggestion and i will reply soon
@Xylus
i try this url
http://myip:8079/admin/removeInactiveAgents.pinpoint?applicationName=xxx&password=xxx
and respon is OK
but inactive host is stilll there

The API removes agents that were not active for the past 30 days. (The Realtime Active Thread Chart shows all agents that were active in the last 7 days, so I'm guessing none of them were removed).
Please refer to this for a workaround.
Thanks
thanks @Xylus i will try build from source code, i hope one day pinpoint will support golang too
Most helpful comment
Hi @harissutanrafiq
There's an API in Pinpoint Web to delete any agents that were not active for the last n days (30 default) -
/admin/removeInactiveAgents.pinpoint, request parameter :durationDays.You can call this API periodically for housekeeping.
Also, perhaps a more relevant point to your issue, you might want to add
-Dpinpoint.containeroption when launching agents running in a containerized environment. This will clean up the agent list in the inspector view by filtering out agents that were not alive during the queried time period.