-
Notifications
You must be signed in to change notification settings - Fork 131
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
Problem with Query Analytics (QAN) in PMM. #2517
Comments
Hello @artemsafiyulin, could you run |
Hello @BupycHuk, when I was run
But archive generated. I checked QAN_MONGODB_PROFILER_AGENT and find many same warnings:
I was think that my oplog size is too small, checked it and it look ok:
|
@artemsafiyulin could you please try to restart pmm-agent? |
@BupycHuk Yes it help, so as I understand pmm-agent wasn't have time to get information from oplog before them rewrite. And after that pmm-agent wasn't try get new information. After restart I see in pmm clickhouse that we don't have information between time when pmm-agent firstly get this error and time when I restart agent. Can we change this action? For example - if pmm-agent wasn't get some information from oplog - just skip it and continue collect newest information. |
Yes, we'll discuss internally to prioritize it. |
@artemsafiyulin I checked the code and seems like it supposed to work the way you wrote. Could you check logs if there are any repeating error except the one you shared? |
@BupycHuk great news! It means that I have problem on my side and it can were fixed. at 13:51 pmm-agent was restarted:
from 13:54 to 14:31 I get multiple same errors that "couldn't add document to aggregator" and one error about "Action terminated":
from 14:36 to 14:37 I get next few same errors:
from 14:37 to 23:59:08 also many same errors about "couldn't add document to aggregator" and few errors from previously block "cannot create metrics for oplog" and "Cannot get node type to check if this is a mongos" from 00:01:06 to 01:11:30 many same errors:
After 01:11:30 log is empty. And as I can see in pmm clickhouse on PMM server in this time clickhouse has last metric from my database at same time:
|
@BupycHuk you haven't ideas ? |
@artemsafiyulin, no, no ideas why it might happen. Just a question: how many DBs do you have? |
@BupycHuk I have 3 mongodb instances (1 master and 2 replicas). In mongodb cluster i have 1 not default database. |
Description
Hello! I use PMM (2.37.0) installed with docker for monitoring and backup mongodb (6.0.6).
When I open tab with query analytics I sometimes get error
undefined is not an object (evaluating 'e.active')
After few page refreshes I get normal QAN window, but with one important problem for me.
When QAN page loaded correctly - I don't see queries from my database (only default databases).
But if I change time period my database will finded in filters.
After finding this problem I go to the PMM server and open container with pmm, found in this container clickhouse with database pmm and table metrics. And I found that in this table for all database contains last metrics for today (03.10), but for 'my_database' last metrics contain for 28.09.
Please help me found problem why metrics collecting for default databases, but not collect for my database.
Expected Results
I expect that PMM will collect metrics from all databases (including created myself databases) all time.
Actual Results
Right now PMM collect metrics from my database not all time (only random time ranges)
Version
PMM server and client version 2.37.0
Steps to reproduce
No response
Relevant logs
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: