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

Allow parameters in a metric to be replaced at runtime #24

Open
lukevenediger opened this issue Jun 12, 2014 · 0 comments
Open

Allow parameters in a metric to be replaced at runtime #24

lukevenediger opened this issue Jun 12, 2014 · 0 comments

Comments

@lukevenediger
Copy link
Owner

As a client I want to send in codes that will get swapped out and expanded to more meaningful parameters before being aggregated in the system. For example:

User Agent resolution:

visitor.home.{device-type: ... user agent string ...}.{device-os: ... user agent string ...} becomes
visitor.home.iPhone.iOS7

IP Address geolocation:

customer.login.{city:192.18.17.18}.{city:192.18.17.18} becomes
customer.login.Durban.SouthAfrica

System-specific terminology replacements:

service.load.{module:AAB} becomes
service.load.UserAuthModule

Acceptance Criteria:

  • Replacement matchers are plugins loaded at runtime
  • A matcher registers itself into the Parser and matches on valid stats lines
  • A matcher registers at least one key that will be used to invoke it at runtime
  • The format of a replacement tag is {KEY:[Value[, Value]]}
    • e.g.: {KEY}, {KEY:Value}, {KEY:Value,Value}
  • If no matchers are found, the metric is sent in as-is

Immediate Uses:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant