Packages

package formatter

Type Members

  1. class DefaultFormatter extends Formatter

    Default formatting implementation delimits the key with dot, which is the metric key delimiter for StatsD and Graphite, and each name is encoded by replacing dots with underscores.

    Default formatting implementation delimits the key with dot, which is the metric key delimiter for StatsD and Graphite, and each name is encoded by replacing dots with underscores.

    So List("actors", "some.package.Actor", "mailbox-size") becomes "actors.some_package_Actor.mailbox-size".

    The delimiter and encoding replacements can be configured. This is the default configuration:

    
    cinnamon.chmetrics.formatter {
       delimiter = "."
       encode = [
         {
           from = "."
           to = "_"
         ,
         {
           from = "@"
           to = "_"
         },
         {
           from = ":"
           to = "_"
         },
         {
           from = "/"
           to = "_"
         }
      ]
    }
    }
    

Ungrouped