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

PMM 2.44.0 reporting doubled swap metrics on restart #3494

Open
1 task done
GenLN opened this issue Jan 23, 2025 · 1 comment
Open
1 task done

PMM 2.44.0 reporting doubled swap metrics on restart #3494

GenLN opened this issue Jan 23, 2025 · 1 comment
Assignees
Labels
bug Bug report

Comments

@GenLN
Copy link

GenLN commented Jan 23, 2025

Description

PMM agent on restart for some period around 5m reports false swap usage, swap size, it looks like it gets double value.

Expected Results

correct values for swap usage/size metrics

Actual Results

doubled values for few minutes

Version

pmm server 2.44.0
pmm client 2.44.0

Steps to reproduce

  1. run for some time mysql node and pmm agent (docker env), getting correct metrics for swap...
  2. down/up containers
  3. check metrics again

we used this query to get usage percentage by each node
round(sum by(node_name)(((node_memory_SwapTotal_bytes{} - node_memory_SwapFree_bytes{}) /node_memory_SwapTotal_bytes{}) * 100),0.01)

maybe aggregation here is causing problem with this sum by(), but same query was working very well before...
like after down/up action swap would be free from usage, but we get like usage report over 100% for few minutes...

Relevant logs

Code of Conduct

  • I agree to follow Percona Community Code of Conduct
@GenLN GenLN added the bug Bug report label Jan 23, 2025
@BupycHuk
Copy link
Member

Hi, can you provide more details about your environment?

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

No branches or pull requests

2 participants