The node that has already been deleted is shown in grafana node list

Description:

[Detailed description of the issue or question]

In grafana, The node that has already been deleted is shown in the list.
The node has been deleted from the inventory and is invisible.

Steps to Reproduce:

[Step-by-step instructions on how to reproduce the issue, including any specific settings or configurations]

Version:

[Insert the version number of the software]
v2.41.0

Logs:

[If applicable, include any relevant log files or error messages]

Expected Result:

[What the user expected to see or happen before the issue occurred]

Deleted node not visible in list

Actual Result:

[What actually happened when the user encountered the issue]

Deleted node seen in list

Additional Information:

[Include any additional information that could be helpful to diagnose the issue, such as browser or device information]

Hi @pmmChobo

Metrics are not deleted automatically if an instance is deleted.
You may remove metrics manually by api request delete_series
Please set service_name that was used on the dropped node.

e.g.

thank you for your reply

but result is 0

I executed this command in a container

@pmmChobo, if you select a smaller time interval (currently you have 12 hours) then you should see only present Services, and the data about deleted services will be in PMM until the retention time (30 days by default)
Can I ask you - why you need to remove data from PMM? this is not a recommended operation for monitoring tools (this is why this is not done with a Service removal)

Thank you for your answer.
I tried to adjust the time to 5 minutes, but I still see the service and node that I erased before.

This is to make the service and node deleted from inventory invisible to grafana.

Please remove space in the match block.

thank you god

i can use that command when service_name is “pmm-server-postgresql”.
but still result 0, when service_name is other service name

its ip is not 127.0.0.1
is it okay?