Hey! So I followed this guide https://docs.particle.io/tutorials/integrations/influxdata/ but telegraf won’t insert the collected example measurements into the telegraf database. The webhook is working fine, HTTP returns a positive response. This is the webhook code:
{
"event": "mydb",
"deviceID": "e00fce68f0c030a18e540c79",
"responseTopic": "ok",
"errorResponseTopic": "not ok",
"url": "http://*********:1619/particle",
"requestType": "POST",
"noDefaults": true,
"rejectUnauthorized": false,
"responseTemplate": "",
"json": "{\r\n \"name\": \"{{{PARTICLE_EVENT_NAME}}}\",\r\n \"data\": {{{PARTICLE_EVENT_VALUE}}},\r\n \"coreid\": \"{{{PARTICLE_DEVICE_ID}}}\",\r\n \"published_at\": \"{{{PARTICLE_PUBLISHED_AT}}}\",\r\n \"userid\": \"{{{PRODUCT_USER_ID}}}\",\r\n \"fw_version\": \"{{{PRODUCT_VERSION}}}\",\r\n \"public\": \"{{{PARTICLE_EVENT_PUBLIC}}}\",\r\n \"measurement\": \"mydataaa\"\r\n}",
}
Another weird thing is that telegraf --config telegraf.conf --test
crashes after half a second of running, without outputting anything related to webhooks.
Any ideas on whats wrong?