Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
325 views
in Technique[技术] by (71.8m points)

telegraf enum plugin not injecting the correct destination field

I have the following telegraf configurations:

[[inputs.http_response]]
name_override="test"
address="https://localhost:12345/test"
response_timeout="5s"
method="GET"
follow_redirects=false
insecure_skip_verify = true
response_string_match="test is up"
 [inputs.http_response.tags]
    system="system"
    component="component"
[[processors.enum]]
 [[processors.enum.mapping]]
    field = "result_type"
    dest = "value"
   [processors.enum.mapping.value_mappings]
     success = 1

And i get the following response:

test,component=component,system=system result_type="success" 1611588662000000000

I was anticipating

test,component=component,system=system result_type="success",value=1i 1611588662000000000

What am i doing incorrectly here? I'm using version 1.9.2 and it shows it has the plugin.

question from:https://stackoverflow.com/questions/65887786/telegraf-enum-plugin-not-injecting-the-correct-destination-field

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...