Bartlomiej Plotka
4062f12573
Merge pull request #12396 from leizor/leizor/chunk-opts
...
Group args to append to memSeries in chunkOpts
2023-06-27 13:08:21 +02:00
Julien Pivotto
771f512757
Merge pull request #12299 from fgouteroux/promtool_push_metrics_cmd
...
feat(promtool): add push metrics command
2023-06-27 10:42:14 +02:00
Julien Pivotto
118ed70729
Merge pull request #12459 from tylitianrui/typos/20230616
...
typo
2023-06-27 10:36:57 +02:00
François Gouteroux
58d38c4c56
fix: apply suggested changes
...
Signed-off-by: François Gouteroux <francois.gouteroux@gmail.com>
2023-06-27 09:30:39 +02:00
Julien Pivotto
d78661ba10
Stepping up as 2.46 release shepherd ( #12494 )
...
Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>
2023-06-27 08:58:52 +02:00
Bryan Boreham
e1115ae58d
labels: improve Get method for stringlabels build ( #12485 )
...
Inline one call to `decodeString`, and skip decoding the value string
until we find a match for the name.
Do a quick check on the first character in each string,
and exit early if we've gone past - labels are sorted in order.
Also improve tests and benchmark:
* labels: test Get with varying lengths - it's not typical for Prometheus labels to all be the same length.
* extend benchmark with label not found
---------
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2023-06-26 18:35:22 +01:00
Julien Pivotto
446dff01ea
Merge pull request #12488 from mharbison72/filesd-windows-watcher
...
Fix path handling in File-SD watcher to allow directory monitoring on…
2023-06-25 17:36:56 +02:00
Julien Pivotto
490bf641be
Merge pull request #12487 from prometheus/release-2.45
...
Merge Release 2.45 back to main
2023-06-23 23:56:10 +02:00
Matt Harbison
02277bbe0d
Fix path handling in File-SD watcher to allow directory monitoring on Windows
...
Previously, `d.paths` were normalized to backslashes on Windows, even when if
the config file used Unix style. The end result meant always watching `./`, so
changes for this config were always ignored:
scrape_configs:
- job_name: 'envmsc1'
file_sd_configs:
- files:
- 'targets/envmsc1.d/*.yml'
- 'targets/envmsc1.d/*.yaml'
Additionally, unlike the other platforms, no warning was emitted on startup
about not being able to install the watch if the directory didn't exist. Now it
is logged.
Signed-off-by: Matt Harbison <mharbison@atto.com>
2023-06-23 16:37:04 -04:00
Jesus Vazquez
8ef767e396
Release 2.45.0 ( #12486 )
...
Signed-off-by: Jesus Vazquez <jesusvzpg@gmail.com>
2023-06-23 17:01:52 +02:00
Bryan Boreham
391ecaec9a
Merge pull request #12418 from bboreham/parsing-concurrency
...
promql: include parsing in active-query tracking
2023-06-21 16:52:12 +01:00
Jesus Vazquez
be0b82cf2f
Fix PR typo in 2.45.0-rc.1 CHANGELOG ( #12479 )
...
Signed-off-by: Jesus Vazquez <jesusvzpg@gmail.com>
2023-06-20 20:20:01 +00:00
Bryan Boreham
87d08abe11
labels: faster Compare function when using -tags stringlabels ( #12451 )
...
Instead of unpacking every individual string, we skip to the point
where there is a difference, going 8 bytes at a time where possible.
Add benchmark for Compare; extend tests too.
---------
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
Co-authored-by: Oleg Zaytsev <mail@olegzaytsev.com>
2023-06-20 20:58:47 +01:00
Jesus Vazquez
c858049744
Create 2.45.0-rc.1 ( #12478 )
...
Signed-off-by: Jesus Vazquez <jesusvzpg@gmail.com>
2023-06-20 15:13:02 +00:00
Julien Pivotto
d5fb601d6a
Merge pull request #12476 from roidelapluie/rev12363
...
Revert "Improving Performance on the API Gzip Handler (#12363 )"
2023-06-20 15:37:10 +02:00
Julien Pivotto
d19fa62476
Revert "Improving Performance on the API Gzip Handler ( #12363 )"
...
This reverts commit dfae954dc1
.
Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>
2023-06-20 13:39:32 +02:00
François Gouteroux
3eaa7eb538
fix: apply suggested changes
...
Signed-off-by: François Gouteroux <francois.gouteroux@gmail.com>
2023-06-19 10:45:55 +02:00
Julien Pivotto
86a7064dcf
Merge pull request #12428 from prometheus/dependabot/go_modules/documentation/examples/remote_storage/github.com/prometheus/prometheus-0.44.0
...
build(deps): bump github.com/prometheus/prometheus from 0.43.0 to 0.44.0 in /documentation/examples/remote_storage
2023-06-17 10:17:12 +02:00
Julien Pivotto
e043b273a6
Merge pull request #12439 from prometheus/release-2.45
...
Merge release 2.45.0 back to main
2023-06-17 10:16:48 +02:00
Julien Pivotto
652fb03081
Merge pull request #12412 from roidelapluie/inlinetls
...
Add support for inline TLS certificates
2023-06-17 10:16:32 +02:00
Julien Pivotto
0de855508c
Add support for inline TLS certificates
...
Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>
2023-06-17 10:16:10 +02:00
Julien Pivotto
89427b3642
Merge pull request #12452 from bdeak4/hide-which-stderr
...
Hide `which` stderr output
2023-06-17 10:09:42 +02:00
timmartin-stripe
0c6cf86828
Add sentence explaining what happens when the for
clause is omitted ( #12457 )
...
Just adding a statement here explaining that the default is an
immediate move to "active" without a pending state.
Signed-off-by: Tim Martin <tim@timmartin.me>
2023-06-16 11:55:41 +01:00
tyltr
0941ea4afc
typo
...
Signed-off-by: tyltr <tylitianrui@126.com>
2023-06-16 11:09:19 +08:00
Simon Pasquier
f399f386ce
Merge pull request #12450 from slashpai/main
...
docs: update prometheus-operator link
2023-06-15 10:06:22 +02:00
Bartol Deak
95b7d592ba
rewrite which
with command -v
...
Signed-off-by: Bartol Deak <b@bdeak.net>
2023-06-13 11:59:17 +02:00
Oleg Zaytsev
6a18962cfa
mv labels_string.go labels_stringlabels.go ( #12328 )
...
This is a minor cosmetical change, but my IDE (and I guess many of them)
nests `labels_string.go` under `labels.go` because it assumes it's the
file generated by the `stringer` tool, which follows that naming
pattern.
Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
2023-06-13 09:38:00 +01:00
Bartol Deak
06843db80a
Hide which
stderr output
...
Signed-off-by: Bartol Deak <b@bdeak.net>
2023-06-12 23:00:04 +02:00
Jayapriya Pai
81bf3e63a4
docs: update prometheus-operator link
...
Signed-off-by: Jayapriya Pai <janantha@redhat.com>
2023-06-12 21:39:19 +05:30
Arthur Silva Sens
1ea477f4bc
Add feature flag to squash metadata from /api/v1/metadata ( #12391 )
...
Signed-off-by: ArthurSens <arthursens2005@gmail.com>
2023-06-12 16:17:20 +01:00
Julien Pivotto
394da05dd4
Merge pull request #12446 from sinkingpoint/sinkingpoint/docs-fix
...
Remove trailing commas from Exemplar API docs
2023-06-09 15:08:39 +02:00
sinkingpoint
f7abe27fef
Remove trailing commas from Exemplar API docs
...
The trailing commas here make this example invalid JSON. Here we remove
them.
Signed-off-by: sinkingpoint <colin@quirl.co.nz>
2023-06-09 14:08:46 +10:00
Michael Hoffmann
344c8ff97c
feat: dont compile regex matcher if we know its a literal ( #12434 )
...
labels: dont compile regex matcher if we know its a literal
Signed-off-by: Michael Hoffmann <mhoffm@posteo.de>
Co-authored-by: Sharad <sharadgaur@gmail.com>
2023-06-07 21:54:30 +01:00
Jesus Vazquez
edfc97a77e
Bump UI version ( #12440 )
...
Signed-off-by: Jesus Vazquez <jesusvzpg@gmail.com>
2023-06-07 16:00:15 +02:00
Leo Q
4268feb9d7
add alert for sd refresh failure ( #12410 )
...
* add alert for sd refresh failure
Due to config error or sd service down, prometheus may fail to refresh sd resource, which may lead to scrape fail or irrelavant metrics.
Signed-off-by: Leo Q <LeoQuote@users.noreply.github.com>
* apply suggestions
Signed-off-by: Leo Q <LeoQuote@users.noreply.github.com>
---------
Signed-off-by: Leo Q <LeoQuote@users.noreply.github.com>
2023-06-07 14:28:13 +02:00
Jesus Vazquez
bfa466d00f
Create release candidate 2.45.0-rc.0 ( #12435 )
...
Signed-off-by: Jesus Vazquez <jesusvzpg@gmail.com>
2023-06-07 12:29:04 +02:00
Julius Volz
ac8abdaacd
Rename remaining jitterSeed -> offsetSeed variables ( #12414 )
...
I had changed the naming from "jitter" to "offset" in:
cb045c0e4b
...but I forgot to add this file to the commit to complete the renaming,
doing that now.
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2023-06-05 17:36:11 +02:00
dependabot[bot]
90816aa39e
build(deps): bump github.com/prometheus/prometheus
...
Bumps [github.com/prometheus/prometheus](https://github.com/prometheus/prometheus ) from 0.43.0 to 0.44.0.
- [Release notes](https://github.com/prometheus/prometheus/releases )
- [Changelog](https://github.com/prometheus/prometheus/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prometheus/prometheus/compare/v0.43.0...v0.44.0 )
---
updated-dependencies:
- dependency-name: github.com/prometheus/prometheus
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-06-02 00:01:29 +00:00
rakshith210
b1675e23af
Add Azure AD package for remote write ( #11944 )
...
* Add Azure AD package for remote write
* Made AzurePublic default and updated configuration.md
* Updated config structure and removed getToken at initialization
* Changed passing context from request
Signed-off-by: Rakshith Padmanabha <rapadman@microsoft.com>
Signed-off-by: rakshith210 <rakshith.me@gmail.com>
2023-06-01 15:20:10 -06:00
Bryan Boreham
67d2ef004d
Placate lint
...
I think the version using scoping was better, but I'm out of energy to fight the linter.
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2023-06-01 18:36:34 +00:00
Bryan Boreham
bb0d8320dd
promql: include parsing in active-query tracking
...
So that the max-concurrency limit is applied.
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2023-06-01 18:16:05 +00:00
Bryan Boreham
71fc4f1516
promql: refactor: create query object before parsing
...
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2023-06-01 17:54:17 +00:00
Bryan Boreham
1f3821379c
promql: refactor: extract fn to wait on concurrency limit
...
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2023-06-01 17:17:04 +00:00
Nidhey Nitin Indurkar
a8772a4178
Feat: Get block by id directly on promtool analyze & get latest block if ID not provided ( #12031 )
...
* feat: analyze latest block or block by ID in CLI (promtool)
Signed-off-by: nidhey27 <nidhey.indurkar@infracloud.io>
* address remarks
Signed-off-by: nidhey60@gmail.com <nidhey.indurkar@infracloud.io>
* address latest review comments
Signed-off-by: nidhey60@gmail.com <nidhey.indurkar@infracloud.io>
---------
Signed-off-by: nidhey27 <nidhey.indurkar@infracloud.io>
Signed-off-by: nidhey60@gmail.com <nidhey.indurkar@infracloud.io>
2023-06-01 17:13:09 +05:30
François Gouteroux
6ae4a46845
feat: enhance stdin check and add tests parsing error
...
Signed-off-by: François Gouteroux <francois.gouteroux@gmail.com>
2023-06-01 10:28:55 +02:00
François Gouteroux
ca6580828a
feat: support histogram and summary metric types
...
Signed-off-by: François Gouteroux <francois.gouteroux@gmail.com>
2023-05-31 15:55:14 +02:00
Alan Protasio
dfae954dc1
Improving Performance on the API Gzip Handler ( #12363 )
...
Using github.com/klauspost/compress package to replace the current Gzip Handler on the API.
We see significant improvements using this handler over the current one as shown in the benchmark added.
Also:
* move selection of compression from `newCompressedResponseWriter` to `*CompressionHandler.ServeHTTP`.
* renaming `compressedResponseWriter` since it now only does one kind of compression.
Signed-off-by: Alan Protasio <alanprot@gmail.com>
2023-05-30 16:42:38 +01:00
Julien Pivotto
1fd48bcfa7
Merge pull request #12151 from darxriggs/fix-getting-started-shutdown
...
chore: Fix documentation on signal to shut down instance
2023-05-30 14:43:43 +02:00
Alan Protasio
73078bf738
Opmizing Group Regex ( #12375 )
...
Signed-off-by: Alan Protasio <alanprot@gmail.com>
2023-05-30 13:49:22 +02:00
Arianna Vespri
a16b876a05
Add limits to global config ( #12126 )
...
* Add limits to global config
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
* Move changes into Validate func
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
* Make comments consistent wrt 0 meaning no limit
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
* Document global limits
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
---------
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
2023-05-30 09:22:23 +01:00