Skip to content

Commit

Permalink
fix(influxdb): Flush data to InfluxDB v2 every 5 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
Göran Sander committed Jun 4, 2024
1 parent 1ba4391 commit 2384b6c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ async function initInfluxDB() {
defaultTags: tags,

/* maximum time in millis to keep points in an unflushed batch, 0 means don't periodically flush */
flushInterval: 1000,
flushInterval: 5000,

/* maximum size of the retry buffer - it contains items that could not be sent for the first time */
// maxBufferLines: 30_000,
Expand Down
6 changes: 3 additions & 3 deletions src/lib/post-to-influxdb.js
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ async function postButlerSOSMemoryUsageToInfluxdb(memory) {
// },

/* maximum time in millis to keep points in an unflushed batch, 0 means don't periodically flush */
flushInterval: 1000,
flushInterval: 5000,

/* maximum size of the retry buffer - it contains items that could not be sent for the first time */
// maxBufferLines: 30_000,
Expand Down Expand Up @@ -778,7 +778,7 @@ async function postUserEventToInfluxdb(msg) {
// },

/* maximum time in millis to keep points in an unflushed batch, 0 means don't periodically flush */
flushInterval: 1000,
flushInterval: 5000,

/* maximum size of the retry buffer - it contains items that could not be sent for the first time */
// maxBufferLines: 30_000,
Expand Down Expand Up @@ -1060,7 +1060,7 @@ async function postLogEventToInfluxdb(msg) {
// },

/* maximum time in millis to keep points in an unflushed batch, 0 means don't periodically flush */
flushInterval: 1000,
flushInterval: 5000,

/* maximum size of the retry buffer - it contains items that could not be sent for the first time */
// maxBufferLines: 30_000,
Expand Down

0 comments on commit 2384b6c

Please sign in to comment.