Setup Your config.yml Fileedit

The first step after installation is to define the data sources that Loud ML can use to find data. You can edit the file /etc/loudml/config.yml and add minimal settings such as the address, port, and name of your data source.

We will define one nab data source pointing to a database of the same name.

A datasource can act as a source where data is read, or a sink to write data depending on the context.

cat /etc/loudml/config.yml
---
datasources:
 - name: nab
   type: influxdb
   addr: localhost
   database: nab
   create_database: true
   retention_policy: autogen
   max_series_per_request: 2000
 - name: output
   type: influxdb
   addr: localhost
   database: loudml
   create_database: true
   retention_policy: autogen
   max_series_per_request: 2000

Or if your config.yml settings must specify Elasticsearch indexes:

cat /etc/loudml/config.yml
---
datasources:
 - name: nab
   type: elasticsearch
   addr: localhost
   index: nab
   doc_type: doc
 - name: output
   type: elasticsearch
   addr: localhost
   index: loudml
   doc_type: doc
Note

Settings will differ according to the type of database used in your environment. But if your favorite database is missing, we’ve made it simple to submit a pull request on Github.