Skip to content

Commit

Permalink
fixup! InfluxDB config
Browse files Browse the repository at this point in the history
Signed-off-by: Miroslav Bajtoš <[email protected]>
  • Loading branch information
bajtos committed Jan 13, 2025
1 parent aaa27ff commit 96f7a8e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/lib/telemetry.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import { InfluxDB, Point } from '@influxdata/influxdb-client'
import createDebug from 'debug'

const debug = createDebug('spark:observer:telemetry')
const debug = createDebug('spark:deal-observer:telemetry')

export const createInflux = token => {
const influx = new InfluxDB({
url: 'https://eu-central-1-1.aws.cloud2.influxdata.com',
// bucket permissions: spark-evaluate:read spark-observer:write
// bucket permissions: deal-observer:write
token
})
const writeClient = influx.getWriteApi(
'Filecoin Station', // org
'spark-observer', // bucket
'deal-observer', // bucket
'ms' // precision
)
setInterval(() => {
Expand Down

0 comments on commit 96f7a8e

Please sign in to comment.