Application settings#

The behavior of the application can be controlled via a file called ApplicationSettings.yaml which must be located in the /config directory. If no file is found the default values are used.

A settings file has the following structure:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
PollIntervallInSeconds: 5
ManifestPath: "/data/Manifest.yaml"
Logging:
  LogToConsole: true
  LogToOtel: false
  MinimumLogLevel: Information  
  LogToFile: false
  LogFilePath: "logs"
  LogFileKeepMax: 5
  Otel:
    ServiceName: "mqtt2otel-internal"
    ServiceNamespace: "prod-mqtt2otel"
    Endpoint:
      Protocol: "http"
      Port: 32042
      Address: "192.168.1.8"
Metrics:
  CollectMetrics: false
  Otel:
    ServiceName: "mqtt2otel-internal"
    ServiceNamespace: "prod-mqtt2otel"
    Endpoint:
      Protocol: "http"
      Port: 32042
      Address: "192.168.1.8"

It consists of the following settings:

settingdefault valuedescription
PollIntervallInSeconds5The interval in seconds for polling the manifest file for changes.
ManifestPath/data/Manifest.yamlThe path for the manifest file.
Logging.LogToConsoletrueEnables logging internal log messages to the console
Logging.LogToOtelfalseEnables logging internal log messages to en otel endpoint
Logging.LogToFilefalseEnables logging internal log messages to files
Logging.LogFilePathlogsSets the root directory for created log files
Logging.LogFileKeepMax5The maximum amount of log files that should be kept before deleting.
Logging.MinimumLogLevelInformationThe minimum log level that will be logged. Must be one of the following: Debug, Information, Warning, Error, Critical.
Logging.OtelemptyThe connection data for the otel endpoint. see otel server connection
Metrics.CollectMetricstrueEnables the collection of internal metrics, that will be send to the Metrics.Otel endpoing.
Metrics.OtelemptyThe connection data for the otel metrics endpoint. see otel server connection