Skip to content

Commit

Permalink
config-primer.md improvements (WIP)
Browse files Browse the repository at this point in the history
  • Loading branch information
avelanarius committed Nov 5, 2024
1 parent 5d19d94 commit cc6ae36
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 14 deletions.
32 changes: 27 additions & 5 deletions docs/public/docs/config-primer.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,17 @@ frontendConnectors:
listenPort: 8080
```
The supported configuration options for frontend connectors (under `config`):
* `listenPort` - port number on which the frontend connector will listen for incoming requests
* `disableAuth` - when set to `true`, disables authentication for incoming requests (optional, defaults to false). If you use Kibana without authentication, set it to `true`.


#### Backend connectors

Backend connector has to have a `name`, `type` and `config` fields.
* `name` is a unique identifier for the connector
* `type` specifies the type of the connector.\
At this moment, only three backend connector types are allowed: `elasticsearch`, `clickhouse` (used for ClickHouse Cloud SaaS service, `clickhouse-os` and `hydrolix`.
At this moment, only three backend connector types are allowed: `elasticsearch`, `clickhouse` (used for ClickHouse Cloud SaaS service), `clickhouse-os` (ClickHouse OSS) and `hydrolix`.
* `config` is a set of configuration options for the connector.
```yaml
backendConnectors:
Expand All @@ -84,16 +89,25 @@ backendConnectors:
config:
user: "elastic"
password: "change-me"
url: "http://elasticsearch:9200"
url: "http://192.168.0.7:9200"
- name: my-clickhouse-data-source
type: clickhouse-os
config:
user: "username"
password: "username-is-password"
database: "dbname"
url: "clickhouse://clickhouse:9000"
url: "clickhouse://192.168.0.9:9000"
```
**WARNING:** When connecting to ClickHouse or Hydrolix, only the native protocol connection (`clickhouse://`) is supported.

The supported configuration options for backend connectors (under `config`):
* `url` - connection string to the backend service in a URL format (`protocol://host:port`):
* for Elastic/OpenSearch the expected format is `http://host:port` (Elastic/OpenSearch default port is 9200)
* for ClickHouse/Hydrolix the expected format is `clickhouse://host:port` (ClickHouse default port is 9000, ClickHouse/Hydrolix default encrypted port is 9440). Note that Quesma supports only the ClickHouse native protocol (`clickhouse://`) and does not support the HTTP protocol.
* `user` - username for authentication
* `password` - password for authentication
* `database` - name of the database to connect to (optional for ClickHouse, required for Hydrolix)
* `adminUrl` - URL for administrative operations (optional)
* `disableTLS` - when set to true, disables TLS for the connection (optional)

### Processors

Expand Down Expand Up @@ -178,8 +192,16 @@ The configuration for an index consists of the following configuration options:
will dual write ingest requests to `my_index` to both ElasticSearch and ClickHouse.
Note that ElasticSearch/OpenSearch is the only supported backend for the `*` entry.
If no targets are provided (example: `target: []`) in the configuration of an index in the ingest processor, ingest for that index will be disabled and incoming data will be dropped.
Some backend connectors have additional attributes which may be used. For example the following configuration sets `useCommonTable` for `backend-clickhouse` target:
```yaml
my_index:
target:
- backend-clickhouse:
useCommonTable: true
```
Currently only the ClickHouse backend connector supports the following attributes:
- `useCommonTable` (optional): if enabled, Quesma will store data in a single Hydrolix/ClickHouse table named `quesma_common_table`. See [ingest documentation](/ingest.md) for more details.
- `override` (optional): override the name of table in Hydrolix/ClickHouse (by default Quesma uses the same table name as the index name)
- `useCommonTable` (optional): if enabled, Quesma will store data in a single Hydrolix/ClickHouse table named `quesma_common_table`. See [ingest documentation](/ingest.md) for more details.

## Optional configuration options

Expand Down
2 changes: 1 addition & 1 deletion docs/public/docs/example-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ flowchart LR
- name: backend-elasticsearch
type: elasticsearch
config:
url: #PLACE_YOUR_ELASTICSEARCH_URL_HERE
url: #PLACE_YOUR_ELASTICSEARCH_URL_HERE, for example: http://192.168.0.7:9200
user: #PLACE_YOUR_ELASTICSEARCH_USERNAME_HERE
password: #PLACE_YOUR_ELASTICSEARCH_PASSWORD_HERE
processors:
Expand Down
4 changes: 2 additions & 2 deletions docs/public/docs/example-2-0-clickhouse-specific.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ flowchart LR
- name: minimal-elasticsearch
type: elasticsearch
config:
url: #PLACE_YOUR_ELASTICSEARCH_URL_HERE
url: #PLACE_YOUR_ELASTICSEARCH_URL_HERE, for example: http://192.168.0.7:9200
user: #PLACE_YOUR_ELASTICSEARCH_USERNAME_HERE
password: #PLACE_YOUR_ELASTICSEARCH_PASSWORD_HERE
- name: clickhouse-instance
type: clickhouse-os
#type: clickhouse # use for ClickHouse cloud service only
config:
url: #PLACE_YOUR_CLICKHOUSE_URL_HERE
url: #PLACE_YOUR_CLICKHOUSE_URL_HERE, for example: clickhouse://192.168.0.7:9000
user: #PLACE_YOUR_CLICKHOUSE_USER_HERE
password: #PLACE_YOUR_CLICKHOUSE_PASSWORD_HERE
database: #PLACE_YOUR_CLICKHOUSE_DATABASE_NAME_HERE
Expand Down
4 changes: 2 additions & 2 deletions docs/public/docs/example-2-0.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ flowchart LR
- name: minimal-elasticsearch
type: elasticsearch
config:
url: #PLACE_YOUR_ELASTICSEARCH_URL_HERE
url: #PLACE_YOUR_ELASTICSEARCH_URL_HERE, for example: http://192.168.0.7:9200
user: #PLACE_YOUR_ELASTICSEARCH_USERNAME_HERE
password: #PLACE_YOUR_ELASTICSEARCH_PASSWORD_HERE
- name: hydrolix-instance
type: hydrolix
config:
url: #PLACE_YOUR_HYDROLIX_URL_HERE
url: #PLACE_YOUR_HYDROLIX_URL_HERE, for example: clickhouse://companyname.hydrolix.live:9440
user: #PLACE_YOUR_HYDROLIX_USER_HERE
password: #PLACE_YOUR_HYDROLIX_PASSWORD_HERE
database: #PLACE_YOUR_HYDROLIX_DATABASE_NAME_HERE
Expand Down
4 changes: 2 additions & 2 deletions docs/public/docs/example-2-1-hydro-specific.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ flowchart LR
- name: elasticsearch-instance
type: elasticsearch
config:
url: #PLACE_YOUR_ELASTICSEARCH_URL_HERE
url: #PLACE_YOUR_ELASTICSEARCH_URL_HERE, for example: http://192.168.0.7:9200
user: #PLACE_YOUR_ELASTICSEARCH_USERNAME_HERE
password: #PLACE_YOUR_ELASTICSEARCH_PASSWORD_HERE
- name: hydrolix-instance
type: hydrolix
config:
url: #PLACE_YOUR_HYDROLIX_URL_HERE
url: #PLACE_YOUR_HYDROLIX_URL_HERE, for example: clickhouse://companyname.hydrolix.live:9440
user: #PLACE_YOUR_HYDROLIX_USER_HERE
password: #PLACE_YOUR_HYDROLIX_PASSWORD_HERE
database: #PLACE_YOUR_HYDROLIX_DATABASE_NAME_HERE
Expand Down
4 changes: 2 additions & 2 deletions docs/public/docs/example-2-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ K[Kibana/OSD] --> Q((Quesma))
- name: elasticsearch-instance
type: elasticsearch
config:
url: #PLACE_YOUR_ELASTICSEARCH_URL_HERE
url: #PLACE_YOUR_ELASTICSEARCH_URL_HERE, for example: http://192.168.0.7:9200
user: #PLACE_YOUR_ELASTICSEARCH_USERNAME_HERE
password: #PLACE_YOUR_ELASTICSEARCH_PASSWORD_HERE
- name: clickhouse-instance
type: clickhouse-os
#type: clickhouse # use for ClickHouse cloud service only
config:
url: #PLACE_YOUR_CLICKHOUSE_URL_HERE
url: #PLACE_YOUR_CLICKHOUSE_URL_HERE, for example: clickhouse://192.168.0.7:9000
user: #PLACE_YOUR_CLICKHOUSE_USER_HERE
password: #PLACE_YOUR_CLICKHOUSE_PASSWORD_HERE
database: #PLACE_YOUR_CLICKHOUSE_DATABASE_NAME_HERE
Expand Down

0 comments on commit cc6ae36

Please sign in to comment.