Skip to content

Commit

Permalink
MB-54362 collection memory usage stat
Browse files Browse the repository at this point in the history
Change-Id: I65573341bd9c7f7353972aab32fb49f9e321f5bb
Reviewed-on: https://review.couchbase.org/c/query/+/182145
Tested-by: Sitaram Vemulapalli <sitaram.vemulapalli@couchbase.com>
Reviewed-by: Sitaram Vemulapalli <sitaram.vemulapalli@couchbase.com>
  • Loading branch information
Marco Greco committed Nov 1, 2022
1 parent b4074cc commit 162095b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions primitives/couchbase/memcached.go
Expand Up @@ -535,16 +535,19 @@ type BucketStats int
const (
StatCount = BucketStats(iota)
StatSize
StatMemSize
)

var bucketStatString = []string{
"curr_items",
"ep_value_size",
"ep_value_size",
}

var collectionStatString = []string{
"items",
"data_size",
"collections_mem_used",
}

// Get selected bucket or collection stats
Expand Down

0 comments on commit 162095b

Please sign in to comment.