call inflxu
This commit is contained in:
parent
b34b957041
commit
b7a7c999d7
@ -283,6 +283,10 @@ int forwardMinuteBuffer(t_forwarderHandle *handle, t_minuteBuffer *buf) {
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
logmsg(LOG_INFO, "Payload: %s", payload);
|
logmsg(LOG_INFO, "Payload: %s", payload);
|
||||||
|
res = httpPostRequest(handle->influxUrl, handle->influxUser, handle->influxPass, payload);
|
||||||
|
if (res == 0) {
|
||||||
|
logmsg(LOG_INFO, "Successfully sent to InfluxDB");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user