forked from pool/golang-github-prometheus-prometheus
Accepting request 890921 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/890921 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=12
This commit is contained in:
commit
68a8b2e126
@ -1,4 +1,4 @@
|
||||
From 7953e106d8afa5ba660396c1c59bcc674ef3a404 Mon Sep 17 00:00:00 2001
|
||||
From dca10001054ba4f61a8be3f4ef67223509a26683 Mon Sep 17 00:00:00 2001
|
||||
From: Jan Fajerski <jfajerski@suse.com>
|
||||
Date: Fri, 8 Feb 2019 09:17:06 +0100
|
||||
Subject: [PATCH 1/3] Do not force the pure Go name resolver
|
||||
@ -15,18 +15,18 @@ Signed-off-by: Jan Fajerski <jfajerski@suse.com>
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/.promu.yml b/.promu.yml
|
||||
index caaa63a55..f75af963d 100644
|
||||
index f52a646de..782f973a8 100644
|
||||
--- a/.promu.yml
|
||||
+++ b/.promu.yml
|
||||
@@ -10,7 +10,7 @@ build:
|
||||
path: ./cmd/prometheus
|
||||
- name: promtool
|
||||
path: ./cmd/promtool
|
||||
- flags: -mod=vendor -a -tags netgo,builtinassets
|
||||
- flags: -a -tags netgo,builtinassets
|
||||
+ flags: -mod=vendor -a -tags builtinassets
|
||||
ldflags: |
|
||||
-X github.com/prometheus/common/version.Version={{.Version}}
|
||||
-X github.com/prometheus/common/version.Revision={{.Revision}}
|
||||
--
|
||||
2.29.2
|
||||
2.26.2
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
From 129223e15588c384c39b279213c81ba24e2f7ac9 Mon Sep 17 00:00:00 2001
|
||||
From 7860b67a0a684d2d51087e323b780410031d83af Mon Sep 17 00:00:00 2001
|
||||
From: Jan Fajerski <jfajerski@suse.com>
|
||||
Date: Fri, 8 Feb 2019 09:28:12 +0100
|
||||
Subject: [PATCH 2/3] Default settings
|
||||
@ -9,10 +9,10 @@ Signed-off-by: Jan Fajerski <jfajerski@suse.com>
|
||||
1 file changed, 4 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/cmd/prometheus/main.go b/cmd/prometheus/main.go
|
||||
index fa6b6fa88..ac9f9dcfa 100644
|
||||
index 37a7f3535..ae43ded89 100644
|
||||
--- a/cmd/prometheus/main.go
|
||||
+++ b/cmd/prometheus/main.go
|
||||
@@ -147,7 +147,7 @@ func main() {
|
||||
@@ -187,7 +187,7 @@ func main() {
|
||||
a.HelpFlag.Short('h')
|
||||
|
||||
a.Flag("config.file", "Prometheus configuration file path.").
|
||||
@ -21,7 +21,7 @@ index fa6b6fa88..ac9f9dcfa 100644
|
||||
|
||||
a.Flag("web.listen-address", "Address to listen on for UI, API, and telemetry.").
|
||||
Default("0.0.0.0:9090").StringVar(&cfg.web.ListenAddress)
|
||||
@@ -177,10 +177,10 @@ func main() {
|
||||
@@ -219,10 +219,10 @@ func main() {
|
||||
Default("false").BoolVar(&cfg.web.EnableAdminAPI)
|
||||
|
||||
a.Flag("web.console.templates", "Path to the console template directory, available at /consoles.").
|
||||
@ -34,7 +34,7 @@ index fa6b6fa88..ac9f9dcfa 100644
|
||||
|
||||
a.Flag("web.page-title", "Document title of Prometheus instance.").
|
||||
Default("Prometheus Time Series Collection and Processing Server").StringVar(&cfg.web.PageTitle)
|
||||
@@ -189,7 +189,7 @@ func main() {
|
||||
@@ -231,7 +231,7 @@ func main() {
|
||||
Default(".*").StringVar(&cfg.corsRegexString)
|
||||
|
||||
a.Flag("storage.tsdb.path", "Base path for metrics storage.").
|
||||
@ -44,5 +44,5 @@ index fa6b6fa88..ac9f9dcfa 100644
|
||||
a.Flag("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)
|
||||
--
|
||||
2.29.2
|
||||
2.26.2
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
6
_service
6
_service
@ -4,12 +4,12 @@
|
||||
<param name="scm">git</param>
|
||||
<param name="exclude">.git</param>
|
||||
<param name="versionformat">@PARENT_TAG@</param>
|
||||
<param name="revision">v2.22.1</param>
|
||||
<param name="revision">v2.26.0</param>
|
||||
<param name="versionrewrite-pattern">v(.*)</param>
|
||||
</service>
|
||||
<service name="recompress" mode="disabled">
|
||||
<param name="file">prometheus-*.tar</param>
|
||||
<param name="compression">xz</param>
|
||||
<param name="file">*.tar</param>
|
||||
<param name="compression">gz</param>
|
||||
</service>
|
||||
<service name="set_version" mode="disabled">
|
||||
<param name="basename">prometheus</param>
|
||||
|
@ -1,3 +1,88 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue May 4 14:35:58 UTC 2021 - Witek Bedyk <witold.bedyk@suse.com>
|
||||
|
||||
- Add tarball with vendor modules and web assets
|
||||
- Uyuni: Read formula data from exporters map
|
||||
- Uyuni: Add support for TLS targets
|
||||
+ Changed:
|
||||
* 0003-Add-Uyuni-service-discovery.patch
|
||||
* 0002-Default-settings.patch Changed
|
||||
* 0003-Add-Uyuni-service-discovery.patch
|
||||
|
||||
- Upgrade to upstream version 2.26.0
|
||||
+ Changes
|
||||
* Alerting: Using Alertmanager v2 API by default. #8626
|
||||
* Prometheus/Promtool: Binaries are now printing help and usage to stdout instead of stderr. #8542
|
||||
+ Features
|
||||
* Remote: Add support for AWS SigV4 auth method for remote_write. #8509
|
||||
* PromQL: Allow negative offsets. Behind --enable-feature=promql-negative-offset flag. #8487
|
||||
* UI: Add advanced auto-completion, syntax highlighting and linting to graph page query input. #8634
|
||||
+ Enhancements
|
||||
* PromQL: Add last_over_time, sgn, clamp functions. #8457
|
||||
* Scrape: Add support for specifying type of Authorization header credentials with Bearer by default. #8512
|
||||
* Scrape: Add follow_redirects option to scrape configuration. #8546
|
||||
* Remote: Allow retries on HTTP 429 response code for remote_write. #8237 #8477
|
||||
* Remote: Allow configuring custom headers for remote_read. #8516
|
||||
* UI: Hitting Enter now triggers new query. #8581
|
||||
* UI: Better handling of long rule and names on the /rules and /targets pages. #8608 #8609
|
||||
* UI: Add collapse/expand all button on the /targets page. #8486
|
||||
|
||||
- Upgrade to upstream version 2.25.0
|
||||
+ Features
|
||||
* Include a new `--enable-feature=` flag that enables experimental features.
|
||||
+ Enhancements
|
||||
* Add optional name property to testgroup for better test failure output. #8440
|
||||
* Add warnings into React Panel on the Graph page. #8427
|
||||
* TSDB: Increase the number of buckets for the compaction duration metric. #8342
|
||||
* Remote: Allow passing along custom remote_write HTTP headers. #8416
|
||||
* Mixins: Scope grafana configuration. #8332
|
||||
* Kubernetes SD: Add endpoint labels metadata. #8273
|
||||
* UI: Expose total number of label pairs in head in TSDB stats page. #8343
|
||||
* TSDB: Reload blocks every minute, to detect new blocks and enforce retention more often. #8343
|
||||
+ Bug fixes
|
||||
* API: Fix global URL when external address has no port. #8359
|
||||
* Deprecate unused flag --alertmanager.timeout. #8407
|
||||
|
||||
- Upgrade to upstream version 2.24.1
|
||||
+ Enhancements
|
||||
* Cache basic authentication results to significantly improve performance of HTTP endpoints.
|
||||
|
||||
- Upgrade to upstream version 2.24.0
|
||||
+ Features
|
||||
* Add TLS and basic authentication to HTTP endpoints. #8316
|
||||
* promtool: Add check web-config subcommand to check web config files. #8319
|
||||
* promtool: Add tsdb create-blocks-from openmetrics subcommand to backfill metrics data from an OpenMetrics file. #8084
|
||||
+ Enhancements
|
||||
* HTTP API: Fast-fail queries with only empty matchers. #8288
|
||||
* HTTP API: Support matchers for labels API. #8301
|
||||
* promtool: Improve checking of URLs passed on the command line. #7956
|
||||
* SD: Expose IPv6 as a label in EC2 SD. #7086
|
||||
* SD: Reuse EC2 client, reducing frequency of requesting credentials. #8311
|
||||
* TSDB: Add logging when compaction takes more than the block time range. #8151
|
||||
* TSDB: Avoid unnecessary GC runs after compaction. #8276
|
||||
|
||||
- Upgrade to upstream version 2.23.0
|
||||
+ Changes
|
||||
* UI: Make the React UI default. #8142
|
||||
* Remote write: The following metrics were removed/renamed in remote write. #6815
|
||||
> prometheus_remote_storage_succeeded_samples_total was removed and prometheus_remote_storage_samples_total was introduced for all the samples attempted to send.
|
||||
> prometheus_remote_storage_sent_bytes_total was removed and replaced with prometheus_remote_storage_samples_bytes_total and prometheus_remote_storage_metadata_bytes_total.
|
||||
> prometheus_remote_storage_failed_samples_total -> prometheus_remote_storage_samples_failed_total .
|
||||
> prometheus_remote_storage_retried_samples_total -> prometheus_remote_storage_samples_retried_total.
|
||||
> prometheus_remote_storage_dropped_samples_total -> prometheus_remote_storage_samples_dropped_total.
|
||||
> prometheus_remote_storage_pending_samples -> prometheus_remote_storage_samples_pending.
|
||||
* Remote: Do not collect non-initialized timestamp metrics. #8060
|
||||
+ Enhancements
|
||||
* Remote write: Added a metric prometheus_remote_storage_max_samples_per_send for remote write. #8102
|
||||
* TSDB: Make the snapshot directory name always the same length. #8138
|
||||
* TSDB: Create a checkpoint only once at the end of all head compactions. #8067
|
||||
* TSDB: Avoid Series API from hitting the chunks. #8050
|
||||
* TSDB: Cache label name and last value when adding series during compactions making compactions faster. #8192
|
||||
* PromQL: Improved performance of Hash method making queries a bit faster. #8025
|
||||
* promtool: tsdb list now prints block sizes. #7993
|
||||
* promtool: Calculate mint and maxt per test avoiding unnecessary calculations. #8096
|
||||
* SD: Add filtering of services to Docker Swarm SD. #8074
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 9 13:28:50 UTC 2021 - Witek Bedyk <witold.bedyk@suse.com>
|
||||
|
||||
|
@ -27,16 +27,19 @@
|
||||
%endif
|
||||
|
||||
Name: golang-github-prometheus-prometheus
|
||||
Version: 2.22.1
|
||||
Version: 2.26.0
|
||||
Release: 0
|
||||
Summary: The Prometheus monitoring system and time series database
|
||||
License: Apache-2.0
|
||||
Group: System/Monitoring
|
||||
URL: https://prometheus.io/
|
||||
Source: prometheus-%{version}.tar.xz
|
||||
Source1: prometheus.service
|
||||
Source2: prometheus.yml
|
||||
Source3: prometheus.sysconfig
|
||||
Source: prometheus-%{version}.tar.gz
|
||||
# generated after applying Patch3 and running `go mod vendor`
|
||||
# also includes web assets generated with `make assets`
|
||||
Source1: vendor.tar.gz
|
||||
Source2: prometheus.service
|
||||
Source3: prometheus.yml
|
||||
Source4: prometheus.sysconfig
|
||||
Patch1: 0001-Do-not-force-the-pure-Go-name-resolver.patch
|
||||
# Lifted from Debian's prometheus package
|
||||
Patch2: 0002-Default-settings.patch
|
||||
@ -48,7 +51,6 @@ BuildRequires: fdupes
|
||||
BuildRequires: glibc-devel-static
|
||||
BuildRequires: golang-github-prometheus-promu
|
||||
BuildRequires: golang-packaging
|
||||
BuildRequires: xz
|
||||
BuildRequires: golang(API) >= 1.14
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Requires(pre): user(prometheus)
|
||||
@ -70,7 +72,7 @@ Prometheus's main features are:
|
||||
- multiple modes of graphing and dashboarding support
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n prometheus-%{version}
|
||||
%autosetup -a1 -p1 -n prometheus-%{version}
|
||||
|
||||
%build
|
||||
%goprep github.com/prometheus/prometheus
|
||||
@ -79,9 +81,9 @@ GOPATH=%{_builddir}/go promu build -v
|
||||
%install
|
||||
install -D -m0755 %{_builddir}/prometheus-%{version}/prometheus %{buildroot}/%{_bindir}/prometheus
|
||||
install -D -m0755 %{_builddir}/prometheus-%{version}/promtool %{buildroot}/%{_bindir}/promtool
|
||||
install -D -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/prometheus.service
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}/prometheus.service
|
||||
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/prometheus/prometheus.yml
|
||||
install -D -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/prometheus/prometheus.yml
|
||||
|
||||
install -d -m 0755 %{buildroot}%{_sbindir}
|
||||
ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rcprometheus
|
||||
@ -90,7 +92,7 @@ install -m 0755 -d %{buildroot}%{_datarootdir}/prometheus
|
||||
cp -fr console_libraries/ consoles/ %{buildroot}%{_datarootdir}/prometheus
|
||||
|
||||
install -m 0755 -d %{buildroot}%{_fillupdir}
|
||||
install -m 0644 %{SOURCE3} %{buildroot}%{_fillupdir}/sysconfig.prometheus
|
||||
install -m 0644 %{SOURCE4} %{buildroot}%{_fillupdir}/sysconfig.prometheus
|
||||
|
||||
install -Dd -m 0750 %{buildroot}%{_localstatedir}/lib/prometheus
|
||||
install -Dd -m 0750 %{buildroot}%{_localstatedir}/lib/prometheus/data
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:56fa74d4989d05e3585a784f44961aca9eaac9cbfc0cc07dbaaf797194bcb6e2
|
||||
size 12706560
|
3
prometheus-2.26.0.tar.gz
Normal file
3
prometheus-2.26.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0d66c6169273f5dabccbc482a13103b635db73135c009f929c8351277aabc75e
|
||||
size 62006663
|
3
vendor.tar.gz
Normal file
3
vendor.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:82c0d517e9ac1393040a2d5ddfdc5cf65100199137c5870c9309f5fbdaf39905
|
||||
size 18078140
|
Loading…
Reference in New Issue
Block a user