AWX metrics endpoint retain old data

  1. Why does the /api/v2/metrics endpoint in AWX retain old data, e.g. awx_instance_info showing duplicate hostnames with different uuid, even though I’m interested in only the current active nodes? Is there a way to only show the current active nodes (without scraping using the uuid label)?

  2. I’ve noticed that when a node is removed from the AWX GUI & /api/v2/instances, it doesn’t get removed from the /metrics endpoint. Why does this happen and how can I ensure that removed nodes are also deleted from the /metrics endpoint?