mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-26 22:19:40 -08:00
7a8bb8222c
A lot of this code was hacked together, literally during a hackathon. This commit intends not to change the code substantially, but just make the code obey the usual style practices. A (possibly incomplete) list of areas: * Generally address linter warnings. * The `pgk` directory is deprecated as per dev-summit. No new packages should be added to it. I moved the new `pkg/histogram` package to `model` anticipating what's proposed in #9478. * Make the naming of the Sparse Histogram more consistent. Including abbreviations, there were just too many names for it: SparseHistogram, Histogram, Histo, hist, his, shs, h. The idea is to call it "Histogram" in general. Only add "Sparse" if it is needed to avoid confusion with conventional Histograms (which is rare because the TSDB really has no notion of conventional Histograms). Use abbreviations only in local scope, and then really abbreviate (not just removing three out of seven letters like in "Histo"). This is in the spirit of https://github.com/golang/go/wiki/CodeReviewComments#variable-names * Several other minor name changes. * A lot of formatting of doc comments. For one, following https://github.com/golang/go/wiki/CodeReviewComments#comment-sentences , but also layout question, anticipating how things will look like when rendered by `godoc` (even where `godoc` doesn't render them right now because they are for unexported types or not a doc comment at all but just a normal code comment - consistency is queen!). * Re-enabled `TestQueryLog` and `TestEndopints` (they pass now, leaving them disabled was presumably an oversight). * Bucket iterator for histogram.Histogram is now created with a method. * HistogramChunk.iterator now allows iterator recycling. (I think @dieterbe only commented it out because he was confused by the question in the comment.) * HistogramAppender.Append panics now because we decided to treat staleness marker differently. Signed-off-by: beorn7 <beorn@grafana.com>
119 lines
4.4 KiB
Modula-2
119 lines
4.4 KiB
Modula-2
module github.com/prometheus/prometheus
|
|
|
|
go 1.14
|
|
|
|
require (
|
|
github.com/Azure/azure-sdk-for-go v57.1.0+incompatible
|
|
github.com/Azure/go-autorest/autorest v0.11.20
|
|
github.com/Azure/go-autorest/autorest/adal v0.9.15
|
|
github.com/Azure/go-autorest/autorest/to v0.4.0 // indirect
|
|
github.com/Azure/go-autorest/autorest/validation v0.3.1 // indirect
|
|
github.com/alecthomas/units v0.0.0-20210912230133-d1bdfacee922
|
|
github.com/aws/aws-sdk-go v1.40.37
|
|
github.com/cespare/xxhash/v2 v2.1.2
|
|
github.com/containerd/containerd v1.5.4 // indirect
|
|
github.com/dennwc/varint v1.0.0
|
|
github.com/dgryski/go-sip13 v0.0.0-20200911182023-62edffca9245
|
|
github.com/digitalocean/godo v1.65.0
|
|
github.com/docker/docker v20.10.8+incompatible
|
|
github.com/docker/go-connections v0.4.0 // indirect
|
|
github.com/edsrzf/mmap-go v1.0.0
|
|
github.com/envoyproxy/go-control-plane v0.9.9
|
|
github.com/envoyproxy/protoc-gen-validate v0.6.1
|
|
github.com/go-kit/log v0.1.0
|
|
github.com/go-logfmt/logfmt v0.5.1
|
|
github.com/go-openapi/strfmt v0.20.2
|
|
github.com/go-zookeeper/zk v1.0.2
|
|
github.com/gogo/protobuf v1.3.2
|
|
github.com/golang/snappy v0.0.4
|
|
github.com/google/pprof v0.0.0-20210827144239-02619b876842
|
|
github.com/gophercloud/gophercloud v0.20.0
|
|
github.com/grpc-ecosystem/grpc-gateway v1.16.0
|
|
github.com/hashicorp/consul/api v1.10.1
|
|
github.com/hetznercloud/hcloud-go v1.32.0
|
|
github.com/influxdata/influxdb v1.9.3
|
|
github.com/json-iterator/go v1.1.11
|
|
github.com/linode/linodego v0.32.0
|
|
github.com/miekg/dns v1.1.43
|
|
github.com/moby/term v0.0.0-20201216013528-df9cb8a40635 // indirect
|
|
github.com/morikuni/aec v1.0.0 // indirect
|
|
github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f
|
|
github.com/oklog/run v1.1.0
|
|
github.com/oklog/ulid v1.3.1
|
|
github.com/opentracing-contrib/go-stdlib v1.0.0
|
|
github.com/opentracing/opentracing-go v1.2.0
|
|
github.com/pkg/errors v0.9.1
|
|
github.com/prometheus/alertmanager v0.23.0
|
|
github.com/prometheus/client_golang v1.11.0
|
|
github.com/prometheus/client_model v0.2.0
|
|
github.com/prometheus/common v0.31.1
|
|
github.com/prometheus/common/sigv4 v0.1.0
|
|
github.com/prometheus/exporter-toolkit v0.6.1
|
|
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.7.0.20210223165440-c65ae3540d44
|
|
github.com/shurcooL/httpfs v0.0.0-20190707220628-8d4bc4ba7749
|
|
github.com/shurcooL/vfsgen v0.0.0-20200824052919-0d455de96546
|
|
github.com/stretchr/testify v1.7.0
|
|
github.com/uber/jaeger-client-go v2.29.1+incompatible
|
|
github.com/uber/jaeger-lib v2.4.1+incompatible
|
|
go.uber.org/atomic v1.9.0
|
|
go.uber.org/goleak v1.1.10
|
|
golang.org/x/net v0.0.0-20210903162142-ad29c8ab022f
|
|
golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f
|
|
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
|
|
golang.org/x/sys v0.0.0-20210906170528-6f6e22806c34
|
|
golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac
|
|
golang.org/x/tools v0.1.7
|
|
google.golang.org/api v0.56.0
|
|
google.golang.org/genproto v0.0.0-20210903162649-d08c68adba83
|
|
google.golang.org/protobuf v1.27.1
|
|
gopkg.in/alecthomas/kingpin.v2 v2.2.6
|
|
gopkg.in/fsnotify/fsnotify.v1 v1.4.7
|
|
gopkg.in/yaml.v2 v2.4.0
|
|
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b
|
|
k8s.io/api v0.22.1
|
|
k8s.io/apimachinery v0.22.1
|
|
k8s.io/client-go v0.22.1
|
|
k8s.io/klog v1.0.0
|
|
k8s.io/klog/v2 v2.10.0
|
|
)
|
|
|
|
replace (
|
|
k8s.io/klog => github.com/simonpasquier/klog-gokit v0.3.0
|
|
k8s.io/klog/v2 => github.com/simonpasquier/klog-gokit/v3 v3.0.0
|
|
)
|
|
|
|
// Exclude linodego v1.0.0 as it is no longer published on github.
|
|
exclude github.com/linode/linodego v1.0.0
|
|
|
|
// Exclude grpc v1.30.0 because of breaking changes. See #7621.
|
|
exclude (
|
|
github.com/grpc-ecosystem/grpc-gateway v1.14.7
|
|
google.golang.org/api v0.30.0
|
|
)
|
|
|
|
// Exclude pre-go-mod kubernetes tags, as they are older
|
|
// than v0.x releases but are picked when we update the dependencies.
|
|
exclude (
|
|
k8s.io/client-go v1.4.0
|
|
k8s.io/client-go v1.4.0+incompatible
|
|
k8s.io/client-go v1.5.0
|
|
k8s.io/client-go v1.5.0+incompatible
|
|
k8s.io/client-go v1.5.1
|
|
k8s.io/client-go v1.5.1+incompatible
|
|
k8s.io/client-go v10.0.0+incompatible
|
|
k8s.io/client-go v11.0.0+incompatible
|
|
k8s.io/client-go v2.0.0+incompatible
|
|
k8s.io/client-go v2.0.0-alpha.1+incompatible
|
|
k8s.io/client-go v3.0.0+incompatible
|
|
k8s.io/client-go v3.0.0-beta.0+incompatible
|
|
k8s.io/client-go v4.0.0+incompatible
|
|
k8s.io/client-go v4.0.0-beta.0+incompatible
|
|
k8s.io/client-go v5.0.0+incompatible
|
|
k8s.io/client-go v5.0.1+incompatible
|
|
k8s.io/client-go v6.0.0+incompatible
|
|
k8s.io/client-go v7.0.0+incompatible
|
|
k8s.io/client-go v8.0.0+incompatible
|
|
k8s.io/client-go v9.0.0+incompatible
|
|
k8s.io/client-go v9.0.0-invalid+incompatible
|
|
)
|