See https://rspamd.com/doc/configuration/metrics.html
This section contains advanced configuration howtos.