johncming
c30abf1e2b
tsdb/wal: remove unused argument.
...
Signed-off-by: johncming <johncming@yahoo.com>
2020-02-15 21:54:09 +08:00
Callum Styan
fd20cca00b
Updates to RELEASE.md based on review feedback.
...
Signed-off-by: Callum Styan <callumstyan@gmail.com>
2020-02-14 11:02:32 -08:00
Ganesh Vernekar
6f1d2ec73e
Break DB.Compact and DB.compactHead and DB.compactBlocks. Add DB.CompactHead.
...
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
2020-02-14 20:33:26 +05:30
Björn Rabenstein
af04cb22c8
Merge pull request #6821 from prometheus/release-2.16
...
Release 2.16
2020-02-14 13:10:14 +01:00
Callum Styan
b90be6f32a
Release 2.16.0 ( #6817 )
...
Signed-off-by: Callum Styan <callumstyan@gmail.com>
2020-02-13 15:33:53 -08:00
Callum Styan
ab18b07664
Re-arrange contents of RELEASE.md to clarify ordering of steps
...
regardless of the release type (stable or RC).
Signed-off-by: Callum Styan <callumstyan@gmail.com>
2020-02-13 14:00:09 -08:00
Simon Pasquier
fe76ccbfe3
discovery/consul: fix logging of tags ( #6783 )
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2020-02-13 13:11:44 +01:00
Boqin Qin
cdbd42393e
scrape: fix goroutine leak in test ( #6812 )
...
* scrape: fix goroutine leak in test
Signed-off-by: BurtonQin <bobbqqin@gmail.com>
2020-02-13 07:53:07 +00:00
Julien Pivotto
135cc30063
rules: Make deleted rule series as stale after a reload ( #6745 )
...
* rules: Make deleted rule series as stale after a reload
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
2020-02-12 16:22:18 +01:00
Björn Rabenstein
c35438f2dd
Merge pull request #6811 from pracucci/fix-remote-write-alerts
...
Fix queue in alerts annotation
2020-02-12 13:22:50 +01:00
Marco Pracucci
1e1785690a
Fix queue in alerts annotation
...
Signed-off-by: Marco Pracucci <marco@pracucci.com>
2020-02-12 12:48:13 +01:00
李国忠
3cd6a5b050
Storage concurrently tests and bug fix ( #6808 )
...
* Storage concurrently tests and bug fix
Signed-off-by: fuling <fuling.lgz@alibaba-inc.com>
2020-02-12 08:58:52 +00:00
李国忠
40dd13b074
Storage concurrently ( #6770 )
...
* Storage concurrently
Signed-off-by: fuling <fuling.lgz@alibaba-inc.com>
2020-02-11 17:19:34 +00:00
Boyko
1c321ed047
React-UI: flex-wrap the content ( #6796 )
...
* flex-wrap the content
Signed-off-by: blalov <boiskila@gmail.com>
* wrap formatted series in a div
Signed-off-by: blalov <boiskila@gmail.com>
2020-02-11 15:25:39 +01:00
Nguyen Hai Truong
26574eb04d
docs: Fix typo in docs/storage.md ( #6799 )
...
`availiablity` -> `availability`
Signed-off-by: Nguyen Hai Truong <truongnh@vn.fujitsu.com>
2020-02-10 18:32:58 +00:00
Bartlomiej Plotka
56eaaadb54
Merge pull request #6800 from prometheus/cut-v2.16.0-rc.1
...
Cutting v2.16.0-rc.1
2020-02-10 16:08:49 +00:00
Bartlomiej Plotka
f94faafbda
Cutting v2.16.0-rc.1
...
Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>
2020-02-10 12:58:35 +00:00
Bartlomiej Plotka
32c9670b7e
Merge pull request #6793 from roidelapluie/stepinterval
...
promql: fix promql query log step unit
2020-02-10 12:55:20 +00:00
Bartlomiej Plotka
916e66edf2
Merge pull request #6773 from codesome/head-test
...
Refactor TestGCChunkAccess and TestGCSeriesAccess to create chunks by appending samples
2020-02-10 10:53:02 +00:00
helenxu1221
7df4fe3faa
reset counter after collecting metric ( #6798 )
...
Signed-off-by: HelenXu <helenxu@Helens-MacBook-Pro.local>
2020-02-09 20:51:21 -07:00
Julien Pivotto
ff0003e072
Make lookbackDelta a option of QueryEngine ( #6746 )
...
* Make lookbackDelta a option of QueryEngine
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
* julius' suggestion
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
* remove trivial getter
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
* Assume lookback delta is always > 0
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
* add debug log
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
* don't expose loopback delta
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
* Specify that lookack delta is also used in federation
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
* Fix federation test
While we have added some logic to the promql engine to keep it backwards
compatible and have a 5 minute loopback by default, the web/ package is
likely to really be internal to Prometheus and we should not add the
same kind of heuritstics here.
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
* loopback delta: Fix debug log
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
2020-02-10 00:58:23 +01:00
Drumil Patel
b00023344e
Formatting short tables for readability ( #6762 )
...
* Formatting short tables for readability
Signed-off-by: Drumil Patel <drumilpatel720@gmail.com>
* Solving linting issues in DataTable.tsx
Signed-off-by: Drumil Patel <drumilpatel720@gmail.com>
* Increasing maxFormattable Size to 1000 and changing value of toFormatStyle
Signed-off-by: Drumil Patel <drumilpatel720@gmail.com>
* Solve tests failure for multiple alerts on size gretaer than 10000
Signed-off-by: Drumil Patel <drumilpatel720@gmail.com>
* Solve linting errors
Signed-off-by: Drumil Patel <drumilpatel720@gmail.com>
* Add tests for alert of not formatting
Signed-off-by: Drumil Patel <drumilpatel720@gmail.com>
2020-02-10 00:11:57 +01:00
Julius Volz
0a8acb654e
React UI: Use null value for determining consoles link display ( #6790 )
...
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2020-02-09 13:39:44 +01:00
Julien Pivotto
d799078c88
also test start and end
...
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
2020-02-08 16:42:50 +01:00
Julien Pivotto
cbd0eec9fc
Avoid /1000
...
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
2020-02-08 16:30:09 +01:00
Julien Pivotto
881dde505a
promql: fix promql query log step unit
...
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
2020-02-08 16:26:56 +01:00
Drumil Patel
687a962bd1
Add conditional rendering of Navlink for Consoles ( #6761 )
...
* Add conditional rendering of Navlink for Consoles
Signed-off-by: Drumil Patel <drumilpatel720@gmail.com>
* Replacing if else with only if conditional rendering
Signed-off-by: Drumil Patel <drumilpatel720@gmail.com>
* Add tests and removing global declaration in Navbar
Signed-off-by: Drumil Patel <drumilpatel720@gmail.com>
* Correct Navbar Testcases and add types for ConsolesLink
Signed-off-by: Drumil Patel <drumilpatel720@gmail.com>
* Change names for Console link as per-naming convention
Signed-off-by: Drumil Patel <drumilpatel720@gmail.com>
* Change prop names to AppProps and NavbarProps respectively
Signed-off-by: Drumil Patel <drumilpatel720@gmail.com>
2020-02-08 11:00:47 +01:00
Julien Pivotto
40b66d29ff
OpenMetrics parse: avoid setting prev token ( #6781 )
...
We can avoid setting a prev token in the OM parser. The previous
coundition that checked for prev was unreacheable.
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
2020-02-07 07:33:26 +00:00
Andrew Hayworth
a336908678
Adds link to valid metric names ( #6774 )
...
One of our users today asked us if dashes were allowed in recording rule names.
We asserted that they were not, but also that we could not remember for certain.
After determining empirically that they are _not_ allowed, I realized that the
documentation could be slightly clearer about valid rule names.
This PR simply adds a note to the documentation re-iterating that the rules must
be valid metric names - and more importantly, adds a link to where a user can
read what those *are*, in case they were not aware (or did not know where to find it).
Signed-off-by: Andrew Hayworth <ahayworth@gmail.com>
2020-02-07 07:32:15 +00:00
Ben Ye
1a18594176
keep kubernetes metrics in global vars ( #6765 )
...
Signed-off-by: yeya24 <yb532204897@gmail.com>
2020-02-06 15:52:57 +00:00
Ganesh Vernekar
bc6fd96979
Refactor TestGCChunkAccess and TestGCSeriesAccess to create chunks by appending samples
...
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
2020-02-06 18:26:18 +05:30
Bartlomiej Plotka
641676b397
Merge pull request #6687 from pracucci/reduce-tsdb-head-inuse-memory
...
Trim TSDB head chunks after being cut, to reduce inuse memory
2020-02-06 10:55:33 +00:00
Ben Ye
60527de355
keep consul service metrics in global variables ( #6764 )
...
Signed-off-by: yeya24 <yb532204897@gmail.com>
2020-02-06 05:48:58 +00:00
Ganesh Vernekar
0a27df92f0
Refactor tsdb/chunks/chunks.go for future PRs ( #6754 )
...
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
2020-02-05 19:09:40 +05:30
Ganesh Vernekar
56bf0ee4dc
Add OpenMmapFileWithSize method ( #6753 )
...
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
2020-02-05 19:08:30 +05:30
Bartlomiej Plotka
49f8850a3c
Merge pull request #6756 from simonpasquier/revert-6605
...
Revert "Add armv6 docker image (#6605 )"
2020-02-05 13:16:30 +00:00
Simon Pasquier
3297ae2169
Revert "Add armv6 docker image ( #6605 )"
...
This reverts commit 6ba8565619
.
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2020-02-05 14:13:14 +01:00
Marco Pracucci
699f3e8f4d
Added comments to the Chunk interface
...
Signed-off-by: Marco Pracucci <marco@pracucci.com>
2020-02-05 13:07:41 +01:00
Marco Pracucci
0703dae7cc
Compact TSDB head chunks after being cut, to reduce inuse memory
...
Signed-off-by: Marco Pracucci <marco@pracucci.com>
2020-02-05 13:00:39 +01:00
Ben Ye
492414542e
fix matcher for regex ( #6540 )
...
Signed-off-by: yeya24 <yb532204897@gmail.com>
2020-02-05 10:53:12 +00:00
Mark Hansen
6ba8565619
Add armv6 docker image ( #6605 )
...
This follows the approach used to generate armv7 images.
It was all so nicely factored already that I just had to update two
parts of the code.
Signed-off-by: Mark Hansen <mark@markhansen.co.nz>
2020-02-05 09:16:52 +01:00
Robert Fratto
a53e00f9fd
pass registerer from storage to queue manager for its metrics ( #6728 )
...
* pass registerer from storage to queue manager for its metrics
Signed-off-by: Robert Fratto <robert.fratto@grafana.com>
2020-02-03 13:47:03 -08:00
Boyko
8c2bc2f57a
Unify react fetcher components ( #6629 )
...
* set useFetch loading flag to be true initially
Signed-off-by: blalov <boiskila@gmail.com>
* make extended props optional
Signed-off-by: blalov <boiskila@gmail.com>
* add status indicator to targets page
Signed-off-by: blalov <boiskila@gmail.com>
* add status indicator to tsdb status page
Signed-off-by: blalov <boiskila@gmail.com>
* spread response in Alerts
Signed-off-by: blalov <boiskila@gmail.com>
* disable eslint func retun type rule
Signed-off-by: blalov <boiskila@gmail.com>
* add status indicator to Service Discovery page
Signed-off-by: blalov <boiskila@gmail.com>
* refactor PanelList
Signed-off-by: blalov <boiskila@gmail.com>
* test fix
Signed-off-by: blalov <boiskila@gmail.com>
* use local storage hook in PanelList
Signed-off-by: blalov <boiskila@gmail.com>
* use 'useFetch' for fetching metrics
Signed-off-by: blalov <boiskila@gmail.com>
* left-overs
Signed-off-by: blalov <boiskila@gmail.com>
* remove targets page custom error message
Signed-off-by: Boyko Lalov <boiskila@gmail.com>
* adding components displayName
Signed-off-by: Boyko Lalov <boiskila@gmail.com>
* display more user friendly error messages
Signed-off-by: Boyko Lalov <boiskila@gmail.com>
* update status page snapshot
Signed-off-by: Boyko Lalov <boiskila@gmail.com>
* pr review changes
Signed-off-by: Boyko Lalov <boiskila@gmail.com>
* fix broken tests
Signed-off-by: Boyko Lalov <boiskila@gmail.com>
* fix typos
Signed-off-by: Boyko Lalov <boiskila@gmail.com>
2020-02-03 15:14:25 +01:00
Dustin Hooten
820d7775eb
Escape invalid css selector characters in tooltip ID ( #6737 )
...
* Escape invalid css selector characters in tooltip ID
Signed-off-by: Dustin Hooten <dhooten@splunk.com>
* Use CSS.escape polyfill to escape characters
Signed-off-by: Dustin Hooten <dhooten@splunk.com>
2020-02-02 10:51:33 +01:00
Julien Pivotto
0e912faf4f
rules: Cleanup unused function alert.Duration ( #6734 )
...
The function HoldDuration and Duration did the exact same thing.
Let's only keep HoldDuration() as Duration() is more confusing.
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
2020-02-01 07:31:37 +00:00
Callum Styan
22a04239c9
cut V2.16.0 rc.0 against the right branch ( #6736 )
...
* Cut v2.16.0-rc.0 pre release
Signed-off-by: Callum Styan <callumstyan@gmail.com>
2020-01-31 14:38:56 -08:00
Callum Styan
bdcfebdf74
Revert "cut v2.16.0 rc.0 pre-release ( #6729 )" ( #6735 )
...
This reverts commit 15a7753d6e
.
2020-01-31 14:36:59 -08:00
Callum Styan
15a7753d6e
cut v2.16.0 rc.0 pre-release ( #6729 )
...
* Cut 2.16.0-rc.0 release
Signed-off-by: Callum Styan <callumstyan@gmail.com>
2020-01-31 14:35:00 -08:00
LongKB
1ebcf3d5e4
Fix some typo in comments ( #6730 )
...
Signed-off-by: Kim Bao Long <longkb@vn.fujitsu.com>
2020-01-31 12:11:52 +05:30
Julien Pivotto
3c4c01eae2
Fix race in Query Log Test ( #6727 )
...
A data race can happen if we run t.Log after the test t is done -- which
in this case is highly possible because of the use of subtests and the
fact that we call t.Log in a goroutine.
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
2020-01-30 13:51:18 -08:00