This commit is contained in:
parent
5f7cdbf8d9
commit
c32b0cfd05
@ -96,7 +96,9 @@ async function logRequestToDatabase({
|
|||||||
try {
|
try {
|
||||||
InfluxWriteApi.writePoint(point);
|
InfluxWriteApi.writePoint(point);
|
||||||
InfluxWriteApi.writePoint(
|
InfluxWriteApi.writePoint(
|
||||||
new Point("proxy").intField("totalRequests", totalRequests)
|
new Point("proxy")
|
||||||
|
.intField("totalRequests", totalRequests)
|
||||||
|
.timestamp(Date.now())
|
||||||
);
|
);
|
||||||
} catch (ex) {
|
} catch (ex) {
|
||||||
console.log("Failed to write to influx");
|
console.log("Failed to write to influx");
|
||||||
|
Loading…
Reference in New Issue
Block a user