Skip to content

Wavefront output plugin adding empty tag #11077

@farukhali

Description

@farukhali

Relevant telegraf.conf

[[outputs.wavefront]]
  host = "somehost"
  port = 12878
  prefix = "\u2206telegraf."
  namepass = ["somenamepass*"]
  fielddrop = ["ln*" , "tdigest"]
  source_override = ["api"]

System info

1.21.0

Docker

No response

Steps to reproduce

  1. Use wavefront output.
  2. add source override tag.
  3. Do not provide host tag in metric.
  4. Plugin will add empty telegraf.host tag to the metric sent to wavefront proxy.
  5. Wavefront will return error for empty tag.
    ...

Expected behavior

Wavefront output plugin should not expect host tag in source metric. There should not be any empty tag output from this plugin.

Actual behavior

If host tag is not provided in metrics, wavefront output plugin add empty telegraf.host tag which cause failure on wavefront proxy end.

Additional info

The code here

mTags["telegraf_host"] = mTags["host"]
assume there will always be host tag. I can share a PR to fix this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/wavefrontbugunexpected problem or unintended behaviorhelp wantedRequest for community participation, code, contribution

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions