diff --git a/builtin/logical/database/backend.go b/builtin/logical/database/backend.go index 693a22ff97f3..b143da3060c6 100644 --- a/builtin/logical/database/backend.go +++ b/builtin/logical/database/backend.go @@ -11,8 +11,8 @@ import ( "sync" "time" - "github.com/armon/go-metrics" log "github.com/hashicorp/go-hclog" + "github.com/hashicorp/go-metrics" "github.com/hashicorp/go-secure-stdlib/strutil" "github.com/hashicorp/go-uuid" "github.com/hashicorp/vault/builtin/logical/database/schedule" diff --git a/builtin/logical/pki/backend.go b/builtin/logical/pki/backend.go index 75fd4e83395c..28ecaf781411 100644 --- a/builtin/logical/pki/backend.go +++ b/builtin/logical/pki/backend.go @@ -11,18 +11,17 @@ import ( "sync/atomic" "time" - "github.com/armon/go-metrics" + "github.com/hashicorp/go-metrics" "github.com/hashicorp/go-multierror" + "github.com/hashicorp/vault/builtin/logical/pki/issuing" + "github.com/hashicorp/vault/builtin/logical/pki/managed_key" + "github.com/hashicorp/vault/builtin/logical/pki/pki_backend" "github.com/hashicorp/vault/helper/metricsutil" "github.com/hashicorp/vault/helper/namespace" "github.com/hashicorp/vault/sdk/framework" "github.com/hashicorp/vault/sdk/helper/consts" "github.com/hashicorp/vault/sdk/helper/errutil" "github.com/hashicorp/vault/sdk/logical" - - "github.com/hashicorp/vault/builtin/logical/pki/issuing" - "github.com/hashicorp/vault/builtin/logical/pki/managed_key" - "github.com/hashicorp/vault/builtin/logical/pki/pki_backend" ) const ( diff --git a/builtin/logical/pki/backend_test.go b/builtin/logical/pki/backend_test.go index 1c77a0d9c07a..40e709151da4 100644 --- a/builtin/logical/pki/backend_test.go +++ b/builtin/logical/pki/backend_test.go @@ -45,9 +45,9 @@ import ( "github.com/stretchr/testify/require" - "github.com/armon/go-metrics" "github.com/fatih/structs" "github.com/go-test/deep" + "github.com/hashicorp/go-metrics" "github.com/hashicorp/go-secure-stdlib/strutil" "github.com/hashicorp/vault/api" auth "github.com/hashicorp/vault/api/auth/userpass" diff --git a/builtin/logical/pki/path_tidy.go b/builtin/logical/pki/path_tidy.go index d3b0776eca0f..330a18ca2a38 100644 --- a/builtin/logical/pki/path_tidy.go +++ b/builtin/logical/pki/path_tidy.go @@ -12,8 +12,8 @@ import ( "sync/atomic" "time" - "github.com/armon/go-metrics" "github.com/hashicorp/go-hclog" + "github.com/hashicorp/go-metrics" "github.com/hashicorp/go-secure-stdlib/parseutil" "github.com/hashicorp/vault/builtin/logical/pki/issuing" "github.com/hashicorp/vault/sdk/framework" diff --git a/builtin/logical/pki/path_tidy_test.go b/builtin/logical/pki/path_tidy_test.go index 1eb00c7f5bdb..bd786c589a2b 100644 --- a/builtin/logical/pki/path_tidy_test.go +++ b/builtin/logical/pki/path_tidy_test.go @@ -25,7 +25,7 @@ import ( "github.com/hashicorp/vault/helper/testhelpers" "github.com/hashicorp/vault/sdk/helper/testhelpers/schema" - "github.com/armon/go-metrics" + "github.com/hashicorp/go-metrics" "github.com/hashicorp/vault/api" vaulthttp "github.com/hashicorp/vault/http" diff --git a/changelog/24268.txt b/changelog/24268.txt new file mode 100644 index 000000000000..22002a25c344 --- /dev/null +++ b/changelog/24268.txt @@ -0,0 +1,3 @@ +```release-note:change +vault: Replaces the direct package dependency on github.com/armon/go-metrics with github.com/hashicorp/go-metrics. +``` \ No newline at end of file diff --git a/command/agent_test.go b/command/agent_test.go index 521070736d98..f9cf3a3a0bc0 100644 --- a/command/agent_test.go +++ b/command/agent_test.go @@ -2661,6 +2661,7 @@ listener "tcp" { "Samples", "Timestamp", "Gauges", + "PrecisionGauges", "Points", }) } diff --git a/command/agentproxyshared/auth/auth.go b/command/agentproxyshared/auth/auth.go index 0017acd34cfc..660d696ae46c 100644 --- a/command/agentproxyshared/auth/auth.go +++ b/command/agentproxyshared/auth/auth.go @@ -12,11 +12,10 @@ import ( "net/http" "time" - "github.com/armon/go-metrics" "github.com/hashicorp/go-hclog" - "github.com/hashicorp/vault/sdk/helper/backoff" - + "github.com/hashicorp/go-metrics" "github.com/hashicorp/vault/api" + "github.com/hashicorp/vault/sdk/helper/backoff" "github.com/hashicorp/vault/sdk/helper/jsonutil" ) diff --git a/command/agentproxyshared/cache/handler.go b/command/agentproxyshared/cache/handler.go index 25acaee01cb8..d7df4e0b3327 100644 --- a/command/agentproxyshared/cache/handler.go +++ b/command/agentproxyshared/cache/handler.go @@ -15,8 +15,8 @@ import ( "net/http" "time" - "github.com/armon/go-metrics" "github.com/hashicorp/go-hclog" + "github.com/hashicorp/go-metrics" "github.com/hashicorp/vault/api" "github.com/hashicorp/vault/command/agentproxyshared/sink" "github.com/hashicorp/vault/sdk/helper/consts" diff --git a/command/proxy_test.go b/command/proxy_test.go index 4e95becc885a..20623cb2033c 100644 --- a/command/proxy_test.go +++ b/command/proxy_test.go @@ -2025,6 +2025,7 @@ listener "tcp" { "Samples", "Timestamp", "Gauges", + "PrecisionGauges", "Points", }) } diff --git a/go.mod b/go.mod index d2e0aaa3327f..dc6848b21d1b 100644 --- a/go.mod +++ b/go.mod @@ -71,7 +71,7 @@ require ( github.com/golang/protobuf v1.5.3 github.com/google/go-cmp v0.6.0 github.com/google/go-github v17.0.0+incompatible - github.com/google/go-metrics-stackdriver v0.2.0 + github.com/google/go-metrics-stackdriver v0.6.0 github.com/google/tink/go v1.7.0 github.com/hashicorp-forge/bbolt v1.3.8-hc3 github.com/hashicorp/cap v0.4.1 @@ -96,6 +96,7 @@ require ( github.com/hashicorp/go-kms-wrapping/wrappers/ocikms/v2 v2.0.7 github.com/hashicorp/go-kms-wrapping/wrappers/transit/v2 v2.0.8 github.com/hashicorp/go-memdb v1.3.4 + github.com/hashicorp/go-metrics v0.5.3 github.com/hashicorp/go-multierror v1.1.1 github.com/hashicorp/go-plugin v1.6.0 github.com/hashicorp/go-raftchunking v0.6.3-0.20191002164813-7e9e8525653a @@ -382,7 +383,6 @@ require ( github.com/hailocab/go-hostpool v0.0.0-20160125115350-e80d13ce29ed // indirect github.com/hashicorp/cronexpr v1.1.1 // indirect github.com/hashicorp/go-immutable-radix v1.3.1 // indirect - github.com/hashicorp/go-metrics v0.5.1 // indirect github.com/hashicorp/go-msgpack/v2 v2.1.1 // indirect github.com/hashicorp/go-secure-stdlib/fileutil v0.1.0 // indirect github.com/hashicorp/go-secure-stdlib/plugincontainer v0.3.0 // indirect diff --git a/go.sum b/go.sum index 28ec85dbe2c6..fc6f3f252556 100644 --- a/go.sum +++ b/go.sum @@ -3,7 +3,6 @@ bazil.org/fuse v0.0.0-20200407214033-5883e5a4b512/go.mod h1:FbcW6z/2VytnFDhZfumh cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= -cloud.google.com/go v0.39.0/go.mod h1:rVLT6fkc8chs9sfPtFc1SBH6em7n+ZoXaG+87tDISts= cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= cloud.google.com/go v0.44.3/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= @@ -1160,7 +1159,6 @@ github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hC github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8= github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= github.com/armon/go-metrics v0.0.0-20190430140413-ec5e00d3c878/go.mod h1:3AMJUQhVx52RsWOnlkpikZr01T/yAVN2gn0861vByNg= -github.com/armon/go-metrics v0.3.0/go.mod h1:zXjbSimjXTd7vOpY8B0/2LpvNvDoXBuplAD+gJD3GYs= github.com/armon/go-metrics v0.4.1 h1:hR91U9KYmb6bLBYLQjyM+3j+rcd/UhE+G78SFnF8gJA= github.com/armon/go-metrics v0.4.1/go.mod h1:E6amYzXo6aW1tqzoZGT755KkbgrJsSdpwZ+3JqfkOG4= github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= @@ -1945,8 +1943,8 @@ github.com/google/go-containerregistry v0.5.1/go.mod h1:Ct15B4yir3PLOP5jsy0GNeYV github.com/google/go-containerregistry v0.14.0/go.mod h1:aiJ2fp/SXvkWgmYHioXnbMdlgB8eXiiYOY55gfN91Wk= github.com/google/go-github v17.0.0+incompatible h1:N0LgJ1j65A7kfXrZnUDaYCs/Sf4rEjNlfyDHW9dolSY= github.com/google/go-github v17.0.0+incompatible/go.mod h1:zLgOLi98H3fifZn+44m+umXrS52loVEgC2AApnigrVQ= -github.com/google/go-metrics-stackdriver v0.2.0 h1:rbs2sxHAPn2OtUj9JdR/Gij1YKGl0BTVD0augB+HEjE= -github.com/google/go-metrics-stackdriver v0.2.0/go.mod h1:KLcPyp3dWJAFD+yHisGlJSZktIsTjb50eB72U2YZ9K0= +github.com/google/go-metrics-stackdriver v0.6.0 h1:mTAuSdMKQMSFg47lgHtoNvR+fXghYBpR8Na1bmaUmLg= +github.com/google/go-metrics-stackdriver v0.6.0/go.mod h1:x7yQEB2bAxMSeQF1hDwaSthMqeHGEATLLCclsYrua2M= github.com/google/go-pkcs11 v0.2.0/go.mod h1:6eQoGcuNJpa7jnd5pMGdkSaQpNDYvPlXWMcjXXThLlY= github.com/google/go-querystring v0.0.0-20170111101155-53e6ce116135/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck= github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= @@ -2137,8 +2135,8 @@ github.com/hashicorp/go-kms-wrapping/wrappers/transit/v2 v2.0.8 h1:uvdmC28xaqklq github.com/hashicorp/go-kms-wrapping/wrappers/transit/v2 v2.0.8/go.mod h1:zHX8LhkrU/M8sJkIQ85Dsrg7aqNEonY1+l6MlUC+6O4= github.com/hashicorp/go-memdb v1.3.4 h1:XSL3NR682X/cVk2IeV0d70N4DZ9ljI885xAEU8IoK3c= github.com/hashicorp/go-memdb v1.3.4/go.mod h1:uBTr1oQbtuMgd1SSGoR8YV27eT3sBHbYiNm53bMpgSg= -github.com/hashicorp/go-metrics v0.5.1 h1:rfPwUqFU6uZXNvGl4hzjY8LEBsqFVU4si1H9/Hqck/U= -github.com/hashicorp/go-metrics v0.5.1/go.mod h1:KEjodfebIOuBYSAe/bHTm+HChmKSxAOXPBieMLYozDE= +github.com/hashicorp/go-metrics v0.5.3 h1:M5uADWMOGCTUNU1YuC4hfknOeHNaX54LDm4oYSucoNE= +github.com/hashicorp/go-metrics v0.5.3/go.mod h1:KEjodfebIOuBYSAe/bHTm+HChmKSxAOXPBieMLYozDE= github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= github.com/hashicorp/go-msgpack v0.5.5/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= github.com/hashicorp/go-msgpack v1.1.5 h1:9byZdVjKTe5mce63pRVNP1L7UAmdHOTEMGehn6KvJWs= @@ -3965,7 +3963,6 @@ gonum.org/v1/plot v0.9.0/go.mod h1:3Pcqqmp6RHvJI72kgb8fThyUnav364FOsdDo2aGW5lY= gonum.org/v1/plot v0.10.1/go.mod h1:VZW5OlhkL1mysU9vaqNHnsy86inf6Ot+jB3r+BczCEo= google.golang.org/api v0.0.0-20160322025152-9bf6e6e569ff/go.mod h1:4mhQ8q/RsB7i+udVvVy5NUi08OU8ZlA0gRVgrF7VFY0= google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= -google.golang.org/api v0.5.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= @@ -4048,7 +4045,6 @@ google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRn google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190508193815-b515fa19cec8/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= google.golang.org/genproto v0.0.0-20190522204451-c2c4e71fbf69/go.mod h1:z3L6/3dTEVtUr6QSP8miRzeRqwQOioJ9I66odjN4I7s= google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= @@ -4241,7 +4237,6 @@ google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZi google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.0/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= -google.golang.org/grpc v1.22.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= google.golang.org/grpc v1.23.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= google.golang.org/grpc v1.24.0/go.mod h1:XDChyiUovWa60DnaeDeZmSW86xtLtjtZbwvSiRnRtcA= diff --git a/helper/fairshare/jobmanager.go b/helper/fairshare/jobmanager.go index 086a549f647e..d201940eb0c9 100644 --- a/helper/fairshare/jobmanager.go +++ b/helper/fairshare/jobmanager.go @@ -11,10 +11,9 @@ import ( "sync" "time" - "github.com/armon/go-metrics" log "github.com/hashicorp/go-hclog" + "github.com/hashicorp/go-metrics" uuid "github.com/hashicorp/go-uuid" - "github.com/hashicorp/vault/helper/metricsutil" "github.com/hashicorp/vault/sdk/helper/logging" ) diff --git a/helper/metricsutil/gauge_process.go b/helper/metricsutil/gauge_process.go index bb61f24ddc09..2c43cb3fbd36 100644 --- a/helper/metricsutil/gauge_process.go +++ b/helper/metricsutil/gauge_process.go @@ -9,8 +9,8 @@ import ( "sort" "time" - "github.com/armon/go-metrics" log "github.com/hashicorp/go-hclog" + "github.com/hashicorp/go-metrics" "github.com/hashicorp/vault/helper/timeutil" ) diff --git a/helper/metricsutil/gauge_process_test.go b/helper/metricsutil/gauge_process_test.go index e5e1c6145b5c..c369e9038681 100644 --- a/helper/metricsutil/gauge_process_test.go +++ b/helper/metricsutil/gauge_process_test.go @@ -13,8 +13,8 @@ import ( "testing" "time" - "github.com/armon/go-metrics" log "github.com/hashicorp/go-hclog" + "github.com/hashicorp/go-metrics" "github.com/hashicorp/vault/helper/timeutil" ) diff --git a/helper/metricsutil/metricsutil.go b/helper/metricsutil/metricsutil.go index 9654d5234277..8d84bf0d94fe 100644 --- a/helper/metricsutil/metricsutil.go +++ b/helper/metricsutil/metricsutil.go @@ -11,7 +11,7 @@ import ( "strings" "sync" - "github.com/armon/go-metrics" + "github.com/hashicorp/go-metrics" "github.com/hashicorp/vault/sdk/logical" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/common/expfmt" diff --git a/helper/metricsutil/wrapped_metrics.go b/helper/metricsutil/wrapped_metrics.go index 0cf453123304..6a14660d24e3 100644 --- a/helper/metricsutil/wrapped_metrics.go +++ b/helper/metricsutil/wrapped_metrics.go @@ -8,7 +8,7 @@ import ( "sync/atomic" "time" - "github.com/armon/go-metrics" + "github.com/hashicorp/go-metrics" "github.com/hashicorp/vault/helper/namespace" ) @@ -54,7 +54,7 @@ type Metrics interface { var _ Metrics = &ClusterMetricSink{} // SinkWrapper implements `metricsutil.Metrics` using an instance of -// armon/go-metrics `MetricSink` as the underlying implementation. +// hashicorp/go-metrics `MetricSink` as the underlying implementation. type SinkWrapper struct { metrics.MetricSink } diff --git a/helper/metricsutil/wrapped_metrics_test.go b/helper/metricsutil/wrapped_metrics_test.go index 34c5cdda8c87..3349811b9728 100644 --- a/helper/metricsutil/wrapped_metrics_test.go +++ b/helper/metricsutil/wrapped_metrics_test.go @@ -7,7 +7,7 @@ import ( "testing" "time" - "github.com/armon/go-metrics" + "github.com/hashicorp/go-metrics" ) func isLabelPresent(toFind Label, ls []Label) bool { diff --git a/helper/storagepacker/storagepacker.go b/helper/storagepacker/storagepacker.go index 219049b1bb0a..affcdc8b66fc 100644 --- a/helper/storagepacker/storagepacker.go +++ b/helper/storagepacker/storagepacker.go @@ -11,10 +11,10 @@ import ( "strings" "time" - "github.com/armon/go-metrics" "github.com/golang/protobuf/proto" "github.com/hashicorp/go-hclog" log "github.com/hashicorp/go-hclog" + "github.com/hashicorp/go-metrics" "github.com/hashicorp/vault/sdk/helper/compressutil" "github.com/hashicorp/vault/sdk/helper/locksutil" "github.com/hashicorp/vault/sdk/logical" diff --git a/helper/testhelpers/testhelpers.go b/helper/testhelpers/testhelpers.go index 76c7731eba6d..122619c622fb 100644 --- a/helper/testhelpers/testhelpers.go +++ b/helper/testhelpers/testhelpers.go @@ -15,7 +15,7 @@ import ( "strings" "time" - "github.com/armon/go-metrics" + "github.com/hashicorp/go-metrics" raftlib "github.com/hashicorp/raft" "github.com/hashicorp/vault/api" "github.com/hashicorp/vault/helper/metricsutil" diff --git a/http/sys_metrics_test.go b/http/sys_metrics_test.go index 1198815a5533..5069d5a61f75 100644 --- a/http/sys_metrics_test.go +++ b/http/sys_metrics_test.go @@ -9,7 +9,7 @@ import ( "github.com/hashicorp/vault/helper/testhelpers/corehelpers" - "github.com/armon/go-metrics" + "github.com/hashicorp/go-metrics" "github.com/hashicorp/vault/helper/metricsutil" "github.com/hashicorp/vault/internalshared/configutil" "github.com/hashicorp/vault/vault" diff --git a/internalshared/configutil/telemetry.go b/internalshared/configutil/telemetry.go index 964e03f0b9c8..43c702fe661e 100644 --- a/internalshared/configutil/telemetry.go +++ b/internalshared/configutil/telemetry.go @@ -9,17 +9,16 @@ import ( "fmt" "time" - "github.com/hashicorp/go-secure-stdlib/parseutil" - - monitoring "cloud.google.com/go/monitoring/apiv3" - "github.com/armon/go-metrics" - "github.com/armon/go-metrics/circonus" - "github.com/armon/go-metrics/datadog" - "github.com/armon/go-metrics/prometheus" + monitoring "cloud.google.com/go/monitoring/apiv3/v2" stackdriver "github.com/google/go-metrics-stackdriver" stackdrivervault "github.com/google/go-metrics-stackdriver/vault" "github.com/hashicorp/cli" + "github.com/hashicorp/go-metrics" + "github.com/hashicorp/go-metrics/circonus" + "github.com/hashicorp/go-metrics/datadog" + "github.com/hashicorp/go-metrics/prometheus" "github.com/hashicorp/go-multierror" + "github.com/hashicorp/go-secure-stdlib/parseutil" "github.com/hashicorp/hcl" "github.com/hashicorp/hcl/hcl/ast" "github.com/hashicorp/vault/helper/metricsutil" diff --git a/physical/alicloudoss/alicloudoss.go b/physical/alicloudoss/alicloudoss.go index d82287e20268..0cac73cf7b99 100644 --- a/physical/alicloudoss/alicloudoss.go +++ b/physical/alicloudoss/alicloudoss.go @@ -16,8 +16,8 @@ import ( "time" "github.com/aliyun/aliyun-oss-go-sdk/oss" - "github.com/armon/go-metrics" log "github.com/hashicorp/go-hclog" + "github.com/hashicorp/go-metrics" "github.com/hashicorp/vault/sdk/physical" ) diff --git a/physical/azure/azure.go b/physical/azure/azure.go index 251d2301c0f5..8c47ee440fce 100644 --- a/physical/azure/azure.go +++ b/physical/azure/azure.go @@ -18,8 +18,8 @@ import ( "github.com/Azure/azure-storage-blob-go/azblob" "github.com/Azure/go-autorest/autorest/adal" "github.com/Azure/go-autorest/autorest/azure" - "github.com/armon/go-metrics" log "github.com/hashicorp/go-hclog" + "github.com/hashicorp/go-metrics" "github.com/hashicorp/go-secure-stdlib/strutil" "github.com/hashicorp/vault/sdk/physical" ) diff --git a/physical/cassandra/cassandra.go b/physical/cassandra/cassandra.go index a7f22c468dc7..0e998f57bc54 100644 --- a/physical/cassandra/cassandra.go +++ b/physical/cassandra/cassandra.go @@ -13,9 +13,9 @@ import ( "strings" "time" - metrics "github.com/armon/go-metrics" "github.com/gocql/gocql" log "github.com/hashicorp/go-hclog" + metrics "github.com/hashicorp/go-metrics" "github.com/hashicorp/vault/sdk/helper/certutil" "github.com/hashicorp/vault/sdk/physical" ) diff --git a/physical/cockroachdb/cockroachdb.go b/physical/cockroachdb/cockroachdb.go index 3258ecb940de..cd8ed1325042 100644 --- a/physical/cockroachdb/cockroachdb.go +++ b/physical/cockroachdb/cockroachdb.go @@ -13,9 +13,9 @@ import ( "time" "unicode" - metrics "github.com/armon/go-metrics" "github.com/cockroachdb/cockroach-go/crdb" log "github.com/hashicorp/go-hclog" + metrics "github.com/hashicorp/go-metrics" "github.com/hashicorp/go-multierror" "github.com/hashicorp/go-secure-stdlib/strutil" "github.com/hashicorp/vault/sdk/physical" diff --git a/physical/consul/consul.go b/physical/consul/consul.go index d7c5e6505e11..05c5fe92bfa0 100644 --- a/physical/consul/consul.go +++ b/physical/consul/consul.go @@ -14,9 +14,9 @@ import ( "sync/atomic" "time" - "github.com/armon/go-metrics" "github.com/hashicorp/consul/api" log "github.com/hashicorp/go-hclog" + "github.com/hashicorp/go-metrics" "github.com/hashicorp/go-multierror" "github.com/hashicorp/go-secure-stdlib/parseutil" "github.com/hashicorp/go-secure-stdlib/tlsutil" diff --git a/physical/couchdb/couchdb.go b/physical/couchdb/couchdb.go index 0a1c379c6ee9..c8f58c5d2816 100644 --- a/physical/couchdb/couchdb.go +++ b/physical/couchdb/couchdb.go @@ -16,9 +16,9 @@ import ( "strings" "time" - metrics "github.com/armon/go-metrics" cleanhttp "github.com/hashicorp/go-cleanhttp" log "github.com/hashicorp/go-hclog" + metrics "github.com/hashicorp/go-metrics" "github.com/hashicorp/vault/sdk/physical" ) diff --git a/physical/dynamodb/dynamodb.go b/physical/dynamodb/dynamodb.go index d89594885b06..12e6cc2cbe25 100644 --- a/physical/dynamodb/dynamodb.go +++ b/physical/dynamodb/dynamodb.go @@ -20,13 +20,13 @@ import ( log "github.com/hashicorp/go-hclog" - metrics "github.com/armon/go-metrics" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/dynamodb" "github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute" cleanhttp "github.com/hashicorp/go-cleanhttp" + metrics "github.com/hashicorp/go-metrics" "github.com/hashicorp/go-secure-stdlib/awsutil" uuid "github.com/hashicorp/go-uuid" "github.com/hashicorp/vault/sdk/helper/consts" diff --git a/physical/etcd/etcd3.go b/physical/etcd/etcd3.go index 3182f2d83c96..8dc5a7787f7b 100644 --- a/physical/etcd/etcd3.go +++ b/physical/etcd/etcd3.go @@ -14,8 +14,8 @@ import ( "sync" "time" - "github.com/armon/go-metrics" log "github.com/hashicorp/go-hclog" + "github.com/hashicorp/go-metrics" "github.com/hashicorp/go-secure-stdlib/parseutil" "github.com/hashicorp/go-secure-stdlib/strutil" "github.com/hashicorp/vault/sdk/physical" diff --git a/physical/foundationdb/foundationdb.go b/physical/foundationdb/foundationdb.go index b62e89da40aa..22407ffb682b 100644 --- a/physical/foundationdb/foundationdb.go +++ b/physical/foundationdb/foundationdb.go @@ -15,15 +15,13 @@ import ( "sync" "time" - log "github.com/hashicorp/go-hclog" - uuid "github.com/hashicorp/go-uuid" - "github.com/apple/foundationdb/bindings/go/src/fdb" "github.com/apple/foundationdb/bindings/go/src/fdb/directory" "github.com/apple/foundationdb/bindings/go/src/fdb/subspace" "github.com/apple/foundationdb/bindings/go/src/fdb/tuple" - - metrics "github.com/armon/go-metrics" + log "github.com/hashicorp/go-hclog" + metrics "github.com/hashicorp/go-metrics" + uuid "github.com/hashicorp/go-uuid" "github.com/hashicorp/vault/sdk/physical" ) diff --git a/physical/gcs/gcs.go b/physical/gcs/gcs.go index eea7a515ac8d..63acc8edafe1 100644 --- a/physical/gcs/gcs.go +++ b/physical/gcs/gcs.go @@ -16,8 +16,8 @@ import ( "time" "cloud.google.com/go/storage" - metrics "github.com/armon/go-metrics" log "github.com/hashicorp/go-hclog" + metrics "github.com/hashicorp/go-metrics" multierror "github.com/hashicorp/go-multierror" "github.com/hashicorp/vault/helper/useragent" "github.com/hashicorp/vault/sdk/physical" diff --git a/physical/gcs/gcs_ha.go b/physical/gcs/gcs_ha.go index 279b79ab1f08..54eb4b9c056a 100644 --- a/physical/gcs/gcs_ha.go +++ b/physical/gcs/gcs_ha.go @@ -11,7 +11,7 @@ import ( "time" "cloud.google.com/go/storage" - metrics "github.com/armon/go-metrics" + metrics "github.com/hashicorp/go-metrics" uuid "github.com/hashicorp/go-uuid" "github.com/hashicorp/vault/sdk/physical" "github.com/pkg/errors" diff --git a/physical/manta/manta.go b/physical/manta/manta.go index 5ab1c4e05791..6d9320ac889c 100644 --- a/physical/manta/manta.go +++ b/physical/manta/manta.go @@ -15,8 +15,8 @@ import ( "strings" "time" - metrics "github.com/armon/go-metrics" log "github.com/hashicorp/go-hclog" + metrics "github.com/hashicorp/go-metrics" "github.com/hashicorp/vault/sdk/physical" triton "github.com/joyent/triton-go" "github.com/joyent/triton-go/authentication" diff --git a/physical/mssql/mssql.go b/physical/mssql/mssql.go index ef6d54e0f5a5..0f15c98f7afb 100644 --- a/physical/mssql/mssql.go +++ b/physical/mssql/mssql.go @@ -13,9 +13,9 @@ import ( "strings" "time" - metrics "github.com/armon/go-metrics" _ "github.com/denisenkom/go-mssqldb" log "github.com/hashicorp/go-hclog" + metrics "github.com/hashicorp/go-metrics" "github.com/hashicorp/go-secure-stdlib/strutil" "github.com/hashicorp/vault/sdk/physical" ) diff --git a/physical/mysql/mysql.go b/physical/mysql/mysql.go index 40d9611a9d4f..1475de24bd29 100644 --- a/physical/mysql/mysql.go +++ b/physical/mysql/mysql.go @@ -20,11 +20,10 @@ import ( "time" "unicode" + mysql "github.com/go-sql-driver/mysql" log "github.com/hashicorp/go-hclog" + metrics "github.com/hashicorp/go-metrics" "github.com/hashicorp/go-multierror" - - metrics "github.com/armon/go-metrics" - mysql "github.com/go-sql-driver/mysql" "github.com/hashicorp/go-secure-stdlib/strutil" "github.com/hashicorp/vault/sdk/physical" ) diff --git a/physical/oci/oci.go b/physical/oci/oci.go index 3665813d0479..38a08a6c2d56 100644 --- a/physical/oci/oci.go +++ b/physical/oci/oci.go @@ -12,8 +12,8 @@ import ( "strings" "time" - "github.com/armon/go-metrics" log "github.com/hashicorp/go-hclog" + "github.com/hashicorp/go-metrics" "github.com/hashicorp/go-secure-stdlib/strutil" "github.com/hashicorp/go-uuid" "github.com/hashicorp/vault/sdk/physical" diff --git a/physical/oci/oci_ha.go b/physical/oci/oci_ha.go index a4c6ad52ea6b..9915a8ec5860 100644 --- a/physical/oci/oci_ha.go +++ b/physical/oci/oci_ha.go @@ -13,7 +13,7 @@ import ( "sync/atomic" "time" - "github.com/armon/go-metrics" + "github.com/hashicorp/go-metrics" "github.com/hashicorp/go-uuid" "github.com/hashicorp/vault/sdk/physical" "github.com/oracle/oci-go-sdk/objectstorage" diff --git a/physical/postgresql/postgresql.go b/physical/postgresql/postgresql.go index 911dfa18f3e2..95a11f38d720 100644 --- a/physical/postgresql/postgresql.go +++ b/physical/postgresql/postgresql.go @@ -13,8 +13,8 @@ import ( "sync" "time" - "github.com/armon/go-metrics" log "github.com/hashicorp/go-hclog" + "github.com/hashicorp/go-metrics" "github.com/hashicorp/go-uuid" "github.com/hashicorp/vault/sdk/database/helper/dbutil" "github.com/hashicorp/vault/sdk/physical" diff --git a/physical/raft/fsm.go b/physical/raft/fsm.go index 3323f987df8b..e3ca81b145f6 100644 --- a/physical/raft/fsm.go +++ b/physical/raft/fsm.go @@ -18,10 +18,10 @@ import ( "sync/atomic" "time" - "github.com/armon/go-metrics" "github.com/golang/protobuf/proto" bolt "github.com/hashicorp-forge/bbolt" log "github.com/hashicorp/go-hclog" + "github.com/hashicorp/go-metrics" "github.com/hashicorp/go-multierror" "github.com/hashicorp/go-raftchunking" "github.com/hashicorp/go-secure-stdlib/strutil" diff --git a/physical/raft/raft.go b/physical/raft/raft.go index e937697777ad..9e9bb9100f7e 100644 --- a/physical/raft/raft.go +++ b/physical/raft/raft.go @@ -19,10 +19,10 @@ import ( "sync/atomic" "time" - "github.com/armon/go-metrics" "github.com/golang/protobuf/proto" bolt "github.com/hashicorp-forge/bbolt" log "github.com/hashicorp/go-hclog" + "github.com/hashicorp/go-metrics" "github.com/hashicorp/go-raftchunking" "github.com/hashicorp/go-secure-stdlib/parseutil" "github.com/hashicorp/go-secure-stdlib/tlsutil" diff --git a/physical/raft/raft_autopilot.go b/physical/raft/raft_autopilot.go index d1a9de6b6795..00dfff6b8860 100644 --- a/physical/raft/raft_autopilot.go +++ b/physical/raft/raft_autopilot.go @@ -14,7 +14,7 @@ import ( "sync" "time" - "github.com/armon/go-metrics" + "github.com/hashicorp/go-metrics" "github.com/hashicorp/go-secure-stdlib/parseutil" "github.com/hashicorp/go-secure-stdlib/strutil" "github.com/hashicorp/raft" diff --git a/physical/s3/s3.go b/physical/s3/s3.go index da82acccd3ca..04f5f4e073b2 100644 --- a/physical/s3/s3.go +++ b/physical/s3/s3.go @@ -16,13 +16,13 @@ import ( "strings" "time" - "github.com/armon/go-metrics" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/s3" "github.com/hashicorp/go-cleanhttp" log "github.com/hashicorp/go-hclog" + "github.com/hashicorp/go-metrics" "github.com/hashicorp/go-secure-stdlib/awsutil" "github.com/hashicorp/go-secure-stdlib/parseutil" "github.com/hashicorp/vault/sdk/helper/consts" diff --git a/physical/spanner/spanner.go b/physical/spanner/spanner.go index 4151d93ba1b8..c105f780e007 100644 --- a/physical/spanner/spanner.go +++ b/physical/spanner/spanner.go @@ -13,8 +13,8 @@ import ( "time" "cloud.google.com/go/spanner" - metrics "github.com/armon/go-metrics" log "github.com/hashicorp/go-hclog" + metrics "github.com/hashicorp/go-metrics" "github.com/hashicorp/go-secure-stdlib/strutil" "github.com/hashicorp/vault/helper/useragent" "github.com/hashicorp/vault/sdk/physical" diff --git a/physical/spanner/spanner_ha.go b/physical/spanner/spanner_ha.go index 377704d571be..8f3847fcdcc7 100644 --- a/physical/spanner/spanner_ha.go +++ b/physical/spanner/spanner_ha.go @@ -10,7 +10,7 @@ import ( "time" "cloud.google.com/go/spanner" - metrics "github.com/armon/go-metrics" + metrics "github.com/hashicorp/go-metrics" uuid "github.com/hashicorp/go-uuid" "github.com/hashicorp/vault/sdk/physical" "github.com/pkg/errors" diff --git a/physical/swift/swift.go b/physical/swift/swift.go index b19b58bda8ca..2fda4fe4452e 100644 --- a/physical/swift/swift.go +++ b/physical/swift/swift.go @@ -12,10 +12,9 @@ import ( "strings" "time" - log "github.com/hashicorp/go-hclog" - - metrics "github.com/armon/go-metrics" cleanhttp "github.com/hashicorp/go-cleanhttp" + log "github.com/hashicorp/go-hclog" + metrics "github.com/hashicorp/go-metrics" "github.com/hashicorp/go-secure-stdlib/strutil" "github.com/hashicorp/vault/sdk/physical" "github.com/ncw/swift" diff --git a/physical/zookeeper/zookeeper.go b/physical/zookeeper/zookeeper.go index 32a560472b25..cb246724ffcb 100644 --- a/physical/zookeeper/zookeeper.go +++ b/physical/zookeeper/zookeeper.go @@ -16,9 +16,9 @@ import ( "sync" "time" - metrics "github.com/armon/go-metrics" "github.com/go-zookeeper/zk" log "github.com/hashicorp/go-hclog" + metrics "github.com/hashicorp/go-metrics" "github.com/hashicorp/go-secure-stdlib/parseutil" "github.com/hashicorp/go-secure-stdlib/tlsutil" "github.com/hashicorp/vault/sdk/physical" diff --git a/sdk/database/dbplugin/databasemiddleware.go b/sdk/database/dbplugin/databasemiddleware.go index d7cabafefe29..63e034c4a421 100644 --- a/sdk/database/dbplugin/databasemiddleware.go +++ b/sdk/database/dbplugin/databasemiddleware.go @@ -11,9 +11,9 @@ import ( "sync" "time" - metrics "github.com/armon/go-metrics" "github.com/hashicorp/errwrap" log "github.com/hashicorp/go-hclog" + metrics "github.com/hashicorp/go-metrics" "google.golang.org/grpc/status" ) diff --git a/sdk/database/dbplugin/v5/middleware.go b/sdk/database/dbplugin/v5/middleware.go index 2091e672084a..723e7e3f92d5 100644 --- a/sdk/database/dbplugin/v5/middleware.go +++ b/sdk/database/dbplugin/v5/middleware.go @@ -10,9 +10,9 @@ import ( "strings" "time" - "github.com/armon/go-metrics" "github.com/hashicorp/errwrap" log "github.com/hashicorp/go-hclog" + "github.com/hashicorp/go-metrics" "github.com/hashicorp/vault/sdk/logical" "google.golang.org/grpc/status" ) diff --git a/sdk/go.mod b/sdk/go.mod index 0ccf55667698..2f949fdf3092 100644 --- a/sdk/go.mod +++ b/sdk/go.mod @@ -4,7 +4,6 @@ go 1.19 require ( cloud.google.com/go/cloudsqlconn v1.4.3 - github.com/armon/go-metrics v0.4.1 github.com/armon/go-radix v1.0.0 github.com/cenkalti/backoff/v3 v3.2.2 github.com/docker/docker v24.0.7+incompatible @@ -23,6 +22,7 @@ require ( github.com/hashicorp/go-immutable-radix v1.3.1 github.com/hashicorp/go-kms-wrapping/entropy/v2 v2.0.0 github.com/hashicorp/go-kms-wrapping/v2 v2.0.8 + github.com/hashicorp/go-metrics v0.5.3 github.com/hashicorp/go-multierror v1.1.1 github.com/hashicorp/go-plugin v1.6.0 github.com/hashicorp/go-retryablehttp v0.7.1 diff --git a/sdk/go.sum b/sdk/go.sum index b2a4f7a24274..3bf05f4b28e9 100644 --- a/sdk/go.sum +++ b/sdk/go.sum @@ -57,8 +57,6 @@ github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRF github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= -github.com/armon/go-metrics v0.4.1 h1:hR91U9KYmb6bLBYLQjyM+3j+rcd/UhE+G78SFnF8gJA= -github.com/armon/go-metrics v0.4.1/go.mod h1:E6amYzXo6aW1tqzoZGT755KkbgrJsSdpwZ+3JqfkOG4= github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= github.com/armon/go-radix v1.0.0 h1:F4z6KzEeeQIMeLFa97iZU6vupzoecKdU5TX24SNppXI= github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= @@ -242,6 +240,8 @@ github.com/hashicorp/go-kms-wrapping/entropy/v2 v2.0.0 h1:pSjQfW3vPtrOTcasTUKgCT github.com/hashicorp/go-kms-wrapping/entropy/v2 v2.0.0/go.mod h1:xvb32K2keAc+R8DSFG2IwDcydK9DBQE+fGA5fsw6hSk= github.com/hashicorp/go-kms-wrapping/v2 v2.0.8 h1:9Q2lu1YbbmiAgvYZ7Pr31RdlVonUpX+mmDL7Z7qTA2U= github.com/hashicorp/go-kms-wrapping/v2 v2.0.8/go.mod h1:qTCjxGig/kjuj3hk1z8pOUrzbse/GxB1tGfbrq8tGJg= +github.com/hashicorp/go-metrics v0.5.3 h1:M5uADWMOGCTUNU1YuC4hfknOeHNaX54LDm4oYSucoNE= +github.com/hashicorp/go-metrics v0.5.3/go.mod h1:KEjodfebIOuBYSAe/bHTm+HChmKSxAOXPBieMLYozDE= github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= diff --git a/sdk/physical/cache.go b/sdk/physical/cache.go index 874d6c529dea..5415cd433e14 100644 --- a/sdk/physical/cache.go +++ b/sdk/physical/cache.go @@ -7,8 +7,8 @@ import ( "context" "sync/atomic" - metrics "github.com/armon/go-metrics" log "github.com/hashicorp/go-hclog" + metrics "github.com/hashicorp/go-metrics" lru "github.com/hashicorp/golang-lru" "github.com/hashicorp/vault/sdk/helper/locksutil" "github.com/hashicorp/vault/sdk/helper/pathmanager" diff --git a/sdk/physical/inmem/cache_test.go b/sdk/physical/inmem/cache_test.go index 3014fc1768da..6d221916af8d 100644 --- a/sdk/physical/inmem/cache_test.go +++ b/sdk/physical/inmem/cache_test.go @@ -7,7 +7,6 @@ import ( "context" "testing" - "github.com/armon/go-metrics" log "github.com/hashicorp/go-hclog" "github.com/hashicorp/vault/sdk/helper/logging" "github.com/hashicorp/vault/sdk/physical" diff --git a/vault/auth_test.go b/vault/auth_test.go index d07c83c20305..bd20cf0f9f66 100644 --- a/vault/auth_test.go +++ b/vault/auth_test.go @@ -10,11 +10,10 @@ import ( "testing" "time" - "github.com/hashicorp/vault/helper/testhelpers/corehelpers" - - "github.com/armon/go-metrics" + "github.com/hashicorp/go-metrics" "github.com/hashicorp/vault/helper/metricsutil" "github.com/hashicorp/vault/helper/namespace" + "github.com/hashicorp/vault/helper/testhelpers/corehelpers" "github.com/hashicorp/vault/helper/versions" "github.com/hashicorp/vault/sdk/helper/consts" "github.com/hashicorp/vault/sdk/helper/jsonutil" diff --git a/vault/barrier_aes_gcm.go b/vault/barrier_aes_gcm.go index bb4c455b4805..98299c3788a3 100644 --- a/vault/barrier_aes_gcm.go +++ b/vault/barrier_aes_gcm.go @@ -19,7 +19,7 @@ import ( "sync" "time" - "github.com/armon/go-metrics" + "github.com/hashicorp/go-metrics" "github.com/hashicorp/go-secure-stdlib/strutil" "github.com/hashicorp/vault/sdk/helper/jsonutil" "github.com/hashicorp/vault/sdk/logical" diff --git a/vault/core.go b/vault/core.go index f6b5cd0addd9..b0c5a865bee4 100644 --- a/vault/core.go +++ b/vault/core.go @@ -28,18 +28,14 @@ import ( "sync/atomic" "time" - "github.com/armon/go-metrics" "github.com/hashicorp/errwrap" log "github.com/hashicorp/go-hclog" wrapping "github.com/hashicorp/go-kms-wrapping/v2" aeadwrapper "github.com/hashicorp/go-kms-wrapping/wrappers/aead/v2" - "github.com/hashicorp/go-kms-wrapping/wrappers/awskms/v2" - "github.com/hashicorp/go-multierror" "github.com/hashicorp/go-secure-stdlib/mlock" "github.com/hashicorp/go-secure-stdlib/reloadutil" "github.com/hashicorp/go-secure-stdlib/strutil" "github.com/hashicorp/go-secure-stdlib/tlsutil" - "github.com/hashicorp/go-uuid" kv "github.com/hashicorp/vault-plugin-secrets-kv" "github.com/hashicorp/vault/api" "github.com/hashicorp/vault/audit" @@ -65,7 +61,6 @@ import ( "github.com/hashicorp/vault/vault/quotas" vaultseal "github.com/hashicorp/vault/vault/seal" "github.com/hashicorp/vault/version" - "github.com/patrickmn/go-cache" uberAtomic "go.uber.org/atomic" "google.golang.org/grpc" ) diff --git a/vault/core_metrics.go b/vault/core_metrics.go index 7ceea13c0d59..9a7fb9e4f771 100644 --- a/vault/core_metrics.go +++ b/vault/core_metrics.go @@ -10,7 +10,7 @@ import ( "strings" "time" - "github.com/armon/go-metrics" + "github.com/hashicorp/go-metrics" "github.com/hashicorp/vault/helper/metricsutil" "github.com/hashicorp/vault/helper/namespace" "github.com/hashicorp/vault/physical/raft" diff --git a/vault/core_metrics_test.go b/vault/core_metrics_test.go index 3a8eeefffce6..ac499080e1fe 100644 --- a/vault/core_metrics_test.go +++ b/vault/core_metrics_test.go @@ -12,12 +12,11 @@ import ( "testing" "time" - "github.com/stretchr/testify/assert" - - "github.com/armon/go-metrics" + "github.com/hashicorp/go-metrics" logicalKv "github.com/hashicorp/vault-plugin-secrets-kv" "github.com/hashicorp/vault/helper/namespace" "github.com/hashicorp/vault/sdk/logical" + "github.com/stretchr/testify/assert" ) func TestCoreMetrics_KvSecretGauge(t *testing.T) { diff --git a/vault/eventbus/bus.go b/vault/eventbus/bus.go index fd5102ad8f6d..16a37f5a2fc3 100644 --- a/vault/eventbus/bus.go +++ b/vault/eventbus/bus.go @@ -14,11 +14,11 @@ import ( "sync/atomic" "time" - "github.com/armon/go-metrics" "github.com/hashicorp/eventlogger" "github.com/hashicorp/eventlogger/formatter_filters/cloudevents" "github.com/hashicorp/go-bexpr" "github.com/hashicorp/go-hclog" + "github.com/hashicorp/go-metrics" "github.com/hashicorp/go-uuid" "github.com/hashicorp/vault/helper/namespace" "github.com/hashicorp/vault/sdk/logical" diff --git a/vault/expiration.go b/vault/expiration.go index 9c7c8b62542a..523567d6bfd9 100644 --- a/vault/expiration.go +++ b/vault/expiration.go @@ -19,9 +19,9 @@ import ( "sync/atomic" "time" - metrics "github.com/armon/go-metrics" "github.com/hashicorp/errwrap" log "github.com/hashicorp/go-hclog" + metrics "github.com/hashicorp/go-metrics" multierror "github.com/hashicorp/go-multierror" "github.com/hashicorp/go-secure-stdlib/base62" "github.com/hashicorp/vault/helper/fairshare" diff --git a/vault/expiration_test.go b/vault/expiration_test.go index a790f3f3483d..c141568a85cb 100644 --- a/vault/expiration_test.go +++ b/vault/expiration_test.go @@ -17,8 +17,8 @@ import ( "testing" "time" - "github.com/armon/go-metrics" log "github.com/hashicorp/go-hclog" + "github.com/hashicorp/go-metrics" "github.com/hashicorp/go-uuid" "github.com/hashicorp/vault/helper/benchhelpers" "github.com/hashicorp/vault/helper/fairshare" diff --git a/vault/ha.go b/vault/ha.go index 536142e57987..2667b5a94c68 100644 --- a/vault/ha.go +++ b/vault/ha.go @@ -16,8 +16,8 @@ import ( "sync/atomic" "time" - "github.com/armon/go-metrics" "github.com/hashicorp/errwrap" + "github.com/hashicorp/go-metrics" "github.com/hashicorp/go-multierror" "github.com/hashicorp/go-uuid" "github.com/hashicorp/vault/helper/namespace" diff --git a/vault/identity_store.go b/vault/identity_store.go index c57bc9ed2dd0..68dc6b310ef6 100644 --- a/vault/identity_store.go +++ b/vault/identity_store.go @@ -9,10 +9,10 @@ import ( "strings" "time" - "github.com/armon/go-metrics" "github.com/golang/protobuf/ptypes" log "github.com/hashicorp/go-hclog" "github.com/hashicorp/go-memdb" + "github.com/hashicorp/go-metrics" "github.com/hashicorp/go-secure-stdlib/strutil" "github.com/hashicorp/vault/helper/identity" "github.com/hashicorp/vault/helper/metricsutil" diff --git a/vault/identity_store_test.go b/vault/identity_store_test.go index bfd966e183dc..0a970f30e1e1 100644 --- a/vault/identity_store_test.go +++ b/vault/identity_store_test.go @@ -9,11 +9,9 @@ import ( "testing" "time" - "github.com/stretchr/testify/require" - - "github.com/armon/go-metrics" "github.com/go-test/deep" "github.com/golang/protobuf/ptypes" + "github.com/hashicorp/go-metrics" uuid "github.com/hashicorp/go-uuid" credGithub "github.com/hashicorp/vault/builtin/credential/github" credUserpass "github.com/hashicorp/vault/builtin/credential/userpass" @@ -21,6 +19,7 @@ import ( "github.com/hashicorp/vault/helper/namespace" "github.com/hashicorp/vault/helper/storagepacker" "github.com/hashicorp/vault/sdk/logical" + "github.com/stretchr/testify/require" ) func TestIdentityStore_DeleteEntityAlias(t *testing.T) { diff --git a/vault/identity_store_util.go b/vault/identity_store_util.go index f39c1e260468..42710e099669 100644 --- a/vault/identity_store_util.go +++ b/vault/identity_store_util.go @@ -11,10 +11,10 @@ import ( "sync" "time" - metrics "github.com/armon/go-metrics" "github.com/golang/protobuf/ptypes" "github.com/hashicorp/errwrap" memdb "github.com/hashicorp/go-memdb" + metrics "github.com/hashicorp/go-metrics" "github.com/hashicorp/go-secure-stdlib/strutil" uuid "github.com/hashicorp/go-uuid" "github.com/hashicorp/vault/helper/identity" diff --git a/vault/mount.go b/vault/mount.go index f899564357bc..44c69ec8d646 100644 --- a/vault/mount.go +++ b/vault/mount.go @@ -14,7 +14,7 @@ import ( "sync" "time" - "github.com/armon/go-metrics" + "github.com/hashicorp/go-metrics" "github.com/hashicorp/go-secure-stdlib/strutil" "github.com/hashicorp/go-uuid" "github.com/hashicorp/vault/builtin/plugin" diff --git a/vault/mount_test.go b/vault/mount_test.go index a412252e447d..6653907d810e 100644 --- a/vault/mount_test.go +++ b/vault/mount_test.go @@ -11,8 +11,8 @@ import ( "testing" "time" - "github.com/armon/go-metrics" "github.com/go-test/deep" + "github.com/hashicorp/go-metrics" "github.com/hashicorp/vault/helper/metricsutil" "github.com/hashicorp/vault/helper/namespace" "github.com/hashicorp/vault/helper/testhelpers/corehelpers" diff --git a/vault/policy_store.go b/vault/policy_store.go index a238be3c2d3d..4bc021bb443f 100644 --- a/vault/policy_store.go +++ b/vault/policy_store.go @@ -11,8 +11,8 @@ import ( "sync" "time" - "github.com/armon/go-metrics" log "github.com/hashicorp/go-hclog" + "github.com/hashicorp/go-metrics" "github.com/hashicorp/go-secure-stdlib/strutil" lru "github.com/hashicorp/golang-lru" "github.com/hashicorp/vault/helper/identity" diff --git a/vault/quotas/quotas_rate_limit.go b/vault/quotas/quotas_rate_limit.go index a648f92d1a4f..8ba59cfbdc75 100644 --- a/vault/quotas/quotas_rate_limit.go +++ b/vault/quotas/quotas_rate_limit.go @@ -12,8 +12,8 @@ import ( "sync" "time" - "github.com/armon/go-metrics" log "github.com/hashicorp/go-hclog" + "github.com/hashicorp/go-metrics" "github.com/hashicorp/go-uuid" "github.com/hashicorp/vault/helper/metricsutil" "github.com/hashicorp/vault/sdk/helper/cryptoutil" diff --git a/vault/request_forwarding.go b/vault/request_forwarding.go index 619222c344aa..fb2706451fdf 100644 --- a/vault/request_forwarding.go +++ b/vault/request_forwarding.go @@ -17,8 +17,8 @@ import ( "sync" "time" - "github.com/armon/go-metrics" log "github.com/hashicorp/go-hclog" + "github.com/hashicorp/go-metrics" "github.com/hashicorp/vault/helper/forwarding" "github.com/hashicorp/vault/sdk/helper/consts" "github.com/hashicorp/vault/sdk/logical" diff --git a/vault/request_forwarding_rpc.go b/vault/request_forwarding_rpc.go index 8b82b767d02d..c24102df1de2 100644 --- a/vault/request_forwarding_rpc.go +++ b/vault/request_forwarding_rpc.go @@ -11,7 +11,7 @@ import ( "sync/atomic" "time" - "github.com/armon/go-metrics" + "github.com/hashicorp/go-metrics" "github.com/hashicorp/vault/helper/forwarding" "github.com/hashicorp/vault/physical/raft" "github.com/hashicorp/vault/sdk/helper/consts" diff --git a/vault/request_handling.go b/vault/request_handling.go index a58210e4f811..9ea4d982be4d 100644 --- a/vault/request_handling.go +++ b/vault/request_handling.go @@ -18,9 +18,9 @@ import ( "strings" "time" - "github.com/armon/go-metrics" "github.com/golang/protobuf/proto" "github.com/hashicorp/errwrap" + "github.com/hashicorp/go-metrics" "github.com/hashicorp/go-multierror" "github.com/hashicorp/go-secure-stdlib/strutil" "github.com/hashicorp/go-sockaddr" diff --git a/vault/request_handling_test.go b/vault/request_handling_test.go index 6bbde873a73e..bad1eab67856 100644 --- a/vault/request_handling_test.go +++ b/vault/request_handling_test.go @@ -8,8 +8,8 @@ import ( "testing" "time" - "github.com/armon/go-metrics" "github.com/go-test/deep" + "github.com/hashicorp/go-metrics" uuid "github.com/hashicorp/go-uuid" "github.com/hashicorp/vault/builtin/credential/approle" credUserpass "github.com/hashicorp/vault/builtin/credential/userpass" diff --git a/vault/rollback.go b/vault/rollback.go index aecbe00cfef0..10f9b0dc5f1b 100644 --- a/vault/rollback.go +++ b/vault/rollback.go @@ -13,9 +13,9 @@ import ( "sync" "time" - metrics "github.com/armon/go-metrics" "github.com/gammazero/workerpool" log "github.com/hashicorp/go-hclog" + metrics "github.com/hashicorp/go-metrics" "github.com/hashicorp/vault/helper/namespace" "github.com/hashicorp/vault/sdk/logical" ) diff --git a/vault/rollback_test.go b/vault/rollback_test.go index eeca3dad9fb2..967d73891b77 100644 --- a/vault/rollback_test.go +++ b/vault/rollback_test.go @@ -11,8 +11,8 @@ import ( "testing" "time" - "github.com/armon/go-metrics" log "github.com/hashicorp/go-hclog" + "github.com/hashicorp/go-metrics" "github.com/hashicorp/go-uuid" "github.com/hashicorp/vault/helper/metricsutil" "github.com/hashicorp/vault/helper/namespace" diff --git a/vault/router.go b/vault/router.go index 851890075be9..9504d642c8bc 100644 --- a/vault/router.go +++ b/vault/router.go @@ -12,9 +12,9 @@ import ( "sync/atomic" "time" - "github.com/armon/go-metrics" "github.com/armon/go-radix" "github.com/hashicorp/go-hclog" + "github.com/hashicorp/go-metrics" "github.com/hashicorp/go-secure-stdlib/strutil" "github.com/hashicorp/vault/helper/namespace" "github.com/hashicorp/vault/sdk/helper/consts" diff --git a/vault/seal/envelope.go b/vault/seal/envelope.go index 8efb70ebbc99..8e1383d6db3f 100644 --- a/vault/seal/envelope.go +++ b/vault/seal/envelope.go @@ -7,8 +7,8 @@ import ( "sync" "time" - metrics "github.com/armon/go-metrics" wrapping "github.com/hashicorp/go-kms-wrapping/v2" + metrics "github.com/hashicorp/go-metrics" ) type Envelope struct { diff --git a/vault/seal/seal.go b/vault/seal/seal.go index 6ac35ff17a61..07dd1e45fcbb 100644 --- a/vault/seal/seal.go +++ b/vault/seal/seal.go @@ -16,11 +16,11 @@ import ( "sync/atomic" "time" - metrics "github.com/armon/go-metrics" "github.com/google/go-cmp/cmp" "github.com/hashicorp/go-hclog" wrapping "github.com/hashicorp/go-kms-wrapping/v2" "github.com/hashicorp/go-kms-wrapping/v2/aead" + "github.com/hashicorp/go-metrics" "github.com/hashicorp/vault/internalshared/configutil" ) diff --git a/vault/seal_autoseal.go b/vault/seal_autoseal.go index a1613526c83f..11958aebab54 100644 --- a/vault/seal_autoseal.go +++ b/vault/seal_autoseal.go @@ -11,9 +11,8 @@ import ( "sync/atomic" "time" - "github.com/armon/go-metrics" - log "github.com/hashicorp/go-hclog" + "github.com/hashicorp/go-metrics" "github.com/hashicorp/vault/sdk/physical" "github.com/hashicorp/vault/vault/seal" ) diff --git a/vault/seal_autoseal_test.go b/vault/seal_autoseal_test.go index e070471a35e3..31aaba7c1afc 100644 --- a/vault/seal_autoseal_test.go +++ b/vault/seal_autoseal_test.go @@ -11,15 +11,12 @@ import ( "testing" "time" - "github.com/stretchr/testify/require" - wrapping "github.com/hashicorp/go-kms-wrapping/v2" - - "github.com/armon/go-metrics" + "github.com/hashicorp/go-metrics" "github.com/hashicorp/vault/helper/metricsutil" - "github.com/hashicorp/vault/sdk/physical" "github.com/hashicorp/vault/vault/seal" + "github.com/stretchr/testify/require" ) // phy implements physical.Backend. It maps keys to a slice of entries. diff --git a/vault/testing.go b/vault/testing.go index cc3fb89d69d6..8138f56c0569 100644 --- a/vault/testing.go +++ b/vault/testing.go @@ -29,9 +29,9 @@ import ( "sync/atomic" "time" - "github.com/armon/go-metrics" "github.com/hashicorp/go-cleanhttp" log "github.com/hashicorp/go-hclog" + "github.com/hashicorp/go-metrics" "github.com/hashicorp/go-secure-stdlib/reloadutil" kv "github.com/hashicorp/vault-plugin-secrets-kv" "github.com/mitchellh/copystructure" diff --git a/vault/token_store.go b/vault/token_store.go index 3e0c94507bf5..8ff550dbb9aa 100644 --- a/vault/token_store.go +++ b/vault/token_store.go @@ -18,10 +18,10 @@ import ( "sync/atomic" "time" - "github.com/armon/go-metrics" "github.com/armon/go-radix" "github.com/golang/protobuf/proto" log "github.com/hashicorp/go-hclog" + "github.com/hashicorp/go-metrics" "github.com/hashicorp/go-multierror" "github.com/hashicorp/go-secure-stdlib/base62" "github.com/hashicorp/go-secure-stdlib/parseutil" diff --git a/vault/wrapping.go b/vault/wrapping.go index accca9a65ee6..2593b813d2ab 100644 --- a/vault/wrapping.go +++ b/vault/wrapping.go @@ -12,9 +12,9 @@ import ( "fmt" "time" - "github.com/armon/go-metrics" "github.com/go-jose/go-jose/v3" "github.com/go-jose/go-jose/v3/jwt" + "github.com/hashicorp/go-metrics" "github.com/hashicorp/vault/helper/metricsutil" "github.com/hashicorp/vault/helper/namespace" "github.com/hashicorp/vault/sdk/helper/certutil"