project Utilities / Python Influxdb Downsample avatar

utilities/python_influxdb_downsample#8: Support for multiple config files



Issue Information

Issue Type: issue
Status: closed
Reported By: btasker
Assigned To: btasker

Milestone: vnext
Created: 05-Feb-23 15:08



Description

The config file could get quite unweildy with a lot of jobs in it.

It'd be good to have support for something like a conf.d so that jobs could be specified in individual files (that'd be better for revision tracking with git too)



Toggle State Changes

Activity


assigned to @btasker

verified

mentioned in commit 71ba531442f30e4d093c7d0c73361a069c1a70f0

Commit: 71ba531442f30e4d093c7d0c73361a069c1a70f0 
Author: B Tasker                            
                            
Date: 2023-02-05T15:24:58.000+00:00 

Message

Implement ability to use !include within YAML to split config across multiple YAML files utilities/python_influxdb_downsample#8

+152 -6 (158 lines changed)
verified

mentioned in commit f930583dfd66304c707bfb2d7bacc699ecfc2123

Commit: f930583dfd66304c707bfb2d7bacc699ecfc2123 
Author: B Tasker                            
                            
Date: 2023-02-05T15:25:48.000+00:00 

Message

docs: update README for utilities/python_influxdb_downsample#8

+76 -0 (76 lines changed)

I've added support via pyyaml-include.

We set the base directory to be conf.d so includes only need to include filename or glob

# This config file makes use of include to split config out to files in the
# conf.d directory
quiet: false

# Define the InfluxDB instances which can be communicated with
#
# For 1.x with auth the token should be of the form
# user:password
#
influxes: !include influx-*.yaml

# Define downsampling jobs
downsamples: !include job-*.yaml