collect serverStatus, Oplog and others metrics without --collect-all #936
-
Hi there, I am testing an exporter in a docker container using --collect-all, but this is consuming way too much CPU on the target, so I am trying to find a way to limit the number of metrics collected by the exporter and enabling only the ones I need :
Yet there are couple of them I can't find in the documentation : https://github.com/percona/mongodb_exporter/blob/main/REFERENCE.md 1) Metrics related to db.serverStatus(): 2) Metrics related to oplog stats: 3) and this one : mongodb_members_configTerm Is there any ay to collect these counters without having to collect everything (especially the serverStatus ones) ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi, can you try to enable diagnosticdata collector? |
Beta Was this translation helpful? Give feedback.
-
Hi thanks it worked , I now have all the metrics I need :
However, it seems to be leaking CPU% and MEM% over time. I restarted the container yesterday evening, consuming :
And this morning :
|
Beta Was this translation helpful? Give feedback.
Hi, can you try to enable diagnosticdata collector?