Issue with httpjson

telegraf

#1

I have an API which returns

{“success”: 1}
I have added this to telegraf.conf file under inputs.httpjson field. I can just see response time in measurements. How do I capture JSON fields and values?


#2

Make sure the api returns valid JSON. Your above example should be {"success":1}


#3

Thats exactly what it is returning, “=” was a typo!