Nevill
048f81218d
Change prometheus_sd_configs_failed_total to Gauge
...
Signed-off-by: Nevill <nevill.dutt@gmail.com>
5 years ago
Ben Kochie
76769d4b61
Update link to SaltStack formula ( #6024 )
...
Use the "official" saltstack-formulas version. The existing one hasn't
been updated since 2015.
Signed-off-by: Ben Kochie <superq@gmail.com>
5 years ago
Yao Zengzeng
d1f21552b9
some refactor to make PostingsForMatchers more readable ( #5897 )
...
Signed-off-by: YaoZengzeng <yaozengzeng@zju.edu.cn>
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
Lucas Servén Marín
8ab628b354
tsdb: allow readonly DB to create flush WAL ( #6006 )
...
This PR gives the readonly DB the ability to create blocks from the WAL.
In order to implement this, we modify DBReadOnly.Blocks() to return an
empty slice and no error if no blocks are found.
xref: https://github.com/prometheus/tsdb/issues/346#issuecomment-520786524
Signed-off-by: Lucas Servén Marín <lserven@gmail.com>
5 years ago
Simon Pasquier
26e8d25e0b
web/ui: avoid truncated Y-axis values ( #6014 )
...
* web/ui: avoid truncated Y-axis values
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
* Fix missing semi-colon
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
5 years ago
Alan
42d10aea80
docs: fix error link in /migration.md ( #6010 )
...
docs: fix error link in /migration.md
Signed-off-by: alan <zg.zhu@daocloud.io>
5 years ago
Simon Pasquier
58866f083d
Fix fuzzit job ( #6005 )
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
5 years ago
Simon Pasquier
337a1fbffd
Bump golangci-lint to v1.18.0 ( #6004 )
...
It is required to support Go 1.13 (see
https://github.com/golangci/golangci-lint/issues/652 ).
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
5 years ago
zhulongcheng
970ef41bb6
Fix exported function comments ( #6002 )
...
Signed-off-by: zhulongcheng <zhulongcheng.dev@gmail.com>
5 years ago
Björn Rabenstein
3b3eaf3496
Merge pull request #5787 from cstyan/reshard-max-logging
...
Add metrics for max/min/desired shards to queue manager.
5 years ago
Callum Styan
a98599bea8
Update remote write max shards alert; properly template/query for max
...
shards in description.
Signed-off-by: Callum Styan <callumstyan@gmail.com>
5 years ago
zhulongcheng
937cc1a52a
tsdb: add block meta version constant ( #5994 )
...
Signed-off-by: zhulongcheng <zhulongcheng.dev@gmail.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
Harkishen Singh
d98d4a9bf0
remove resetting of manager properties and init manager props under locking ( #5979 )
...
Signed-off-by: Harkishen-Singh <harkishensingh@hotmail.com>
5 years ago
johncming
a5a4214f31
notifier: return nil is better. ( #5958 )
...
Signed-off-by: johncming <johncming@yahoo.com>
5 years ago
johncming
1e51ba4d30
notifier: Remove redundant format conversions. ( #5960 )
...
Signed-off-by: johncming <johncming@yahoo.com>
5 years ago
David Ellis
dbfd493265
More promlint rules ( #5515 )
...
* Extra promlint rules for Issue 5453
* broaden type name and camelCase checks
* Expand unit test to catch non base units
* Use only celsius as the base unit for temperature
* Remove candela and moles from the unit check
Signed-off-by: David Ellis <ellisda@gmail.com>
5 years ago
Brian Brazil
94b1af1471
Update to disallow new Go 1.13 float formats. ( #5984 )
...
Don't inadvertantly expand the acceptable ways to specify
a float.
Signed-off-by: Brian Brazil <brian.brazil@robustperception.io>
5 years ago
Chris Marchbanks
b4317768b9
Merge pull request #5849 from csmarchbanks/rw-use-labels
...
Cache labels.Labels to Identify Series in Remote Write
5 years ago
Chris Marchbanks
f9ae1a7c2f
Add Chris Marchbanks as release shepherd for v2.14 ( #5985 )
...
Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>
5 years ago
Yao Zengzeng
f65b7c296d
fix TODO: only stop & recreate remote write queues which have changes ( #5540 )
...
Signed-off-by: YaoZengzeng <yaozengzeng@zju.edu.cn>
5 years ago
Chris Marchbanks
791a2409a2
Pre-allocate pendingSamples to reduce allocations
...
Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>
5 years ago
Chris Marchbanks
160186da18
Store labels.Labels instead of []prompb.Label
...
This will use half the steady state memory as required by prompb.Label.
Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>
5 years ago
Simon Pasquier
24844cc222
notifier: move away test assertions from goroutines ( #5430 )
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
5 years ago
Max
cb5213e914
Change the global variable 'name' to a local variable so that it can not populate the global space. ( #5970 )
...
* Change the global variable 'name' to a local variable so that it can not populate the global space.
Signed-off-by: 朱正浩,Zhu Zhenghao <zhenghao.zhu@daocloud.io>
* run make assets
Signed-off-by: 朱正浩,Zhu Zhenghao <zhenghao.zhu@daocloud.io>
5 years ago
Erfan Besharat
9336c01dfd
Add methods to fetch page's buf data in tsdb WAL ( #5967 )
...
* move the WAL page buf reset in its own func
Signed-off-by: Erfan Besharat <erbesharat@gmail.com>
5 years ago
Yao Zengzeng
21c9789083
multiple queries test for StreamRead ( #5969 )
...
Signed-off-by: YaoZengzeng <yaozengzeng@zju.edu.cn>
5 years ago
Hrishikesh Barman
78a9b474d2
building individual binaries with make build ( #5966 )
...
* building individual binaries
Signed-off-by: Hrishikesh Barman <hrishikeshbman@gmail.com>
5 years ago
Simon Pasquier
06066a3619
*: improve error messages when parsing bad rules ( #5965 )
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
5 years ago
johncming
1fa5a75a3a
Ctx name ( #5961 )
...
* scrape: rename ctx name for readability
Signed-off-by: johncming <johncming@yahoo.com>
* scrape: use self ctx instead of parent ctx.
Signed-off-by: johncming <johncming@yahoo.com>
5 years ago
陈谭军
50d453b3c3
fix-up tsdb-typo ( #5954 )
...
Signed-off-by: chentanjun <2799194073@qq.com>
5 years ago
Stanislav Putrya
6141a8bd7c
Show warnings in UI if query have returned some warnings ( #5964 )
...
* Show warnings in UI if query have returned some warnings
+ improve warning (error) text if query to remote was finished with error
* Add prefixes for remote_read errors
Signed-off-by: Stan Putrya <root.vagner@gmail.com>
5 years ago
li mengyang
1c6d2194c4
fix spelling mistakes in docs ( #5952 )
...
Signed-off-by: hwdef <hwdef97@gmail.com>
5 years ago
Krasi Georgiev
17560d4b22
Revert "Add GH actions" ( #5950 )
...
This reverts commit e4560e0d64
.
5 years ago
Krasi Georgiev
e4560e0d64
Add GH actions ( #5949 )
...
Signed-off-by: Krasi Georgiev <8903888+krasi-georgiev@users.noreply.github.com>
5 years ago
Sayan Chowdhury
cb66e325d8
Show the warnings during label query ( #5924 )
...
This patch loops through the warnings while querying the label and spits the
output to stderr
Fixes #5885
Signed-off-by: Sayan Chowdhury <sayan.chowdhury2012@gmail.com>
5 years ago
johncming
ac3cedb108
promql: Modify the order of return values. ( #5940 )
...
Signed-off-by: johncming <johncming@yahoo.com>
5 years ago
johncming
d1b3a6e013
promql: Optimize the writing ( #5941 )
...
Signed-off-by: johncming <johncming@yahoo.com>
5 years ago
Brian Brazil
c66bfce8cf
Don't panic on short input. ( #5939 )
...
Fixes #5935
Signed-off-by: Brian Brazil <brian.brazil@robustperception.io>
5 years ago
johncming
7d43feb03f
tsdb/wal: some small refactoring for easier reading ( #5930 )
...
Signed-off-by: johncming <johncming@yahoo.com>
5 years ago
Chris Marchbanks
5e36aa1491
Add test for MemPostings.Delete ( #5910 )
...
Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>
5 years ago
李国忠
d89e783217
[bugfix] custom SD: when ip out of order, reflect.deepEqual can not correctly identify whether there is a change ( #5856 )
...
* [bugfix] custom SD: when ip out of order, reflect.deepEqual can not correctly identify whether there is a change
Signed-off-by: fuling <fuling.lgz@alibaba-inc.com>
* [format] makefile:Makefile.common:116: common-style
Signed-off-by: fuling <fuling.lgz@alibaba-inc.com>
* [bugfix] custom sd: simonpasquier comment,It would be simpler to sort the targets alphabetically and keep reflect.DeepEqual.
Signed-off-by: fuling <fuling.lgz@alibaba-inc.com>
* [bugfix]custom SD:fix sort
Signed-off-by: fuling <fuling.lgz@alibaba-inc.com>
* [bugfix] custom SD : adapter.go need an empty line after "sort"
Signed-off-by: fuling <fuling.lgz@alibaba-inc.com>
* [bugfix]custom SD:test sign-off
Signed-off-by: fuling <fuling.lgz@alibaba-inc.com>
* [bugfix]custom SD: fix adaper_test.go
Signed-off-by: fuling <fuling.lgz@alibaba-inc.com>
5 years ago
Harkishen Singh
f0bb8129c3
Fixes service-discovery view when accessed from unhealthy targets ( #5915 )
...
* fix service-discovery view
Signed-off-by: Harkishen-Singh <harkishensingh@hotmail.com>
* updated localStorage logic
Signed-off-by: Harkishen-Singh <harkishensingh@hotmail.com>
* sign off
Signed-off-by: Harkishen-Singh <harkishensingh@hotmail.com>
* committed vfs unicodes
Signed-off-by: Harkishen-Singh <harkishensingh@hotmail.com>
5 years ago
Tobias Klauser
02430f88da
pkg/runtime: simplify Utsname string conversion ( #5625 )
...
Use Utsname from golang.org/x/sys/unix which contains byte array
instead of int8/uint8 array members. This allows to simplify the string
conversions of these members.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
5 years ago
Yevgeny Pats
0e1767ba93
Add Continuous Fuzzing via Fuzzit ( #5890 )
...
* add fuzzit.dev continuous fuzzing integration
Signed-off-by: Krzysztof Kowalczyk <kkowalczyk@gmail.com>
* Migration to Circle
Signed-off-by: Yevgeny Pats <yp@fuzzit.dev>
5 years ago
Tariq Ibrahim
f0a5f88b95
[prometheus_sd/kubernetes]add new node address types for discover ( #5902 )
...
Signed-off-by: Tariq Ibrahim <tariq181290@gmail.com>
5 years ago
Bartek Płotka
48b2c9c8ea
remote-read: streamed chunked server side; Extended protobuf; Added chunked, checksumed reader ( #5703 )
...
Part of: https://github.com/prometheus/prometheus/issues/4517 and https://github.com/improbable-eng/thanos/issues/488
Changes:
* Extended protobuf for chunked remote read and negotation.
* Added checksumed, chunked Writer/Reader.
* Added Server side implementation for chunked streamed remote-read.
Signed-off-by: Bartek Plotka <bwplotka@gmail.com>
5 years ago
Frederic Branczyk
d7f4183791
Merge pull request #5914 from prometheus/release-2.12
...
Merge release 2.12 back into master
5 years ago
Julius Volz
43acd0e2e9
Cut v2.12.0 ( #5913 )
...
Signed-off-by: Julius Volz <julius.volz@gmail.com>
5 years ago