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

Add Tags Processor #3773

Merged
merged 4 commits into from
Mar 7, 2018
Merged

Commits on Feb 8, 2018

  1. Add Tags Processor

    Metrics created by different input plugins can have tags attached to provide
    additional information. Those tags may either be configured in the global_tags
    section in the telegraf.conf file or may be provided by the respective plugin.
    Telegraf provides a filtering mechanism with the *taginclude* property to only
    include certain tags. However, this mechanism will also drop all tags, that are
    not explicitly listed. This applies to the plugin specific tags as well as the
    global tags.
    
    In order to always provide global tags, this processor adds all configured tags
    after the tag filtering was applied. Therefore all those tags will always be
    present. This is useful in the case, were only some tags provided by an input
    plugin are needed, but it is not exactly known, which other tags may be attached
    by the input plugin. Using this processor provides the ability to use
    *taginclude* for the wanted tags from the input plugin while still retaining
    global tags. It eases the configuration as the global tags do not need to be
    repeated in every *taginclude*.
    
    This implementation will add the configured tags to all metrics, no filtering is
    supported. When adding the tags, values of tags with the same key will be
    overwritten by the processor.
    
    Signed-off-by: Karsten Schnitter <k.schnitter@sap.com>
    KarstenSchnitter committed Feb 8, 2018
    Configuration menu
    Copy the full SHA
    0b3fda4 View commit details
    Browse the repository at this point in the history

Commits on Feb 19, 2018

  1. Add name modifications

    Provide general modification of measurement names as available on inputs and
    aggregators:
    - name_override
    - name_prefix
    - name_suffix
    KarstenSchnitter committed Feb 19, 2018
    Configuration menu
    Copy the full SHA
    cd1af21 View commit details
    Browse the repository at this point in the history
  2. Rename Configuration

    Since the processor should provide the common interface of inputs and
    aggregators the tags map is renamed accordingly.
    KarstenSchnitter committed Feb 19, 2018
    Configuration menu
    Copy the full SHA
    7df07b6 View commit details
    Browse the repository at this point in the history

Commits on Mar 1, 2018

  1. Rename Plugin

    KarstenSchnitter committed Mar 1, 2018
    Configuration menu
    Copy the full SHA
    225e84e View commit details
    Browse the repository at this point in the history