Julius Volz
0dc43b97d7
Merge pull request #9347 from prometheus/fix-gitpod
...
Fix gitpod
2021-09-28 07:50:00 +02:00
Augustin Husson
722eb4bd64
fix gitpod by using custome dockerfile and accurate npm ui path
...
Signed-off-by: Augustin Husson <husson.augustin@gmail.com>
2021-09-27 18:59:41 +02:00
Augustin Husson
160fc41441
add gitpod dockerfile to upgrade node and npm version
...
Signed-off-by: Augustin Husson <husson.augustin@gmail.com>
2021-09-27 18:59:41 +02:00
Augustin Husson
eca9546ba4
fix package-lock.json ( #9400 )
...
Signed-off-by: Augustin Husson <husson.augustin@gmail.com>
2021-09-27 18:58:41 +02:00
Julius Volz
f103acd513
Merge pull request #9248 from LeviHarrison/atan2-binary-op
...
PromQL: Add `atan2` binary operator
2021-09-27 18:45:56 +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
Bryan Boreham
1fb3c1b598
Replace calls to strings.Compare ( #9397 )
...
< is clearer and faster. As the documentation says,
"Basically no one should use strings.Compare."
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2021-09-27 17:33:53 +05:30
Levi Harrison
a7de0cf276
Remove example and experimental
...
Signed-off-by: Levi Harrison <git@leviharrison.dev>
2021-09-27 07:00:08 -04: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
Augustin Husson
dbbfd1ccf6
change license in package.json file of cmp ( #9399 )
...
Signed-off-by: Augustin Husson <husson.augustin@gmail.com>
2021-09-27 10:17:30 +02:00
Julien Pivotto
63b3e4e5ec
Enable HTTP2 again ( #9398 )
...
We are re-enabling HTTP 2 again. There has been a few bugfixes upstream
in go, and we have also enabled ReadIdleTimeout.
Fix #7588
Fix #9068
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
2021-09-26 23:16:12 +02:00
Levi Harrison
a16a4cad2d
Add example
...
Credit goes to @leonerd for the original example
Signed-off-by: Levi Harrison <git@leviharrison.dev>
2021-09-26 16:35:02 -04:00
Levi Harrison
2f896c98ff
Address review comments
...
Signed-off-by: Levi Harrison <git@leviharrison.dev>
2021-09-26 15:45:25 -04:00
Julien Pivotto
0de0e1ee0e
codemirror_sync: Use reset and checkout instead of restore ( #9396 )
...
The git version we are using for CI is too old.
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
2021-09-25 12:38:57 +02:00
Julien Pivotto
1681a8d539
Azure: Fix panic when no computername is set ( #9387 )
...
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
2021-09-25 00:30:18 +02:00
Augustin Husson
3e494eac71
upgrade to codemirror v19 ( #9363 )
...
* upgrade to codemirror v19
Signed-off-by: Augustin Husson <husson.augustin@gmail.com>
* fix autocomplete test
Signed-off-by: Augustin Husson <husson.augustin@gmail.com>
* fix wording
Signed-off-by: Augustin Husson <husson.augustin@gmail.com>
2021-09-24 21:40:49 +02:00
Julien Pivotto
7c40eb52ef
Add sync_codemirror ( #9379 )
...
* Add sync_codemirror
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
2021-09-24 15:54:25 +02:00
Augustin Husson
7bcca77340
provide a way to override the apiPrefix in codemirror prom client + cleanup readme ( #9384 )
...
Signed-off-by: Augustin Husson <husson.augustin@gmail.com>
2021-09-24 07:52:50 +02:00
Nick Pillitteri
acee8c8a88
Redact remote write URL when used for metric label ( #9383 )
...
Redact any basic auth passwords in the remote write URL (which are
technically allowed although not recommended) when used as metric
labels.
Signed-off-by: Nick Pillitteri <nick.pillitteri@grafana.com>
2021-09-23 12:34:09 -06:00
Levi Harrison
e27ac3e7e4
Add grammar (maybe?)
...
Signed-off-by: Levi Harrison <git@leviharrison.dev>
2021-09-23 10:30:46 -04:00
Levi Harrison
a283b52e8c
Added unit
...
Signed-off-by: Levi Harrison <git@leviharrison.dev>
2021-09-23 10:30:46 -04:00
Levi Harrison
587cb95093
Add operator tests
...
Signed-off-by: Levi Harrison <git@leviharrison.dev>
2021-09-23 10:30:46 -04:00
Levi Harrison
be6ce7bcc2
Add docs
...
Signed-off-by: Levi Harrison <git@leviharrison.dev>
2021-09-23 10:30:46 -04:00
Levi Harrison
f5c6ee4df6
Add lex test
...
Signed-off-by: Levi Harrison <git@leviharrison.dev>
2021-09-23 10:30:46 -04:00
Levi Harrison
7471208b5c
Add ATAN2
to maybe_label
...
Signed-off-by: Levi Harrison <git@leviharrison.dev>
2021-09-23 10:30:46 -04:00
Levi Harrison
8547a2bd86
Add atan2
binary operator
...
Signed-off-by: Levi Harrison <git@leviharrison.dev>
2021-09-23 10:30:46 -04:00
Serge Catudal
d77c985f8c
Add initial support for exemplar to the remote write receiver endpoint ( #9319 )
...
* Add initial support for exemplar to the remote write receiver endpoint
Signed-off-by: Serge Catudal <serge.catudal@gmail.com>
* Update storage remote write handler tests with exemplars
Signed-off-by: Serge Catudal <serge.catudal@gmail.com>
* Update remote write handler in order to have a distinct checkAppendExemplarError function from scrape
Signed-off-by: Serge Catudal <serge.catudal@gmail.com>
2021-09-21 14:53:27 -06:00
Ganesh Vernekar
2bcd9f2f69
Link 2 more TSDB blog posts in tsdb/README.md ( #9371 )
...
Signed-off-by: Ganesh Vernekar <ganeshvern@gmail.com>
2021-09-21 21:35:33 +05:30
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