Use safe version of flatten
More metric name customization
* Add a key_suffix
* Make it possible to provide a server alias