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

Augment keys of all metric types in the same way #112

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Aug 30, 2020

  1. Augment keys of all metric types in the same way

    It is unexpected that the common key prefix for some metrics types is
    different. This makes it unnecessary difficult to find the metrics in
    the database. This commit unifies the prefix for all metrics.
    
    The prefix of each key is now `service name, type prefix, hostname`. All
    of them are optional. `service name` is added if it is available and not
    set as a label because the configuration flag `EnableServiceLabel` is
    set. `type prefix` is added if it is enabled with the configuration flag
    `EnableTypePrefix`. `hostname` is added if it is available and not set
    as a label because `EnableHostnameLabel` is set.
    
    The behaviour of `EmitKeys`, `IncrCounter`, `IncrCounterWithLabels`,
    `AddSample`, `AddSampleWithLabels`, `MeasureSince` and
    `MeasureSinceWithLabels` changes with this commit. For `EmitKey` the
    hostname will be added (details see above) but the service name will no
    longer be added when `EnableServiceLabel` is set to `true`. For the
    other types the hostname will be added if it is available and
    `EnableHostnameLabel` is set to `false`.
    stefanbirkner committed Aug 30, 2020
    Configuration menu
    Copy the full SHA
    3633199 View commit details
    Browse the repository at this point in the history