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

duplicate timeseries coming from the metrics endpoint #15179

Open
5 of 11 tasks
gfa opened this issue May 11, 2024 · 0 comments
Open
5 of 11 tasks

duplicate timeseries coming from the metrics endpoint #15179

gfa opened this issue May 11, 2024 · 0 comments

Comments

@gfa
Copy link

gfa commented May 11, 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

hello

i'm scraping awx for metrics and i've found duplicate timeseries with different timestamps (but same labels), looks to me like a left over from PR 13311

AWX version

24.3.1

Select the relevant components

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

Installation method

kubernetes

Modifications

no

Ansible version

No response

Operating system

No response

Web browser

No response

Steps to reproduce

list all duplicate metrics

$ curl -s  http://awx.xxx.xxx/api/v2/metrics/ |grep HELP |sort |uniq -d
# HELP subsystem_metrics_pipe_execute_calls Number of calls to pipe_execute
# HELP subsystem_metrics_pipe_execute_seconds Time spent saving metrics to redis
# HELP subsystem_metrics_send_metrics_seconds Time spent sending metrics to other nodes

verify each one of them

$ curl -s  http://awx.xxx.xxx/api/v2/metrics/ |grep subsystem_metrics_pipe_execute_calls | grep -v ^#
subsystem_metrics_pipe_execute_calls{node="awx-task-856bb4b84-h295h"} 83061
subsystem_metrics_pipe_execute_calls{node="awx-task-856bb4b84-h295h"} 83037
$ curl -s  http://awx.xxx.xxx/api/v2/metrics/ |grep subsystem_metrics_pipe_execute_seconds |grep -v ^#
subsystem_metrics_pipe_execute_seconds{node="awx-task-856bb4b84-h295h"} 93.82122787150729
subsystem_metrics_pipe_execute_seconds{node="awx-task-856bb4b84-h295h"} 93.79361654251989
$ curl -s  http://awx.xxx.xxx/api/v2/metrics/ |grep subsystem_metrics_send_metrics_seconds |grep -v ^#
subsystem_metrics_send_metrics_seconds{node="awx-task-856bb4b84-h295h"} 440.74024668122
subsystem_metrics_send_metrics_seconds{node="awx-task-856bb4b84-h295h"} 440.57595454629336

Expected results

no duplicated metrics

Actual results

duplicated metrics

Additional information

this AWX install was done with awx-operator 2.13.1 (AWX 24.0.0) then upgraded to awx-operator 2.16.1 (AWX 24.3.1)

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

2 participants