mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
vendor: update github.com/VictoriaMetrics/metrics from v1.8.1 to v1.8.2
This commit is contained in:
parent
7753c8c0a1
commit
0827bb6ce5
4 changed files with 8 additions and 8 deletions
2
go.mod
2
go.mod
|
@ -4,7 +4,7 @@ require (
|
|||
cloud.google.com/go v0.49.0 // indirect
|
||||
cloud.google.com/go/storage v1.4.0
|
||||
github.com/VictoriaMetrics/fastcache v1.5.2
|
||||
github.com/VictoriaMetrics/metrics v1.8.1
|
||||
github.com/VictoriaMetrics/metrics v1.8.2
|
||||
github.com/aws/aws-sdk-go v1.25.37
|
||||
github.com/cespare/xxhash/v2 v2.1.1
|
||||
github.com/golang/groupcache v0.0.0-20191027212112-611e8accdfc9 // indirect
|
||||
|
|
4
go.sum
4
go.sum
|
@ -24,8 +24,8 @@ github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAE
|
|||
github.com/OneOfOne/xxhash v1.2.5/go.mod h1:eZbhyaAYD41SGSSsnmcpxVoRiQ/MPUTjUdIIOT9Um7Q=
|
||||
github.com/VictoriaMetrics/fastcache v1.5.2 h1:Erd8iIuBAL9kke8JzM4+WxkKuFkHh3ktwLanJvDgR44=
|
||||
github.com/VictoriaMetrics/fastcache v1.5.2/go.mod h1:+jv9Ckb+za/P1ZRg/sulP5Ni1v49daAVERr0H3CuscE=
|
||||
github.com/VictoriaMetrics/metrics v1.8.1 h1:miHseb2n+HNDPWx6uEKBqGubeC/By5vIRmU/gpYA9FQ=
|
||||
github.com/VictoriaMetrics/metrics v1.8.1/go.mod h1:LU2j9qq7xqZYXz8tF3/RQnB2z2MbZms5TDiIg9/NHiQ=
|
||||
github.com/VictoriaMetrics/metrics v1.8.2 h1:Oa+u0XlcofYfPDAPTgKObyangxbp+vVGkjSwARtObFQ=
|
||||
github.com/VictoriaMetrics/metrics v1.8.2/go.mod h1:LU2j9qq7xqZYXz8tF3/RQnB2z2MbZms5TDiIg9/NHiQ=
|
||||
github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156 h1:eMwmnE/GDgah4HI848JfFxHt+iPb26b4zyfspmqY0/8=
|
||||
github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156/go.mod h1:Cb/ax3seSYIx7SuZdm2G2xzfwmv3TPSk2ucNfQESPXM=
|
||||
github.com/aws/aws-sdk-go v1.25.37 h1:gBtB/F3dophWpsUQKN/Kni+JzYEH2mGHF4hWNtfED1w=
|
||||
|
|
8
vendor/github.com/VictoriaMetrics/metrics/histogram.go
generated
vendored
8
vendor/github.com/VictoriaMetrics/metrics/histogram.go
generated
vendored
|
@ -28,7 +28,7 @@ import (
|
|||
// Each bucket contains a counter for values in the given range.
|
||||
// Each non-zero bucket is exposed with the following name:
|
||||
//
|
||||
// <metric_name>_vmbucket{<optional_tags>,vmrange="<start>...<end>"} <counter>
|
||||
// <metric_name>_bucket{<optional_tags>,vmrange="<start>...<end>"} <counter>
|
||||
//
|
||||
// Where:
|
||||
//
|
||||
|
@ -40,9 +40,9 @@ import (
|
|||
// Only non-zero buckets are exposed.
|
||||
//
|
||||
// Histogram buckets can be converted to Prometheus-like buckets in VictoriaMetrics
|
||||
// with `prometheus_buckets(<metric_name>_vmbucket)`:
|
||||
// with `prometheus_buckets(<metric_name>_bucket)`:
|
||||
//
|
||||
// histogram_quantile(0.95, prometheus_buckets(rate(request_duration_vmbucket[5m])))
|
||||
// prometheus_buckets(rate(request_duration_bucket[5m]))
|
||||
//
|
||||
// Histogram cannot be used for negative values.
|
||||
type Histogram struct {
|
||||
|
@ -140,7 +140,7 @@ func (h *Histogram) marshalBucket(prefix string, w io.Writer, idx int) {
|
|||
tag := fmt.Sprintf(`vmrange="%s...%s"`, start, end)
|
||||
prefix = addTag(prefix, tag)
|
||||
name, filters := splitMetricName(prefix)
|
||||
fmt.Fprintf(w, "%s_vmbucket%s %d\n", name, filters, v)
|
||||
fmt.Fprintf(w, "%s_bucket%s %d\n", name, filters, v)
|
||||
}
|
||||
|
||||
func getBucketIdx(v float64) uint {
|
||||
|
|
2
vendor/modules.txt
vendored
2
vendor/modules.txt
vendored
|
@ -12,7 +12,7 @@ cloud.google.com/go/storage
|
|||
github.com/BurntSushi/toml
|
||||
# github.com/VictoriaMetrics/fastcache v1.5.2
|
||||
github.com/VictoriaMetrics/fastcache
|
||||
# github.com/VictoriaMetrics/metrics v1.8.1
|
||||
# github.com/VictoriaMetrics/metrics v1.8.2
|
||||
github.com/VictoriaMetrics/metrics
|
||||
# github.com/aws/aws-sdk-go v1.25.37
|
||||
github.com/aws/aws-sdk-go/aws
|
||||
|
|
Loading…
Reference in a new issue