change default to true + explain policy with verbosity
This commit is contained in:
		
							parent
							
								
									e44ddefb43
								
							
						
					
					
						commit
						751ed96444
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -33,7 +33,8 @@ class DBManager(object): | ||||||
|         # Fix name bug by adding retention policy retroactively |         # Fix name bug by adding retention policy retroactively | ||||||
|         if 'varken 30d-1h' not in retention_policies: |         if 'varken 30d-1h' not in retention_policies: | ||||||
|             self.logger.info("Creating varken retention policy (30d-1h)") |             self.logger.info("Creating varken retention policy (30d-1h)") | ||||||
|             self.influx.create_retention_policy('varken 30d-1h', '30d', '1', 'varken', False, '1h') |             self.influx.create_retention_policy(name='varken 30d-1h', duration='30d', replication='1',  | ||||||
|  |                                                 database='varken', default=True, shard_duration='1h') | ||||||
| 
 | 
 | ||||||
|     def write_points(self, data): |     def write_points(self, data): | ||||||
|         d = data |         d = data | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue