File tree Expand file tree Collapse file tree 2 files changed +46
-5
lines changed
Expand file tree Collapse file tree 2 files changed +46
-5
lines changed Original file line number Diff line number Diff line change 1+ # Copyright 2025 The Cockroach Authors
2+ #
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+ #
7+ # http://www.apache.org/licenses/LICENSE-2.0
8+ #
9+ # Unless required by applicable law or agreed to in writing, software
10+ # distributed under the License is distributed on an "AS IS" BASIS,
11+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ # See the License for the specific language governing permissions and
13+ # limitations under the License.
14+ #
15+ # SPDX-License-Identifier: Apache-2.0
16+
17+
18+ name : mvcc
19+ enabled : true
20+ scope : cluster
21+ frequency : 60
22+ maxresults : 1
23+ labels : []
24+ metrics :
25+ - name : total_bytes
26+ kind : gauge
27+ help : total_bytes in all tables.
28+ - name : garbage_bytes
29+ kind : gauge
30+ help : garbage_bytes in all tables.
31+ query :
32+ SELECT
33+ SUM((crdb_internal.range_stats(start_key::bytes)->>'key_bytes')::int
34+ + (crdb_internal.range_stats(start_key::bytes)->>'val_bytes')::int) as total_bytes,
35+ SUM((crdb_internal.range_stats(start_key::bytes)->>'key_bytes')::int
36+ + (crdb_internal.range_stats(start_key::bytes)->>'val_bytes')::int
37+ - (crdb_internal.range_stats(start_key::bytes)->>'live_bytes')::int) as garbage_bytes
38+ FROM
39+ crdb_internal.ranges_no_leases
40+ LIMIT $1
41+ ;
Original file line number Diff line number Diff line change @@ -45,16 +45,16 @@ go run golang.org/x/lint/golint -set_exit_status ./...
4545go run honnef.co/go/tools/cmd/staticcheck -checks all ./...
4646
4747VERSION=" github.com/cockroachlabs/visus/internal/http.Version=$version "
48- GOOS=linux go build -v -ldflags=" -X '$VERSION '" -o visus
48+ GOOS=linux GOARCH=amd64 go build -v -ldflags=" -X '$VERSION '" -o visus
4949
50- tar cvfz $amdfile visus examples
50+ tar -cvz --no-xattrs -f $amdfile visus examples
5151
52- shasum -a 256 $amdfile
5352GOOS=linux GOARCH=arm64 go build -v -ldflags=" -X '$VERSION '" -o visus
5453
55- tar cvfz $armfile visus examples
56- shasum -a 256 $armfile
54+ tar -cvz --no-xattrs -f $armfile visus examples
5755
5856go build -ldflags=" -X '$VERSION '" -o visus
5957
6058echo " Upload binaries $amdfile and $armfile to release"
59+ shasum -a 256 $armfile
60+ shasum -a 256 $amdfile
You can’t perform that action at this time.
0 commit comments