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

[jmxattribute] generate alias from regexp match #97

Merged
merged 2 commits into from
Apr 29, 2016
Merged

Commits on Apr 27, 2016

  1. Add option to generate alias from regexp match

    Alan Milford authored and yannmh committed Apr 27, 2016
    Configuration menu
    Copy the full SHA
    737050f View commit details
    Browse the repository at this point in the history

Commits on Apr 28, 2016

  1. [jmxattribute] unique getAlias method & test

    * Refactor `getAlias` logic from `JMXSimpleAttribute` &
      `JMXComplexAttribute` to `JMXAttribute`
    * Allow group name substitutions in `attribute`/`alias` parameter.
      Available options are:
      * `$attribute` for the attribute name
      * `$domain` for the domain name
      * `$<parameter>` for any of the bean parameters
    * Test coverage
    
    Example:
    ```
    bean: org.datadog.jmxfetch.test:foo=Bar,qux=Baz
    attribute:
      toto:
        alias: my.metric.$foo.$attribute
    ```
    returns a metric name `my.metric.bar.toto`.
    yannmh committed Apr 28, 2016
    Configuration menu
    Copy the full SHA
    a4a7f91 View commit details
    Browse the repository at this point in the history