Skip to content

applauncher-team/influxdb_bundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installing

pip install influxdb_bundle

Configuring

In config/config.yml just provide the influxdb server parameters

influxdb:
  url: {INFLUXDB_URL}
  org: {INFLUXDB_ORG}
  token: {INFLUXDB_TOKEN}

Using

Just inject the InfluxDBClient and use it!

from influxdb_client import InfluxDBClient, Point
from influxdb_client.client.write_api import SYNCHRONOUS
import inject

client = inject.instance(InfluxDBClient)
client.buckets_api()
write_api = client.write_api(write_options=SYNCHRONOUS)
write_api.write(
    bucket="my-bucket",
    record=[Point("price").tag("product", product.name).field("price", product.price)]
)

About

Influxdb support for applauncher

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages