Agent folder structure
Overview
The configuration folder will be split into several files for clarity and ease of understanding. See table below:
Files | Description |
---|---|
/etc/alemca/config.yaml | Contains only the global field (ident, token, etc.) and includes (!include <path> in the yaml) the other files in the folder below. |
/etc/alemca/config/*.yaml | Contains the agent plugin configurations. |
/etc/alemca/scripts/*.lua | Contains the lua scripts and their dependencies (json, csv, etc.). |
/etc/alemca/commands/*.lua | Contains the scripts related to the commands. |
File example
/etc/alemca/config.yaml
Example of include in the /etc/alemca/config.yaml file
global:
ident: xxx
token: xxx
client_root: xxx
cache_path: /etc/alemca/cache
iot: !include /etc/alemca/config/iot.yaml
metric: !include /etc/alemca/config/metric.yaml
remote: !include /etc/alemca/config/remote.yaml
/etc/alemca/config/iot.yaml
Detailed information on iot.yaml
/etc/alemca/config/metric.yaml
Detailed information on metric.yaml
/etc/alemca/config/remote.yaml
Detailed information on remote.yaml