-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
104302: pkg/metrics: use experimental native histograms. r=jmcarp a=jmcarp Optionally enable prometheus native histograms. This feature is still marked as experimental in prometheus, so flag using an environment variable, and use additional environment variables to tune precision and max bucket count. Prometheus native histograms currently only support exponentially spaced buckets, so we also limit their use to metrics with an exponential distribution. Note that native histograms currently use the protobuf exposition format, so we add content negotiation to the prometheus exporter. Epic: https://cockroachlabs.atlassian.net/browse/CC-9716 Release note: None 109595: parser: validate privilege name when parsing r=rafiss a=rafiss Now we differentiate between parsing a privileges name from user input versus from a system table. This allows us to validate names, but still backport names to older branches without causing errors. No release note, since the user-facing change here is just a better error message. fixes #109549 fixes #109559 Release note: None Co-authored-by: Josh Carp <[email protected]> Co-authored-by: Rafi Shamim <[email protected]>
- Loading branch information
Showing
32 changed files
with
288 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -134,6 +134,16 @@ def go_deps(): | |
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/akavel/rsrc/com_github_akavel_rsrc-v0.8.0.zip", | ||
], | ||
) | ||
go_repository( | ||
name = "com_github_alecthomas_kingpin_v2", | ||
build_file_proto_mode = "disable_global", | ||
importpath = "github.com/alecthomas/kingpin/v2", | ||
sha256 = "2a322681d79461dd793c1e8a98adf062f6ef554abcd3ab06981eef94d79c136b", | ||
strip_prefix = "github.com/alecthomas/kingpin/[email protected]", | ||
urls = [ | ||
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/alecthomas/kingpin/v2/com_github_alecthomas_kingpin_v2-v2.3.1.zip", | ||
], | ||
) | ||
go_repository( | ||
name = "com_github_alecthomas_template", | ||
build_file_proto_mode = "disable_global", | ||
|
@@ -148,10 +158,10 @@ def go_deps(): | |
name = "com_github_alecthomas_units", | ||
build_file_proto_mode = "disable_global", | ||
importpath = "github.com/alecthomas/units", | ||
sha256 = "461b05eb19b6023664d6502cb4fbf093a99a9ee2a36c43b4da5ca1287c495ff7", | ||
strip_prefix = "github.com/alecthomas/[email protected]20210208195552-ff826a37aa15", | ||
sha256 = "b62437d74a523089af46ba0115ece1ce11bca5e321fe1e1d4c976ecca6ee78aa", | ||
strip_prefix = "github.com/alecthomas/[email protected]20211218093645-b94a6e3cc137", | ||
urls = [ | ||
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/alecthomas/units/com_github_alecthomas_units-v0.0.0-20210208195552-ff826a37aa15.zip", | ||
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/alecthomas/units/com_github_alecthomas_units-v0.0.0-20211218093645-b94a6e3cc137.zip", | ||
], | ||
) | ||
go_repository( | ||
|
@@ -3080,10 +3090,10 @@ def go_deps(): | |
name = "com_github_go_kit_log", | ||
build_file_proto_mode = "disable_global", | ||
importpath = "github.com/go-kit/log", | ||
sha256 = "e0676df7357654a000008dfad3b6b211cba3595f32d3e220edd63a4c9d0d9254", | ||
strip_prefix = "github.com/go-kit/log@v0.1.0", | ||
sha256 = "52634b502b9d0aa945833d93582cffc1bdd9bfa39810e7c70d0688e330b75198", | ||
strip_prefix = "github.com/go-kit/log@v0.2.1", | ||
urls = [ | ||
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/go-kit/log/com_github_go_kit_log-v0.1.0.zip", | ||
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/go-kit/log/com_github_go_kit_log-v0.2.1.zip", | ||
], | ||
) | ||
go_repository( | ||
|
@@ -3748,10 +3758,10 @@ def go_deps(): | |
patches = [ | ||
"@com_github_cockroachdb_cockroach//build/patches:com_github_golang_protobuf.patch", | ||
], | ||
sha256 = "5d1c817bebc1202ab3b42a418e584e0008e8027baf212ce69c2ae3e9e7b8c64b", | ||
strip_prefix = "github.com/golang/[email protected].2", | ||
sha256 = "93bda6e88d4a0a493a98b481de67a10000a755d15f16a800b49a6b96d1bd6f81", | ||
strip_prefix = "github.com/golang/[email protected].3", | ||
urls = [ | ||
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/golang/protobuf/com_github_golang_protobuf-v1.5.2.zip", | ||
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/golang/protobuf/com_github_golang_protobuf-v1.5.3.zip", | ||
], | ||
) | ||
go_repository( | ||
|
@@ -7447,10 +7457,10 @@ def go_deps(): | |
name = "com_github_prometheus_client_golang", | ||
build_file_proto_mode = "disable_global", | ||
importpath = "github.com/prometheus/client_golang", | ||
sha256 = "d9bbfcdcb5f63812b6766884a0f5ad5b1f9a675375d28e307573f49e2ef96b7b", | ||
strip_prefix = "github.com/prometheus/client_golang@v1.12.1", | ||
sha256 = "0167cee686b836da39815e4a7ea64ecc245f6a3fb9b3c3f729941ed55da7dd4f", | ||
strip_prefix = "github.com/prometheus/client_golang@v1.16.0", | ||
urls = [ | ||
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/prometheus/client_golang/com_github_prometheus_client_golang-v1.12.1.zip", | ||
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/prometheus/client_golang/com_github_prometheus_client_golang-v1.16.0.zip", | ||
], | ||
) | ||
go_repository( | ||
|
@@ -7460,20 +7470,20 @@ def go_deps(): | |
], | ||
build_file_proto_mode = "default", | ||
importpath = "github.com/prometheus/client_model", | ||
sha256 = "44fc58fe25ed9b122b6755e8d356d5f199592f959af3b87a3b636c6eb82b43c5", | ||
strip_prefix = "github.com/prometheus/client_model@v0.2.1-0.20210607210712-147c58e9608a", | ||
sha256 = "2a1d147754959287fc34a7bb7c333b3d6fe0ca0d7db1606c49e8f48fd0311547", | ||
strip_prefix = "github.com/prometheus/client_model@v0.3.0", | ||
urls = [ | ||
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/prometheus/client_model/com_github_prometheus_client_model-v0.2.1-0.20210607210712-147c58e9608a.zip", | ||
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/prometheus/client_model/com_github_prometheus_client_model-v0.3.0.zip", | ||
], | ||
) | ||
go_repository( | ||
name = "com_github_prometheus_common", | ||
build_file_proto_mode = "disable_global", | ||
importpath = "github.com/prometheus/common", | ||
sha256 = "9630b9bbfcf1746a01c8aff0262271c60cf891fa1cd48a8ed9149de557dc98d6", | ||
strip_prefix = "github.com/prometheus/common@v0.32.1", | ||
sha256 = "7a4ef12402a8a153c47c085cadf362bdc2ffe4761e50d6ab2c49e4d64044bc85", | ||
strip_prefix = "github.com/prometheus/common@v0.42.0", | ||
urls = [ | ||
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/prometheus/common/com_github_prometheus_common-v0.32.1.zip", | ||
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/prometheus/common/com_github_prometheus_common-v0.42.0.zip", | ||
], | ||
) | ||
go_repository( | ||
|
@@ -7500,10 +7510,10 @@ def go_deps(): | |
name = "com_github_prometheus_procfs", | ||
build_file_proto_mode = "disable_global", | ||
importpath = "github.com/prometheus/procfs", | ||
sha256 = "3e37c9f62738a493dd28283179d802749050353df0bca161df7cec4ed43e6f1a", | ||
strip_prefix = "github.com/prometheus/procfs@v0.7.3", | ||
sha256 = "3f7a5c30bbcd2adcc7ec62896b69a3792ca1603cf0998fa06d2b872a74ed13b0", | ||
strip_prefix = "github.com/prometheus/procfs@v0.10.1", | ||
urls = [ | ||
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/prometheus/procfs/com_github_prometheus_procfs-v0.7.3.zip", | ||
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/prometheus/procfs/com_github_prometheus_procfs-v0.10.1.zip", | ||
], | ||
) | ||
go_repository( | ||
|
@@ -8790,6 +8800,16 @@ def go_deps(): | |
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/xeipuuv/gojsonschema/com_github_xeipuuv_gojsonschema-v1.2.0.zip", | ||
], | ||
) | ||
go_repository( | ||
name = "com_github_xhit_go_str2duration", | ||
build_file_proto_mode = "disable_global", | ||
importpath = "github.com/xhit/go-str2duration", | ||
sha256 = "87df7da9ed9a48a2da6b3df14d33a567a9e6ed2454e4cbd694baa7ec82ca7ec1", | ||
strip_prefix = "github.com/xhit/[email protected]", | ||
urls = [ | ||
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/xhit/go-str2duration/com_github_xhit_go_str2duration-v1.2.0.zip", | ||
], | ||
) | ||
go_repository( | ||
name = "com_github_xiang90_probing", | ||
build_file_proto_mode = "disable_global", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.