From 7dd9e98ff6faecfc901866aed1d077989b1c9370 Mon Sep 17 00:00:00 2001 From: discord9 Date: Mon, 10 Mar 2025 16:12:28 +0800 Subject: [PATCH] docs: chore --- chore.md | 41 ++++++++++++++++++++++++++++++++++++++--- 1 file changed, 38 insertions(+), 3 deletions(-) diff --git a/chore.md b/chore.md index 9edb43221a..cf9641d0dd 100644 --- a/chore.md +++ b/chore.md @@ -1,4 +1,5 @@ -# first create table +# log +## first create table ```bash mysql --host=127.0.0.1 --port=19195 --database=public; ``` @@ -32,7 +33,41 @@ select count(*) from app1; SELECT * FROM app1 ORDER BY greptime_timestamp DESC LIMIT 10\G ``` -# then ingest +## then ingest ```bash RUST_LOG="debug" cargo run --bin=ingester -- --input-dir="/home/discord9/greptimedb/parquet_store_bk/" --parquet-dir="parquet_store/" --cfg="ingester.toml" --db-http-addr="http://127.0.0.1:4000/v1/sst/ingest_json" -``` \ No newline at end of file +``` + +# metrics!!!!!!! +```bash +mysql --host=127.0.0.1 --port=19195 --database=public < output.sql +``` + +## then ingest +```bash +RUST_LOG="debug" +cargo run --bin=ingester -- --input-dir="/home/discord9/greptimedb/parquet_store_bk/" --remote-write-dir="metrics_parquet/" --cfg="ingester.toml" --db-http-addr="http://127.0.0.1:4000/v1/sst/ingest_json" +``` + +## check data +```sql +select count(*) from greptime_physical_table; ++----------+ +| count(*) | ++----------+ +| 36200 | ++----------+ +1 row in set (0.06 sec) + +select count(*) from storage_operation_errors_total; ++----------+ +| count(*) | ++----------+ +| 10 | ++----------+ +1 row in set (0.03 sec) +``` + + +# with oss +the same, only different is change storage config in `ingester.toml` \ No newline at end of file