Not the answer you need?
Register and ask your own question!

PMM2 totally remove node.

StaterosStateros ContributorCurrent User Role Advisor
Hello. Is there any possibilities to remove Node from monitoring totally. I don't even want to see historical data about this Node.
For example, I made a typo in node name and want to fix it. I remove current monitoring and reconfigure pmm-admin config. Now in Grafana I can see 2 nodes with correct and incorrect name.

Comments

  • OracleJavaNetOracleJavaNet Entrant Current User Role Participant
    Hello. Can someone please provide an update? I want to completely remove a node that I registered. From the client, is it done with either pmm-admin or pmm-agent or is there something hidden on the server that can completely remove a node. The node does not have any database registered, just the node exporter. Thanks, Jeff.
  • milosbmilosb Contributor Current User Role Contributor
    I'm curious about this too.
  • StaterosStateros Contributor Current User Role Advisor
    Hello guys, at some moment removed nodes (pmm-admin remove mysql node-name) were disappeared without any additional actions from user.
  • alexey.palazhchenkoalexey.palazhchenko PMM Tech Lead Percona Staff Role
    Hi. PMM 2 retains metrics and query analytics data for 30 days by default (that's configurable). After that period, it disappears completely without any additional actions.
    PMM 1.x has
  • djpdjp Entrant Current User Role Contributor
    Hi, how about such case:
    I used to have node called "apache18"
    https://XXX.XXX.XXX.117:42000/metrics
    UPinstance="apache18"
    It was removed - this vm was destroyed few months ago.
    A new virtual machine was added with same IP (XXX.XXX.XXX.117), and:
    now, i have two monitored nodes in prometheus targets and on grafana plots:
    https://XXX.XXX.XXX.117:42000/metrics
    UPinstance="apache18"
    https://XXX.XXX.XXX.117:42000/metrics
    UPinstance="newnode"
    It happened to all new nodes, that used an IP before, 
    Please help to remove obsolete nodes.

  • GhanGhan Entrant Current User Role Contributor
    Anyone achived this?
  • djpdjp Entrant Current User Role Contributor
    Hi, how about such case:
    I used to have node called "apache18"
    https://XXX.XXX.XXX.117:42000/metrics
    UPinstance="apache18"
    It was removed - this vm was destroyed few months ago.
    A new virtual machine was added with same IP (XXX.XXX.XXX.117), and:
    now, i have two monitored nodes in prometheus targets and on grafana plots:
    https://XXX.XXX.XXX.117:42000/metrics
    UPinstance="apache18"
    https://XXX.XXX.XXX.117:42000/metrics
    UPinstance="newnode"
    It happened to all new nodes, that used to use IP that was used before, 
    Please help with removing obsolete nodes.

  • djpdjp Entrant Current User Role Contributor
    Hi, how about such case:
    I used to have node called "apache18"
    https://XXX.XXX.XXX.117:42000/metrics
    UPinstance="apache18"
    It was removed - this vm was destroyed few months ago.
    A new virtual machine was added with same IP (XXX.XXX.XXX.117), and:
    now, i have two monitored nodes in prometheus targets and on grafana plots:
    https://XXX.XXX.XXX.117:42000/metrics
    UPinstance="apache18"
    https://XXX.XXX.XXX.117:42000/metrics
    UPinstance="newnode"
    It happened to all new nodes, that used to use IP that was used before, 
    Please help with removing obsolete nodes.

  • steve.hoffmansteve.hoffman Percona Percona Staff Role Beginner
    @djp
    You can remove the node registration via the API.  There's an order to getting something under monitoring which means you need to work in reverse to completely remove something. The add order is Node --> Agent --> Service and then the reverse for removal: Service(s) --> Agents --> Node.  Take a look under pmm-settings--> pmm-inventory and click the Nodes tab as we'll start with the Node you want to remove all traces of and get it's Node ID (copy that value), now go to the agent tab and search for that copied value to see if there are any agents still associated with that node and make note of the Agent ID(s), lastly go to the Services tab and search for your Node ID to see if there are any services still registered and make not of the Service ID(s).  From there you have all the information you need and can use the procedures in the swagger interface (https://<pmm-serverAddress>/swagger/ to remove the Services, Agents, and Nodes.  And for peace of mind, it is high on our list of priorities to revamp the inventory management and allow much of this to happen in the UI.  
Sign In or Register to comment.

MySQL, InnoDB, MariaDB and MongoDB are trademarks of their respective owners.
Copyright ©2005 - 2020 Percona LLC. All rights reserved.