From 33620f8be7fedef1df480972fc5dd5b7d46920aa Mon Sep 17 00:00:00 2001 From: YangKian <45479280+YangKian@users.noreply.github.com> Date: Tue, 2 Jul 2024 14:23:22 +0800 Subject: [PATCH] add cache store stats (#96) --- .github/workflows/ci.yml | 2 +- hstream.proto | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index df70370..8eb38cc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,7 +35,7 @@ jobs: - uses: actions/setup-go@v3 with: - go-version: "1.17" + go-version: "1.21" - name: install protobuf run: | diff --git a/hstream.proto b/hstream.proto index e6c5aa9..986c82d 100644 --- a/hstream.proto +++ b/hstream.proto @@ -765,6 +765,16 @@ enum QueryStats { enum ViewStats { TotalExecuteQueries = 0; } +enum CacheStoreStats { + CSAppendInBytes = 0; + CSAppendInRecords = 1; + CSAppendTotal = 2; + CSAppendFailed = 3; + CSReadInBytes = 4; + CSReadInRecords = 5; + CSDeliveredInRecords = 6; +} + message StatType { oneof stat { StreamStats streamStat = 1; @@ -772,6 +782,7 @@ message StatType { ConnectorStats connStat = 3; QueryStats queryStat = 4; ViewStats viewStat = 5; + CacheStoreStats cacheStoreStat = 6; } }