Configuration¶
cortex-dispatcher¶
Cortex Dispatcher is configured using a YAML based configuration file. Here is an example configuration:
storage:
directory: /test-data/storage
command_queue:
address: "127.0.0.1:5672"
queue_name: cortex-dispatcher
directory_sources:
- name: mixed-directory
directory: /test-data/source
targets:
- regex: "^.*-red\\.xml$"
directory: /test-data/red
- regex: "^.*-blue\\.xml$"
directory: /test-data/blue
sftp_sources:
- name: local-test
address: 127.0.0.1:22
username: cortex
thread_count: 4
prometheus:
push_gateway: 127.0.0.1:9091
push_interval: 5000
postgresql:
url: "postgresql://postgres:password@127.0.0.1:5432/cortex"
cortex-sftp-scanner¶
Cortex SFTP Scanner is configured using a YAML based configuration file. Here is an example configuration:
command_queue:
address: "127.0.0.1:5672"
queue_name: cortex-dispatcher
sftp_sources:
- name: local-test
address: 127.0.0.1:22
username: cortex
regex: "^.*-red\\.xml$"
directory: /test-data/source
scan_interval: 2000
prometheus:
push_gateway: 127.0.0.1:9091
push_interval: 5000
postgresql:
url: "postgresql://postgres:password@127.0.0.1:5432/cortex"