Skip to content

Commit

Permalink
Update: Remove retention settings for influxdb v2
Browse files Browse the repository at this point in the history
  • Loading branch information
thezak48 committed Apr 15, 2023
1 parent 7a40fbb commit 4a8efd7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions varken/dbmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,7 @@ def create_v2_bucket(self):
if not self.influx.buckets_api().find_bucket_by_name(self.bucket):
self.logger.info("Creating varken bucket")

retention = BucketRetentionRules(type="expire", every_seconds=60 * 60 * 24 * 30,
shard_group_duration_seconds=60 * 60)
self.influx.buckets_api().create_bucket(bucket_name=self.bucket,
retention_rules=retention)
self.influx.buckets_api().create_bucket(bucket_name=self.bucket)

def create_v1_database(self):
from influxdb import InfluxDBClient
Expand Down

0 comments on commit 4a8efd7

Please sign in to comment.