diff --git a/0001-Do-not-force-the-pure-Go-name-resolver.patch b/0001-Do-not-force-the-pure-Go-name-resolver.patch index 834b671..b315e34 100644 --- a/0001-Do-not-force-the-pure-Go-name-resolver.patch +++ b/0001-Do-not-force-the-pure-Go-name-resolver.patch @@ -1,4 +1,4 @@ -From de6a642d171890fb0360fed67fd7313f13ea4b37 Mon Sep 17 00:00:00 2001 +From bc9decb6a9f56a70d49e935e2a0207c20d2b2a2c Mon Sep 17 00:00:00 2001 From: Jan Fajerski Date: Fri, 8 Feb 2019 09:17:06 +0100 Subject: [PATCH] Do not force the pure Go name resolver @@ -10,16 +10,16 @@ on OS and environment variables. This allows, among other things, to use Prometheus to scrape mDNS targets. Signed-off-by: Jan Fajerski -Signed-off-by: Johannes Kastl +Signed-off-by: Johannes Kastl --- - .promu.yml | 3 +-- - 1 file changed, 1 insertion(+), 2 deletions(-) + .promu.yml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.promu.yml b/.promu.yml -index f724dc34f..ccce0d5a2 100644 +index 0aa51d6d315..06c9c579d8e 100644 --- a/.promu.yml +++ b/.promu.yml -@@ -12,13 +12,12 @@ build: +@@ -12,12 +12,12 @@ build: path: ./cmd/promtool tags: all: @@ -29,11 +29,7 @@ index f724dc34f..ccce0d5a2 100644 windows: - builtinassets - stringlabels -- flags: -a + flags: -mod=vendor -a ldflags: | -X github.com/prometheus/common/version.Version={{.Version}} -X github.com/prometheus/common/version.Revision={{.Revision}} --- -2.40.1 - diff --git a/0003-Bump-go-retryablehttp.patch b/0003-Bump-go-retryablehttp.patch new file mode 100644 index 0000000..8a6a920 --- /dev/null +++ b/0003-Bump-go-retryablehttp.patch @@ -0,0 +1,61 @@ +From 07cff5bee27a832e4d4902911ea0ebbea0518113 Mon Sep 17 00:00:00 2001 +From: Daniel Mellado +Date: Tue, 25 Jun 2024 16:31:03 +0200 +Subject: [PATCH] Bump go-retryablehttp to fix basic auth creds leak + +This PR updates go-retryablehttp to version 0.7.7, even if it's used as +an indirect import. Versions previous to that can didn't sanitize urls, +discussed at HDCSEC-2024-12 [1] + +[1] https://discuss.hashicorp.com/t/hcsec-2024-12-go-retryablehttp-can-leak-basic-auth-credentials-to-log-files/68027 + +Signed-off-by: Daniel Mellado +--- + go.mod | 4 ++-- + go.sum | 9 ++++----- + 2 files changed, 6 insertions(+), 7 deletions(-) + +diff --git a/go.mod b/go.mod +index 8caf80727b7..f4cf5828015 100644 +--- a/go.mod ++++ b/go.mod +@@ -145,10 +145,10 @@ require ( + github.com/hashicorp/cronexpr v1.1.2 // indirect + github.com/hashicorp/errwrap v1.1.0 // indirect + github.com/hashicorp/go-cleanhttp v0.5.2 // indirect +- github.com/hashicorp/go-hclog v1.5.0 // indirect ++ github.com/hashicorp/go-hclog v1.6.3 // indirect + github.com/hashicorp/go-immutable-radix v1.3.1 // indirect + github.com/hashicorp/go-multierror v1.1.1 // indirect +- github.com/hashicorp/go-retryablehttp v0.7.4 // indirect ++ github.com/hashicorp/go-retryablehttp v0.7.7 // indirect + github.com/hashicorp/go-rootcerts v1.0.2 // indirect + github.com/hashicorp/golang-lru v0.6.0 // indirect + github.com/hashicorp/serf v0.10.1 // indirect +diff --git a/go.sum b/go.sum +index 06db002f55b..956b9d89492 100644 +--- a/go.sum ++++ b/go.sum +@@ -369,9 +369,8 @@ github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtng + github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= + github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ= + github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48= +-github.com/hashicorp/go-hclog v0.9.2/go.mod h1:5CU+agLiy3J7N7QjHK5d05KxGsuXiQLrjA0H7acj2lQ= +-github.com/hashicorp/go-hclog v1.5.0 h1:bI2ocEMgcVlz55Oj1xZNBsVi900c7II+fWDyV9o+13c= +-github.com/hashicorp/go-hclog v1.5.0/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= ++github.com/hashicorp/go-hclog v1.6.3 h1:Qr2kF+eVWjTiYmU7Y31tYlP1h0q/X3Nl3tPGdaB11/k= ++github.com/hashicorp/go-hclog v1.6.3/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= + github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= + github.com/hashicorp/go-immutable-radix v1.3.1 h1:DKHmCUm2hRBK510BaiZlwvpD40f8bJFeZnpfm2KLowc= + github.com/hashicorp/go-immutable-radix v1.3.1/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= +@@ -383,8 +382,8 @@ github.com/hashicorp/go-multierror v1.1.0/go.mod h1:spPvp8C1qA32ftKqdAHm4hHTbPw+ + github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= + github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= + github.com/hashicorp/go-retryablehttp v0.5.3/go.mod h1:9B5zBasrRhHXnJnui7y6sL7es7NDiJgTc6Er0maI1Xs= +-github.com/hashicorp/go-retryablehttp v0.7.4 h1:ZQgVdpTdAL7WpMIwLzCfbalOcSUdkDZnpUv3/+BxzFA= +-github.com/hashicorp/go-retryablehttp v0.7.4/go.mod h1:Jy/gPYAdjqffZ/yFGCFV2doI5wjtH1ewM9u8iYVjtX8= ++github.com/hashicorp/go-retryablehttp v0.7.7 h1:C8hUCYzor8PIfXHa4UrZkU4VvK8o9ISHxT2Q8+VepXU= ++github.com/hashicorp/go-retryablehttp v0.7.7/go.mod h1:pkQpWZeYWskR+D1tR2O5OcBFOxfA7DoAO6xtkuQnHTk= + github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU= + github.com/hashicorp/go-rootcerts v1.0.2 h1:jzhAVGtqPKbwpyCPELlgNWhE1znq+qwJtW5Oi2viEzc= + github.com/hashicorp/go-rootcerts v1.0.2/go.mod h1:pqUvnprVnM5bf7AOirdbb01K4ccR319Vf4pU3K5EGc8= diff --git a/PACKAGING_README.md b/PACKAGING_README.md index 95fe309..e587bd5 100644 --- a/PACKAGING_README.md +++ b/PACKAGING_README.md @@ -5,11 +5,5 @@ needs the assets for the web UI. These can be generated by the `Makefile` that is present in this package. To do that, you need to have `make` and `npm` installed locally. -1. Change the version in the `_service` file -2. Change the version in the spec file -3. Run `make` -4. Create a changelog entry -5. Commit the changes as usual - For the OBS workflow you also need `obs-service-go_modules` as well as `obs-service-tar_scm` and `obs-service-recompress`. diff --git a/_service b/_service index b8f9927..0e694aa 100644 --- a/_service +++ b/_service @@ -4,7 +4,7 @@ git .git @PARENT_TAG@ - v2.47.2 + v2.53.3 v(.*) v2* @@ -13,6 +13,6 @@ gz - prometheus-2.47.2.tar.gz + prometheus-2.53.3.tar.gz diff --git a/golang-github-prometheus-prometheus.changes b/golang-github-prometheus-prometheus.changes index d7d3419..6808ced 100644 --- a/golang-github-prometheus-prometheus.changes +++ b/golang-github-prometheus-prometheus.changes @@ -1,249 +1,528 @@ ------------------------------------------------------------------- -Thu Oct 19 06:12:18 UTC 2023 - Johannes Kastl +Tue Nov 26 15:36:02 UTC 2024 - Witek Bedyk - 2.53.3 -- update to 2.47.2: +- Build PIE +- Require Go >= 1.21 for building +- Rebase 0003-Bump-go-retryablehttp.patch +- Remove vendor.tar.gz during "make clean" +- Update to 2.53.3 (jsc#PED-11649): + * [BUGFIX] Scraping: allow multiple samples on same series, with + explicit timestamps. +- Update to 2.53.2: + * [BUGFIX] Remote-Read: Resolve occasional segmentation fault on + query. +- Update to 2.53.1: + * [BUGFIX] Remote-write: stop dropping samples in catch-up +- Update to 2.53.0: + This release changes the default for GOGC, the Go runtime control + for the trade-off between excess memory use and CPU usage. We + have found that Prometheus operates with minimal additional CPU + usage, but greatly reduced memory by adjusting the upstream Go + default from 100 to 75. + * [CHANGE] Rules: Execute 1 query instead of N (where N is the + number of alerts within alert rule) when restoring alerts. + * [CHANGE] Runtime: Change GOGC threshold from 100 to 75 + * [FEATURE] Rules: Add new option query_offset for each rule + group via rule group configuration file and rule_query_offset + as part of the global configuration to have more resilience for + remote write delays. + * [ENHANCEMENT] Rules: Add + rule_group_last_restore_duration_seconds metric to measure the + time it takes to restore a rule group. + * [ENHANCEMENT] OTLP: Improve remote write format translation + performance by using label set hashes for metric identifiers + instead of string based ones. + * [ENHANCEMENT] TSDB: Optimize querying with regexp matchers. + * [BUGFIX] OTLP: Don't generate target_info unless there are + metrics and at least one identifying label is defined. + * [BUGFIX] Scrape: Do no try to ingest native histograms when the + native histograms feature is turned off. This happened when + protobuf scrape was enabled by for example the created time + feature. + * [BUGFIX] Scaleway SD: Use the instance's public IP if no + private IP is available as the __address__ meta label. + * [BUGFIX] Query logger: Do not leak file descriptors on error. + * [BUGFIX] TSDB: Let queries with heavy regex matches be + cancelled and not use up the CPU. + * [BUGFIX] API: Do not warn if result count is equal to the + limit, only when exceeding the limit for the series, + label-names and label-values APIs. + * [BUGFIX] TSDB: Fix head stats and hooks when replaying a + corrupted snapshot. +- Update to 2.52.0: + * [CHANGE] TSDB: Fix the predicate checking for blocks which are + beyond the retention period to include the ones right at the + retention boundary. + * [FEATURE] Kubernetes SD: Add a new metric + prometheus_sd_kubernetes_failures_total to track failed + requests to Kubernetes API. + * [FEATURE] Kubernetes SD: Add node and zone metadata labels when + using the endpointslice role. + * [FEATURE] Azure SD/Remote Write: Allow usage of Azure + authorization SDK. + * [FEATURE] Alerting: Support native histogram templating. + * [FEATURE] Linode SD: Support IPv6 range discovery and region + filtering. + * [ENHANCEMENT] PromQL: Performance improvements for queries with + regex matchers. + * [ENHANCEMENT] PromQL: Performance improvements when using + aggregation operators. + * [ENHANCEMENT] PromQL: Validate label_join destination label. + * [ENHANCEMENT] Scrape: Increment + prometheus_target_scrapes_sample_duplicate_timestamp_total + metric on duplicated series during one scrape. + * [ENHANCEMENT] TSDB: Many improvements in performance. + * [ENHANCEMENT] TSDB: Pause regular block compactions if the head + needs to be compacted (prioritize head as it increases memory + consumption). + * [ENHANCEMENT] Observability: Improved logging during signal + handling termination. + * [ENHANCEMENT] Observability: All log lines for drop series use + "num_dropped" key consistently. + * [ENHANCEMENT] Observability: Log chunk snapshot and mmaped + chunk replay duration during WAL replay. + * [ENHANCEMENT] Observability: Log if the block is being created + from WBL during compaction. + * [BUGFIX] PromQL: Fix inaccurate sample number statistic when + querying histograms. + * [BUGFIX] PromQL: Fix histogram_stddev and histogram_stdvar for + cases where the histogram has negative buckets. + * [BUGFIX] PromQL: Fix possible duplicated label name and values + in a metric result for specific queries. + * [BUGFIX] Scrape: Fix setting native histogram schema factor + during scrape. + * [BUGFIX] TSDB: Fix counting of histogram samples when creating + WAL checkpoint stats. + * [BUGFIX] TSDB: Fix cases of compacting empty heads. + * [BUGFIX] TSDB: Count float histograms in WAL checkpoint. + * [BUGFIX] Remote Read: Fix memory leak due to broken requests. + * [BUGFIX] API: Stop building response for /api/v1/series/ when + the API request was cancelled. + * [BUGFIX] promtool: Fix panic on promtool tsdb analyze + --extended when no native histograms are present. +- Update to 2.51.2: + * [BUGFIX] Notifier: could hang when using relabeling on alerts +- Update to 2.51.1: + * [BUGFIX] PromQL: Re-instate validation of label_join + destination label + * [BUGFIX] Scraping (experimental native histograms): Fix + handling of the min bucket factor on sync of targets + * [BUGFIX] PromQL: Some queries could return the same series + twice (library use only) +- Update to 2.51.0: + * [CHANGE] Scraping: Do experimental timestamp alignment even if + tolerance is bigger than 1% of scrape interval + * [FEATURE] Alerting: Relabel rules for AlertManagerConfig; + allows routing alerts to different alertmanagers + * [FEATURE] API: add limit param to series, label-names and + label-values APIs + * [FEATURE] UI (experimental native histograms): Add native + histogram chart to Table view + * [FEATURE] Promtool: Add a "tsdb dump-openmetrics" to dump in + OpenMetrics format. + * [FEATURE] PromQL (experimental native histograms): Add + histogram_avg function + * [ENHANCEMENT] Rules: Evaluate independent rules concurrently + * [ENHANCEMENT] Scraping (experimental native histograms): + Support exemplars + * [ENHANCEMENT] Remote Write: Disable resharding during active + retry backoffs + * [ENHANCEMENT] Observability: Add native histograms to + latency/duration metrics + * [ENHANCEMENT] Observability: Add 'type' label to + prometheus_tsdb_head_out_of_order_samples_appended_total + * [ENHANCEMENT] API: Faster generation of targets into JSON + * [ENHANCEMENT] Scraping, API: Use faster compression library + * [ENHANCEMENT] OpenTelemetry: Performance improvements in OTLP + parsing + * [ENHANCEMENT] PromQL: Optimisations to reduce CPU and memory + * [BUGFIX] PromQL: Constrain extrapolation in rate() to half of + sample interval + * [BUGFIX] PromQL: Fix wrongly scoped range vectors with @ + modifier + * [BUGFIX] Kubernetes SD: Pod status changes were not discovered + by Endpoints service discovery + * [BUGFIX] Azure SD: Fix 'error: parameter + virtualMachineScaleSetName cannot be empty' + * [BUGFIX] Remote Write: Fix signing for AWS sigv4 transport + * [BUGFIX] Observability: Exemplars emitted by Prometheus use + "trace_id" not "traceID" +- Update to 2.50.1: + * [BUGFIX] API: Fix metadata API using wrong field names. +- Update to 2.50.0: + * [CHANGE] Remote Write: Error storage.ErrTooOldSample is now + generating HTTP error 400 instead of HTTP error 500. + * [FEATURE] Remote Write: Drop old inmemory samples. Activated + using the config entry sample_age_limit. + * [FEATURE] Experimental: Add support for ingesting zeros as + created timestamps. (enabled under the feature-flag + created-timestamp-zero-ingestion). + * [FEATURE] Promtool: Add analyze histograms command. + * [FEATURE] TSDB/compaction: Add a way to enable overlapping + compaction. + * [FEATURE] Add automatic memory limit handling. Activated using + the feature flag. auto-gomemlimit + * [ENHANCEMENT] Promtool: allow specifying multiple matchers in + promtool tsdb dump. + * [ENHANCEMENT] PromQL: Restore more efficient version of + NewPossibleNonCounterInfo annotation. + * [ENHANCEMENT] Kuma SD: Extend configuration to allow users to + specify client ID. + * [ENHANCEMENT] PromQL: Use natural sort in sort_by_label and + sort_by_label_desc. This is experimental. + * [ENHANCEMENT] Native Histograms: support + native_histogram_min_bucket_factor in scrape_config. + * [ENHANCEMENT] Native Histograms: Issue warning if histogramRate + is applied to the wrong kind of histogram. + * [ENHANCEMENT] TSDB: Make transaction isolation data structures + smaller. + * [ENHANCEMENT] TSDB/postings: Optimize merge using Loser Tree. + * [ENHANCEMENT] TSDB: Simplify internal series delete function. + * [ENHANCEMENT] Agent: Performance improvement by making the + global hash lookup table smaller. + * [ENHANCEMENT] PromQL: faster execution of metric functions, + e.g. abs(), rate() + * [ENHANCEMENT] TSDB: Optimize label values with matchers by + taking shortcuts. + * [ENHANCEMENT] Kubernetes SD: Check preconditions earlier and + avoid unnecessary checks or iterations in kube_sd. + * [ENHANCEMENT] Promtool: Improve visibility for promtool test + rules with JSON colored formatting. + * [ENHANCEMENT] Consoles: Exclude iowait and steal from CPU + Utilisation. + * [ENHANCEMENT] Various improvements and optimizations on Native + Histograms. + * [BUGFIX] Scraping: Fix quality value in HTTP Accept header. + * [BUGFIX] UI: Fix usage of the function time() that was + crashing. + * [BUGFIX] Azure SD: Fix SD crashing when it finds a VM scale + set. +- Update to 2.49.1: + * [BUGFIX] TSDB: Fixed a wrong q= value in scrape accept header +- Update to 2.49.0: + * [FEATURE] Promtool: Add --run flag promtool test rules command. + * [FEATURE] SD: Add support for NS records to DNS SD. + * [FEATURE] UI: Add heatmap visualization setting in the Graph + tab, useful histograms. + * [FEATURE] Scraping: Add scrape_config.enable_compression + (default true) to disable gzip compression when scraping the + target. + * [FEATURE] PromQL: Add a promql-experimental-functions feature + flag containing some new experimental PromQL functions. + NOTE: More experimental functions might be added behind the + same feature flag in the future. Added functions: experimental + mad_over_time (median absolute deviation around the median) + function. and experimental sort_by_label and + sort_by_label_desc functions allowing sorting returned series + by labels. + * [FEATURE] SD: Add __meta_linode_gpus label to Linode SD. + * [FEATURE] API: Add exclude_alerts query parameter to + /api/v1/rules to only return recording rules. + * [FEATURE] TSDB: --storage.tsdb.retention.time flag value is now + exposed as a prometheus_tsdb_retention_limit_seconds metric. + * [FEATURE] Scraping: Add ability to specify priority of scrape + protocols to accept during scrape (e.g. to scrape Prometheus + proto format for certain jobs). This can be changed by setting + global.scrape_protocols and scrape_config.scrape_protocols. + * [ENHANCEMENT] Scraping: Automated handling of scraping + histograms that violate + scrape_config.native_histogram_bucket_limit setting. + * [ENHANCEMENT] Scraping: Optimized memory allocations when + scraping. + * [ENHANCEMENT] SD: Added cache for Azure SD to avoid + rate-limits. + * [ENHANCEMENT] TSDB: Various improvements to OOO exemplar + scraping. E.g. allowing ingestion of exemplars with the same + timestamp, but with different labels. + * [ENHANCEMENT] API: Optimize /api/v1/labels and + /api/v1/label//values when 1 set of matchers are + used. + * [ENHANCEMENT] TSDB: Various optimizations for TSDB block index, + head mmap chunks and WAL, reducing latency and memory + allocations (improving API calls, compaction queries etc). + * [ENHANCEMENT] PromQL: Optimize memory allocations and latency + when querying float histograms. + * [ENHANCEMENT] Rules: Instrument TraceID in log lines for rule + evaluations. + * [ENHANCEMENT] PromQL: Optimize memory allocations in + query_range calls. + * [ENHANCEMENT] Promtool: unittest interval now defaults to + evaluation_intervals when not set. + * [BUGFIX] SD: Fixed Azure SD public IP reporting + * [BUGFIX] API: Fix inaccuracies in posting cardinality + statistics. + * [BUGFIX] PromQL: Fix inaccuracies of histogram_quantile with + classic histograms. + * [BUGFIX] TSDB: Fix rare fails or inaccurate queries with OOO + samples. + * [BUGFIX] TSDB: Fix rare panics on append commit when exemplars + are used. + * [BUGFIX] TSDB: Fix exemplar WAL storage, so remote write can + send/receive samples before exemplars. + * [BUGFIX] Mixins: Fix url filter on remote write dashboards. + * [BUGFIX] PromQL/TSDB: Various fixes to float histogram + operations. + * [BUGFIX] Promtool: Fix int32 overflow issues for 32-bit + architectures. + * [BUGFIX] SD: Fix Azure VM Scale Set NIC issue. +- Update to 2.48.1: + * [BUGFIX] TSDB: Make the wlog watcher read segments + synchronously when not tailing. + * [BUGFIX] Agent: Participate in notify calls (fixes slow down in + remote write handling introduced in 2.45). +- Update to 2.48.0: + - [SECURITY] Update golang-jwt to version 5.0 to fix bad error + handling (CVE-2024-51744, bsc#1232970) + - [CHANGE] Remote-write: respect Retry-After header on 5xx + errors. + - [FEATURE] Alerting: Add AWS SigV4 authentication support for + Alertmanager endpoints. + - [FEATURE] Promtool: Add support for histograms in the TSDB dump + command. + - [FEATURE] PromQL: Add warnings (and annotations) to PromQL + query results. + - [FEATURE] Remote-write: Add Azure AD OAuth authentication + support for remote write requests. + - [ENHANCEMENT] Remote-write: Add a header to count retried + remote write requests. + - [ENHANCEMENT] TSDB: Improve query performance by re-using + iterator when moving between series. + - [ENHANCEMENT] UI: Move /targets page discovered labels to + expandable section + - [ENHANCEMENT] TSDB: Optimize WBL loading by not sending empty + buffers over channel. + - [ENHANCEMENT] TSDB: Reply WBL mmap markers concurrently. + - [ENHANCEMENT] Promtool: Add support for specifying series + matchers in the TSDB analyze command. + - [ENHANCEMENT] PromQL: Prevent Prometheus from overallocating + memory on subquery with large amount of steps. + - [ENHANCEMENT] PromQL: Add warning when monotonicity is forced + in the input to histogram_quantile. + - [ENHANCEMENT] Scraping: Optimize sample appending by reducing + garbage. + - [ENHANCEMENT] Storage: Reduce memory allocations in queries + that merge series sets. + - [ENHANCEMENT] UI: Show group interval in rules display. + - [ENHANCEMENT] Scraping: Save memory when scraping by delaying + creation of buffer. + - [ENHANCEMENT] Agent: Allow ingestion of out-of-order samples. + - [ENHANCEMENT] Promtool: Improve support for native histograms + in TSDB analyze command. + - [ENHANCEMENT] Scraping: Add configuration option for tracking + staleness of scraped timestamps. + - [BUGFIX] SD: Ensure that discovery managers are properly + canceled. + - [BUGFIX] TSDB: Fix PostingsForMatchers race with creating new + series. + - [BUGFIX] TSDB: Fix handling of explicit counter reset header in + histograms. + - [BUGFIX] SD: Validate HTTP client configuration in HTTP, EC2, + Azure, Uyuni, PuppetDB, and Lightsail SDs. + - [BUGFIX] TSDB: Fix counter reset edgecases causing native + histogram panics. + - [BUGFIX] TSDB: Fix duplicate sample detection at chunk size + limit. + - [BUGFIX] Promtool: Fix errors not being reported in check rules + command. + - [BUGFIX] TSDB: Avoid panics reported in logs when head + initialization takes a long time. + - [BUGFIX] TSDB: Ensure that WBL is repaired when possible. + - [BUGFIX] Storage: Fix crash caused by incorrect mixed samples + handling. + - [BUGFIX] TSDB: Fix compactor failures by adding min time to + histogram chunks. +- Update to 2.47.2: * [BUGFIX] TSDB: Fix counter reset edgecases causing native - histogram panics. #12838 - -------------------------------------------------------------------- -Wed Oct 4 13:54:08 UTC 2023 - Johannes Kastl - -- update to 2.47.1: - This is a patch release to fix a bug, and to rebuild with Go - 1.21.1. + histogram panics. +- Update to 2.47.1: * [BUGFIX] Fix duplicate sample detection at chunk size limit - #12874 -- BuildRequire go1.21 as upstream does - -------------------------------------------------------------------- -Wed Sep 6 15:05:28 UTC 2023 - Johannes Kastl - -- use "manual" service instead of "disabled" -- update to 2.47.0: +- Update to 2.47.0: This release adds an experimental OpenTelemetry (OTLP) Ingestion feature, and also new setting `keep_dropped_targets` to limit the amount of dropped targets held in memory. This defaults to 0 meaning 'no limit', so we encourage users with large Prometheus to try setting a limit such as 100. * [FEATURE] Web: Add OpenTelemetry (OTLP) Ingestion endpoint. - #12571 #12643 * [FEATURE] Scraping: Optionally limit detail on dropped targets, - to save memory. #12647 + to save memory. * [ENHANCEMENT] TSDB: Write head chunks to disk in the background - to reduce blocking. #11818 + to reduce blocking. * [ENHANCEMENT] PromQL: Speed up aggregate and function queries. - #12682 * [ENHANCEMENT] PromQL: More efficient evaluation of query with - `timestamp()`. #12579 - * [ENHANCEMENT] API: Faster streaming of Labels to JSON. #12598 - * [ENHANCEMENT] Agent: Memory pooling optimisation. #12651 + `timestamp()`. + * [ENHANCEMENT] API: Faster streaming of Labels to JSON. + * [ENHANCEMENT] Agent: Memory pooling optimisation. * [ENHANCEMENT] TSDB: Prevent storage space leaks due to - terminated snapshots on shutdown. #12664 - * [ENHANCEMENT] Histograms: Refactoring and optimisations. #12352 - #12584 #12596 #12711 #12054 + terminated snapshots on shutdown. + * [ENHANCEMENT] Histograms: Refactoring and optimisations. * [ENHANCEMENT] Histograms: Add `histogram_stdvar` and - `histogram_stddev` functions. #12614 + `histogram_stddev` functions. * [ENHANCEMENT] Remote-write: add http.resend_count tracing - attribute. #12676 + attribute. * [ENHANCEMENT] TSDB: Support native histograms in snapshot on - shutdown. #12722 + shutdown. * [BUGFIX] TSDB/Agent: ensure that new series get written to WAL - on rollback. #12592 + on rollback. * [BUGFIX] Scraping: fix infinite loop on exemplar in protobuf - format. #12737 - - -------------------------------------------------------------------- -Tue Jul 25 13:42:13 UTC 2023 - Johannes Kastl - -- remove vendor.tar.gz during "make clean" -- update to 2.46.0: + format. +- Update to 2.46.0: * [FEATURE] Promtool: Add PromQL format and label matcher - set/delete commands to promtool. #11411 - * [FEATURE] Promtool: Add push metrics command. #12299 + set/delete commands to promtool. + * [FEATURE] Promtool: Add push metrics command. * [ENHANCEMENT] Promtool: Read from stdin if no filenames are - provided in check rules. #12225 + provided in check rules. * [ENHANCEMENT] Hetzner SD: Support larger ID's that will be used - by Hetzner in September. #12569 + by Hetzner in September. * [ENHANCEMENT] Kubernetes SD: Add more labels for endpointslice - and endpoints role. #10914 + and endpoints role. * [ENHANCEMENT] Kubernetes SD: Do not add pods to target group if - the PodIP status is not set. #11642 + the PodIP status is not set. * [ENHANCEMENT] OpenStack SD: Include instance image ID in - labels. #12502 + labels. * [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 + and labels. * [BUGFIX] Histograms: Fix parsing of float histograms without - zero bucket. #12577 + zero bucket. * [BUGFIX] Histograms: Fix scraping native and classic histograms - missing some histograms. #12554 + missing some histograms. * [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 + sample. * [BUGFIX] PromQL Engine: Include query parsing in active-query - tracking. #12418 - * [BUGFIX] TSDB: Handle TOC parsing failures. #10623 + tracking. + * [BUGFIX] TSDB: Handle TOC parsing failures. ------------------------------------------------------------------- -Mon Jun 26 05:09:10 UTC 2023 - Johannes Kastl +Mon Jul 22 12:56:25 UTC 2024 - Witek Bedyk -- update to 2.45.0: - This release is a LTS (Long-Term Support) release of Prometheus - and will receive security, documentation and bugfix patches for - at least 12 months. Please read more about our LTS release cycle - at . +- Require Go > 1.20 for building + +------------------------------------------------------------------- +Wed Jul 3 15:13:07 UTC 2024 - Witek Bedyk + +- Bump go-retryablehttp to version 0.7.7 + (CVE-2024-6104, bsc#1227038) +- Migrate from `disabled` to `manual` service mode +- Add0003-Bump-go-retryablehttp.patch +- Update to 2.45.6 (jsc#PED-3577): + * Security fixes in dependencies +- Update to 2.45.5: + * [BUGFIX] tsdb/agent: ensure that new series get written to WAL + on rollback. + * [BUGFIX] Remote write: Avoid a race condition when applying + configuration. +- Update to 2.45.4: + * [BUGFIX] Remote read: Release querier resources before encoding + the results. +- Update to 2.45.3: + * Security fixes in dependencies + * [BUGFIX] TSDB: Remove double memory snapshot on shutdown. +- Update to 2.45.2: + * Security fixes in dependencies + * [SECURITY] Updated otelhttp to version 0.46.1 + (CVE-2023-45142, bsc#1228556) + * [BUGFIX] TSDB: Fix PostingsForMatchers race with creating new + series. +- Update to 2.45.1: + * [ENHANCEMENT] Hetzner SD: Support larger ID's that will be used + by Hetzner in September. + * [BUGFIX] Linode SD: Cast InstanceSpec values to int64 to avoid + overflows on 386 architecture. + * [BUGFIX] TSDB: Handle TOC parsing failures. + +------------------------------------------------------------------- +Fri Jul 21 11:41:27 UTC 2023 - Witek Bedyk + +- update to 2.45.0 (jsc#PED-5406): * [FEATURE] API: New limit parameter to limit the number of items - returned by `/api/v1/status/tsdb` endpoint. #12336 - * [FEATURE] Config: Add limits to global config. #12126 - * [FEATURE] Consul SD: Added support for `path_prefix`. #12372 + returned by `/api/v1/status/tsdb` endpoint. + * [FEATURE] Config: Add limits to global config. + * [FEATURE] Consul SD: Added support for `path_prefix`. * [FEATURE] Native histograms: Add option to scrape both classic - and native histograms. #12350 + and native histograms. * [FEATURE] Native histograms: Added support for two more arithmetic operators `avg_over_time` and `sum_over_time`. - #12262 * [FEATURE] Promtool: When providing the block id, only one block - will be loaded and analyzed. #12031 + will be loaded and analyzed. * [FEATURE] Remote-write: New Azure ad configuration to support - remote writing directly to Azure Monitor workspace. #11944 + remote writing directly to Azure Monitor workspace. * [FEATURE] TSDB: Samples per chunk are now configurable with flag `storage.tsdb.samples-per-chunk`. By default set to its - former value 120. #12055 + former value 120. * [ENHANCEMENT] Native histograms: bucket size can now be limited - to avoid scrape fails. #12254 + to avoid scrape fails. * [ENHANCEMENT] TSDB: Dropped series are now deleted from the WAL - sooner. #12297 + sooner. * [BUGFIX] Native histograms: ChunkSeries iterator now checks if - a new sample can be appended to the open chunk. #12185 + a new sample can be appended to the open chunk. * [BUGFIX] Native histograms: Fix Histogram Appender - `Appendable()` segfault. #12357 + `Appendable()` segfault. * [BUGFIX] Native histograms: Fix setting reset header to gauge - histograms in seriesToChunkEncoder. #12329 + histograms in seriesToChunkEncoder. * [BUGFIX] TSDB: Tombstone intervals are not modified after Get() - call. #12245 + call. * [BUGFIX] TSDB: Use path/filepath to set the WAL directory. - #12349 - -------------------------------------------------------------------- -Sun May 14 09:56:45 UTC 2023 - Johannes Kastl - update to 2.44.0: - This version is built with Go tag `stringlabels`, to use the - smaller data structure for Labels that was optional in the - previous release. For more details about this code change see - #10991. - * [CHANGE] Remote-write: Raise default samples per send to 2,000. - #12203 - * [FEATURE] Remote-read: Handle native histograms. #12085, #12192 + * [FEATURE] Remote-read: Handle native histograms. * [FEATURE] Promtool: Health and readiness check of prometheus - server in CLI. #12096 + server in CLI. * [FEATURE] PromQL: Add `query_samples_total` metric, the total - number of samples loaded by all queries. #12251 + number of samples loaded by all queries. * [ENHANCEMENT] Storage: Optimise buffer used to iterate through - samples. #12326 + samples. * [ENHANCEMENT] Scrape: Reduce memory allocations on target - labels. #12084 + labels. * [ENHANCEMENT] PromQL: Use faster heap method for `topk()` / - `bottomk()`. #12190 - * [ENHANCEMENT] Rules API: Allow filtering by rule name. #12270 + `bottomk()`. + * [ENHANCEMENT] Rules API: Allow filtering by rule name. * [ENHANCEMENT] Native Histograms: Various fixes and - improvements. #11687, #12264, #12272 + improvements. * [ENHANCEMENT] UI: Search of scraping pools is now - case-insensitive. #12207 + case-insensitive. * [ENHANCEMENT] TSDB: Add an affirmative log message for - successful WAL repair. #12135 + successful WAL repair. * [BUGFIX] TSDB: Block compaction failed when shutting down. - #12179 * [BUGFIX] TSDB: Out-of-order chunks could be ignored if the - write-behind log was deleted. #12127 + write-behind log was deleted. + - rebase patch 0001-Do-not-force-the-pure-Go-name-resolver.patch onto v2.44.0 -------------------------------------------------------------------- -Fri May 5 06:47:39 UTC 2023 - Johannes Kastl - - update to 2.43.1 * [BUGFIX] Labels: Set() after Del() would be ignored, which - broke some relabeling rules. #12322 - -------------------------------------------------------------------- -Thu Apr 13 13:23:41 UTC 2023 - Johannes Kastl - -- Remove npm_licenses.tar.bz2 during "make clean" - -------------------------------------------------------------------- -Thu Apr 6 15:50:42 UTC 2023 - Lukas Müller - -- Remove web-ui archives during "make clean". - -------------------------------------------------------------------- -Wed Apr 5 11:28:56 UTC 2023 - Witek Bedyk - -- Require promu >= 0.14.0 for building - -------------------------------------------------------------------- -Wed Mar 22 06:00:08 UTC 2023 - Johannes Kastl + broke some relabeling rules. - update to 2.43.0: - * [SECURITY BUGFIX]: Fix uncontrolled resource consumption by - updating Go to version 1.20.1 (bsc#1208298, CVE-2022-41723) * [FEATURE] Promtool: Add HTTP client configuration to query - commands. #11487 + commands. * [FEATURE] Scrape: Add `include_scrape_configs` to include - scrape configs from different files. #12019 + scrape configs from different files. * [FEATURE] HTTP client: Add `no_proxy` to exclude URLs from - proxied requests. #12098 + proxied requests. * [FEATURE] HTTP client: Add `proxy_from_enviroment` to read - proxies from env variables. #12098 + proxies from env variables. * [ENHANCEMENT] API: Add support for setting lookback delta per - query via the API. #12088 + query via the API. * [ENHANCEMENT] API: Change HTTP status code from 503/422 to 499 - if a request is canceled. #11897 + if a request is canceled. * [ENHANCEMENT] Scrape: Allow exemplars for all metric types. - #11984 * [ENHANCEMENT] TSDB: Add metrics for head chunks and WAL folders - size. #12013 + size. * [ENHANCEMENT] TSDB: Automatically remove incorrect snapshot - with index that is ahead of WAL. #11859 + with index that is ahead of WAL. * [ENHANCEMENT] TSDB: Improve Prometheus parser error outputs to - be more comprehensible. #11682 + be more comprehensible. * [ENHANCEMENT] UI: Scope `group by` labels to metric in - autocompletion. #11914 + autocompletion. * [BUGFIX] Scrape: Fix `prometheus_target_scrape_pool_target_limit` metric not set - before reloading. #12002 + before reloading. * [BUGFIX] TSDB: Correctly update `prometheus_tsdb_head_chunks_removed_total` and - `prometheus_tsdb_head_chunks` metrics when reading WAL. #11858 + `prometheus_tsdb_head_chunks` metrics when reading WAL. * [BUGFIX] TSDB: Use the correct unit (seconds) when recording out-of-order append deltas in the - `prometheus_tsdb_sample_ooo_delta` metric. #12004 - -------------------------------------------------------------------- -Tue Feb 28 15:44:01 UTC 2023 - Johannes Kastl - -- fix building web assets (boo#1208752) -- adjust packaging to build webassets locally, outside of OBS - * to get the UI working, newer versions of prometheus need the - react app assets - * as running `npm install` inside of OBS is not possible, the - required dependencies need to be prepared outside of OBS - * added a PACKAGING_README.md file, that explains how the new - web-ui-*.tar.gz and npm_licenses.tar.bz2 tarballs can be - created - -------------------------------------------------------------------- -Thu Feb 2 07:19:41 UTC 2023 - Johannes Kastl + `prometheus_tsdb_sample_ooo_delta` metric. - update to 2.42.0: This release comes with a bunch of feature coverage for native @@ -257,217 +536,396 @@ Thu Feb 2 07:19:41 UTC 2023 - Johannes Kastl Additionally, if you scrape "float histograms" or use recording rules on native histograms in v2.42.0 (which writes float - histograms), - it is a one-way street since older versions do not support - float histograms. + histograms), it is a one-way street since older versions do not + support float histograms. * [CHANGE] **breaking** TSDB: Changed WAL record format for the - experimental native histograms. #11783 + experimental native histograms. * [FEATURE] Add 'keep_firing_for' field to alerting rules. - #11827 * [FEATURE] Promtool: Add support of selecting timeseries for - TSDB dump. #11872 - * [ENHANCEMENT] Agent: Native histogram support. #11842 + TSDB dump. + * [ENHANCEMENT] Agent: Native histogram support. * [ENHANCEMENT] Rules: Support native histograms in recording - rules. #11838 + rules. * [ENHANCEMENT] SD: Add container ID as a meta label for pod - targets for Kubernetes. #11844 + targets for Kubernetes. * [ENHANCEMENT] SD: Add VM size label to azure service - discovery. #11650 - * [ENHANCEMENT] Support native histograms in federation. #11830 + discovery. + * [ENHANCEMENT] Support native histograms in federation. * [ENHANCEMENT] TSDB: Add gauge histogram support. - #11783 #11840 #11814 * [ENHANCEMENT] TSDB/Scrape: Support FloatHistogram that - represents buckets as float64 values. #11522 #11817 #11716 + represents buckets as float64 values. * [ENHANCEMENT] UI: Show individual scrape pools on /targets - page. #11142 + page. + +- update to 2.41.0: + * [FEATURE] Relabeling: Add keepequal and dropequal relabel + actions. + * [FEATURE] Add support for HTTP proxy headers. + * [ENHANCEMENT] Reload private certificates when changed on disk. + * [ENHANCEMENT] Add max_version to specify maximum TLS version in + tls_config. + * [ENHANCEMENT] Add goos and goarch labels to + prometheus_build_info. + * [ENHANCEMENT] SD: Add proxy support for EC2 and LightSail SDs. + * [ENHANCEMENT] SD: Add new metric + prometheus_sd_file_watcher_errors_total. + * [ENHANCEMENT] Remote Read: Use a pool to speed up marshalling. + * [ENHANCEMENT] TSDB: Improve handling of tombstoned chunks in + iterators. + * [ENHANCEMENT] TSDB: Optimize postings offset table reading. + * [BUGFIX] Scrape: Validate the metric name, label names, and + label values after relabeling. + * [BUGFIX] Remote Write receiver and rule manager: Fix error + handling. + +- update to 2.40.7: + * [BUGFIX] TSDB: Fix queries involving negative buckets of native + histograms. + +- update to 2.40.5: + * [BUGFIX] TSDB: Fix queries involving native histograms due to + improper reset of iterators. + +- update to 2.40.3: + * [BUGFIX] TSDB: Fix compaction after a deletion is called. + +- update to 2.40.2: + * [BUGFIX] UI: Fix black-on-black metric name color in dark mode. + +- update to 2.40.1: + * [BUGFIX] TSDB: Fix alignment for atomic int64 for 32 bit + architecture. + * [BUGFIX] Scrape: Fix accept headers. + +- update to 2.40.0: + * [FEATURE] Add experimental support for native histograms. + Enable with the flag --enable-feature=native-histograms. + * [FEATURE] SD: Add service discovery for OVHcloud. + * [ENHANCEMENT] Kubernetes SD: Use protobuf encoding. + * [ENHANCEMENT] TSDB: Use golang.org/x/exp/slices for improved + sorting speed. + * [ENHANCEMENT] Consul SD: Add enterprise admin partitions. Adds + __meta_consul_partition label. Adds partition config in + consul_sd_config. + * [BUGFIX] API: Fix API error codes for /api/v1/labels and + /api/v1/series. + +- update to 2.39.1: + * [BUGFIX] Rules: Fix notifier relabel changing the labels on + active alerts. + +- update to 2.39.0: + * [FEATURE] experimental TSDB: Add support for ingesting + out-of-order samples. This is configured via + out_of_order_time_window field in the config file; check config + file docs for more info. + * [ENHANCEMENT] API: /-/healthy and /-/ready API calls now also + respond to a HEAD request on top of existing GET support. + * [ENHANCEMENT] PuppetDB SD: Add __meta_puppetdb_query label. + * [ENHANCEMENT] AWS EC2 SD: Add __meta_ec2_region label. + * [ENHANCEMENT] AWS Lightsail SD: Add __meta_lightsail_region + label. + * [ENHANCEMENT] Scrape: Optimise relabeling by re-using memory. + * [ENHANCEMENT] TSDB: Improve WAL replay timings. + * [ENHANCEMENT] TSDB: Optimise memory by not storing unnecessary + data in the memory. + * [ENHANCEMENT] TSDB: Allow overlapping blocks by default. + --storage.tsdb.allow-overlapping-blocks now has no effect. + * [ENHANCEMENT] UI: Click to copy label-value pair from query + result to clipboard. + * [BUGFIX] TSDB: Turn off isolation for Head compaction to fix a + memory leak. + * [BUGFIX] TSDB: Fix 'invalid magic number 0' error on Prometheus + startup. + * [BUGFIX] PromQL: Properly close file descriptor when logging + unfinished queries. + * [BUGFIX] Agent: Fix validation of flag options and prevent WAL + from growing more than desired. + +- update to 2.38.0: + * [FEATURE]: Web: Add a /api/v1/format_query HTTP API endpoint + that allows pretty-formatting PromQL expressions. + * [FEATURE]: UI: Add support for formatting PromQL expressions in + the UI. + * [FEATURE]: DNS SD: Support MX records for discovering targets. + * [FEATURE]: Templates: Add toTime() template function that + allows converting sample timestamps to Go time.Time values. + * [ENHANCEMENT]: Kubernetes SD: Add + __meta_kubernetes_service_port_number meta label indicating the + service port number. + * [ENHANCEMENT]: Kubernetes SD: Add + __meta_kubernetes_pod_container_image meta label indicating the + container image. + * [ENHANCEMENT]: PromQL: When a query panics, also log the query + itself alongside the panic message. + * [ENHANCEMENT]: UI: Tweak colors in the dark theme to improve + the contrast ratio. + * [ENHANCEMENT]: Web: Speed up calls to /api/v1/rules by avoiding + locks and using atomic types instead. + * [ENHANCEMENT]: Scrape: Add a no-default-scrape-port feature + flag, which omits or removes any default HTTP (:80) or HTTPS + (:443) ports in the target's scrape address. + * [BUGFIX]: TSDB: In the WAL watcher metrics, expose the + type="exemplar" label instead of type="unknown" for exemplar + records. + * [BUGFIX]: TSDB: Fix race condition around allocating series IDs + during chunk snapshot loading. ------------------------------------------------------------------- -Tue Jan 10 14:18:30 UTC 2023 - Johannes Kastl +Thu Apr 13 13:23:41 UTC 2023 - Johannes Kastl -- modify _service file and set go_modules to disabled - * this allows full preparation just using 'osc service disabledrun' -- rebase patch 0002-Default-settings.patch -- drop patch 0003-Bump-client_golang-to-1.12.1.patch -- update to 2.33.0: - * [CHANGE] PromQL: Promote negative offset and @ modifer to stable features. #10121 - * [CHANGE] Web: Promote remote-write-receiver to stable. #10119 - * [FEATURE] Config: Add stripPort template function. #10002 - * [FEATURE] Promtool: Add cardinality analysis to check metrics, enabled by flag --extended. #10045 - * [FEATURE] SD: Enable target discovery in own K8s namespace. #9881 - * [FEATURE] SD: Add provider ID label in K8s SD. #9603 - * [FEATURE] Web: Add limit field to the rules API. #10152 - * [ENHANCEMENT] Remote-write: Avoid allocations by buffering concrete structs instead of interfaces. #9934 - * [ENHANCEMENT] Remote-write: Log time series details for out-of-order samples in remote write receiver. #9894 - * [ENHANCEMENT] Remote-write: Shard up more when backlogged. #9274 - * [ENHANCEMENT] TSDB: Use simpler map key to improve exemplar ingest performance. #10111 - * [ENHANCEMENT] TSDB: Avoid allocations when popping from the intersected postings heap. #10092 - * [ENHANCEMENT] TSDB: Make chunk writing non-blocking, avoiding latency spikes in remote-write. #10051 - * [ENHANCEMENT] TSDB: Improve label matching performance. #9907 - * [ENHANCEMENT] UI: Optimize the service discovery page and add a search bar. #10131 - * [ENHANCEMENT] UI: Optimize the target page and add a search bar. #10103 - * [BUGFIX] Promtool: Make exit codes more consistent. #9861 - * [BUGFIX] Promtool: Fix flakiness of rule testing. #8818 - * [BUGFIX] Remote-write: Update prometheus_remote_storage_queue_highest_sent_timestamp_seconds metric when write irrecoverably fails. #10102 - * [BUGFIX] Storage: Avoid panic in BufferedSeriesIterator. #9945 - * [BUGFIX] TSDB: CompactBlockMetas should produce correct mint/maxt for overlapping blocks. #10108 - * [BUGFIX] TSDB: Fix logging of exemplar storage size. #9938 - * [BUGFIX] UI: Fix overlapping click targets for the alert state checkboxes. #10136 - * [BUGFIX] UI: Fix Unhealthy filter on target page to actually display only Unhealthy targets. #10103 - * [BUGFIX] UI: Fix autocompletion when expression is empty. #10053 - * [BUGFIX] TSDB: Fix deadlock from simultaneous GC and write. #10166 -- update to 2.33.1: - * [BUGFIX] SD: Fix no such file or directory in K8s SD when not running inside K8s. #10235 -- update to 2.33.2: - * [BUGFIX] Azure SD: Fix panic when IP Address isn't set. #10280 - * [BUGFIX] Remote-write: Fix deadlock when stopping a shard. #10279 -- update to 2.33.3: - * [BUGFIX] Azure SD: Fix a regression when public IP Address isn't set. #10289 -- update to 2.33.4: - * [BUGFIX] TSDB: Fix panic when m-mapping head chunks onto the disk. #10316 -- update to 2.33.5: - * [BUGFIX] Remote-write: Fix deadlock between adding to queue and getting batch. #10395 -- update to 2.34.0: - * [CHANGE] UI: Classic UI removed. #10208 - * [CHANGE] Tracing: Migrate from Jaeger to OpenTelemetry based tracing. #9724, #10203, #10276 - * [ENHANCEMENT] TSDB: Disable the chunk write queue by default and allow configuration with the experimental flag --storage.tsdb.head-chunks-write-queue-size. #10425 - * [ENHANCEMENT] HTTP SD: Add a failure counter. #10372 - * [ENHANCEMENT] Azure SD: Set Prometheus User-Agent on requests. #10209 - * [ENHANCEMENT] Uyuni SD: Reduce the number of logins to Uyuni. #10072 - * [ENHANCEMENT] Scrape: Log when an invalid media type is encountered during a scrape. #10186 - * [ENHANCEMENT] Scrape: Accept application/openmetrics-text;version=1.0.0 in addition to version=0.0.1. #9431 - * [ENHANCEMENT] Remote-read: Add an option to not use external labels as selectors for remote read. #10254 - * [ENHANCEMENT] UI: Optimize the alerts page and add a search bar. #10142 - * [ENHANCEMENT] UI: Improve graph colors that were hard to see. #10179 - * [ENHANCEMENT] Config: Allow escaping of $ with $$ when using environment variables with external labels. #10129 - * [BUGFIX] PromQL: Properly return an error from histogram_quantile when metrics have the same labelset. #10140 - * [BUGFIX] UI: Fix bug that sets the range input to the resolution. #10227 - * [BUGFIX] TSDB: Fix a query panic when memory-snapshot-on-shutdown is enabled. #10348 - * [BUGFIX] Parser: Specify type in metadata parser errors. #10269 - * [BUGFIX] Scrape: Fix label limit changes not applying. #10370 -- update to 2.35.0: - * [CHANGE] TSDB: Delete *.tmp WAL files when Prometheus starts. #10317 - * [CHANGE] promtool: Add new flag --lint (enabled by default) for the commands check rules and check config, resulting in a new exit code (3) for linter errors. #10435 - * [FEATURE] Support for automatically setting the variable GOMAXPROCS to the container CPU limit. Enable with the flag --enable-feature=auto-gomaxprocs. #10498 - * [FEATURE] PromQL: Extend statistics with total and peak number of samples in a query. Additionally, per-step statistics are available with --enable-feature=promql-per-step-stats and using stats=all in the query API. - * Enable with the flag --enable-feature=per-step-stats. #10369 - * [ENHANCEMENT] Prometheus is built with Go 1.18. #10501 - * [ENHANCEMENT] TSDB: more efficient sorting of postings read from WAL at startup. #10500 - * [ENHANCEMENT] Azure SD: Add metric to track Azure SD failures. #10476 - * [ENHANCEMENT] Azure SD: Add an optional resource_group configuration. #10365 - * [ENHANCEMENT] Kubernetes SD: Support discovery.k8s.io/v1 EndpointSlice (previously only discovery.k8s.io/v1beta1 EndpointSlice was supported). #9570 - * [ENHANCEMENT] Kubernetes SD: Allow attaching node metadata to discovered pods. #10080 - * [ENHANCEMENT] OAuth2: Support for using a proxy URL to fetch OAuth2 tokens. #10492 - * [ENHANCEMENT] Configuration: Add the ability to disable HTTP2. #10492 - * [ENHANCEMENT] Config: Support overriding minimum TLS version. #10610 - * [BUGFIX] Kubernetes SD: Explicitly include gcp auth from k8s.io. #10516 - * [BUGFIX] Fix OpenMetrics parser to sort uppercase labels correctly. #10510 - * [BUGFIX] UI: Fix scrape interval and duration tooltip not showing on target page. #10545 - * [BUGFIX] Tracing/GRPC: Set TLS credentials only when insecure is false. #10592 - * [BUGFIX] Agent: Fix ID collision when loading a WAL with multiple segments. #10587 - * [BUGFIX] Remote-write: Fix a deadlock between Batch and flushing the queue. #10608 -- update to 2.36.0: - * [FEATURE] Add lowercase and uppercase relabel action. #10641 - * [FEATURE] SD: Add IONOS Cloud integration. #10514 - * [FEATURE] SD: Add Vultr integration. #10714 - * [FEATURE] SD: Add Linode SD failure count metric. #10673 - * [FEATURE] Add prometheus_ready metric. #10682 - * [ENHANCEMENT] Add stripDomain to template function. #10475 - * [ENHANCEMENT] UI: Enable active search through dropped targets. #10668 - * [ENHANCEMENT] promtool: support matchers when querying label values. #10727 - * [ENHANCEMENT] Add agent mode identifier. #9638 - * [BUGFIX] Changing TotalQueryableSamples from int to int64. #10549 - * [BUGFIX] tsdb/agent: Ignore duplicate exemplars. #10595 - * [BUGFIX] TSDB: Fix chunk overflow appending samples at a variable rate. #10607 - * [BUGFIX] Stop rule manager before TSDB is stopped. #10680 -- update to 2.36.1: - * [BUGFIX] promtool: Add --lint-fatal option #10840 -- update to 2.36.2: - * [BUGFIX] Fix serving of static assets like fonts and favicon. #10888 -- update to 2.37.0: - * [FEATURE] Nomad SD: New service discovery for Nomad built-in service discovery. #10915 - * [ENHANCEMENT] Kubernetes SD: Allow attaching node labels for endpoint role. #10759 - * [ENHANCEMENT] PromQL: Optimise creation of signature with/without labels. #10667 - * [ENHANCEMENT] TSDB: Memory optimizations. #10873 #10874 - * [ENHANCEMENT] TSDB: Reduce sleep time when reading WAL. #10859 #10878 - * [ENHANCEMENT] OAuth2: Add appropriate timeouts and User-Agent header. #11020 - * [BUGFIX] Alerting: Fix Alertmanager targets not being updated when alerts were queued. #10948 - * [BUGFIX] Hetzner SD: Make authentication files relative to Prometheus config file. #10813 - * [BUGFIX] Promtool: Fix promtool check config not erroring properly on failures. #10952 - * [BUGFIX] Scrape: Keep relabeled scrape interval and timeout on reloads. #10916 - * [BUGFIX] TSDB: Don't increment prometheus_tsdb_compactions_failed_total when context is canceled. #10772 - * [BUGFIX] TSDB: Fix panic if series is not found when deleting series. #10907 - * [BUGFIX] TSDB: Increase prometheus_tsdb_mmap_chunk_corruptions_total on out of sequence errors. #10406 - * [BUGFIX] Uyuni SD: Make authentication files relative to Prometheus configuration file and fix default configuration values. #10813 -- update to 2.38.0: - * [FEATURE]: Web: Add a /api/v1/format_query HTTP API endpoint that allows pretty-formatting PromQL expressions. #11036 #10544 #11005 - * [FEATURE]: UI: Add support for formatting PromQL expressions in the UI. #11039 - * [FEATURE]: DNS SD: Support MX records for discovering targets. #10099 - * [FEATURE]: Templates: Add toTime() template function that allows converting sample timestamps to Go time.Time values. #10993 - * [ENHANCEMENT]: Kubernetes SD: Add __meta_kubernetes_service_port_number meta label indicating the service port number. #11002 #11053 - * [ENHANCEMENT]: Kubernetes SD: Add __meta_kubernetes_pod_container_image meta label indicating the container image. #11034 #11146 - * [ENHANCEMENT]: PromQL: When a query panics, also log the query itself alongside the panic message. #10995 - * [ENHANCEMENT]: UI: Tweak colors in the dark theme to improve the contrast ratio. #11068 - * [ENHANCEMENT]: Web: Speed up calls to /api/v1/rules by avoiding locks and using atomic types instead. #10858 - * [ENHANCEMENT]: Scrape: Add a no-default-scrape-port feature flag, which omits or removes any default HTTP (:80) or HTTPS (:443) ports in the target's scrape address. #9523 - * [BUGFIX]: TSDB: In the WAL watcher metrics, expose the type="exemplar" label instead of type="unknown" for exemplar records. #11008 - * [BUGFIX]: TSDB: Fix race condition around allocating series IDs during chunk snapshot loading. #11099 -- update to 2.39.0: - * [FEATURE] experimental TSDB: Add support for ingesting out-of-order samples. This is configured via out_of_order_time_window field in the config file; check config file docs for more info. #11075 - * [ENHANCEMENT] API: /-/healthy and /-/ready API calls now also respond to a HEAD request on top of existing GET support. #11160 - * [ENHANCEMENT] PuppetDB SD: Add __meta_puppetdb_query label. #11238 - * [ENHANCEMENT] AWS EC2 SD: Add __meta_ec2_region label. #11326 - * [ENHANCEMENT] AWS Lightsail SD: Add __meta_lightsail_region label. #11326 - * [ENHANCEMENT] Scrape: Optimise relabeling by re-using memory. #11147 - * [ENHANCEMENT] TSDB: Improve WAL replay timings. #10973 #11307 #11319 - * [ENHANCEMENT] TSDB: Optimise memory by not storing unnecessary data in the memory. #11280 #11288 #11296 - * [ENHANCEMENT] TSDB: Allow overlapping blocks by default. --storage.tsdb.allow-overlapping-blocks now has no effect. #11331 - * [ENHANCEMENT] UI: Click to copy label-value pair from query result to clipboard. #11229 - * [BUGFIX] TSDB: Turn off isolation for Head compaction to fix a memory leak. #11317 - * [BUGFIX] TSDB: Fix 'invalid magic number 0' error on Prometheus startup. #11338 - * [BUGFIX] PromQL: Properly close file descriptor when logging unfinished queries. #11148 - * [BUGFIX] Agent: Fix validation of flag options and prevent WAL from growing more than desired. #9876 -- update to 2.39.1: - * [BUGFIX] Rules: Fix notifier relabel changing the labels on active alerts. #11427 -- update to 2.40.0: - * [FEATURE] Add experimental support for native histograms. Enable with the flag --enable-feature=native-histograms. #11447 - * [FEATURE] SD: Add service discovery for OVHcloud. #10802 - * [ENHANCEMENT] Kubernetes SD: Use protobuf encoding. #11353 - * [ENHANCEMENT] TSDB: Use golang.org/x/exp/slices for improved sorting speed. #11054 #11318 #11380 - * [ENHANCEMENT] Consul SD: Add enterprise admin partitions. Adds __meta_consul_partition label. Adds partition config in consul_sd_config. #11482 - * [BUGFIX] API: Fix API error codes for /api/v1/labels and /api/v1/series. #11356 -- update to 2.40.1: - * [BUGFIX] TSDB: Fix alignment for atomic int64 for 32 bit architecture. #11547 - * [BUGFIX] Scrape: Fix accept headers. #11552 -- update to 2.40.2: - * [BUGFIX] UI: Fix black-on-black metric name color in dark mode. #11572 -- update to 2.40.3: - * [BUGFIX] TSDB: Fix compaction after a deletion is called. #11623 -- update to 2.40.4: - * [SECURITY] Fix basic authentication bypass vulnerability (CVE-2022-46146, bsc#1208049). -- update to 2.40.5: - * [BUGFIX] TSDB: Fix queries involving native histograms due to improper reset of iterators. #11643 -- update to 2.40.6: - * [SECURITY] Security upgrade from go and upstream dependencies that include - security fixes to the net/http and os packages. #11691 -- update to 2.40.7: - * [BUGFIX] Use Windows native DNS resolver. #11704 - * [BUGFIX] TSDB: Fix queries involving negative buckets of native histograms. #11699 -- modify patch 0001-Do-not-force-the-pure-Go-name-resolver.patch to work on 2.40.7 -- update to 2.41.0: - * [FEATURE] Relabeling: Add keepequal and dropequal relabel actions. #11564 - * [FEATURE] Add support for HTTP proxy headers. #11712 - * [ENHANCEMENT] Reload private certificates when changed on disk. #11685 - * [ENHANCEMENT] Add max_version to specify maximum TLS version in tls_config. #11685 - * [ENHANCEMENT] Add goos and goarch labels to prometheus_build_info. #11685 - * [ENHANCEMENT] SD: Add proxy support for EC2 and LightSail SDs #11611 - * [ENHANCEMENT] SD: Add new metric prometheus_sd_file_watcher_errors_total. #11066 - * [ENHANCEMENT] Remote Read: Use a pool to speed up marshalling. #11357 - * [ENHANCEMENT] TSDB: Improve handling of tombstoned chunks in iterators. #11632 - * [ENHANCEMENT] TSDB: Optimize postings offset table reading. #11535 - * [BUGFIX] Scrape: Validate the metric name, label names, and label values after relabeling. #11074 - * [BUGFIX] Remote Write receiver and rule manager: Fix error handling. #11727 -- BuildRequire go1.19 +- Remove npm_licenses.tar.bz2 during "make clean" + +------------------------------------------------------------------- +Thu Apr 6 15:50:42 UTC 2023 - Lukas Müller + +- Remove web-ui archives during "make clean". + +------------------------------------------------------------------- +Wed Apr 5 11:01:33 UTC 2023 - Witek Bedyk + +- Require promu >= 0.14.0 for building + +------------------------------------------------------------------- +Fri Mar 31 14:31:25 UTC 2023 - Witek Bedyk + +- Add: + * npm_licenses.tar.bz2 + * PACKAGING_README.md +- Drop: + * 0003-Update-Go-modules.patch +- Change: + * 0001-Do-not-force-the-pure-Go-name-resolver.patch + * 0002-Default-settings.patch + +- Upgrade to version 2.37.6 + * Require Go 1.19 + +- Upgrade to version 2.37.5 + * [SECURITY] Security upgrade from go and upstream dependencies + that include security fixes to the net/http and os packages. + +- Upgrade to version 2.37.4 + * [SECURITY] Fix basic authentication bypass vulnerability + (CVE-2022-46146, bsc#1208049, jsc#PED-3576). + +- Upgrade to version 2.37.3 + * [SECURITY] CVE-2022-41715: Limit memory used by parsing regexps + (bsc#1204023). + * [BUGFIX] TSDB: Turn off isolation for Head compaction to fix a + memory leak. + +- Upgrade to version 2.37.2 + * [BUGFIX] TSDB: Fix 'invalid magic number 0' error on Prometheus + startup. + * [BUGFIX] Agent: Fix validation of flag options and prevent WAL + from growing more than desired. + +- Upgrade to version 2.37.1 + * [BUGFIX] Properly close file descriptor when logging unfinished + queries. + * [BUGFIX] TSDB: In the WAL watcher metrics, expose the + type="exemplar" label instead of type="unknown" for exemplar + records. + +- Upgrade to version 2.37.0 + * [FEATURE] Nomad SD: New service discovery for Nomad built-in + service discovery. + * [ENHANCEMENT] Kubernetes SD: Allow attaching node labels for + endpoint role. + * [ENHANCEMENT] PromQL: Optimise creation of signature + with/without labels. + * [ENHANCEMENT] TSDB: Memory optimizations. + * [ENHANCEMENT] TSDB: Reduce sleep time when reading WAL. + * [ENHANCEMENT] OAuth2: Add appropriate timeouts and User-Agent + header. + * [BUGFIX] Alerting: Fix Alertmanager targets not being updated + when alerts were queued. + * [BUGFIX] Hetzner SD: Make authentication files relative to + Prometheus config file. + * [BUGFIX] Promtool: Fix promtool check config not erroring + properly on failures. + * [BUGFIX] Scrape: Keep relabeled scrape interval and timeout on + reloads. + * [BUGFIX] TSDB: Don't increment + prometheus_tsdb_compactions_failed_total when context is + canceled. + * [BUGFIX] TSDB: Fix panic if series is not found when deleting + series. + * [BUGFIX] TSDB: Increase + prometheus_tsdb_mmap_chunk_corruptions_total on out of sequence + errors. + * [BUGFIX] Uyuni SD: Make authentication files relative to + Prometheus configuration file and fix default configuration + values. + +- Upgrade to version 2.36.2 + * [BUGFIX] Fix serving of static assets like fonts and favicon. + +- Upgrade to version 2.36.1 + * [BUGFIX] promtool: Add --lint-fatal option. + +- Upgrade to version 2.36.0 + * [FEATURE] Add lowercase and uppercase relabel action. + * [FEATURE] SD: Add IONOS Cloud integration. + * [FEATURE] SD: Add Vultr integration. + * [FEATURE] SD: Add Linode SD failure count metric. + * [FEATURE] Add prometheus_ready metric. + * [ENHANCEMENT] Add stripDomain to template function. + * [ENHANCEMENT] UI: Enable active search through dropped targets. + * [ENHANCEMENT] promtool: support matchers when querying label + values. + * [ENHANCEMENT] Add agent mode identifier. + * [BUGFIX] Changing TotalQueryableSamples from int to int64. + * [BUGFIX] tsdb/agent: Ignore duplicate exemplars. + * [BUGFIX] TSDB: Fix chunk overflow appending samples at a + variable rate. + * [BUGFIX] Stop rule manager before TSDB is stopped. + +- Upgrade to version 2.35.0 + * [CHANGE] TSDB: Delete *.tmp WAL files when Prometheus starts. + * [CHANGE] promtool: Add new flag --lint (enabled by default) for + the commands check rules and check config, resulting in a new + exit code (3) for linter errors. + * [FEATURE] Support for automatically setting the variable + GOMAXPROCS to the container CPU limit. Enable with the flag + --enable-feature=auto-gomaxprocs. + * [FEATURE] PromQL: Extend statistics with total and peak number + of samples in a query. Additionally, per-step statistics are + available with --enable-feature=promql-per-step-stats and using + stats=all in the query API. Enable with the flag + --enable-feature=per-step-stats. + * [ENHANCEMENT] TSDB: more efficient sorting of postings read from + WAL at startup. + * [ENHANCEMENT] Azure SD: Add metric to track Azure SD failures. + * [ENHANCEMENT] Azure SD: Add an optional resource_group + configuration. + * [ENHANCEMENT] Kubernetes SD: Support discovery.k8s.io/v1 + EndpointSlice (previously only discovery.k8s.io/v1beta1 + EndpointSlice was supported). + * [ENHANCEMENT] Kubernetes SD: Allow attaching node metadata to + discovered pods. + * [ENHANCEMENT] OAuth2: Support for using a proxy URL to fetch + OAuth2 tokens. + * [ENHANCEMENT] Configuration: Add the ability to disable HTTP2. + * [ENHANCEMENT] Config: Support overriding minimum TLS version. + * [BUGFIX] Kubernetes SD: Explicitly include gcp auth from k8s.io. + * [BUGFIX] Fix OpenMetrics parser to sort uppercase labels + correctly. + * [BUGFIX] UI: Fix scrape interval and duration tooltip not + showing on target page. + * [BUGFIX] Tracing/GRPC: Set TLS credentials only when insecure is + false. + * [BUGFIX] Agent: Fix ID collision when loading a WAL with + multiple segments. + * [BUGFIX] Remote-write: Fix a deadlock between Batch and flushing + the queue. + +- Upgrade to version 2.34.0 + * [CHANGE] UI: Classic UI removed. + * [CHANGE] Tracing: Migrate from Jaeger to OpenTelemetry based + tracing. + * [ENHANCEMENT] TSDB: Disable the chunk write queue by default and + allow configuration with the experimental flag + --storage.tsdb.head-chunks-write-queue-size. + * [ENHANCEMENT] HTTP SD: Add a failure counter. + * [ENHANCEMENT] Azure SD: Set Prometheus User-Agent on requests. + * [ENHANCEMENT] Uyuni SD: Reduce the number of logins to Uyuni. + * [ENHANCEMENT] Scrape: Log when an invalid media type is + encountered during a scrape. + * [ENHANCEMENT] Scrape: Accept + application/openmetrics-text;version=1.0.0 in addition to + version=0.0.1. + * [ENHANCEMENT] Remote-read: Add an option to not use external + labels as selectors for remote read. + * [ENHANCEMENT] UI: Optimize the alerts page and add a search bar. + * [ENHANCEMENT] UI: Improve graph colors that were hard to see. + * [ENHANCEMENT] Config: Allow escaping of $ with $$ when using + environment variables with external labels. + * [BUGFIX] PromQL: Properly return an error from + histogram_quantile when metrics have the same labelset. + * [BUGFIX] UI: Fix bug that sets the range input to the + resolution. + * [BUGFIX] TSDB: Fix a query panic when + memory-snapshot-on-shutdown is enabled. + * [BUGFIX] Parser: Specify type in metadata parser errors. + * [BUGFIX] Scrape: Fix label limit changes not applying. + +- Upgrade to version 2.33.5 + * [BUGFIX] Remote-write: Fix deadlock between adding to queue and + getting batch. + +- Upgrade to version 2.33.4 + * [BUGFIX] TSDB: Fix panic when m-mapping head chunks onto the + disk. + +- Upgrade to version 2.33.3 + * [BUGFIX] Azure SD: Fix a regression when public IP Address isn't + set. + +- Upgrade to version 2.33.2 + * [BUGFIX] Azure SD: Fix panic when public IP Address isn't set. + * [BUGFIX] Remote-write: Fix deadlock when stopping a shard. + +- Upgrade to version 2.33.1 + * [BUGFIX] SD: Fix no such file or directory in K8s SD when not + running inside K8s. + +- Upgrade to version 2.33.0 + * [CHANGE] PromQL: Promote negative offset and @ modifer to stable + features. + * [CHANGE] Web: Promote remote-write-receiver to stable. + * [FEATURE] Config: Add stripPort template function. + * [FEATURE] Promtool: Add cardinality analysis to check metrics, + enabled by flag --extended. + * [FEATURE] SD: Enable target discovery in own K8s namespace. + * [FEATURE] SD: Add provider ID label in K8s SD. + * [FEATURE] Web: Add limit field to the rules API. + * [ENHANCEMENT] Remote-write: Avoid allocations by buffering + concrete structs instead of interfaces. + * [ENHANCEMENT] Remote-write: Log time series details for + out-of-order samples in remote write receiver. + * [ENHANCEMENT] Remote-write: Shard up more when backlogged. + * [ENHANCEMENT] TSDB: Use simpler map key to improve exemplar + ingest performance. + * [ENHANCEMENT] TSDB: Avoid allocations when popping from the + intersected postings heap. + * [ENHANCEMENT] TSDB: Make chunk writing non-blocking, avoiding + latency spikes in remote-write. + * [ENHANCEMENT] TSDB: Improve label matching performance. + * [ENHANCEMENT] UI: Optimize the service discovery page and add a search bar. + * [ENHANCEMENT] UI: Optimize the target page and add a search bar. + * [BUGFIX] Promtool: Make exit codes more consistent. + * [BUGFIX] Promtool: Fix flakiness of rule testing. + * [BUGFIX] Remote-write: Update + prometheus_remote_storage_queue_highest_sent_timestamp_seconds + metric when write irrecoverably fails. + * [BUGFIX] Storage: Avoid panic in BufferedSeriesIterator. + * [BUGFIX] TSDB: CompactBlockMetas should produce correct + mint/maxt for overlapping blocks. + * [BUGFIX] TSDB: Fix logging of exemplar storage size. + * [BUGFIX] UI: Fix overlapping click targets for the alert state + checkboxes. + * [BUGFIX] UI: Fix Unhealthy filter on target page to actually + display only Unhealthy targets. + * [BUGFIX] UI: Fix autocompletion when expression is empty. + * [BUGFIX] TSDB: Fix deadlock from simultaneous GC and write. + +------------------------------------------------------------------- +Fri Mar 31 13:53:10 UTC 2023 - Witek Bedyk + +- Fix authentication bypass by updating Prometheus Exporter Toolkit + to version 0.7.3 (CVE-2022-46146, bsc#1208049) +- Fix uncontrolled resource consumption by updating Go to version + 1.20.1 (CVE-2022-41723, bsc#1208298) +- Restructure the spec to build web assets online +- Add: + * Makefile + * web-ui-2.32.1.tar.gz + * 0003-Update-Go-modules.patch +- Drop: + * 0003-Bump-client_golang-to-1.12.1.patch ------------------------------------------------------------------- Thu Apr 7 12:36:08 UTC 2022 - Julio González Gil diff --git a/golang-github-prometheus-prometheus.spec b/golang-github-prometheus-prometheus.spec index 7228362..46b8ab5 100644 --- a/golang-github-prometheus-prometheus.spec +++ b/golang-github-prometheus-prometheus.spec @@ -1,7 +1,7 @@ # # spec file for package golang-github-prometheus-prometheus # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2022 SUSE LLC # Copyright (c) 2017 Silvio Moioli # # All modifications and additions to the file contributed by third parties @@ -27,7 +27,7 @@ %endif Name: golang-github-prometheus-prometheus -Version: 2.47.2 +Version: 2.53.3 Release: 0 Summary: The Prometheus monitoring system and time series database License: Apache-2.0 @@ -47,6 +47,8 @@ Source9: PACKAGING_README.md Patch1: 0001-Do-not-force-the-pure-Go-name-resolver.patch # Lifted from Debian's prometheus package Patch2: 0002-Default-settings.patch +# https://github.com/prometheus/prometheus/pull/14373 +Patch3: 0003-Bump-go-retryablehttp.patch BuildRequires: fdupes %if 0%{?suse_version} == 1500 && 0%{?sle_version} < 150300 BuildRequires: firewall-macros @@ -55,7 +57,6 @@ BuildRequires: firewall-macros # with -buildmode=pie BuildRequires: glibc-devel-static BuildRequires: golang-github-prometheus-promu >= 0.14.0 -BuildRequires: golang-packaging BuildRequires: golang(API) >= 1.21 BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} >= 1500 @@ -68,8 +69,6 @@ Provides: prometheus = %{version} ExcludeArch: s390 %systemd_ordering -%go_nostrip - %description Prometheus's main features are: - a multi-dimensional data model (time series identified by metric name and key/value pairs) @@ -85,8 +84,15 @@ Prometheus's main features are: %autosetup -D -a2 -p1 -n prometheus-%{version} %build -%goprep github.com/prometheus/prometheus -GOPATH=%{_builddir}/go promu build -v +%ifarch i586 s390x armv7hl armv7l armv7l:armv6l:armv5tel armv6hl +export BUILD_CGO_FLAG="--cgo" +%endif +export GOFLAGS="-buildmode=pie" +promu build -v $BUILD_CGO_FLAG + +%check +./prometheus --version +./promtool --version %install install -D -m0755 %{_builddir}/prometheus-%{version}/prometheus %{buildroot}/%{_bindir}/prometheus @@ -114,7 +120,6 @@ install -Dd -m 0750 %{buildroot}%{_localstatedir}/lib/prometheus/data install -Dd -m 0750 %{buildroot}%{_localstatedir}/lib/prometheus/metrics install -D -m0644 %{SOURCE7} %{buildroot}/%{_defaultlicensedir}/%{name}/npm_licenses.tar.bz2 -%gofilelist %fdupes %{buildroot}/%{_prefix} diff --git a/npm_licenses.tar.bz2 b/npm_licenses.tar.bz2 index ef97946..506bf6c 100644 --- a/npm_licenses.tar.bz2 +++ b/npm_licenses.tar.bz2 @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:18a425937e13491f102c23e14b1e4d648cb41135cb011b845d0dd2ca4e7d56d4 -size 161317 +oid sha256:28c7bbab7f499a58c33980eff270364f4d98727629c7678cf19374aa1fe8e668 +size 161912 diff --git a/prometheus-2.47.2.tar.gz b/prometheus-2.47.2.tar.gz deleted file mode 100644 index e4da86d..0000000 --- a/prometheus-2.47.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5bbc6c2ea0efdb3881af2032e09d5ca048b34ec4697387da1bea34a41eb22d45 -size 6453673 diff --git a/prometheus-2.53.3.tar.gz b/prometheus-2.53.3.tar.gz new file mode 100644 index 0000000..53a7478 --- /dev/null +++ b/prometheus-2.53.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:652861e3c598ec6b85ff43f8826b14f0e18a9862cf7d3dabc721a404b8c48af0 +size 21462465 diff --git a/vendor.tar.gz b/vendor.tar.gz index 5c70ce7..f537f2f 100644 --- a/vendor.tar.gz +++ b/vendor.tar.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:0281b562d06781938e206885739664aba255f10d2e3ede0565bce6d3f8bb33c6 -size 13229802 +oid sha256:b1f94556bb4c3160150ce2dd913f7d487f8643b768893b931e778c5246a98f0b +size 15122627 diff --git a/web-ui-2.47.2.tar.gz b/web-ui-2.47.2.tar.gz deleted file mode 100644 index 1090e41..0000000 --- a/web-ui-2.47.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c2184af4d8f7332aad5e3ea109fe4f6f92cc80fb2f6c26f3a36272c0ec27f3b8 -size 3569204 diff --git a/web-ui-2.53.3.tar.gz b/web-ui-2.53.3.tar.gz new file mode 100644 index 0000000..6eb84e9 --- /dev/null +++ b/web-ui-2.53.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:82e05449a15b0f68e99a7da37bb56d8ff908f3c6ad98e2d320bdc082b4887d26 +size 3603428