Enable metrics logging

A subset of all available metrics is enabled by default. See server.metrics.filter. The list was last updated in Neo4j 4.2.

You can enable/disable metrics using the configuration setting server.metrics.enabled. You can also use the setting server.metrics.filter to enable only the metrics you want. The metrics must be specified as a comma-separated list of globbing patterns. The following example enables all checkpoint metrics and the pagecache eviction metric:

# Setting for enabling all supported metrics. (Default is true) Setting this to false disables all metrics.
server.metrics.enabled=true

# Setting for enabling only the metrics matching the filter.
server.metrics.filter=*check_point*,neo4j.page_cache.evictions

For more information on the available metrics configuration settings, see Configuration settings.