Configuration
This section describes how to configure the Aladdin SDS. The configuration file is located at config.yaml in the root directory of the Aladdin SDS. If the Aladdin SDS is running as a Windows service, the configuration file is located in the installation directory located at C:\Program Files\Datalogic Aladdin SDS\config.yaml.
The default config.yaml is as follows:
device_cache_seconds: 3600
tls_enabled: false
port: 9000
log_level: ERROR
device:
COM:
COM-Device:
baudRate: 9600
dataBits: 8
stopBits: 1
flowControl: 0
parity: 0
multipartTimeout: 300
The config.yaml file contains configuration settings for the Aladdin SDS.
-
device_cache_seconds: The number of seconds for which device data is cached. The default value is3600. -
tls_enabled: A boolean flag indicating whether Transport Layer Security (TLS) is enabled. The default value isfalse. -
port: The port on which the server is listening. The default value is9000. -
log_level: controls the verbosity of logging output. It is a string value that can be set to one of the following levels:TRACE, DEBUG, INFO, WARN, ERROR -
device: An object that contains configurations for each device. Each device has the following properties:-
COM: An object that contains configurations for the COM device. It has the following properties:-
COM-Device: An object that contains configurations for the COM-Device. It has the following properties:-
baudRate: The baud rate of the device. The default value is9600. -
dataBits: The number of data bits of the device. The default value is8. -
stopBits: The number of stop bits of the device. The default value is1. -
flowControl: The flow control of the device. The default value is0. -
parity: The parity of the device. The default value is0. -
multipartTimeout: The multipart timeout of the device in milliseconds. The default value is300.
-
-
-
OpenTelemetry configuration
This section describes how to configure the Aladdin SDS. The configuration file is located at otel.properties in the root directory of the Aladdin SDS. If the Aladdin SDS is running as a Windows service, the configuration file is located in the installation directory located at C:\Program Files\Datalogic Aladdin SDS\otel.properties.
The default otel.properties is as follows:
otel.resource.attributes=service.name=DIS
otel.exporter.otlp.protocol=grpc
otel.exporter.otlp.endpoint=http://0.0.0.0:4317
otel.metric.export.interval=600000
The otel.properties file contains configuration settings for the Aladdin SDS.
-
otel.resource.attributes=service.name: Name of the service -
otel.exporter.otlp.protocol: Protocol used to send data to open telemetry collector. Needs to be set accordingly to the otel collector -
otel.exporter.otlp.endpoint: Otel collector endpoint -
otel.metric.export.interval: Defines the interval at which metrics are sent to the OpenTelemetry collector.