Benji Visser
11b336e3ca
Migrate all Docker image references to Docker Hub ( #4864 )
...
Signed-off-by: noqcks <benny@noqcks.io>
6 years ago
Junyu Wang
2f93fa6292
Included default flags into Dockerfile entrypoint ( #4796 )
...
* included default flags into Dockerfile entrypoint
Signed-off-by: Junyu Wang <junyuw@berkeley.edu>
* keeping style consistent
Co-Authored-By: DrakeW <junyuw@berkeley.edu>
Signed-off-by: Junyu Wang <junyuw@berkeley.edu>
* move prometheus.yml config into entrypoint & point to console template/libraries in etc/prometheus
Signed-off-by: Junyu Wang <junyuw@berkeley.edu>
6 years ago
Simon Pasquier
6fa8de132b
web/v1/api: add tests for admin actions ( #4767 )
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
6 years ago
Frederic Branczyk
5464c64853
Merge pull request #4802 from simonpasquier/go-modules
...
Switch to Go modules
6 years ago
stuart nelson
6a69471bc2
[promtool] Support writing output as json ( #4848 )
...
* Support writing output as json
Oftentimes I'll want to execute something based on
the output from promtool, and supporting json
makes it easy to pull out values with a supporting
tool such as jq.
Signed-off-by: stuart nelson <stuartnelson3@gmail.com>
6 years ago
Frederic Branczyk
b82f930238
Merge pull request #4865 from squat/buffersignals
...
cmd/prometheus: buffer signal chans
6 years ago
Goutham Veeramachaneni
d4b348a7b1
Merge pull request #4866 from gouthamve/api-compat
...
web(api): Make query and range api errors match
6 years ago
Goutham Veeramachaneni
7acedbce64
web(api): Make query and range api errors match
...
Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>
6 years ago
Goutham Veeramachaneni
1f053f897b
Merge pull request #4628 from bboreham/fix-storage-error
...
Make ErrStorage a concrete type not an interface
6 years ago
Lucas Serven
70c8b2c63c
cmd/prometheus: buffer signal chans
...
According to the GoDoc for os.Signal [0]:
> Package signal will not block sending to c: the caller must ensure that
> c has sufficient buffer space to keep up with the expected signal rate.
> For a channel used for notification of just one signal value, a buffer
> of size 1 is sufficient.
[0] https://golang.org/pkg/os/signal/#Notify
Signed-off-by: Lucas Serven <lserven@gmail.com>
6 years ago
Simon Pasquier
181f07ef26
web: avoid proxy to connect to the local gRPC server ( #4572 )
...
By default the gRPC client of the REST API gateway relies on the
HTTP_PROXY variable to connect to the local gRPC server which isn't
desired as the server runs in the same process. This change uses a
custom dialer that connects directly to the server's address.
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
6 years ago
fengyuceNv
94fff219ab
improve remote storage enqueue performance ( #4772 )
...
Signed-off-by: fyc <fyc22788@ly.com>
6 years ago
Brian Brazil
8edaa8ad4d
Fix goroutine leak in lexer/parser. ( #4858 )
...
When there was an error in the parser, the
lexer goroutine was left running.
Also make runtime panic test actually test things.
Signed-off-by: Brian Brazil <brian.brazil@robustperception.io>
6 years ago
Simon Pasquier
d89c01b065
web/ui: fix asset generation for Go modules installs
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
6 years ago
Simon Pasquier
bf9a1d3d15
*: fix assets generation
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
6 years ago
Simon Pasquier
5dce2f5853
Merge branch 'master' into go-modules
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
6 years ago
Simon Pasquier
466a8d94fc
Makefile: fix assets rule
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
6 years ago
Ben Kochie
b1e779d0ed
Use release binary of promu ( #4843 )
...
Download and extract a release binary of promu, rather than pull from
master.
Signed-off-by: Ben Kochie <superq@gmail.com>
6 years ago
Simon Pasquier
a9ff66427b
Makefile: add precheck target
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
6 years ago
Simon Pasquier
46cdf0b674
vendor: fix k8s.io/client-go version
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
6 years ago
Simon Pasquier
0a319b001a
Update documentation
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
6 years ago
Simon Pasquier
a60d2c152f
Makefile.common: clean up
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
6 years ago
Simon Pasquier
e3cd3ab79a
Merge branch 'master' into go-modules
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
6 years ago
Simon Pasquier
5230e2730a
*: check that assets are up-to-date ( #4731 )
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
6 years ago
Simon Pasquier
7465118a2c
Fix errors in the vendor/ directory ( #4781 )
...
* vendor: fix revision for google.golang.org/grpc packages
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
* vendor: fix revision for google.golang.org/genproto/googleapis/rpc/status
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
* vendor: fix revision for github.com/petermattis/goid
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
* vendor: fix revision for github.com/davecgh/go-spew/spew
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
* vendor: fix revision for github.com/ghodss/yaml
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
* vendor: fix revision for github.com/golang/glog
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
* vendor: fix revision for github.com/google/gofuzz
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
* vendor: fix revision for github.com/pmezard/go-difflib/difflib
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
* vendor: fix revision for github.com/sasha-s/go-deadlock
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
* vendor: fix revision for gopkg.in/inf.v0
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
* vendor: remove unused packages from vendor.json
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
* vendor: commit vendor/ after running govendor sync
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
6 years ago
Frederic Branczyk
12ab9bf792
Merge pull request #4829 from brancz/release-doc
...
Add RELEASE.md
6 years ago
Frederic Branczyk
bda9781ccd
Merge pull request #3839 from brancz/remove-old-alert-record
...
promql: Remove old and unused alerting/reconding syntax
6 years ago
Frederic Branczyk
3274a74595
Add RELEASE.md
...
Signed-off-by: Frederic Branczyk <fbranczyk@gmail.com>
6 years ago
Frederic Branczyk
3287b9a4b8
Merge pull request #4579 from bwplotka/ensure-genproto-works
...
proto: Allow reproducible proto generation.
6 years ago
Bryan Boreham
cf37e1feb4
Add __meta_kubernetes_pod_phase label in discovery ( #4824 )
...
This lets you add a relabel rule to drop scrapes for pods which are
not running.
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
6 years ago
Silvio Gissi
6100f160ad
EC2 Platform meta label ( #4663 )
...
Set __meta_ec2_platform label with the instance platform string. Set to 'windows' on Windows servers and absent otherwise.
Signed-off-by: Silvio Gissi <silvio@gissilabs.com>
6 years ago
Mucahit Kurt
4a6c329d71
add alert template expanding failure metric ( #4747 )
...
Signed-off-by: Mucahit Kurt <mucahitkurt@gmail.com>
6 years ago
Frederic Branczyk
c2f32c99cf
Merge pull request #4826 from brancz/cut-2.5.0
...
*: Cut v2.5.0
6 years ago
Frederic Branczyk
98e4d8f6e4
*: Cut v2.5.0
...
Signed-off-by: Frederic Branczyk <fbranczyk@gmail.com>
6 years ago
Frederic Branczyk
4d4b5c9d12
Merge pull request #4809 from brancz/cut-2.5.0-rc.2
...
*: Cut v2.5.0-rc.2
6 years ago
Frederic Branczyk
b76dd3513b
*: Cut v2.5.0-rc.2
...
Signed-off-by: Frederic Branczyk <fbranczyk@gmail.com>
6 years ago
Frederic Branczyk
dbe8acce94
Merge pull request #4806 from simonpasquier/fix-targets-page
...
web: display job label in targets page
6 years ago
Simon Pasquier
147f2061d5
web: display job label in targets page
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
6 years ago
Simon Pasquier
4fc6e22067
Set GO111MODULE when running staticcheck
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
6 years ago
Simon Pasquier
5bd9010196
More updates for libraries
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
6 years ago
Simon Pasquier
be68fb0f30
Update Makefile.common to support libraries
...
Specifically tsdb and client_golang that don't use vendoring.
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
6 years ago
Simon Pasquier
790876da60
go get honnef.co/go/tools/cmd/staticcheck in a temp dir
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
6 years ago
Simon Pasquier
f6f2778528
add comment for honnef.co/go/tools
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
6 years ago
Simon Pasquier
1a0a570c91
run 'go generate' with proper options
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
6 years ago
Simon Pasquier
71e0ec7512
improve unused recipe for go modules
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
6 years ago
Simon Pasquier
79e0fb5a3d
Tidy up Makefile.common
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
6 years ago
Simon Pasquier
ac16ef8f0e
Add missing tools.go
...
Also rearrange the code to be more consistent.
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
6 years ago
Simon Pasquier
b9f824e617
try go install honnef.co/tools/cmd/staticcheck
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
6 years ago
Simon Pasquier
ea18ea66b1
GOOS= and GOARCH=
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
6 years ago
Simon Pasquier
cc1b953394
go list -m honnef.co/go/tools
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
6 years ago