-
Notifications
You must be signed in to change notification settings - Fork 428
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-10271 Fix meta-metric label for general collector #515
Conversation
Meta-metric generated for general collector were incorrectly labeled as dbstats. When dbstats and general collector were executed for a scrape request, two metric were generated with the same name and labels. This duplicate metric would trigger a panic in the metric generation library. This change updates the label for general collector and fixes the issue.
|
filter := []string{ | ||
"collector_scrape_time_ms", | ||
} | ||
count := testutil.CollectAndCount(c, filter...) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Metric value may fluctuate for every run. Hence checking only presence of metric.
filter = []string{ | ||
"mongodb_up", | ||
} | ||
err := testutil.CollectAndCompare(c, expected, filter...) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comparing required metric and ignoring everything else.
Fix for PMM-10271 and PMM-10279
Meta-metric generated for general collector were incorrectly labeled as dbstats. When dbstats and general collector were executed for a scrape request, two metric were generated with the same name and labels. This duplicate metric would trigger a panic in the metric generation library. This change updates the label for general collector and fixes the issue.
FB link : Percona-Lab/pmm-submodules#2627