influxdata / docs.influxdata.com-ARCHIVE

ARCHIVE - 1.x docs for InfluxData
https://archive.docs.influxdata.com/
MIT License
252 stars 293 forks source link

namepass cannot handle "." metrics name #2966

Closed siming-diligent closed 4 years ago

siming-diligent commented 4 years ago
URL for relevant page?

https://docs.influxdata.com/telegraf/v1.12/administration/configuration/#measurement-filtering

What products and version are you using?

Download the telegraf from this page: https://github.com/signalfx/telegraf/releases/tag/v1.11.1.sfx1 install on CentOS 7 Linux

Where did you look before opening the issue?

I reviewed documents examples on websites, I havent seen anyone has the same issue as mine

Background info: We want to forward ststsD data from Telegraf to SignalFX (a monitoring tool). but we want to do some filters so we will not spend SignalFX license on non-necessary metrics.

Below is my configuration

[[inputs.statsd]] service_address = ":8125" delete_gauges = false delete_counters = true delete_sets = false delete_timings = true percentiles = [90,95,99] allowed_pending_messages = 10000 percentile_limit = 1000

[[outputs.signalfx]] APIToken = "JXXXXXXXXXXXXXXXXXX"

signalfx_realm = "us1"

DatapointIngestURL = "https://ingest.us1.signalfx.com/v2/datapoint" Include = ["Apps_All"] namedrop = ["percentile","count","lower","mean","sum","upper"] #need to put more here

However the namedrop part does not work.

below format works namedrop = ["Apps*"]

below format does not work namedrop = ["Apps_all."] namedrop = ["Apps_all"] namedrop = ["Apps_all.percentile"] namedrop = ["percentile"]

Seems like if the setting has "." in the string , then wildcard is not working.

Below is one of the original statsD sample data App_All,host=Sever01,metric_type=timing,requestMethod=GET,requestUrl=/check/ping,responseCode=200,sre_component=statsD,sre_environment=uat,sre_group=uat04,sre_site=sec01u1,sre_tier=nonprod stddev=0.4483539124976178,sum=17,upper=1,lower=0,count=61i,90_percentile=1,mean=0.2786885245901639,99_percentile=1,95_percentile=1 1598554050000000000

Please let me know if this is a bug or not