Kamon icon indicating copy to clipboard operation
Kamon copied to clipboard

kamon-newrelic: per-request actor metrics can swamp new relic

Open cheekychops opened this issue 11 years ago • 1 comments

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.

cheekychops avatar Oct 26 '15 12:10 cheekychops

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 :).

ivantopo avatar Oct 27 '15 11:10 ivantopo