Pinpoint: Remove Inactive Host

Created on 2 Oct 2019  路  5Comments  路  Source: pinpoint-apm/pinpoint

Prerequisites

Please check the FAQ, and search existing issues for similar questions before creating a new issue.YOU MAY DELETE THIS PREREQUISITES SECTION.

  • [x] I have checked the FAQ, and issues and found no answer.


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

question

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.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.

All 5 comments

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
alfagit

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Allive1 picture Allive1  路  5Comments

chuanyi-fang picture chuanyi-fang  路  3Comments

08s011003 picture 08s011003  路  3Comments

duwupeng picture duwupeng  路  4Comments

VidushaZ picture VidushaZ  路  6Comments