Make metrics filter thread-safe.
Update metrics filter docs to use conditionals.
Merge pull request #993 from bernd/thread-safe-metrics-filter

Make metrics filter thread-safe