Peter Štibraný
259e09fe5f
When doing compaction with splitting, only use symbols from series that belong to given sharded block.
2021-10-05 16:06:38 +02:00
Peter Štibraný
04e7926b03
Merge pull request #13 from grafana/splitting-compactor
...
Compactor with support for splitting input blocks into multiple output blocks
2021-09-28 10:53:20 +02:00
Peter Štibraný
57daf79192
More review feedback.
2021-09-28 10:29:54 +02:00
Peter Štibraný
db7fa7621c
Use <ix+1>_of_<shardCount> formatting for better readibility.
2021-09-28 10:13:48 +02:00
Peter Štibraný
861f9083d8
Fix directory cleanup in case of compaction failure.
2021-09-27 17:05:14 +02:00
Peter Štibraný
ffd281ab9d
Address feedback.
2021-09-27 16:33:43 +02:00
Peter Štibraný
58dab3de8a
Source blocks are deletable only if they are ALL empty.
2021-09-27 16:24:46 +02:00
Peter Štibraný
336f4260db
Removed commented code.
2021-09-27 14:34:04 +02:00
Peter Štibraný
006c2d7d55
All output blocks will have the same timestamp.
...
Minor updates.
2021-09-27 14:22:51 +02:00
Peter Štibraný
63dbb1c69a
Make lint happy.
2021-09-27 12:49:08 +02:00
Peter Štibraný
78396b67dd
Compactor with support for splitting input blocks into multiple output blocks.
2021-09-27 12:40:11 +02:00
Ganesh Vernekar
a9bc9c27ba
Merge pull request #11 from grafana/codesome/syncprom
...
Sync with upstream Prometheus
2021-09-21 18:37:41 +05:30
Ganesh Vernekar
0af335cfe8
Merge remote-tracking branch 'upstream/main' into codesome/syncprom
2021-09-21 17:38:40 +05:30
Bryan Boreham
5a754bc043
Short-circuit vector binary ops ( #9362 )
...
In degenerate cases we can save the effort of building a map.
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2021-09-21 17:37:36 +05:30
Bryan Boreham
c4942ef3b7
Optimise query_range by computing join signatures just once ( #9360 )
...
* Add benchmark case for many-to-one join
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
* query_range: compute join signatures just once
For an expression like `a + on(p,q) b`, extract the `p,q` part from each
series once, instead of re-computing at every step of the range.
Although there was a cache, computing the key by concatenating all
labels was expensive.
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2021-09-21 15:58:39 +05:30
Bryan Boreham
7d105277fe
Optimise topk where k==1 ( #9365 )
...
* Add benchmark for query_range with topk
Modify sample data so values within a metric differ
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
* Optimise topk where k==1
In this case we don't need a heap to keep track of values; just a single
slot is fine.
Simplify the initialization of the heap: since all cases start off as a
single-item heap we can just assign the value directly.
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
* Allow at least one slot in results for topk, quantile
k isn't set for quantile, but we need space to start collecting values
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2021-09-21 15:57:28 +05:30
Julius Volz
03d084f862
Merge pull request #9351 from prometheus/set-npm-version
...
specify npm version in the engine
2021-09-20 13:39:32 +02:00
Julien Pivotto
629926268a
Merge pull request #9361 from hanjm/feature/upgrade-alecthomas-units
...
Upgrade github.com/alecthomas/units, which implement encoding.TextMarshaler
2021-09-20 09:41:50 +02:00
hanjm
d1b16b4f21
Upgrade github.com/alecthomas/units, which implement encoding.TextMarshaler
...
Signed-off-by: hanjm <hanjinming@outlook.com>
2021-09-19 17:45:22 +08:00
Julien Pivotto
3f51c8bf39
Merge pull request #9358 from sennatitcomb/st
...
Typo fixes
2021-09-18 10:38:50 +02:00
sennatitcomb
9e7ae7b9ac
Typo fixes
...
Signed-off-by: sennatitcomb <senna.titcomb@intel.com>
2021-09-17 15:48:02 -07:00
Ganesh Vernekar
84f8307aa1
Merge remote-tracking branch 'upstream/main' into codesome/syncprom
...
Signed-off-by: Ganesh Vernekar <ganeshvern@gmail.com>
2021-09-17 15:58:45 +05:30
Julien Pivotto
da3fb842b4
Add Jessica as Promtool maintainer ( #9348 )
...
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
2021-09-17 01:10:32 +02:00
Augustin Husson
545fbfd7f4
specify npm version in the engine
...
Signed-off-by: Augustin Husson <husson.augustin@gmail.com>
2021-09-16 21:15:20 +02:00
Julius Volz
d1f051381e
Merge pull request #9350 from roidelapluie/fix-tests
...
config: fix puppetdb tests
2021-09-16 19:53:36 +02:00
Julien Pivotto
9d65017798
config: fix puppetdb tests
...
This PR fixes the tests in main. The last merge introduced a failing
test in the config package.
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
2021-09-16 18:31:28 +02:00
Julius Volz
62906c1b4f
Merge pull request #8883 from roidelapluie/puppetdb-sd
...
Add PuppetDB service discovery
2021-09-16 17:41:31 +02:00
Julien Pivotto
8920024323
Add PuppetDB service discovery
...
We have been Puppet user for 10 years and we are users of
https://github.com/camptocamp/prometheus-puppetdb-sd
However, that file_sd implementation contains business logic and
assumptions around e.g. the modules which you are using.
This pull request adds a simple PuppetDB service discovery, which will
enable more use cases than the upstream sd.
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
2021-09-16 16:54:26 +02:00
Julius Volz
447d9401fc
Merge pull request #9239 from LeviHarrison/promql-trig-functions
...
PromQL: Add trigonometric functions
2021-09-16 14:11:40 +02:00
Julius Volz
6c9ded2854
Merge pull request #9344 from prometheus/fix-eslint-warning-cmp
...
fix eslint warning for codemirror-promql
2021-09-16 12:05:39 +02:00
Darshan Chaudhary
1f688657bf
Call delete on head if interval overlaps ( #9151 )
...
* Call delete on head if interval overlaps
Signed-off-by: darshanime <deathbullet@gmail.com>
* Garbage collect tombstones during head gc
Signed-off-by: darshanime <deathbullet@gmail.com>
* Truncate tombstones before min time during head gc
Signed-off-by: darshanime <deathbullet@gmail.com>
* Lock less by deleting all keys in a single pass
Signed-off-by: darshanime <deathbullet@gmail.com>
* Pass map to DeleteTombstones
Signed-off-by: darshanime <deathbullet@gmail.com>
* Create new slice to replace old one
Signed-off-by: darshanime <deathbullet@gmail.com>
2021-09-16 12:20:03 +05:30
Levi Harrison
2c7bec758d
Tabs to spaces
...
Signed-off-by: Levi Harrison <git@leviharrison.dev>
2021-09-15 23:02:26 -04:00
Levi Harrison
ed220c1ae7
Add grammar
...
Signed-off-by: Levi Harrison <git@leviharrison.dev>
2021-09-15 23:02:25 -04:00
Levi Harrison
4ac4e2ca4b
Remove parenthesis
...
Signed-off-by: Levi Harrison <git@leviharrison.dev>
2021-09-15 22:47:10 -04:00
Levi Harrison
6faca22eec
Add inverse hyperbolic functions
...
Signed-off-by: Levi Harrison <git@leviharrison.dev>
2021-09-15 22:47:10 -04:00
Levi Harrison
74faea64dd
Removed specification of pi digits
...
Signed-off-by: Levi Harrison <git@leviharrison.dev>
2021-09-15 22:47:10 -04:00
Levi Harrison
9c54ee0a6e
Changed function comment
...
Signed-off-by: Levi Harrison <git@leviharrison.dev>
2021-09-15 22:47:10 -04:00
Levi Harrison
53d88fd147
Added hyperbolic trig functions
...
Signed-off-by: Levi Harrison <git@leviharrison.dev>
2021-09-15 22:47:10 -04:00
Levi Harrison
a8ad569db8
Change spaces to tabs
...
Signed-off-by: Levi Harrison <git@leviharrison.dev>
2021-09-15 22:47:10 -04:00
Levi Harrison
ecc29d38b8
Fixed pi
definition
...
Signed-off-by: Levi Harrison <git@leviharrison.dev>
2021-09-15 22:47:10 -04:00
Levi Harrison
51bb3d4a27
Changed radian wording
...
Signed-off-by: Levi Harrison <git@leviharrison.dev>
2021-09-15 22:47:10 -04:00
Levi Harrison
535d8904f7
Link to docs for special cases
...
Signed-off-by: Levi Harrison <git@leviharrison.dev>
2021-09-15 22:47:10 -04:00
Levi Harrison
9fc7ba33aa
Remove atan2()
...
Signed-off-by: Levi Harrison <git@leviharrison.dev>
2021-09-15 22:47:10 -04:00
Levi Harrison
f1d94cc5f6
Split and shortened tests
...
Signed-off-by: Levi Harrison <git@leviharrison.dev>
2021-09-15 22:47:10 -04:00
Levi Harrison
d5ecdc4597
Remove variadic
...
Signed-off-by: Levi Harrison <git@leviharrison.dev>
2021-09-15 22:47:10 -04:00
Levi Harrison
e5a44964ff
Added docs
...
Signed-off-by: Levi Harrison <git@leviharrison.dev>
2021-09-15 22:47:09 -04:00
Levi Harrison
814cd5844d
Added tests
...
Signed-off-by: Levi Harrison <git@leviharrison.dev>
2021-09-15 22:47:09 -04:00
Levi Harrison
309e020c0a
Added functions
...
Signed-off-by: Levi Harrison <git@leviharrison.dev>
2021-09-15 22:47:09 -04:00
Julien Pivotto
bd217c58a7
Backfill: Do not query after --end ( #9340 )
...
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
2021-09-15 16:02:41 +02:00
Augustin Husson
e52204e556
fix eslint warning for codemirror-promql
...
Signed-off-by: Augustin Husson <husson.augustin@gmail.com>
2021-09-15 13:38:48 +02:00