Tobias Schmidt
77c1da8f9d
Reflect automatic docs publishing in the release process ( #8056 )
...
No more need to do anything manually for release docs.
Signed-off-by: Tobias Schmidt <tobidt@gmail.com>
4 years ago
Ganesh Vernekar
4ed3ec7b46
More info in mmap error message ( #8058 )
...
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
4 years ago
Julien Pivotto
4596abee4d
Mixin: Ignore unset remote write timestamp ( #8046 )
...
* Mixin: Ignore unset remote write timestamp
This pull request ignores the zero value of highest_sent_timestamp_seconds
in Highest Timestamp In vs. Highest Timestamp Sent which just show that
remote write has not been successful yet.
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
4 years ago
Frederic Branczyk
e1406c9406
*: Cut v2.22.0
...
Signed-off-by: Frederic Branczyk <fbranczyk@gmail.com>
4 years ago
frbimo
260cd84d8f
log on empty head compaction result ( #8037 )
...
Signed-off-by: frbimo <fr.bimo@gmail.com>
4 years ago
Gayathri Venkatesh
73e2ce1bd6
Do not ignore reload errors in compactHead ( #8051 )
...
* Modified unknownRefs to unknownRefs.Load()
Signed-off-by: GayathriVenkatesh <gayaa2010@gmail.com>
* Modified db.go
Signed-off-by: GayathriVenkatesh <gayaa2010@gmail.com>
* Revert "Modified unknownRefs to unknownRefs.Load()"
This reverts commit 79caf595fa9b9193878dc0dd9dec17d58851ae42.
Signed-off-by: GayathriVenkatesh <gayaa2010@gmail.com>
* Made changes to reload error in db.go
Signed-off-by: GayathriVenkatesh <gayaa2010@gmail.com>
4 years ago
Goutham Veeramachaneni
1cc02930b6
Implement series API query hint to not hit chunks ( #8050 )
...
Fixes https://github.com/prometheus/prometheus/issues/5547
Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>
4 years ago
Ling Jin
9145200842
tsdb: fix unkown ref in log ( #8048 )
...
Signed-off-by: JinLingChristopher <jinl1037@hotmail.com>
4 years ago
Bartlomiej Plotka
dee6ac274e
labels: Extra tests and comment for WithoutLabels method. ( #8024 )
...
Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>
4 years ago
Björn Rabenstein
71577e45eb
Merge pull request #8044 from prometheus/beorn7/metrics
...
Instrumentation: Report valid configs in the respective metrics from the beginning
4 years ago
Arthur Silva Sens
4f45e201cc
Promtool tsdb list now prints block sizes ( #7993 )
...
* promtool tsdb list now prints blocks' size
Signed-off-by: arthursens <arthursens2005@gmail.com>
4 years ago
beorn7
0f3c1bf6cf
Report valid configs in the respective metrics from the beginning
...
In #7399 , an early validity check of the config was introduced to
prevent the scenario where an invalid config is only detected after a
possibly very long startup procedure. However, the respective success
metrics are not updated after the initial validation so that the
success metrics suggest an invalid config. If the startup procedure,
like replaying the WAL, really takes very long, alerts about invalid
config will trigger.
This commit sets the succes metrics after initial validation. They
will be set again after the "real" config (re-)load, but that
shouldn't be a problem. The metric now truthfully represents whenever
the config was successfully loaded, no matter if the result was then
thrown away (because it was just for validation) or actually used.
Signed-off-by: beorn7 <beorn@grafana.com>
4 years ago
Jess G
90680b092c
Add a tsdb writer interface ( #7950 )
...
* add a tsdb writer interface
Signed-off-by: jessicagreben <jessicagrebens@gmail.com>
* use block writer in tsdbutil block creator
Signed-off-by: jessicagreben <jessicagrebens@gmail.com>
* pass thru context
Signed-off-by: jessicagreben <jessicagrebens@gmail.com>
* use block writer in blockutil and also in tests
Signed-off-by: jessicagreben <jessicagrebens@gmail.com>
* fix link err
Signed-off-by: jessicagreben <jessicagrebens@gmail.com>
* add err handling for defer
Signed-off-by: jessicagreben <jessicagrebens@gmail.com>
* add blockwriter test
Signed-off-by: jessicagreben <jessicagrebens@gmail.com>
* mv initHead into NewBlockWriter, update tests
Signed-off-by: jessicagreben <jessicagrebens@gmail.com>
* use blocksize arg, make test more concise
Signed-off-by: jessicagreben <jessicagrebens@gmail.com>
4 years ago
Brian Brazil
cf273f21bb
Add a testcase for #8040 ( #8042 )
...
This was already fixed by #8013 , but add a test case anyway
in case the regexp engine changes in future.
Signed-off-by: Brian Brazil <brian.brazil@robustperception.io>
4 years ago
Frederic Branczyk
3240cf83f0
Merge pull request #8020 from brancz/cut-2.22.0-rc.0
...
*: Cut v2.22.0-rc.0
4 years ago
Frederic Branczyk
be137435be
*: Cut v2.22.0-rc.0
...
Signed-off-by: Frederic Branczyk <fbranczyk@gmail.com>
4 years ago
Frederic Branczyk
8703bc88cd
Merge pull request #8027 from brancz/v2.22-go-dep-update
...
*: Update dependencies
4 years ago
Frederic Branczyk
21a2e8c320
storage/remote/intern_test.go: Fix linting errors
...
Signed-off-by: Frederic Branczyk <fbranczyk@gmail.com>
4 years ago
Frederic Branczyk
b97a1bb7d1
web/ui/react-app/yarn.lock: Update UI dependencies
...
Signed-off-by: Frederic Branczyk <fbranczyk@gmail.com>
4 years ago
Frederic Branczyk
a58489857d
*: Update go dependencies
...
Signed-off-by: Frederic Branczyk <fbranczyk@gmail.com>
4 years ago
Frederic Branczyk
da3ea43242
Merge pull request #7976 from roidelapluie/tolerance
...
Introduce timestamp tolerance in scrapes
4 years ago
Siddhant Sinha
d9dcf2c90f
Fixes #7982 . Increase maxErrMsgLen value remote_write api ( #8017 )
...
Signed-off-by: Siddhant Sinha <sid.sinha94@gmail.com>
4 years ago
Julien Pivotto
be5ba1a62d
Fix wordings
...
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
4 years ago
Julien Pivotto
4617d16b4b
Specify the removal
...
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
4 years ago
Julien Pivotto
e2a2bf3c06
Add context
...
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
4 years ago
Julien Pivotto
671f7c66e5
Adjust comment
...
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
4 years ago
Julien Pivotto
627ff84599
Adjust flag
...
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
4 years ago
garanews
c38816828f
fix few typo ( #8023 )
...
Signed-off-by: garanews <puntogtg@tiscali.it>
4 years ago
Julien Pivotto
6b618ecf02
Better description
...
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
4 years ago
Julien Pivotto
536dfb6234
Add an experimental, hidden flag
...
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
4 years ago
Harold Dost
bf7c771f54
promql: Organize legacy tests into appropriate files ( #7989 )
...
* Separate tests into:
** Aggregators
** Functions
** Operators
** Selectors
* Remove simple files and place tests into other files.
* Eliminate some of the _over_time tests since there are already plenty of
edge cases present in the functions.test file.
Relates to #740
Signed-off-by: Harold Dost <harolddost@gmail.com>
4 years ago
Frederic Branczyk
6be3ebdfe7
Merge pull request #8015 from simonpasquier/bump-k8s-deps
...
Bump k8s dependencies + support k8s.io/klog/v2
4 years ago
Julien Pivotto
946819e16e
cmd/prometheus: Issue a warning on 32 bit archs ( #8012 )
...
* cmd/prometheus: Issue a warning on 32 bit archs
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
4 years ago
Julien Pivotto
b90c7a55da
Simplify logic
...
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
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
Brian Brazil
924ce978b7
Don't do literal regex matching optimisation when case insensitive. ( #8013 )
...
Fixes #7994
Signed-off-by: Brian Brazil <brian.brazil@robustperception.io>
4 years ago
Julien Pivotto
ccc1df3140
Fix comment
...
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
4 years ago
Julien Pivotto
98e14611a5
Move the tolerance logic in the loop function.
...
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
4 years ago
Julien Pivotto
6544f95403
Introduce timestamp tolerance in scrapes
...
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
4 years ago
Viren Negi
8dbfa14607
Add UserAgent to Hetzner Robot SD ( #8008 )
...
Fix #8003
Signed-off-by: Viren Negi <meetme2meat@gmail.com>
4 years ago
Brian Brazil
073e93c768
Gracefully handle unknown WAL record types. ( #8004 )
...
As we're looking to expand what's in the WAL,
having old Prometheus servers ignore the new record types
rather than treating them as corruption allows for better
upgrade/downgrade paths.
Adjust some tests accordingly, so they're still testing what they're
meant to test.
Signed-off-by: Brian Brazil <brian.brazil@robustperception.io>
4 years ago
Viren Negi
d253251266
Add UserAgent header to Eureka client ( #8006 )
...
Signed-off-by: Viren Negi <meetme2meat@gmail.com>
4 years ago
Ganesh Vernekar
50ae4e298b
Fix magic number in docs ( #7998 )
...
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
4 years ago
Julien Pivotto
6f13c60219
Scrape: Test that deduplicated targets are started ( #7975 )
...
This PR test that de-duplicated targets are actually started.
It is a unit test for this line of code:
072b9649a3/scrape/scrape.go (L457)
which is working and necessary but was not tested yet.
It also tests that scrapes are started in the normal way, in the targets
limit test.
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
4 years ago
TAY TS
c9d827c1d0
Fix callback function bind with object as parameter ( #7984 )
...
Signed-off-by: TAY TS <taytzushieh@gmail.com>
4 years ago
Ganesh Vernekar
f0d87b5d86
Encode and Decode method for tombstones ( #7967 )
...
* Encode and Decode method for tombstones
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
* Fix review comments
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
4 years ago
Dustin Hooten
916dbd4c8a
React UI: Implement missing TSDB head stats section ( #7876 )
...
* React UI: Implement missing TSDB head stats section
Signed-off-by: Dustin Hooten <dhooten@splunk.com>
* Add break
Signed-off-by: Dustin Hooten <dhooten@splunk.com>
4 years ago
Łukasz Mierzwa
19c190b406
Add a rule_group_samples metric ( #7977 )
...
This new metric allows tracking how many samples did each rule group generate.
Signed-off-by: Łukasz Mierzwa <l.mierzwa@gmail.com>
4 years ago
Harkishen Singh
072b9649a3
Refactor vars to avoid test failures in storage/remote with -count > 1 ( #7934 )
...
* Refactor global vars to avoid failure with run test more than once.
Signed-off-by: Harkishen-Singh <harkishensingh@hotmail.com>
* Register highestRecvTimestamp metric.
Signed-off-by: Harkishen-Singh <harkishensingh@hotmail.com>
* Use local interner vars.
Signed-off-by: Harkishen-Singh <harkishensingh@hotmail.com>
* Declare interner in write storage.
Signed-off-by: Harkishen-Singh <harkishensingh@hotmail.com>
4 years ago