Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable / Disable acotrs to monitor #40

Closed
lashford opened this issue Oct 30, 2013 · 0 comments
Closed

Enable / Disable acotrs to monitor #40

lashford opened this issue Oct 30, 2013 · 0 comments
Assignees
Milestone

Comments

@lashford
Copy link

Have the ability to Enable / Disable actors to monitor, maybe sensible to have this feature in a config file. There may be some refactoring done here to ensure this actor disabling / enabling is clean throughout the pointcuts.

By default included and excluded are empty, where empty included implies everything is included and empty excluded implies nothing is excluded. As soon as you specify an entry for included and excluded, the usual system first checks whether an actor is included; if so, checks whether it is not excluded. If both tests pass, the system then proceeds to record the counters and gauges.

Configure the included and excluded elements in the akka child of the org.eigengo.monitor.agent config.

org.eigengo.monitor.agent {
    output {
        class: "org.eigengo.monitor.TestCounterInterface"
    }


    akka {
        includeRoutees: true
        included: [ "akka://systemName/user/foo/bar", "akka://systemName/user/foo/baz" ]
        excluded: [ "akka://systemName/user/quux" ]
    }
}

Syntax for the included and excluded elements is one of:

  • akka://actor-system-name/user/concrete/path
    specific path in a specific actor system
  • akka://*/user/concrete/path
    specific path in any actor system
  • akka://*/user/*/any-child
    any actor system name, with actor name matching user / any / any-child
  • akka:actor-system-name.com.foo.BarActor
    specific actor type (com.foo.BarActor) in a specific actor system (actor-system-name)
  • akka:*.com.foo.BarActor
    specific actor type (com.foo.BarActor) in a any actor system
@ghost ghost assigned janm399 Oct 30, 2013
@janm399 janm399 closed this as completed Oct 31, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants