Skip to content

Commit

Permalink
chore: some minor fix (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
paomian authored Nov 7, 2024
1 parent cb2e718 commit 9eccde7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
6 changes: 5 additions & 1 deletion vector-ingestion/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,16 @@ curl -X "POST" "https://your-greptime-db-host/v1/events/pipelines/apache_common_
-u 'username:password' \
-F "[email protected]"
```
### create `config.toml`

create a `config.toml` file like `example.toml` with your GreptimeDB connect info.

### Launch Vector

```bash
sudo docker run \
--rm \
-v $PWD/example.toml:/etc/vector/vector.toml:ro \
-v $PWD/config.toml:/etc/vector/vector.toml:ro \
--name vector \
timberio/vector:0.42.0-debian --config-toml /etc/vector/vector.toml
```
Expand Down
2 changes: 1 addition & 1 deletion vector-ingestion/example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ dbname = "${GT_DB_NAME}"
username = "${GT_USERNAME}"
password = "${GT_PASSWORD}"
grpc_compression = "gzip"
###tls = {}
#tls = {}

[sinks.logs]
type = "greptimedb_logs"
Expand Down
2 changes: 1 addition & 1 deletion vector-ingestion/start.env
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ GT_HOST=localhost
GT_DB_NAME=public
GT_USERNAME=
GT_PASSWORD=
GT_GTPC_TLS=false
GT_GRPC_TLS=false
GT_GRPC_PORT=4001
GT_HTTP_PORT=4000

Expand Down
6 changes: 3 additions & 3 deletions vector-ingestion/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ fi
function run_demo {

## if GT_GRPC_TLS is true set example.toml to use tls
if [ "$GT_GRPC_TLS" = "true" ];
if [ "$GT_GRPC_TLS" = true ];
then
echo "GT_GRPC_TLS is true, setting example.toml grpc to use tls"
sed -i 's/#tls = {}/tls = {}/g' example.toml
sed -i 's/^#tls = {}/tls = {}/g' example.toml
else
echo "GT_GRPC_TLS is not set or false, setting example.toml grpc to not use tls"
sed -i 's/tls = {}/#tls = {}/g' example.toml
sed -i 's/^tls = {}/#tls = {}/g' example.toml
fi

podman run \
Expand Down

0 comments on commit 9eccde7

Please sign in to comment.