head 1.6; access; symbols pkgsrc-2026Q3:1.5.0.16 pkgsrc-2026Q3-base:1.5 pkgsrc-2026Q2:1.5.0.14 pkgsrc-2026Q2-base:1.5 pkgsrc-2026Q1:1.5.0.12 pkgsrc-2026Q1-base:1.5 pkgsrc-2025Q4:1.5.0.10 pkgsrc-2025Q4-base:1.5 pkgsrc-2025Q3:1.5.0.8 pkgsrc-2025Q3-base:1.5 pkgsrc-2025Q2:1.5.0.6 pkgsrc-2025Q2-base:1.5 pkgsrc-2025Q1:1.5.0.4 pkgsrc-2025Q1-base:1.5 pkgsrc-2024Q4:1.5.0.2 pkgsrc-2024Q4-base:1.5 pkgsrc-2024Q3:1.4.0.2 pkgsrc-2024Q3-base:1.4 pkgsrc-2024Q2:1.3.0.20 pkgsrc-2024Q2-base:1.3 pkgsrc-2024Q1:1.3.0.18 pkgsrc-2024Q1-base:1.3 pkgsrc-2023Q4:1.3.0.16 pkgsrc-2023Q4-base:1.3 pkgsrc-2023Q3:1.3.0.14 pkgsrc-2023Q3-base:1.3 pkgsrc-2023Q2:1.3.0.12 pkgsrc-2023Q2-base:1.3 pkgsrc-2023Q1:1.3.0.10 pkgsrc-2023Q1-base:1.3 pkgsrc-2022Q4:1.3.0.8 pkgsrc-2022Q4-base:1.3 pkgsrc-2022Q3:1.3.0.6 pkgsrc-2022Q3-base:1.3 pkgsrc-2022Q2:1.3.0.4 pkgsrc-2022Q2-base:1.3 pkgsrc-2022Q1:1.3.0.2 pkgsrc-2022Q1-base:1.3 pkgsrc-2021Q4:1.2.0.22 pkgsrc-2021Q4-base:1.2 pkgsrc-2021Q3:1.2.0.20 pkgsrc-2021Q3-base:1.2 pkgsrc-2021Q2:1.2.0.18 pkgsrc-2021Q2-base:1.2 pkgsrc-2021Q1:1.2.0.16 pkgsrc-2021Q1-base:1.2 pkgsrc-2020Q4:1.2.0.14 pkgsrc-2020Q4-base:1.2 pkgsrc-2020Q3:1.2.0.12 pkgsrc-2020Q3-base:1.2 pkgsrc-2020Q2:1.2.0.10 pkgsrc-2020Q2-base:1.2 pkgsrc-2020Q1:1.2.0.6 pkgsrc-2020Q1-base:1.2 pkgsrc-2019Q4:1.2.0.8 pkgsrc-2019Q4-base:1.2 pkgsrc-2019Q3:1.2.0.4 pkgsrc-2019Q3-base:1.2 pkgsrc-2019Q2:1.2.0.2 pkgsrc-2019Q2-base:1.2 pkgsrc-2019Q1:1.1.0.2 pkgsrc-2019Q1-base:1.1; locks; strict; comment @# @; 1.6 date 2026.09.26.10.58.29; author tnn; state dead; branches; next 1.5; commitid mIWUTgP3ZceTy7XG; 1.5 date 2024.11.04.18.21.51; author wiz; state Exp; branches; next 1.4; commitid dFRWYb9lzNb8emwF; 1.4 date 2024.09.21.10.32.46; author wiz; state Exp; branches; next 1.3; commitid HWcB3lx83n1X2FqF; 1.3 date 2022.03.11.19.56.00; author tnn; state Exp; branches; next 1.2; commitid a0454uk7o1TBTPvD; 1.2 date 2019.05.20.09.23.00; author adam; state Exp; branches; next 1.1; commitid 7Mn1nlHMCCaOmVnB; 1.1 date 2019.03.17.12.55.13; author tm; state Exp; branches; next ; commitid CRGF9Mux4pPkBIfB; desc @@ 1.6 log @prometheus: update to 3.13.3 From wip/prometheus-lts. pkgsrc changes: - no longer need to maintain web ui manually (uses upstream webui) - removed PKG_SYSCONFSUBDIR (move your config file accordingly!) - removed some patches for data directory defaults; moved this setting to the rc.d script command line instead @ text @$NetBSD: patch-cmd_prometheus_main.go,v 1.5 2024/11/04 18:21:51 wiz Exp $ Add prefix for SYSCONFDIR and VARBASE to store configuration file and metrics data at the correct location. --- cmd/prometheus/main.go.orig 2024-10-22 10:53:52.000000000 +0000 +++ cmd/prometheus/main.go @@@@ -300,7 +300,7 @@@@ func main() { a.HelpFlag.Short('h') a.Flag("config.file", "Prometheus configuration file path."). - Default("prometheus.yml").StringVar(&cfg.configFile) + Default("@@PKG_SYSCONFDIR@@/prometheus.yml").StringVar(&cfg.configFile) a.Flag("web.listen-address", "Address to listen on for UI, API, and telemetry. Can be repeated."). Default("0.0.0.0:9090").StringsVar(&cfg.web.ListenAddresses) @@@@ -347,10 +347,10 @@@@ func main() { Default(supportedRemoteWriteProtoMsgs.Strings()...).SetValue(rwProtoMsgFlagValue(&cfg.web.AcceptRemoteWriteProtoMsgs)) a.Flag("web.console.templates", "Path to the console template directory, available at /consoles."). - Default("consoles").StringVar(&cfg.web.ConsoleTemplatesPath) + Default("@@PKG_SYSCONFDIR@@/consoles").StringVar(&cfg.web.ConsoleTemplatesPath) a.Flag("web.console.libraries", "Path to the console library directory."). - Default("console_libraries").StringVar(&cfg.web.ConsoleLibrariesPath) + Default("@@PKG_SYSCONFDIR@@/console_libraries").StringVar(&cfg.web.ConsoleLibrariesPath) a.Flag("web.page-title", "Document title of Prometheus instance."). Default("Prometheus Time Series Collection and Processing Server").StringVar(&cfg.web.PageTitle) @@@@ -359,7 +359,7 @@@@ func main() { Default(".*").StringVar(&cfg.corsRegexString) serverOnlyFlag(a, "storage.tsdb.path", "Base path for metrics storage."). - Default("data/").StringVar(&cfg.serverStoragePath) + Default("@@VARBASE@@/lib/prometheus/data/").StringVar(&cfg.serverStoragePath) serverOnlyFlag(a, "storage.tsdb.min-block-duration", "Minimum duration of a data block before being persisted. For use in testing."). Hidden().Default("2h").SetValue(&cfg.tsdb.MinBlockDuration) @ 1.5 log @prometheus: update to 2.55.0. ## 2.55.0 / 2024-10-22 * [FEATURE] PromQL: Add experimental `info` function. #14495 * [FEATURE] Support UTF-8 characters in label names - feature flag `utf8-names`. #14482, #14880, #14736, #14727 * [FEATURE] Scraping: Add the ability to set custom `http_headers` in config. #14817 * [FEATURE] Scraping: Support feature flag `created-timestamp-zero-ingestion` in OpenMetrics. #14356, #14815 * [FEATURE] Scraping: `scrape_failure_log_file` option to log failures to a file. #14734 * [FEATURE] OTLP receiver: Optional promotion of resource attributes to series labels. #14200 * [FEATURE] Remote-Write: Support Google Cloud Monitoring authorization. #14346 * [FEATURE] Promtool: `tsdb create-blocks` new option to add labels. #14403 * [FEATURE] Promtool: `promtool test` adds `--junit` flag to format results. #14506 * [FEATURE] TSDB: Add `delayed-compaction` feature flag, for people running many Prometheus to randomize timing. #12532 * [ENHANCEMENT] OTLP receiver: Warn on exponential histograms with zero count and non-zero sum. #14706 * [ENHANCEMENT] OTLP receiver: Interrupt translation on context cancellation/timeout. #14612 * [ENHANCEMENT] Remote Read client: Enable streaming remote read if the server supports it. #11379 * [ENHANCEMENT] Remote-Write: Don't reshard if we haven't successfully sent a sample since last update. #14450 * [ENHANCEMENT] PromQL: Delay deletion of `__name__` label to the end of the query evaluation. This is **experimental** and enabled under the feature-flag `promql-delayed-name-removal`. #14477 * [ENHANCEMENT] PromQL: Experimental `sort_by_label` and `sort_by_label_desc` sort by all labels when label is equal. #14655, #14985 * [ENHANCEMENT] PromQL: Clarify error message logged when Go runtime panic occurs during query evaluation. #14621 * [ENHANCEMENT] PromQL: Use Kahan summation for better accuracy in `avg` and `avg_over_time`. #14413 * [ENHANCEMENT] Tracing: Improve PromQL tracing, including showing the operation performed for aggregates, operators, and calls. #14816 * [ENHANCEMENT] API: Support multiple listening addresses. #14665 * [ENHANCEMENT] TSDB: Backward compatibility with upcoming index v3. #14934 * [PERF] TSDB: Query in-order and out-of-order series together. #14354, #14693, #14714, #14831, #14874, #14948, #15120 * [PERF] TSDB: Streamline reading of overlapping out-of-order head chunks. #14729 * [BUGFIX] PromQL: make sort_by_label stable. #14985 * [BUGFIX] SD: Fix dropping targets (with feature flag `new-service-discovery-manager`). #13147 * [BUGFIX] SD: Stop storing stale targets (with feature flag `new-service-discovery-manager`). #13622 * [BUGFIX] Scraping: exemplars could be dropped in protobuf scraping. #14810 * [BUGFIX] Remote-Write: fix metadata sending for experimental Remote-Write V2. #14766 * [BUGFIX] Remote-Write: Return 4xx not 5xx when timeseries has duplicate label. #14716 * [BUGFIX] Experimental Native Histograms: many fixes for incorrect results, panics, warnings. #14513, #14575, #14598, #14609, #14611, #14771, #14821 * [BUGFIX] TSDB: Only count unknown record types in `record_decode_failures_total` metric. #14042 @ text @d1 1 a1 1 $NetBSD: patch-cmd_prometheus_main.go,v 1.4 2024/09/21 10:32:46 wiz Exp $ @ 1.4 log @prometheus: update to 2.54.1. 2.54.1 [BUGFIX] Scraping: allow multiple samples on same series, with explicit timestamps. #14685 [BUGFIX] Docker SD: fix crash in match_first_network mode when container is reconnected to a new network. #14654 [BUGFIX] PromQL: fix experimental native histogram counter reset detection on stale samples. #14514 [BUGFIX] PromQL: fix experimental native histograms getting corrupted due to vector selector bug in range queries. #14538 [BUGFIX] PromQL: fix experimental native histogram memory corruption when using histogram_count or histogram_sum. #14605 2.54.0 Release 2.54 brings a release candidate of a major new version of Remote Write: 2.0. This is experimental at this time and may still change. Remote-write v2 is enabled by default, but can be disabled via feature-flag web.remote-write-receiver.accepted-protobuf-messages. [CHANGE] Remote-Write: highest_timestamp_in_seconds and queue_highest_sent_timestamp_seconds metrics now initialized to 0. #14437 [CHANGE] API: Split warnings from info annotations in API response. #14327 [FEATURE] Remote-Write: Version 2.0 experimental, plus metadata in WAL via feature flag metadata-wal-records (defaults on). #14395,#14427,#14444 [FEATURE] PromQL: add limitk() and limit_ratio() aggregation operators. #12503 [ENHANCEMENT] PromQL: Accept underscores in literal numbers, e.g. 1_000_000 for 1 million. #12821 [ENHANCEMENT] PromQL: float literal numbers and durations are now interchangeable (experimental). Example: time() - my_timestamp > 10m. #9138 [ENHANCEMENT] PromQL: use Kahan summation for sum(). #14074,#14362 [ENHANCEMENT] PromQL (experimental native histograms): Optimize histogram_count and histogram_sum functions. #14097 [ENHANCEMENT] TSDB: Better support for out-of-order experimental native histogram samples. #14438 [ENHANCEMENT] TSDB: Optimise seek within index. #14393 [ENHANCEMENT] TSDB: Optimise deletion of stale series. #14307 [ENHANCEMENT] TSDB: Reduce locking to optimise adding and removing series. #13286,#14286 [ENHANCEMENT] TSDB: Small optimisation: streamline special handling for out-of-order data. #14396,#14584 [ENHANCEMENT] Regexps: Optimize patterns with multiple prefixes. #13843,#14368 [ENHANCEMENT] Regexps: Optimize patterns containing multiple literal strings. #14173 [ENHANCEMENT] AWS SD: expose Primary IPv6 addresses as __meta_ec2_primary_ipv6_addresses. #14156 [ENHANCEMENT] Docker SD: add MatchFirstNetwork for containers with multiple networks. #10490 [ENHANCEMENT] OpenStack SD: Use flavor.original_name if available. #14312 [ENHANCEMENT] UI (experimental native histograms): more accurate representation. #13680,#14430 [ENHANCEMENT] Agent: out_of_order_time_window config option now applies to agent. #14094 [ENHANCEMENT] Notifier: Send any outstanding Alertmanager notifications when shutting down. #14290 [ENHANCEMENT] Rules: Add label-matcher support to Rules API. #10194 [ENHANCEMENT] HTTP API: Add url to message logged on error while sending response. #14209 [BUGFIX] CLI: escape | characters when generating docs. #14420 [BUGFIX] PromQL (experimental native histograms): Fix some binary operators between native histogram values. #14454 [BUGFIX] TSDB: LabelNames API could fail during compaction. #14279 [BUGFIX] TSDB: Fix rare issue where pending OOO read can be left dangling if creating querier fails. #14341 [BUGFIX] TSDB: fix check for context cancellation in LabelNamesFor. #14302 [BUGFIX] Rules: Fix rare panic on reload. #14366 [BUGFIX] Config: In YAML marshalling, do not output a regexp field if it was never set. #14004 [BUGFIX] Remote-Write: reject samples with future timestamps. #14304 [BUGFIX] Remote-Write: Fix data corruption in remote write if max_sample_age is applied. #14078 [BUGFIX] Notifier: Fix Alertmanager discovery not updating under heavy load. #14174 [BUGFIX] Regexes: some Unicode characters were not matched by case-insensitive comparison. #14170,#14299 [BUGFIX] Remote-Read: Resolve occasional segmentation fault on query. #14515 @ text @d1 1 a1 1 $NetBSD: patch-cmd_prometheus_main.go,v 1.3 2022/03/11 19:56:00 tnn Exp $ d5 1 a5 1 --- cmd/prometheus/main.go.orig 2024-08-27 10:44:00.000000000 +0000 d7 1 a7 1 @@@@ -288,7 +288,7 @@@@ func main() { d14 3 a16 3 a.Flag("web.listen-address", "Address to listen on for UI, API, and telemetry."). Default("0.0.0.0:9090").StringVar(&cfg.web.ListenAddress) @@@@ -335,10 +335,10 @@@@ func main() { d29 1 a29 1 @@@@ -347,7 +347,7 @@@@ func main() { @ 1.3 log @prometheus: update to 2.33.5 2.33.0 / 2022-01-29 [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. + bugfixes @ text @d1 1 a1 1 $NetBSD: patch-cmd_prometheus_main.go,v 1.2 2019/05/20 09:23:00 adam Exp $ d5 1 a5 1 --- cmd/prometheus/main.go.orig 2022-03-08 16:34:32.000000000 +0000 d7 1 a7 1 @@@@ -226,7 +226,7 @@@@ func main() { d16 2 a17 2 @@@@ -261,10 +261,10 @@@@ func main() { Default("false").BoolVar(&cfg.web.EnableRemoteWriteReceiver) d29 1 a29 1 @@@@ -273,7 +273,7 @@@@ func main() { @ 1.2 log @prometheus: updated to 2.9.2 2.9.2: [BUGFIX] Make sure subquery range is taken into account for selection [BUGFIX] Exhaust every request body before closing it [BUGFIX] Cmd/promtool: return errors from rule evaluations [BUGFIX] Remote Storage: string interner should not panic in release [BUGFIX] Fix memory allocation regression in mergedPostings. 2.9.1: [BUGFIX] Discovery/kubernetes: fix missing label sanitization [BUGFIX] Remote_write: Prevent reshard concurrent with calling stop 2.9.0: This releases uses Go 1.12, which includes a change in how memory is released to Linux. This will cause RSS to be reported as higher, however this is harmless and the memory is available to the kernel when it needs it. [CHANGE/ENHANCEMENT] Update Consul to support catalog.ServiceMultipleTags. [FEATURE] Add honor_timestamps scrape option. [ENHANCEMENT] Discovery/kubernetes: add present labels for labels/annotations. [ENHANCEMENT] OpenStack SD: Add ProjectID and UserID meta labels. [ENHANCEMENT] Add GODEBUG and retention to the runtime page. [ENHANCEMENT] Add support for POSTing to /series endpoint. [ENHANCEMENT] Support PUT methods for Lifecycle and Admin APIs. [ENHANCEMENT] Scrape: Add global jitter for HA server. [ENHANCEMENT] Check for cancellation on every step of a range evaluation. [ENHANCEMENT] String interning for labels & values in the remote_write path. [ENHANCEMENT] Don't lose the scrape cache on a failed scrape. [ENHANCEMENT] Reload cert files from disk automatically. [ENHANCEMENT] Use fixed length millisecond timestamp format for logs. [ENHANCEMENT] Performance improvements for postings. [BUGFIX] Remote Write: fix checkpoint reading. [BUGFIX] Check if label value is valid when unmarshaling external labels from YAML. [BUGFIX] Promparse: sort all labels when parsing. [BUGFIX] Reload rules: copy state on both name and labels. [BUGFIX] Exponentation operator to drop metric name in result of operation. [BUGFIX] Config: resolve more file paths. [BUGFIX] Promtool: resolve relative paths in alert test files. [BUGFIX] Set TLSHandshakeTimeout in HTTP transport. [BUGFIX] Use fsync to be more resilient to machine crashes. [BUGFIX] Keep series that are still in WAL in checkpoints. [BUGFIX] Fix output sample values for scalar-to-vector comparison operations. @ text @d1 1 a1 1 $NetBSD: patch-cmd_prometheus_main.go,v 1.1 2019/03/17 12:55:13 tm Exp $ d5 1 a5 1 --- cmd/prometheus/main.go.orig 2019-04-24 15:30:33.000000000 +0000 d7 1 a7 1 @@@@ -133,7 +133,7 @@@@ func main() { d16 2 a17 2 @@@@ -163,10 +163,10 @@@@ func main() { Default("false").BoolVar(&cfg.web.EnableAdminAPI) d29 1 a29 1 @@@@ -175,7 +175,7 @@@@ func main() { d32 3 a34 3 a.Flag("storage.tsdb.path", "Base path for metrics storage."). - Default("data/").StringVar(&cfg.localStoragePath) + Default("@@VARBASE@@/lib/prometheus/data/").StringVar(&cfg.localStoragePath) d36 1 a36 1 a.Flag("storage.tsdb.min-block-duration", "Minimum duration of a data block before being persisted. For use in testing."). @ 1.1 log @prometheus: import version 2.8.0 The Prometheus monitoring system and time series database. Prometheus, a Cloud Native Computing Foundation project, is a systems and service monitoring system. It collects metrics from configured targets at given intervals, evaluates rule expressions, displays the results, and can trigger alerts if some condition is observed to be true. @ text @d1 1 a1 1 $NetBSD$ d5 1 a5 1 --- cmd/prometheus/main.go.orig 2019-03-12 04:09:20.000000000 +0000 d16 1 a16 1 @@@@ -163,16 +163,16 @@@@ func main() { d29 2 @