Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWX Monitoring: Metrics endpoint retain old data & not updated #15333

Open
5 of 11 tasks
bettyhey opened this issue Jul 5, 2024 · 2 comments
Open
5 of 11 tasks

AWX Monitoring: Metrics endpoint retain old data & not updated #15333

bettyhey opened this issue Jul 5, 2024 · 2 comments

Comments

@bettyhey
Copy link

bettyhey commented Jul 5, 2024

Please confirm the following

  • I agree to follow this project's code of conduct.
  • I have checked the current issues for duplicates.
  • I understand that AWX is open source software provided for free and that I might not receive a timely response.
  • I am NOT reporting a (potential) security vulnerability. (These should be emailed to security@ansible.com instead.)

Bug Summary

Is there a way to display only the current active nodes in /api/v2/metrics? It was discovered that /api/v2/metrics endpoint retain old data (e.g. same hostname with different uuid) when a node is disconnected from AWX. The node will be gone in /api/v2/instances and AWX GUI but still showing up in the /api/v2/metrics.

Is there a workaround for this issue? The ask is to monitor a node when it lost connectivity to AWX, however, the metrics endpoint retains old data (for at least a day or so), it's not ideal to utilise it for monitoring.

AWX version

2.9.23

Select the relevant components

  • UI
  • UI (tech preview)
  • API
  • Docs
  • Collection
  • CLI
  • Other

Installation method

docker development environment

Modifications

no

Ansible version

Irrelevant

Operating system

Irrelevant

Web browser

No response

Steps to reproduce

Disconnect a node (terminate/shutdown) from AWX, then observer /api/v2/metrics endpoint.

Expected results

It's expected to have the node removed from AWX metrics endpoint when they are disconnected and gone in AWX GUI and /api/v2/instances endpoint.

Actual results

Node not removed, seeing old data (same node but different uuid as it's now reconnected, hence a different uuid was granted).
image

Additional information

No response

@thedoubl3j
Copy link
Member

@bettyhey we don't know of any work arounds for and this is a legitimate issue. could you close this and open an enhancement request with similar information so that we can track it better since this is not a bug but a lack of coverage.

@fosterseth
Copy link
Member

if you have a different way of detecting when nodes are down permanently, you might be able to log into a running task container and run the awx-manage deprovision_instance command to delete it from the database and those entries should go away

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants