kamon-newrelic: per-request actor metrics can swamp new relic
The current mechanism for enabling actor metrics is fine for singleton actors, but when per-request actors are used they generate a unique set of metrics for each instance, which quickly becomes unmanageable in new relic.
There should be a way of identifying per-request actors and normalizing their names so only one of each type is reported to new relic. Ideally I would like to be able to specify a simple filter configuration like this:
metric {
filters {
akka-actor {
includes = [ "**/user/**" ]
excludes = [ "**/system/**", "**user/IO-**" ]
}
}
}
... and not have to explicitly list the known per-request actors by type, since adding new ones could inadvertently break new relic again if the required configuration was missing.
Since actor naming strategies will differ across implementations, I would like to be able to configure the name of a class (which I provide) which can detect per-request actors and normalize their names.
hey @cheekychops! have you seen the actor metrics issue? #101... when we have that ready, you could specify patterns that define an actor-group, probably based on a path pattern first.. but the option of doing it by-class could be there as I heard quite a few people wanted it to be done on a by-class basis.
Once #101 is fixed this will automatically be fixed as well :).