Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
183 commits
Select commit Hold shift + click to select a range
c2af0de
make sure response error when TOC parse failed
songjiayang Jun 12, 2022
00ba2f9
ci: add minimum GitHub token permissions for workflows
ashishkurmi Sep 8, 2022
3fb881a
Simplify rule group's EvalTimestamp formula
dimitarvdimitrov Sep 11, 2022
ecfaa48
Update .github/workflows/codeql-analysis.yml
ashishkurmi Sep 19, 2022
28a66e1
Update relabel.Process comment
douglascamata Oct 7, 2022
03ab8dc
Add comments on EvalTimestamp
dimitarvdimitrov Oct 12, 2022
d542483
k8s discovery: Ensure that the pod IP is in the status before adding …
Nov 30, 2022
b6caa6c
documentation/mixin: use prometheus metrics for dashboard variables
paulfantom Nov 30, 2022
3e94dd8
Add extension point for returning different content types from API en…
charleskorn Jan 25, 2023
a0dd146
Move custom jsoniter code into json_codec.go.
charleskorn Jan 31, 2023
857b238
Expose QueryData so that implementations of Codec.CanEncode() can per…
charleskorn Feb 2, 2023
deba512
Address PR feeedback: reduce log level.
charleskorn Feb 11, 2023
eaad7c0
Merge branch 'main' into api-response-format-extension-point
charleskorn Feb 15, 2023
46a2889
Implement fully-featured content negotiation for API requests, and al…
charleskorn Feb 27, 2023
38c1930
Merge branch 'main' into api-response-format-extension-point
charleskorn Mar 9, 2023
9e5cc34
stop github actions from sending me mail
fbegyn Nov 12, 2022
97c7fff
parser: Allow parsing arbitrary functions
fpetkovski Mar 22, 2023
3d7783e
Add nolint for NewParser function
fpetkovski Mar 22, 2023
034eb2b
promtool: read from stdin if no filenames are provided in check rules
fgouteroux Apr 4, 2023
2b7202c
Validate the metric names and labels in the remote write handler
damnever Dec 9, 2022
8472596
fix: apply suggested changes
fgouteroux Apr 5, 2023
79e4bde
add Close for ActiveQueryTracker to close the file.
ianwoolf Feb 27, 2022
ecf6bfa
Update configuration.md
jlosito Apr 21, 2023
b1bab7b
feat(promtool): add push metrics command
fgouteroux Apr 27, 2023
3524a16
feat: add suggested changes, tests, and stdin support
fgouteroux May 23, 2023
934c5dd
feat: make push metrics labels generic and repeatable
fgouteroux May 24, 2023
4c4454e
Group args to append to memSeries in chunkOpts
leizor May 25, 2023
e73d8b2
Also pass chunkOpts into appendPreprocessor
leizor May 25, 2023
4341b98
fix: apply suggested changes
fgouteroux May 28, 2023
9cf1b4a
fix: update doc
fgouteroux May 28, 2023
866fa25
add label and labelpresent for endpointslice role in k8s discovery
wangrzneu May 30, 2023
98ffad0
update tests and docs
wangrzneu Jun 25, 2022
b2c5de2
fix lint issue
wangrzneu Jun 25, 2022
ca65808
feat: support histogram and summary metric types
fgouteroux May 31, 2023
6ae4a46
feat: enhance stdin check and add tests parsing error
fgouteroux Jun 1, 2023
f676d4a
feat refactoring checkrules func
fgouteroux Jun 1, 2023
1f38213
promql: refactor: extract fn to wait on concurrency limit
bboreham Jun 1, 2023
71fc4f1
promql: refactor: create query object before parsing
bboreham Jun 1, 2023
bb0d832
promql: include parsing in active-query tracking
bboreham Jun 1, 2023
67d2ef0
Placate lint
bboreham Jun 1, 2023
084f38d
build(deps): bump bufbuild/buf-setup-action from 1.17.0 to 1.20.0
dependabot[bot] Jun 1, 2023
90816aa
build(deps): bump github.com/prometheus/prometheus
dependabot[bot] Jun 2, 2023
ac8abda
Rename remaining jitterSeed -> offsetSeed variables (#12414)
juliusv Jun 5, 2023
4268feb
add alert for sd refresh failure (#12410)
LeoQuote Jun 7, 2023
344c8ff
feat: dont compile regex matcher if we know its a literal (#12434)
MichaHoffmann Jun 7, 2023
f7abe27
Remove trailing commas from Exemplar API docs
sinkingpoint Jun 9, 2023
394da05
Merge pull request #12446 from sinkingpoint/sinkingpoint/docs-fix
Jun 9, 2023
1ea477f
Add feature flag to squash metadata from /api/v1/metadata (#12391)
ArthurSens Jun 12, 2023
81bf3e6
docs: update prometheus-operator link
slashpai Jun 12, 2023
06843db
Hide `which` stderr output
bdeak4 Jun 12, 2023
6a18962
mv labels_string.go labels_stringlabels.go (#12328)
colega Jun 13, 2023
95b7d59
rewrite `which` with `command -v`
bdeak4 Jun 13, 2023
f399f38
Merge pull request #12450 from slashpai/main
simonpasquier Jun 15, 2023
0941ea4
typo
tylitianrui Jun 16, 2023
0c6cf86
Add sentence explaining what happens when the `for` clause is omitted…
timmartin-stripe Jun 16, 2023
89427b3
Merge pull request #12452 from bdeak4/hide-which-stderr
Jun 17, 2023
e043b27
Merge pull request #12439 from prometheus/release-2.45
Jun 17, 2023
86a7064
Merge pull request #12428 from prometheus/dependabot/go_modules/docum…
Jun 17, 2023
9b6355f
build(deps): bump golang.org/x/oauth2 from 0.8.0 to 0.9.0
dependabot[bot] Jun 17, 2023
f28d7d2
build(deps): bump github.com/stretchr/testify
dependabot[bot] Jun 17, 2023
6adb64a
build(deps): bump github.com/aws/aws-sdk-go from 1.44.276 to 1.44.284
dependabot[bot] Jun 17, 2023
3eaa7eb
fix: apply suggested changes
fgouteroux Jun 19, 2023
8bc2a19
web: Initialize requestCounter metrics to 0 with handler and 200k lab…
metalmatze Jun 19, 2023
87d08ab
labels: faster Compare function when using -tags stringlabels (#12451)
bboreham Jun 20, 2023
391ecae
Merge pull request #12418 from bboreham/parsing-concurrency
bboreham Jun 21, 2023
02277bb
Fix path handling in File-SD watcher to allow directory monitoring on…
Jun 23, 2023
490bf64
Merge pull request #12487 from prometheus/release-2.45
Jun 23, 2023
446dff0
Merge pull request #12488 from mharbison72/filesd-windows-watcher
Jun 25, 2023
e1115ae
labels: improve Get method for stringlabels build (#12485)
bboreham Jun 26, 2023
d78661b
Stepping up as 2.46 release shepherd (#12494)
Jun 27, 2023
58d38c4
fix: apply suggested changes
fgouteroux Jun 27, 2023
118ed70
Merge pull request #12459 from tylitianrui/typos/20230616
Jun 27, 2023
771f512
Merge pull request #12299 from fgouteroux/promtool_push_metrics_cmd
Jun 27, 2023
4062f12
Merge pull request #12396 from leizor/leizor/chunk-opts
bwplotka Jun 27, 2023
53d7aac
Merge pull request #12281 from jlosito/patch-1
Jun 27, 2023
2c6b9c4
build(deps): bump github.com/influxdata/influxdb
dependabot[bot] Jun 27, 2023
1214d31
Merge pull request #12225 from fgouteroux/feat/promtool_check_rules_s…
Jun 27, 2023
a605b81
Merge pull request #12170 from fpetkovski/parser-inject-functions
Jun 27, 2023
c18f5b6
Update golangci-lint
SuperQ Mar 30, 2023
16c3cd3
Disable revive unused-parameter
SuperQ Apr 4, 2023
4e9b89f
Update depguard config syntax.
SuperQ Jun 27, 2023
6188038
Merge pull request #12197 from prometheus/superq/sync_old_ci_lint
Jun 27, 2023
0381f0c
Merge pull request #12495 from prometheus/dependabot/go_modules/docum…
Jun 27, 2023
0abf7f0
Merge pull request #12469 from prometheus/dependabot/go_modules/githu…
Jun 27, 2023
80d2b1d
Merge pull request #12466 from prometheus/dependabot/go_modules/golan…
Jun 27, 2023
742f9e3
Merge pull request #12427 from prometheus/dependabot/go_modules/docum…
Jun 27, 2023
fe639b5
Merge pull request #12420 from prometheus/dependabot/github_actions/b…
Jun 27, 2023
686482a
Remove Add(0)
metalmatze Jun 27, 2023
484a9e4
fix some typos (#12498)
cuishuang Jun 29, 2023
71d149a
Merge pull request #12472 from metalmatze/request-counter-init
metalmatze Jun 30, 2023
a6449cd
Merge branch 'prometheus:main' into main
fbegyn Jun 30, 2023
031d22d
Fix race condition in ChunkDiskMapper.Truncate() (#12500)
pracucci Jun 30, 2023
1a8f06b
Update sync script.
SuperQ Jul 1, 2023
3506991
Fix infinite loop in index Writer when a series contains duplicated l…
pracucci Jul 1, 2023
8160676
build(deps): bump github.com/linode/linodego from 1.17.0 to 1.17.2
dependabot[bot] Jul 1, 2023
aa75c60
build(deps): bump github.com/hetznercloud/hcloud-go
dependabot[bot] Jul 1, 2023
4027ba3
build(deps): bump google.golang.org/grpc from 1.55.0 to 1.56.1
dependabot[bot] Jul 1, 2023
1a355de
build(deps): bump golangci/golangci-lint-action from 3.4.0 to 3.6.0
dependabot[bot] Jul 1, 2023
5735373
build(deps): bump github.com/prometheus/prometheus
dependabot[bot] Jul 1, 2023
5255bf0
Replace sort.Slice with faster slices.SortFunc
bboreham Jul 2, 2023
3f230fc
promql: convert QueryOpts to interface
GiedriusS Jul 3, 2023
097faf3
Merge branch 'main' into api-response-format-extension-point
charleskorn Jul 4, 2023
68e5937
Apply relevant label matchers in LabelValues before fetching extra po…
Logiraptor Jul 4, 2023
9ff1f24
Merge pull request #12505 from pracucci/fix-infinite-loop-in-index-wr…
Jul 4, 2023
4653e83
Merge pull request #12504 from prometheus/superq/fixup_golangci_sync
Jul 4, 2023
986fde0
Merge pull request #11688 from damnever/fix/datamodelvalidation-remot…
Jul 4, 2023
47b613a
Merge pull request #11639 from fbegyn/main
Jul 4, 2023
e8d4466
build(deps): bump bufbuild/buf-setup-action from 1.20.0 to 1.23.1
dependabot[bot] Jul 4, 2023
0f4c27e
discovery/openstack: Include instance image ID in labels
supertassu Jun 30, 2023
0186ec7
Merge pull request #12516 from vinted/convert_queryopts_to_interface
Jul 4, 2023
47ebdf4
Merge pull request #12514 from prometheus/dependabot/go_modules/docum…
Jul 4, 2023
d9fccd1
Merge pull request #12510 from prometheus/dependabot/go_modules/googl…
Jul 4, 2023
f4f3d52
Merge pull request #12509 from prometheus/dependabot/go_modules/githu…
Jul 4, 2023
543d773
Merge pull request #12511 from prometheus/dependabot/github_actions/g…
Jul 4, 2023
fb06a12
Merge pull request #12512 from prometheus/dependabot/github_actions/b…
Jul 4, 2023
f7a880d
Merge pull request #12507 from prometheus/dependabot/go_modules/githu…
Jul 4, 2023
323ac83
build(deps): bump github.com/Azure/azure-sdk-for-go/sdk/azidentity
dependabot[bot] Jul 4, 2023
ac32e19
build(deps): bump github.com/prometheus/client_golang
dependabot[bot] Jul 4, 2023
4235d9f
Merge pull request #12502 from supertassu/taavi/os-flavor-id
Jul 4, 2023
6768cb5
Merge pull request #12506 from prometheus/dependabot/go_modules/githu…
Jul 5, 2023
f06f899
Merge pull request #12468 from prometheus/dependabot/go_modules/docum…
Jul 5, 2023
4851ced
tsdb: Support native histograms in snapshot on shutdown (#12258)
marctc Jul 5, 2023
076056c
Merge pull request #11642 from zoonage/main
Jul 5, 2023
4edf899
Update promu
SuperQ Jul 6, 2023
26c354d
Merge pull request #12530 from prometheus/superq/promu_15
Jul 6, 2023
7cc4292
Export MinTime and MaxTime
pracucci Jul 6, 2023
578e2b6
re-order imports for linter
bboreham Jul 8, 2023
ce153e3
Replace sort.Sort with faster slices.SortFunc
bboreham Jul 8, 2023
70e41fc
improve incorrect doc comment
merrickclay Jul 10, 2023
31015f8
Merge pull request #12535 from pracucci/export-min-max-time
Jul 11, 2023
f3f3d8f
Merge pull request #12540 from bboreham/slices-sorts2
Jul 11, 2023
0f85e4f
Merge pull request #12539 from bboreham/slices-sorts
Jul 11, 2023
8c8afec
Merge pull request #12542 from merrickclay/tsdb-doc-comment
Jul 11, 2023
9560683
Merge pull request #11498 from paulfantom/selector
Jul 11, 2023
bf5bf1a
TSDB: Remove usused import of sort
Jul 11, 2023
32d8728
Add Zstandard compression option for wlog (#11666)
leizor Jul 11, 2023
89e213b
Merge pull request #12546 from roidelapluie/removeimport
Jul 11, 2023
a462f7f
Add function for iterating through all buckets in reverse to find max…
carrieedwards Mar 27, 2023
bc0ee4a
Implement native histogram min and max query functions
carrieedwards Mar 27, 2023
2f9bc98
Add tests for min and max functions
carrieedwards Mar 27, 2023
f93ac97
Update querying function docs
carrieedwards Mar 27, 2023
42d9169
enhance histogram_quantile to get min/max value
fatsheep9146 Jul 5, 2023
5da638d
Merge pull request #12525 from fatsheep9146/native-histogram-min-max
beorn7 Jul 12, 2023
162612e
histograms: Improve comment
beorn7 Jul 12, 2023
47819fe
Merge branch 'main' of github.com:prometheus/prometheus into document…
douglascamata Jul 12, 2023
1c3bd04
histograms: Modify test to expose bug #12552
beorn7 Jul 12, 2023
da047c6
histograms: Fix bug #12552
beorn7 Jul 12, 2023
e1ace8d
Add PromQL format and label matcher set/delete commands to promtool
robskillington Jul 12, 2023
b3b669f
Add experimental flag and docs
Jul 12, 2023
cb93a0c
Merge pull request #12554 from prometheus/beorn7/histogram
beorn7 Jul 13, 2023
0e3f353
scrape: Enable ingestion of multiple exemplars per sample
beorn7 Jul 13, 2023
536a487
scrape: Refactor names of float samples
beorn7 Jul 13, 2023
096ceca
remove repetitive words (#12556)
cuishuang Jul 13, 2023
fd5b01a
promtool docs: write flags between backtits in help
Jul 13, 2023
c572d9d
Merge pull request #11905 from charleskorn/api-response-format-extens…
Jul 15, 2023
52b1ddc
Merge pull request #11411 from robskillington/add-promql-cmds-to-prom…
Jul 15, 2023
de89a8c
Linode SD: cast InstanceSpec values to int64 to avoid overflows
dswarbrick Jul 16, 2023
c204e1b
Merge pull request #12568 from dswarbrick/linode-int-overflow
Jul 17, 2023
7aa7965
build(deps): bump github.com/hetznercloud/hcloud-go to v2.0.0
apricote Jul 17, 2023
5a0dea1
docs: use actual flag for signing off commits
apricote Jul 17, 2023
a39d2db
Merge pull request #12570 from hetznercloud/pr-signoff
Jul 17, 2023
06d31c9
Merge pull request #12569 from hetznercloud/hcloud-go-v2
Jul 17, 2023
b7028c1
Merge pull request #11426 from douglascamata/document-and-test-relabe…
Jul 18, 2023
782e6f6
Merge pull request #11295 from dimitarvdimitrov/dimitar/simplify-eval…
Jul 18, 2023
e0502f0
Merge pull request #11285 from ashishkurmi/main
Jul 18, 2023
2bdb2e6
Merge pull request #10914 from wangrzneu/add-endpointslice-label
Jul 18, 2023
1f5934e
Merge pull request #10623 from songjiayang/update-index
Jul 18, 2023
0a48f93
Merge pull request #10367 from ianwoolf/pr_add_close_for_query_logger
Jul 18, 2023
5d7bcee
Prepare go dependencies for 2.46
Jul 19, 2023
f44915e
Merge pull request #12578 from roidelapluie/deps-246
Jul 19, 2023
2ea8df4
histogram: Expose #12305
beorn7 Jul 18, 2023
071f4bb
histograms: Fix parsing float histograms without zero bucket
beorn7 Jul 18, 2023
266e278
Merge pull request #12577 from prometheus/beorn7/histogram3
beorn7 Jul 19, 2023
7905594
Merge pull request #12557 from prometheus/beorn7/histogram
Jul 20, 2023
c37af1e
Release 2.46.0-rc.0
Jul 20, 2023
034babb
Address feedback on CHANGELOG
Jul 20, 2023
9cd4808
Merge pull request #12581 from roidelapluie/rel-246-rc0
Jul 20, 2023
16c645a
Release 2.46.0
Jul 25, 2023
cbb69e5
Merge pull request #12600 from roidelapluie/release246
Jul 25, 2023
82f3687
Merge tag 'refs/tags/v2.46.0'
github-actions[bot] Jul 26, 2023
ce944d2
[bot] vendor: revendor
github-actions[bot] Jul 26, 2023
04f7e9d
[bot] assets: generate
github-actions[bot] Jul 26, 2023
d7200e2
[bot] update rh-manifest.txt
github-actions[bot] Jul 26, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<!--
Don't forget!

- Please sign CNCF's Developer Certificate of Origin and sign-off your commits by adding the -s / --sign-off flag to `git commit`. See https://github.com/apps/dco for more information.
- Please sign CNCF's Developer Certificate of Origin and sign-off your commits by adding the -s / --signoff flag to `git commit`. See https://github.com/apps/dco for more information.

- If the PR adds or changes a behaviour or fixes a bug of an exported API it would need a unit/e2e test.

Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/buf-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@ on:
paths:
- ".github/workflows/buf-lint.yml"
- "**.proto"
permissions:
contents: read

jobs:
buf:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: bufbuild/buf-setup-action@v1.17.0
- uses: bufbuild/buf-setup-action@v1.23.1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- uses: bufbuild/buf-lint-action@v1
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/buf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,17 @@ on:
push:
branches:
- main
permissions:
contents: read

jobs:
buf:
name: lint and publish
runs-on: ubuntu-latest
if: github.repository_owner == 'prometheus'
steps:
- uses: actions/checkout@v3
- uses: bufbuild/buf-setup-action@v1.17.0
- uses: bufbuild/buf-setup-action@v1.23.1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- uses: bufbuild/buf-lint-action@v1
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,10 @@ jobs:
run: sudo apt-get update && sudo apt-get -y install libsnmp-dev
if: github.repository == 'prometheus/snmp_exporter'
- name: Lint
uses: golangci/golangci-lint-action@v3.4.0
uses: golangci/golangci-lint-action@v3.6.0
with:
args: --verbose
version: v1.51.2
version: v1.53.3
fuzzing:
uses: ./.github/workflows/fuzzing.yml
if: github.event_name == 'pull_request'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
schedule:
- cron: "26 14 * * 1"

permissions:
contents: read
security-events: write

jobs:
analyze:
name: Analyze
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/funcbench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ on:
repository_dispatch:
types: [funcbench_start]
name: Funcbench Workflow
permissions:
contents: read

jobs:
run_funcbench:
name: Running funcbench
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/fuzzing.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: CIFuzz
on:
workflow_call:
permissions:
contents: read

jobs:
Fuzzing:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ concurrency:
jobs:
action:
runs-on: ubuntu-latest
if: github.repository_owner == 'prometheus'
steps:
- uses: dessant/lock-threads@v4
with:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/repo_sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@ name: Sync repo files
on:
schedule:
- cron: '44 17 * * *'
permissions:
contents: read

jobs:
repo_sync:
runs-on: ubuntu-latest
if: github.repository_owner == 'prometheus'
container:
image: quay.io/prometheus/golang-builder
steps:
Expand Down
27 changes: 19 additions & 8 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,19 @@ issues:

linters-settings:
depguard:
list-type: blacklist
include-go-root: true
packages-with-error-message:
- sync/atomic: "Use go.uber.org/atomic instead of sync/atomic"
- github.com/stretchr/testify/assert: "Use github.com/stretchr/testify/require instead of github.com/stretchr/testify/assert"
- github.com/go-kit/kit/log: "Use github.com/go-kit/log instead of github.com/go-kit/kit/log"
- io/ioutil: "Use corresponding 'os' or 'io' functions instead."
- regexp: "Use github.com/grafana/regexp instead of regexp"
rules:
main:
deny:
- pkg: "sync/atomic"
desc: "Use go.uber.org/atomic instead of sync/atomic"
- pkg: "github.com/stretchr/testify/assert"
desc: "Use github.com/stretchr/testify/require instead of github.com/stretchr/testify/assert"
- pkg: "github.com/go-kit/kit/log"
desc: "Use github.com/go-kit/log instead of github.com/go-kit/kit/log"
- pkg: "io/ioutil"
desc: "Use corresponding 'os' or 'io' functions instead."
- pkg: "regexp"
desc: "Use github.com/grafana/regexp instead of regexp"
errcheck:
exclude-functions:
# Don't flag lines such as "io.Copy(io.Discard, resp.Body)".
Expand All @@ -56,3 +61,9 @@ linters-settings:
local-prefixes: github.com/prometheus/prometheus
gofumpt:
extra-rules: true
revive:
rules:
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#unused-parameter
- name: unused-parameter
severity: warning
disabled: true
File renamed without changes.
23 changes: 22 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# Changelog

## 2.46.0 / 2023-07-25

* [FEATURE] Promtool: Add PromQL format and label matcher set/delete commands to promtool. #11411
* [FEATURE] Promtool: Add push metrics command. #12299
* [ENHANCEMENT] Promtool: Read from stdin if no filenames are provided in check rules. #12225
* [ENHANCEMENT] Hetzner SD: Support larger ID's that will be used by Hetzner in September. #12569
* [ENHANCEMENT] Kubernetes SD: Add more labels for endpointslice and endpoints role. #10914
* [ENHANCEMENT] Kubernetes SD: Do not add pods to target group if the PodIP status is not set. #11642
* [ENHANCEMENT] OpenStack SD: Include instance image ID in labels. #12502
* [ENHANCEMENT] Remote Write receiver: Validate the metric names and labels. #11688
* [ENHANCEMENT] Web: Initialize `prometheus_http_requests_total` metrics with `code` label set to `200`. #12472
* [ENHANCEMENT] TSDB: Add Zstandard compression option for wlog. #11666
* [ENHANCEMENT] TSDB: Support native histograms in snapshot on shutdown. #12258
* [ENHANCEMENT] Labels: Avoid compiling regexes that are literal. #12434
* [BUGFIX] Histograms: Fix parsing of float histograms without zero bucket. #12577
* [BUGFIX] Histograms: Fix scraping native and classic histograms missing some histograms. #12554
* [BUGFIX] Histograms: Enable ingestion of multiple exemplars per sample. 12557
* [BUGFIX] File SD: Fix path handling in File-SD watcher to allow directory monitoring on Windows. #12488
* [BUGFIX] Linode SD: Cast `InstanceSpec` values to `int64` to avoid overflows on 386 architecture. #12568
* [BUGFIX] PromQL Engine: Include query parsing in active-query tracking. #12418
* [BUGFIX] TSDB: Handle TOC parsing failures. #10623

## 2.45.0 / 2023-06-23

Expand Down Expand Up @@ -63,7 +84,7 @@ improvements for testing. #10991
* [FEATURE] Promtool: Add HTTP client configuration to query commands. #11487
* [FEATURE] Scrape: Add `scrape_config_files` to include scrape configs from different files. #12019
* [FEATURE] HTTP client: Add `no_proxy` to exclude URLs from proxied requests. #12098
* [FEATURE] HTTP client: Add `proxy_from_enviroment` to read proxies from env variables. #12098
* [FEATURE] HTTP client: Add `proxy_from_environment` to read proxies from env variables. #12098
* [ENHANCEMENT] API: Add support for setting lookback delta per query via the API. #12088
* [ENHANCEMENT] API: Change HTTP status code from 503/422 to 499 if a request is canceled. #11897
* [ENHANCEMENT] Scrape: Allow exemplars for all metric types. #11984
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ assets-tarball: assets
.PHONY: parser
parser:
@echo ">> running goyacc to generate the .go file."
ifeq (, $(shell which goyacc))
ifeq (, $(shell command -v goyacc > /dev/null))
@echo "goyacc not installed so skipping"
@echo "To install: go install golang.org/x/tools/cmd/goyacc@v0.6.0"
else
Expand Down
8 changes: 4 additions & 4 deletions Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -76,19 +76,19 @@ endif
GOTEST := $(GO) test
GOTEST_DIR :=
ifneq ($(CIRCLE_JOB),)
ifneq ($(shell which gotestsum),)
ifneq ($(shell command -v gotestsum > /dev/null),)
GOTEST_DIR := test-results
GOTEST := gotestsum --junitfile $(GOTEST_DIR)/unit-tests.xml --
endif
endif

PROMU_VERSION ?= 0.14.0
PROMU_VERSION ?= 0.15.0
PROMU_URL := https://github.com/prometheus/promu/releases/download/v$(PROMU_VERSION)/promu-$(PROMU_VERSION).$(GO_BUILD_PLATFORM).tar.gz

SKIP_GOLANGCI_LINT :=
GOLANGCI_LINT :=
GOLANGCI_LINT_OPTS ?=
GOLANGCI_LINT_VERSION ?= v1.51.2
GOLANGCI_LINT_VERSION ?= v1.53.3
# golangci-lint only supports linux, darwin and windows platforms on i386/amd64.
# windows isn't included here because of the path separator being different.
ifeq ($(GOHOSTOS),$(filter $(GOHOSTOS),linux darwin))
Expand Down Expand Up @@ -205,7 +205,7 @@ endif
.PHONY: common-yamllint
common-yamllint:
@echo ">> running yamllint on all YAML files in the repository"
ifeq (, $(shell which yamllint))
ifeq (, $(shell command -v yamllint > /dev/null))
@echo "yamllint not installed so skipping"
else
yamllint .
Expand Down
4 changes: 3 additions & 1 deletion RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ Release cadence of first pre-releases being cut is 6 weeks.
| v2.43 | 2023-03-08 | Julien Pivotto (GitHub: @roidelapluie) |
| v2.44 | 2023-04-19 | Bryan Boreham (GitHub: @bboreham) |
| v2.45 LTS | 2023-05-31 | Jesus Vazquez (Github: @jesusvazquez) |
| v2.46 | 2023-07-12 | **searching for volunteer** |
| v2.46 | 2023-07-12 | Julien Pivotto (GitHub: @roidelapluie) |
| v2.47 | 2023-08-23 | **searching for volunteer** |
| v2.48 | 2023-10-04 | **searching for volunteer** |

If you are interested in volunteering please create a pull request against the [prometheus/prometheus](https://github.com/prometheus/prometheus) repository and propose yourself for the release series of your choice.

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.45.0
2.46.0
15 changes: 12 additions & 3 deletions cmd/prometheus/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ import (
"github.com/prometheus/prometheus/tracing"
"github.com/prometheus/prometheus/tsdb"
"github.com/prometheus/prometheus/tsdb/agent"
"github.com/prometheus/prometheus/tsdb/wlog"
"github.com/prometheus/prometheus/util/documentcli"
"github.com/prometheus/prometheus/util/logging"
prom_runtime "github.com/prometheus/prometheus/util/runtime"
Expand Down Expand Up @@ -334,6 +335,9 @@ func main() {
serverOnlyFlag(a, "storage.tsdb.wal-compression", "Compress the tsdb WAL.").
Hidden().Default("true").BoolVar(&cfg.tsdb.WALCompression)

serverOnlyFlag(a, "storage.tsdb.wal-compression-type", "Compression algorithm for the tsdb WAL.").
Hidden().Default(string(wlog.CompressionSnappy)).EnumVar(&cfg.tsdb.WALCompressionType, string(wlog.CompressionSnappy), string(wlog.CompressionZstd))

serverOnlyFlag(a, "storage.tsdb.head-chunks-write-queue-size", "Size of the queue through which head chunks are written to the disk to be m-mapped, 0 disables the queue completely. Experimental.").
Default("0").IntVar(&cfg.tsdb.HeadChunksWriteQueueSize)

Expand All @@ -350,6 +354,9 @@ func main() {
agentOnlyFlag(a, "storage.agent.wal-compression", "Compress the agent WAL.").
Default("true").BoolVar(&cfg.agent.WALCompression)

agentOnlyFlag(a, "storage.agent.wal-compression-type", "Compression algorithm for the agent WAL.").
Hidden().Default(string(wlog.CompressionSnappy)).EnumVar(&cfg.agent.WALCompressionType, string(wlog.CompressionSnappy), string(wlog.CompressionZstd))

agentOnlyFlag(a, "storage.agent.wal-truncate-frequency",
"The frequency at which to truncate the WAL and remove old data.").
Hidden().PlaceHolder("<duration>").SetValue(&cfg.agent.TruncateFrequency)
Expand Down Expand Up @@ -429,7 +436,7 @@ func main() {

_, err := a.Parse(os.Args[1:])
if err != nil {
fmt.Fprintln(os.Stderr, fmt.Errorf("Error parsing commandline arguments: %w", err))
fmt.Fprintln(os.Stderr, fmt.Errorf("Error parsing command line arguments: %w", err))
a.Usage(os.Args[1:])
os.Exit(2)
}
Expand Down Expand Up @@ -1546,6 +1553,7 @@ type tsdbOptions struct {
MaxBytes units.Base2Bytes
NoLockfile bool
WALCompression bool
WALCompressionType string
HeadChunksWriteQueueSize int
SamplesPerChunk int
StripeSize int
Expand All @@ -1566,7 +1574,7 @@ func (opts tsdbOptions) ToTSDBOptions() tsdb.Options {
MaxBytes: int64(opts.MaxBytes),
NoLockfile: opts.NoLockfile,
AllowOverlappingCompaction: true,
WALCompression: opts.WALCompression,
WALCompression: wlog.ParseCompressionType(opts.WALCompression, opts.WALCompressionType),
HeadChunksWriteQueueSize: opts.HeadChunksWriteQueueSize,
SamplesPerChunk: opts.SamplesPerChunk,
StripeSize: opts.StripeSize,
Expand All @@ -1585,6 +1593,7 @@ func (opts tsdbOptions) ToTSDBOptions() tsdb.Options {
type agentOptions struct {
WALSegmentSize units.Base2Bytes
WALCompression bool
WALCompressionType string
StripeSize int
TruncateFrequency model.Duration
MinWALTime, MaxWALTime model.Duration
Expand All @@ -1594,7 +1603,7 @@ type agentOptions struct {
func (opts agentOptions) ToAgentOptions() agent.Options {
return agent.Options{
WALSegmentSize: int(opts.WALSegmentSize),
WALCompression: opts.WALCompression,
WALCompression: wlog.ParseCompressionType(opts.WALCompression, opts.WALCompressionType),
StripeSize: opts.StripeSize,
TruncateFrequency: time.Duration(opts.TruncateFrequency),
MinWALTime: durationToInt64Millis(time.Duration(opts.MinWALTime)),
Expand Down
Loading