mirror of
https://github.com/mainflux/mainflux.git
synced 2025-04-28 13:48:49 +08:00
Add config to writers docs (#812)
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
This commit is contained in:
parent
c751d0e656
commit
68e8eda92d
2
.env
2
.env
@ -69,7 +69,7 @@ MF_COAP_ADAPTER_PORT=5683
|
|||||||
## Addons Services
|
## Addons Services
|
||||||
### Bootstrap
|
### Bootstrap
|
||||||
MF_BOOTSTRAP_LOG_LEVEL=debug
|
MF_BOOTSTRAP_LOG_LEVEL=debug
|
||||||
MF_BOOTSTRAP_PORT=8200
|
MF_BOOTSTRAP_PORT=8202
|
||||||
MF_BOOTSTRAP_DB_PORT=5432
|
MF_BOOTSTRAP_DB_PORT=5432
|
||||||
MF_BOOTSTRAP_DB_USER=mainflux
|
MF_BOOTSTRAP_DB_USER=mainflux
|
||||||
MF_BOOTSTRAP_DB_PASS=mainflux
|
MF_BOOTSTRAP_DB_PASS=mainflux
|
||||||
|
@ -13,6 +13,16 @@ In order to run these services, core services, as well as the network from the c
|
|||||||
|
|
||||||
Writers provide an implementation of various `message writers`. Message writers are services that consume normalized (in `SenML` format) Mainflux messages and store them in specific data store.
|
Writers provide an implementation of various `message writers`. Message writers are services that consume normalized (in `SenML` format) Mainflux messages and store them in specific data store.
|
||||||
|
|
||||||
|
Every writer can filter messages based on channel list that is set in
|
||||||
|
`channels.toml` configuration file. If you want to listen on all channels,
|
||||||
|
just pass one element ["*"], otherwise pass the list of channels. Here is
|
||||||
|
an example:
|
||||||
|
|
||||||
|
```toml
|
||||||
|
[channels]
|
||||||
|
filter = ["*"]
|
||||||
|
```
|
||||||
|
|
||||||
### InfluxDB, InfluxDB-writer and Grafana
|
### InfluxDB, InfluxDB-writer and Grafana
|
||||||
|
|
||||||
From the project root execute the following command:
|
From the project root execute the following command:
|
||||||
|
@ -4,7 +4,7 @@ Writers provide an implementation of various `message writers`.
|
|||||||
Message writers are services that consume normalized (in `SenML` format)
|
Message writers are services that consume normalized (in `SenML` format)
|
||||||
Mainflux messages and store them in specific data store.
|
Mainflux messages and store them in specific data store.
|
||||||
|
|
||||||
Writers are optional services and are treated as a plugins. In order to
|
Writers are optional services and are treated as plugins. In order to
|
||||||
run writer services, core services must be up and running. For more info
|
run writer services, core services must be up and running. For more info
|
||||||
on the platform core services with its dependencies, please check out
|
on the platform core services with its dependencies, please check out
|
||||||
the [Docker Compose][compose] file.
|
the [Docker Compose][compose] file.
|
||||||
|
@ -18,7 +18,7 @@ default values.
|
|||||||
| MF_CASSANDRA_WRITER_DB_USERNAME | Cassandra DB username | |
|
| MF_CASSANDRA_WRITER_DB_USERNAME | Cassandra DB username | |
|
||||||
| MF_CASSANDRA_WRITER_DB_PASSWORD | Cassandra DB password | |
|
| MF_CASSANDRA_WRITER_DB_PASSWORD | Cassandra DB password | |
|
||||||
| MF_CASSANDRA_WRITER_DB_PORT | Cassandra DB port | 9042 |
|
| MF_CASSANDRA_WRITER_DB_PORT | Cassandra DB port | 9042 |
|
||||||
| MF_CASSANDRA_WRITER_CHANNELS_CONFIG | Configuration file path with channels list | /config/channels.yaml |
|
| MF_CASSANDRA_WRITER_CHANNELS_CONFIG | Configuration file path with channels list | /config/channels.toml |
|
||||||
## Deployment
|
## Deployment
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
@ -20,7 +20,7 @@ default values.
|
|||||||
| MF_INFLUX_WRITER_DB_PORT | Default port of InfluxDB database | 8086 |
|
| MF_INFLUX_WRITER_DB_PORT | Default port of InfluxDB database | 8086 |
|
||||||
| MF_INFLUX_WRITER_DB_USER | Default user of InfluxDB database | mainflux |
|
| MF_INFLUX_WRITER_DB_USER | Default user of InfluxDB database | mainflux |
|
||||||
| MF_INFLUX_WRITER_DB_PASS | Default password of InfluxDB user | mainflux |
|
| MF_INFLUX_WRITER_DB_PASS | Default password of InfluxDB user | mainflux |
|
||||||
| MF_INFLUX_WRITER_CHANNELS_CONFIG | Configuration file path with channels list | /config/channels.yaml |
|
| MF_INFLUX_WRITER_CHANNELS_CONFIG | Configuration file path with channels list | /config/channels.toml |
|
||||||
|
|
||||||
## Deployment
|
## Deployment
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ default values.
|
|||||||
| MF_MONGO_WRITER_DB_NAME | Default MongoDB database name | mainflux |
|
| MF_MONGO_WRITER_DB_NAME | Default MongoDB database name | mainflux |
|
||||||
| MF_MONGO_WRITER_DB_HOST | Default MongoDB database host | localhost |
|
| MF_MONGO_WRITER_DB_HOST | Default MongoDB database host | localhost |
|
||||||
| MF_MONGO_WRITER_DB_PORT | Default MongoDB database port | 27017 |
|
| MF_MONGO_WRITER_DB_PORT | Default MongoDB database port | 27017 |
|
||||||
| MF_MONGO_WRITER_CHANNELS_CONFIG | Configuration file path with channels list | /config/channels.yaml |
|
| MF_MONGO_WRITER_CHANNELS_CONFIG | Configuration file path with channels list | /config/channels.toml |
|
||||||
|
|
||||||
## Deployment
|
## Deployment
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ default values.
|
|||||||
| MF_POSTGRES_WRITER_DB_SSL_CERT | Postgres SSL certificate path | "" |
|
| MF_POSTGRES_WRITER_DB_SSL_CERT | Postgres SSL certificate path | "" |
|
||||||
| MF_POSTGRES_WRITER_DB_SSL_KEY | Postgres SSL key | "" |
|
| MF_POSTGRES_WRITER_DB_SSL_KEY | Postgres SSL key | "" |
|
||||||
| MF_POSTGRES_WRITER_DB_SSL_ROOT_CERT | Postgres SSL root certificate path | "" |
|
| MF_POSTGRES_WRITER_DB_SSL_ROOT_CERT | Postgres SSL root certificate path | "" |
|
||||||
| MF_POSTGRES_WRITER_CHANNELS_CONFIG | Configuration file path with channels list | /config/channels.yaml |
|
| MF_POSTGRES_WRITER_CHANNELS_CONFIG | Configuration file path with channels list | /config/channels.toml |
|
||||||
|
|
||||||
## Deployment
|
## Deployment
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user