Skip to content

Example regarding passing/referencing hash variables in metrics seems to be invalid #25

Open
@zstyblik

Description

@zstyblik

Hello,

it seems to me like the following is either invalid or doesn't work or I got it wrong:

  # When hashes are passed in as values they are broken out into a dotted notation
  # For instance if you configure this plugin with
  # # [source,ruby]
  #     metrics => "mymetrics"
  #
  # and "mymetrics" is a nested hash of '{a => 1, b => { c => 2 }}'
  # this plugin will generate two metrics: a => 1, and b.c => 2 .

because of:

config :metrics, :validate => :hash, :default => {}

Therefore, it's not possible to reference attributes nor pass anything else than hash, eg.

metrics => { "foo" => "bar"}

Thank you for clarification.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions