Julien Pivotto
5b4f46a348
Add TLS and basic authentication
...
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
4 years ago
beorn7
da1ca868d1
Update dependencies prior to releasing v2.24
...
Signed-off-by: beorn7 <beorn@grafana.com>
4 years ago
Ganesh Vernekar
8cc94fac93
Update dependencies for v2.23 ( #8203 )
...
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
4 years ago
Julien Pivotto
4e5b1722b3
Move away from testutil, refactor imports ( #8087 )
...
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
4 years ago
Bartlomiej Plotka
9981b3f3ee
labels: Reduce allocated memory and latency of Hash method; Added tests. ( #8025 )
...
* labels: Reduce allocated memory by Hash method in edge cases; Added tests.
Old:
/tmp/___BenchmarkLabels_Hash_in_github_com_prometheus_prometheus_pkg_labels -test.v -test.bench ^\QBenchmarkLabels_Hash\E$ -test.run ^$
goos: linux
goarch: amd64
pkg: github.com/prometheus/prometheus/pkg/labels
BenchmarkLabels_Hash
BenchmarkLabels_Hash/typical_labels_under_1KB
BenchmarkLabels_Hash/typical_labels_under_1KB-12 5366161 259 ns/op 0 B/op 0 allocs/op
BenchmarkLabels_Hash/bigger_labels_over_1KB
BenchmarkLabels_Hash/bigger_labels_over_1KB-12 1700371 767 ns/op 2048 B/op 1 allocs/op
BenchmarkLabels_Hash/extremely_large_label_value_10MB
BenchmarkLabels_Hash/extremely_large_label_value_10MB-12 356 3743115 ns/op 10523442 B/op 1 allocs/op
PASS
New:
/tmp/___BenchmarkLabels_Hash_in_github_com_prometheus_prometheus_pkg_labels -test.v -test.bench ^\QBenchmarkLabels_Hash\E$ -test.run ^$
goos: linux
goarch: amd64
pkg: github.com/prometheus/prometheus/pkg/labels
BenchmarkLabels_Hash
BenchmarkLabels_Hash/typical_labels_under_1KB
BenchmarkLabels_Hash/typical_labels_under_1KB-12 4758883 259 ns/op 0 B/op 0 allocs/op
BenchmarkLabels_Hash/bigger_labels_over_1KB
BenchmarkLabels_Hash/bigger_labels_over_1KB-12 3324492 357 ns/op 80 B/op 1 allocs/op
BenchmarkLabels_Hash/extremely_large_label_value_10MB
BenchmarkLabels_Hash/extremely_large_label_value_10MB-12 1087 1083949 ns/op 9734 B/op 1 allocs/op
PASS
Process finished with exit code 0
Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>
* Addressed Kemal's comment.
Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>
* Moved to v2 xxhash for improvements.
New:
/tmp/___BenchmarkLabels_Hash_in_github_com_prometheus_prometheus_pkg_labels -test.v -test.bench ^\QBenchmarkLabels_Hash\E$ -test.run ^$ -test.benchtime 10s
goos: linux
goarch: amd64
pkg: github.com/prometheus/prometheus/pkg/labels
BenchmarkLabels_Hash
BenchmarkLabels_Hash/typical_labels_under_1KB
BenchmarkLabels_Hash/typical_labels_under_1KB-12 53447894 221 ns/op 0 B/op 0 allocs/op
BenchmarkLabels_Hash/bigger_labels_over_1KB
BenchmarkLabels_Hash/bigger_labels_over_1KB-12 42341754 326 ns/op 0 B/op 0 allocs/op
BenchmarkLabels_Hash/extremely_large_label_value_10MB
BenchmarkLabels_Hash/extremely_large_label_value_10MB-12 10000 1248546 ns/op 0 B/op 0 allocs/op
PASS
Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>
* Removed old xxhash package.
Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>
* Pined minor version.
Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>
4 years ago
Frederic Branczyk
a58489857d
*: Update go dependencies
...
Signed-off-by: Frederic Branczyk <fbranczyk@gmail.com>
4 years ago
Simon Pasquier
9bb3555fe4
cmd/prometheus: support k8s.io/klog/v2
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
4 years ago
Simon Pasquier
52c4da161f
Bump Kubernetes dependencies
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
4 years ago
Daniil Rutskiy
63457ef239
Vendor prometheus/common v0.14.0
...
Signed-off-by: Daniil Rutskiy <dstdfx@gmail.com>
4 years ago
Tobias Klauser
b5b3bc34da
tsdb/fileutil: Use FcntlFstore from golang.org/x/sys/unix ( #7949 )
...
Direct syscalls using syscall.Syscall(SYS_*, ...) should no longer be
used on darwin, see [1]. Instead, use the FcntlFstore libSystem wrapper
provided by the golang.org/x/sys/unix package to implement
preallocFixed.
[1] https://golang.org/doc/go1.12#darwin
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
4 years ago
Julien Pivotto
e208afcc95
web: Remove APIv2 ( #7935 )
...
* web: Remove APIv2
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
4 years ago
Julien Pivotto
d668a7efe3
Update go dependencies ( #7837 )
...
Update dependencies before 2.21 release
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
4 years ago
Lukas Kämmerling
b6955bf1ca
Add hetzner service discovery ( #7822 )
...
Signed-off-by: Lukas Kämmerling <lukas.kaemmerling@hetzner-cloud.de>
4 years ago
Andy Bursavich
4e6a94a27d
Invert service discovery dependencies ( #7701 )
...
This also fixes a bug in query_log_file, which now is relative to the config file like all other paths.
Signed-off-by: Andy Bursavich <abursavich@gmail.com>
4 years ago
Julien Pivotto
d867491364
Human-friendly durations in PromQL ( #7713 )
...
* Add support for user-friendly durations
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
4 years ago
Javier Palomo Almena
348ff4285f
tsdb: Replace sync/atomic with uber-go/atomic in tsdb ( #7659 )
...
* tsdb/chunks: Replace sync/atomic with uber-go/atomic
Signed-off-by: Javier Palomo <javier.palomo.almena@gmail.com>
* tsdb/heaad: Replace sync/atomic with uber-go/atomic
Signed-off-by: Javier Palomo <javier.palomo.almena@gmail.com>
* vendor: Make go.uber.org/atomic a direct dependency
There is no modifications to go.sum and vendor/ because
it was already vendored.
Signed-off-by: Javier Palomo <javier.palomo.almena@gmail.com>
* tsdb: Remove comments referring to the sync/atomic alignment bug
Related: https://golang.org/pkg/sync/atomic/#pkg-note-BUG
Signed-off-by: Javier Palomo <javier.palomo.almena@gmail.com>
4 years ago
Julien Pivotto
6f296594a8
Update go deps + use exclude directive ( #7624 )
...
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
4 years ago
Julien Pivotto
62805b2fe9
tsdb: test for leaks ( #7566 )
...
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
4 years ago
Ganesh Vernekar
26044045b9
Downgrade grpc to v1.29.1
...
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
4 years ago
beorn7
ddefee52dc
Update dependencies
...
Note that by just running `make update-go-deps`, the K8s Go client was
set to `k8s.io/client-go v11.0.0+incompatible`. However, that doesn't
play well with `k8s.io/apimachinery v0.18.5`. I the manually changed
the Go client line to `k8s.io/client-go v0.18.5`, which made
everything work. I guess Go Modules got confused by the ginormous
v11.0.0 version tag. Or it is a problem that pulling k8s.io/client-go
with git results in a rather old repo without the v0.18.5
tag. github.com/kubernetes/client-go has all the right tags. I
actually don't understand how Go Modules still correctly figures out
the source from the `k8s.io/client-go v0.18.5` line.
If one of the reviewers could enlighten me, I'd much appreciate it.
Signed-off-by: beorn7 <beorn@grafana.com>
4 years ago
Julien Pivotto
57aac73e47
Downgrade docker dependency to the stable branch ( #7524 )
...
This PR downgrades the docker dependency to the stable 19.03 branch.
It means that we will negociate 1.40 by default and not the uncomplete
1.41 API.
It was not possible to use the stable branch before because a patch
was pending to build on netbsd and dragonfly:
a40b877fbb
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
4 years ago
yeya24
797e48c1a3
support time range in promtool query labels
...
Updated prometheus/client_golang and json-iterator/go
Signed-off-by: yeya24 <yb532204897@gmail.com>
4 years ago
Julien Pivotto
59de58d380
Docker Swarm service discovery ( #7420 )
...
* Docker Swarm service discovery
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
4 years ago
Julien Pivotto
c61141ce51
Add DigitalOcean service discovery ( #7407 )
...
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
4 years ago
Ganesh Vernekar
c729df3d0f
Update dependencies ( #7331 )
...
* Update dependencies
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
* Update protos
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
5 years ago
Tariq Ibrahim
06a6621b6c
update kubernetes to v1.18.x and update ingress apiVersion
...
Signed-off-by: Tariq Ibrahim <tariq181290@gmail.com>
5 years ago
Julien Pivotto
000ba35277
Update prometheus/common to v0.10.0 ( #7258 )
...
Enable HTTP/2.
Fixes #5938
Fixes #7237
Add support for "0" duration.
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
5 years ago
Julien Pivotto
b03bc16623
Update yamlv3 ( #7207 )
...
This update fixes https://github.com/go-yaml/yaml/issues/575 , required
by downstream.
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
5 years ago
Hongcai Ren
1c48005911
bump client golang to v1.6.0 ( #7191 )
...
* bump github.com/prometheus/client_golang to v1.6.0
Signed-off-by: RainbowMango <renhongcai@huawei.com>
5 years ago
Bartlomiej Plotka
dbc9bd7948
Updared mod as suggested by Julien
...
Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>
5 years ago
Bartlomiej Plotka
94baacdd93
Moved down all k8s.io deps to old version.
...
Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>
5 years ago
Bartlomiej Plotka
8e247ba0ba
Moved back k8s-client.
...
Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>
5 years ago
Bartlomiej Plotka
86ff4a1717
Updated all deps.
...
Pinned github.com/googleapis/gnostic as they introduced braking change.
Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>
5 years ago
Vasily Sliouniaev
0393b188c9
Add Jaeger ( #7148 )
...
* Trace remote read
Signed-off-by: vas <vasily.sliouniaev@jet.com>
* Use jaeger
Signed-off-by: vas <vasily.sliouniaev@jet.com>
5 years ago
Bartlomiej Plotka
104a1313d4
testutil: Enriched Equals with diff on error. ( #7053 )
...
## Example:
```
exp: []chunks.Meta{chunks.Meta{Ref:0x0, Chunk:(*chunkenc.XORChunk)(0xc00000e160), MinTime:1, MaxTime:2}, chunks.Meta{Ref:0x0, Chunk:(*chunkenc.XORChunk)(0xc00000e180), MinTime:3, MaxTime:3}, chunks.Meta{Ref:0x0, Chunk:(*chunkenc.XORChunk)(0xc00000e1a0), MinTime:5, MaxTime:5}, chunks.Meta{Ref:0x0, Chunk:(*chunkenc.XORChunk)(0xc00000e1c0), MinTime:24, MaxTime:6}}
got: []chunks.Meta{chunks.Meta{Ref:0x0, Chunk:(*chunkenc.XORChunk)(0xc00000e280), MinTime:1, MaxTime:2}, chunks.Meta{Ref:0x0, Chunk:(*chunkenc.XORChunk)(0xc00000e2a0), MinTime:3, MaxTime:3}, chunks.Meta{Ref:0x0, Chunk:(*chunkenc.XORChunk)(0xc00000e220), MinTime:5, MaxTime:5}, chunks.Meta{Ref:0x0, Chunk:(*chunkenc.XORChunk)(0xc00000e240), MinTime:6, MaxTime:6}}
```
Now:
```
exp: []chunks.Meta{chunks.Meta{Ref:0x0, Chunk:(*chunkenc.XORChunk)(0xc00000e740), MinTime:1, MaxTime:2}, chunks.Meta{Ref:0x0, Chunk:(*chunkenc.XORChunk)(0xc00000e760), MinTime:3, MaxTime:3}, chunks.Meta{Ref:0x0, Chunk:(*chunkenc.XORChunk)(0xc00000e780), MinTime:5, MaxTime:5}, chunks.Meta{Ref:0x0, Chunk:(*chunkenc.XORChunk)(0xc00000e7a0), MinTime:24, MaxTime:6}}
got: []chunks.Meta{chunks.Meta{Ref:0x0, Chunk:(*chunkenc.XORChunk)(0xc00000e800), MinTime:1, MaxTime:2}, chunks.Meta{Ref:0x0, Chunk:(*chunkenc.XORChunk)(0xc00000e820), MinTime:3, MaxTime:3}, chunks.Meta{Ref:0x0, Chunk:(*chunkenc.XORChunk)(0xc00000e860), MinTime:5, MaxTime:5}, chunks.Meta{Ref:0x0, Chunk:(*chunkenc.XORChunk)(0xc00000e880), MinTime:6, MaxTime:6}}
Diff:
--- Expected
+++ Actual
@@ -50,3 +50,3 @@
}),
- MinTime: (int64) 24,
+ MinTime: (int64) 6,
MaxTime: (int64) 6
```
Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>
5 years ago
Julien Pivotto
ef138a11c8
Update client_golang to fix promhttp error handling ( #6986 )
...
Fixes #6139
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
5 years ago
Julien Pivotto
a17ddcf0f9
update vendor ( #6936 )
...
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
5 years ago
Julien Pivotto
ef63d8d16d
Update vendors
...
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
5 years ago
Julien Pivotto
29086533fd
web: use chained WithInstrumentation ( #6661 )
...
* web: use chained WithInstrumentation
Requires an update of github.com/prometheus/common
* Update yaml.v2
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
5 years ago
Harkishen Singh
84e6459c4d
Adds support for line-column numbers for invalid rules, promtool ( #6533 )
...
Signed-off-by: Harkishen Singh <harkishensingh@hotmail.com>
5 years ago
Mitsuhiro Tanda
466cc36ba0
upgrade aws-sdk-go ( #6429 )
...
Signed-off-by: Mitsuhiro Tanda <mitsuhiro.tanda@gmail.com>
5 years ago
Tariq Ibrahim
83e6d56393
clean up indirects in go.mod manifest ( #6249 )
...
Signed-off-by: Tariq Ibrahim <tariq181290@gmail.com>
5 years ago
Tariq Ibrahim
89e610ef4c
bump go version in go.mod ( #6194 )
...
Signed-off-by: Tariq Ibrahim <tariq181290@gmail.com>
5 years ago
Krasi Georgiev
5b8ff9b8a4
Merge the 2.13 release branch ( #6169 )
...
* Include tsdb tool in builds (#6085 ) (#6089 )
Add the tsdb tool to promu so that it's included in the release
tarballs.
Signed-off-by: Ben Kochie <superq@gmail.com>
* web/ui: fix for CVE-2019-10215 (#6098 )
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
* cut 2.13 release (#6099 )
Signed-off-by: Krasi Georgiev <8903888+krasi-georgiev@users.noreply.github.com>
* Fix panic in ARM builds of Prometheus (#6110 )
An extra sync.Pool was added during a refactor which caused some 64 bit,
atomically accessed variables to no longer be 64 bit aligned. By moving
all atomically accessed variables to the beginning of the struct they
are guaranteed to be 64 bit aligned.
Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>
* promql: fix potential panic in the query logger (#6094 )
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
* Cut release 2.13.1 (#6145 )
Signed-off-by: Krasi Georgiev <8903888+krasi-georgiev@users.noreply.github.com>
5 years ago
Krasi Georgiev
b03bb38194
Cut release 2.13.1 ( #6145 )
...
* cut 2.13.1 release (#6099 )
Signed-off-by: Krasi Georgiev <8903888+krasi-georgiev@users.noreply.github.com>
5 years ago
Goutham Veeramachaneni
4c648eddf4
vendor: Update json-iterator ( #6030 )
...
Also add explicit support for NaN/Inf
Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>
5 years ago
Simon Pasquier
ca424695a6
*: bump Go version to 1.13 ( #6020 )
...
* *: bump Go version to 1.13
* Fix go.mod for k8s.io/client-go
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
5 years ago
Micah Hausler
5774d790a5
Updated AWS SDK to v1.23.12 ( #5973 )
...
Signed-off-by: Micah Hausler <mhausler@amazon.com>
5 years ago
Julius Volz
b5c833ca21
Update go.mod dependencies before release ( #5883 )
...
* Update go.mod dependencies before release
Signed-off-by: Julius Volz <julius.volz@gmail.com>
* Add issue for showing query warnings in promtool
Signed-off-by: Julius Volz <julius.volz@gmail.com>
* Revert json-iterator back to 1.1.6
It produced errors when marshaling Point values with special float
values.
Signed-off-by: Julius Volz <julius.volz@gmail.com>
* Fix expected step values in promtool tests after client_golang update
Signed-off-by: Julius Volz <julius.volz@gmail.com>
* Update generated protobuf code after proto dep updates
Signed-off-by: Julius Volz <julius.volz@gmail.com>
5 years ago
Ganesh Vernekar
5ecef3542d
Cleanup after merging tsdb into prometheus
...
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
5 years ago