ovh / beamium

Prometheus to Warp10 metrics forwarder
Other
84 stars 21 forks source link

Handle units in settings #63

Closed FlorentinDUBOIS closed 5 years ago

FlorentinDUBOIS commented 6 years ago

Hi!

An awesome feature for beamium which to set preferences in configuration file using unit in addition of actual bit.

We could have something like this:

An example of configuration using this feature could be:

parameters:             # Parameters definitions                        (Optional)
  source-dir: sources   # Beamer data source directory                  (Optional, default: sources)
  sink-dir: sinks       # Beamer data sink directory                    (Optional, default: sinks)
  error-dir: errors     # Folder to puts files with errors              (Optional, default: puts file at the same place) 
  scan-period: 1000     # Delay(ms) between source/sink scan            (Optional, default: 1000)
  batch-count: 250      # Maximum number of files to process in a batch (Optional, default: 250)
  batch-size: 200000    # Maximum batch size                            (Optional, default: 250)
  log-file: beamium.log # Log file                                      (Optional, default: beamium.log)
  log-level: 4          # Log level                                     (Optional, default: info)
  size: 350G            # Remove the oldest files in folder if disk is over 350 giga bytes
  timeout: 500          # Http timeout (seconds)                        (Optional, default: 500)