python-diamond / Diamond

Diamond is a python daemon that collects system metrics and publishes them to Graphite (and others). It is capable of collecting cpu, memory, network, i/o, load and disk metrics. Additionally, it features an API for implementing custom collectors for gathering metrics from almost any source.
http://diamond.readthedocs.org/
MIT License
1.74k stars 602 forks source link

MongoDBCollector ignores metrics_whitelist? #732

Closed UdiBen closed 1 year ago

UdiBen commented 5 years ago

Hi,

I'm trying to report mongo stats, and I added this mongodb collector configuration. (I'm using HostedGraphite and I'm trying to reduce metrics count by using whitelist)

Here's my configuration:

[[MongoDBCollector]] enabled = True hosts = localhost:27017 metrics_whitelist = .mongo.(?:connections|locks).|.mongo\.metrics\.(?:document|cursor).|.mongo\.databases.\.(?:size|totalIndexSize|count)

And now I don't get any metrics...

Any idea why?

greggy commented 3 years ago

Now it hasn't config metrics_whitelist.

shortdudey123 commented 1 year ago

I am guessing your reggex is wrong. Please double check it. Reopen if it is correct and you still have no metrics reported. Also include a current config and log output.