1
0

Compare commits

...

130 Commits

Author SHA256 Message Date
9ba54a1663 Accepting request 1248636 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/1248636
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=55
2025-02-27 13:49:52 +00:00
Witek Bedyk
955a03bb25 update to 3.2.1
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=124
2025-02-26 10:44:55 +00:00
84cba29c69 Accepting request 1248102 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/1248102
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=54
2025-02-25 15:39:39 +00:00
Witek Bedyk
8dc14929eb update to 3.2.0
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=122
2025-02-24 11:18:48 +00:00
856a7343c1 Accepting request 1238174 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/1238174
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=53
2025-01-17 17:37:09 +00:00
44d1e8c215 update to 3.1.0
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=120
2025-01-16 06:49:23 +00:00
be23d61594 Accepting request 1231578 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/1231578
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=52
2024-12-17 18:22:40 +00:00
Witek Bedyk
3cb6446fe1 Accepting request 1231352 from home:witekbedyk:branches:server:monitoring
Explicitly set CGO_ENABLED=1 for architectures which require it

OBS-URL: https://build.opensuse.org/request/show/1231352
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=118
2024-12-16 20:29:18 +00:00
Witek Bedyk
11a3929148 Accepting request 1230590 from home:witekbedyk:branches:server:monitoring
- Packaging improvements:
  * Require Go >= 1.22 for building
  * Drop BuildRequires: golang-packaging
  * Build PIE

OBS-URL: https://build.opensuse.org/request/show/1230590
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=117
2024-12-13 09:26:04 +00:00
86ba1d9abf Accepting request 1228498 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/1228498
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=51
2024-12-06 13:25:09 +00:00
Witek Bedyk
4be67c824a update to 3.0.1
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=115
2024-12-05 11:28:22 +00:00
5a497adb7f Accepting request 1224824 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/1224824
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=50
2024-11-18 18:56:58 +00:00
Witek Bedyk
00a7f19859 Accepting request 1224502 from home:ojkastl_buildservice:Branch_server_monitoring
update to 2.55.1

OBS-URL: https://build.opensuse.org/request/show/1224502
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=113
2024-11-18 10:36:22 +00:00
ad7fc9402f Accepting request 1224203 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/1224203
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=49
2024-11-15 14:37:58 +00:00
e3969aa569 update to 2.55.0
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=111
2024-11-14 13:18:08 +00:00
189b2d5ed0 Accepting request 1202224 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/1202224
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=48
2024-09-22 09:05:51 +00:00
Martin Hauke
0098cf7301 update to 2.54.1
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=109
2024-09-20 13:43:07 +00:00
a7e7d17af4 Accepting request 1199703 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/1199703
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=47
2024-09-10 19:12:35 +00:00
cf46897d64 Accepting request 1190881 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/1190881
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=46
2024-08-01 20:03:56 +00:00
634dea69ec Accepting request 1190757 from home:witekbedyk:branches:server:monitoring
Update changelog with CVE reference

OBS-URL: https://build.opensuse.org/request/show/1190757
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=105
2024-08-01 07:02:19 +00:00
9c4087f36b Accepting request 1184874 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/1184874
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=45
2024-07-03 18:29:20 +00:00
Witek Bedyk
730c0e077d Accepting request 1183869 from home:witekbedyk:branches:server:monitoring
- Bump go-retryablehttp to version 0.7.7
  (CVE-2024-6104, bsc#1227038)
- Add 0003-Bump-go-retryablehttp.patch

OBS-URL: https://build.opensuse.org/request/show/1183869
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=103
2024-07-02 13:06:04 +00:00
9bb68f385c Accepting request 1183864 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/1183864
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=44
2024-07-01 09:18:33 +00:00
Witek Bedyk
a070c37d2e update to 2.53.0
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=101
2024-06-28 14:43:56 +00:00
f8fdb77d42 Accepting request 1173992 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/1173992
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=43
2024-05-15 19:23:58 +00:00
Dirk Stoecker
a75727fdcb Accepting request 1172861 from home:ojkastl_buildservice:Branch_server_monitoring
update to 2.52.0

OBS-URL: https://build.opensuse.org/request/show/1172861
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=99
2024-05-14 13:26:18 +00:00
ed3ecaa032 Accepting request 1143228 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/1143228
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=42
2024-02-01 17:04:14 +00:00
Witek Bedyk
83fe32cc64 Accepting request 1141789 from home:ojkastl_buildservice:Branch_server_monitoring
update to 2.49.1

OBS-URL: https://build.opensuse.org/request/show/1141789
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=97
2024-02-01 08:58:00 +00:00
13c7173498 Accepting request 1139946 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/1139946
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=41
2024-01-21 22:08:00 +00:00
Witek Bedyk
1e13a5adef Accepting request 1139237 from home:witekbedyk:branches:server:monitoring
Add CVE reference to the changelog

OBS-URL: https://build.opensuse.org/request/show/1139237
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=95
2024-01-19 13:14:08 +00:00
e97cddbe2c Accepting request 1132627 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/1132627
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=40
2023-12-12 18:31:46 +00:00
Witek Bedyk
7024504e46 Accepting request 1132268 from home:ojkastl_buildservice:Branch_server_monitoring
update to 2.48.1

OBS-URL: https://build.opensuse.org/request/show/1132268
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=93
2023-12-12 09:43:00 +00:00
288b978080 Accepting request 1126918 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/1126918
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=39
2023-11-17 19:49:02 +00:00
Martin Hauke
2a228c481e Accepting request 1126861 from home:ojkastl_buildservice:Branch_server_monitoring
update to 2.48.0

OBS-URL: https://build.opensuse.org/request/show/1126861
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=91
2023-11-16 14:41:15 +00:00
8f32345803 Accepting request 1118889 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/1118889
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=38
2023-10-20 21:16:16 +00:00
Witek Bedyk
a3bca0e49e Accepting request 1118810 from home:ojkastl_buildservice:Branch_server_monitoring
update to 2.47.2

OBS-URL: https://build.opensuse.org/request/show/1118810
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=89
2023-10-19 10:51:12 +00:00
f82b52b63a Accepting request 1115803 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/1115803
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=37
2023-10-06 19:12:36 +00:00
Dirk Stoecker
1c6d5dd964 Accepting request 1115630 from home:ojkastl_buildservice:Branch_server_monitoring
update to 2.47.1

OBS-URL: https://build.opensuse.org/request/show/1115630
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=87
2023-10-05 11:02:54 +00:00
510e72c50e Accepting request 1112327 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/1112327
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=36
2023-09-21 20:13:20 +00:00
Witek Bedyk
440efff619 Accepting request 1109282 from home:ojkastl_buildservice:Branch_server_monitoring
update to 2.47.0

OBS-URL: https://build.opensuse.org/request/show/1109282
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=85
2023-09-19 15:02:38 +00:00
5b63fe17e3 Accepting request 1104425 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/1104425
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=35
2023-08-18 17:27:34 +00:00
Witek Bedyk
75c0c77ba8 Accepting request 1103471 from home:witekbedyk:branches:server:monitoring
Add CVE reference to the changelog

OBS-URL: https://build.opensuse.org/request/show/1103471
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=83
2023-08-17 14:45:48 +00:00
8fbf202bf1 Accepting request 1101769 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/1101769
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=34
2023-08-03 15:27:05 +00:00
Witek Bedyk
c40d2b6e1b Accepting request 1100655 from home:ojkastl_buildservice:Branch_server_monitoring
update to 2.46.0

OBS-URL: https://build.opensuse.org/request/show/1100655
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=81
2023-08-01 15:25:05 +00:00
edbd84f1ec Accepting request 1096759 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/1096759
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=33
2023-07-05 13:30:41 +00:00
Witek Bedyk
f8eef95c93 Accepting request 1095301 from home:ojkastl_buildservice:Branch_server_monitoring
update to 2.45.0

OBS-URL: https://build.opensuse.org/request/show/1095301
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=79
2023-07-04 11:30:28 +00:00
983baa6bc0 Accepting request 1087896 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/1087896
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=32
2023-05-21 17:08:07 +00:00
Witek Bedyk
b43b413cd2 Accepting request 1087461 from home:ojkastl_buildservice:Branch_server_monitoring
- update to 2.44.0:
- rebase patch 0001-Do-not-force-the-pure-Go-name-resolver.patch
  - remove builtinassets from flags, as it is already used in the tags above

OBS-URL: https://build.opensuse.org/request/show/1087461
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=77
2023-05-19 08:00:25 +00:00
c40e7c160d Accepting request 1085537 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/1085537
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=31
2023-05-09 11:08:05 +00:00
Witek Bedyk
147332e271 Accepting request 1084944 from home:ojkastl_buildservice:Branch_server_monitoring
update to 2.43.1

OBS-URL: https://build.opensuse.org/request/show/1084944
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=75
2023-05-08 13:54:31 +00:00
8ba49b5508 Accepting request 1079941 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/1079941
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=30
2023-04-18 13:52:20 +00:00
Witek Bedyk
0caef3676d Accepting request 1079209 from home:ojkastl_buildservice:Branch_server_monitoring
Remove npm_licenses.tar.bz2 during "make clean"

OBS-URL: https://build.opensuse.org/request/show/1079209
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=73
2023-04-17 13:52:44 +00:00
0103d2892c Accepting request 1079260 from server:monitoring
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1079260
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=29
2023-04-14 11:58:37 +00:00
71baef2f89 Accepting request 1077759 from home:expeehaa:branches:server:monitoring
- Remove web-ui archives during "make clean".

OBS-URL: https://build.opensuse.org/request/show/1077759
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=71
2023-04-13 13:22:52 +00:00
c4aaccce0b Accepting request 1077528 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/1077528
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=28
2023-04-12 10:50:41 +00:00
Witek Bedyk
7b544c73a9 Accepting request 1077514 from home:witekbedyk:branches:server:monitoring
Require promu >= 0.14.0 for building, due to changes in the process for
building web assets.

OBS-URL: https://build.opensuse.org/request/show/1077514
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=69
2023-04-05 12:45:34 +00:00
Dirk Stoecker
99ed55b359 Accepting request 1073743 from home:ojkastl_buildservice:Branch_server_monitoring
update to 2.43.0

OBS-URL: https://build.opensuse.org/request/show/1073743
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=68
2023-04-05 07:21:18 +00:00
a62d0ebf68 Accepting request 1069476 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/1069476
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=27
2023-03-06 17:54:37 +00:00
3014db3395 Accepting request 1068681 from home:witekbedyk:branches:server:monitoring
Update the changelog

OBS-URL: https://build.opensuse.org/request/show/1068681
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=66
2023-03-05 19:11:06 +00:00
4336279c1b Accepting request 1068675 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/1068675
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=26
2023-03-03 21:24:23 +00:00
Witek Bedyk
0c7e891396 Accepting request 1068670 from home:ojkastl_buildservice:Branch_server_monitoring
- fix 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
- update to 2.42.0:

OBS-URL: https://build.opensuse.org/request/show/1068670
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=64
2023-03-02 11:51:02 +00:00
7bc41f8c76 Accepting request 1061874 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/1061874
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=25
2023-01-30 16:09:47 +00:00
80c7fe49de Accepting request 1057939 from home:ojkastl_buildservice:branches:server:monitoring
massive update to 2.41.0; fails to build with golang-github-prometheus-promu

OBS-URL: https://build.opensuse.org/request/show/1057939
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=62
2023-01-29 13:02:32 +00:00
82072b5aee Accepting request 972477 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/972477
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=24
2022-04-25 21:35:53 +00:00
Witek Bedyk
033f631b8f Accepting request 971198 from home:witekbedyk:branches:server:monitoring
Update changelog for (jsc#SLE-24374, jsc#SLE-24375)

OBS-URL: https://build.opensuse.org/request/show/971198
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=60
2022-04-25 07:19:51 +00:00
9d6c020bc0 Accepting request 967519 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/967519
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=23
2022-04-10 17:05:02 +00:00
Witek Bedyk
8a16a427b6 Accepting request 967506 from home:juliogonzalezgil:branches:server:monitoring
- Build firewalld-prometheus-config only for SUSE Linux Enterprise
  15, 15.1 and 15.2, and require firewalld for it
- firewalld-prometheus-config needs to be a Recommends, not a
  Requires, as prometheus does not require it to run

OBS-URL: https://build.opensuse.org/request/show/967506
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=58
2022-04-07 14:42:16 +00:00
aa79541a2d Accepting request 964196 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/964196
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=22
2022-03-24 21:57:09 +00:00
Witek Bedyk
68dc9fd0a8 Accepting request 962681 from home:witekbedyk:branches:server:monitoring
Create firewalld-prometheus-config subpackage (bsc#1197042)

This is to prevent file conflicts between Firewalld and Prometheus packages in case Prometheus package is built on a different system than the target one (as it is the case for SUSE Manager).

OBS-URL: https://build.opensuse.org/request/show/962681
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=56
2022-03-23 09:14:32 +00:00
d32dc7a94a Accepting request 962677 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/962677
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=21
2022-03-20 19:54:42 +00:00
Witek Bedyk
dbd469994e Accepting request 961620 from home:witekbedyk:branches:server:monitoring
Update 0003-Bump-client_golang-to-1.12.1.patch

OBS-URL: https://build.opensuse.org/request/show/961620
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=54
2022-03-18 12:20:01 +00:00
Witek Bedyk
654923047b Accepting request 960480 from home:witekbedyk:branches:server:monitoring
- Update vendor tarball with prometheus/client_golang 1.12.1
  (bsc#1196338)
  * Added 0003-Bump-client_golang-to-1.12.1.patch

OBS-URL: https://build.opensuse.org/request/show/960480
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=53
2022-03-14 08:21:16 +00:00
3cbdad4dba Accepting request 957241 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/957241
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=20
2022-02-26 16:01:53 +00:00
Witek Bedyk
1b48191ffe Accepting request 957021 from home:witekbedyk:branches:server:monitoring
Fix Firewalld configuration file location (bsc#1196300)

Systemwide Firewalld service configuration files are expected in `/usr/lib/firewalld/services/` instead of current `/usr/lib64/firewalld/services`.

OBS-URL: https://build.opensuse.org/request/show/957021
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=52
2022-02-24 09:29:11 +00:00
2460f3aa20 Accepting request 955904 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/955904
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=19
2022-02-21 16:45:53 +00:00
Patrick Seidensal
522cfa3a17 Accepting request 955900 from home:witekbedyk:branches:server:monitoring
- Require Go 1.16+
- Do not build on s390 architecture.

OBS-URL: https://build.opensuse.org/request/show/955900
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=51
2022-02-18 15:16:31 +00:00
5aaab03a39 Accepting request 949029 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/949029
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=18
2022-01-27 22:16:19 +00:00
Witek Bedyk
b1088df893 Accepting request 947654 from home:witekbedyk:branches:server:monitoring
- Updated patches:
  + Changed:
    * 0002-Default-settings.patch
  + Removed:
    * 0003-Add-Uyuni-service-discovery.patch
- Use obs-service-go_modules
- Upgrade to upstream version 2.32.1 (jsc#SLE-22863)
  + Bugfixes:
    * Scrape: Fix reporting metrics when sample limit is reached
      during the report. #9996
    * Scrape: Ensure that scrape interval and scrape timeout are
      always set. #10023
    * TSDB: Expose and fix bug in iterators' Seek() method. #10030
- Upgrade to upstream version 2.32.0
  + Change:
    * remote-write: Change default max retry time from 100ms to
      5 seconds. #9634
  + Features:
    * Agent: New mode of operation optimized for remote-write only
      scenarios, without local storage.
    * Promtool: Add promtool check service-discovery command. #8970
  + Enhancements:
    * Promtool: Improve test output. #8064
    * Promtool: Use kahan summation for better numerical stability.
    * Remote-write: Reuse memory for marshalling. #9412
    * Scrape: Add scrape_body_size_bytes scrape metric behind the
      --enable-feature=extra-scrape-metrics flag. #9569
    * TSDB: Add windows arm64 support. #9703
    * TSDB: Optimize query by skipping unneeded sorting in TSDB.
    * Templates: Support int and uint as datatypes for template
      formatting. #9680
    * UI: Prefer rate over rad, delta over deg, and count over cos
      in autocomplete. #9688
  + Bugfixes:
    * TSDB: Add more size checks when writing individual sections
      in the index. #9710
    * PromQL: Make deriv() return zero values for constant series.
    * TSDB: Fix panic when checkpoint directory is empty. #9687
    * TSDB: Fix panic, out of order chunks, and race warning during
      WAL replay. #9856
    * UI: Correctly render links for targets with IPv6 addresses
      that contain a Zone ID. #9853
    * Promtool: Fix checking of authorization.credentials_file and
      bearer_token_file fields. #9883
    * Uyuni SD: Fix null pointer exception during initialization.
    * TSDB: Fix queries after a failed snapshot replay. #9980
- Upgrade to upstream version 2.31.1
  + Bugfix:
    * SD: Fix a panic when the experimental discovery manager
      receives targets during a reload. #9656
- Upgrade to upstream version 2.31.0
  + Change:
    * UI: Remove standard PromQL editor in favour of the
      codemirror-based editor. #9452
  + Features:
    * PromQL: Add trigonometric functions and atan2 binary
      operator. #9239 #9248 #9515
    * Remote: Add support for exemplar in the remote write receiver
      endpoint. #9319 #9414
    * SD: Add PuppetDB service discovery. #8883
    * SD: Add Uyuni service discovery. #8190
    * Web: Add support for security-related HTTP headers. #9546
  + Enhancements:
    * Azure SD: Add proxy_url, follow_redirects, tls_config. #9267
    * Backfill: Add --max-block-duration in promtool
      create-blocks-from rules. #9511
    * Config: Print human-readable sizes with unit instead of raw
      numbers. #9361
    * HTTP: Re-enable HTTP/2. #9398
    * Kubernetes SD: Warn user if number of endpoints exceeds
      limit. #9467
    * OAuth2: Add TLS configuration to token requests. #9550
    * PromQL: Several optimizations. #9365 #9360 #9362 #9552
    * PromQL: Make aggregations deterministic in instant queries.
    * Rules: Add the ability to limit number of alerts or series.
    * SD: Experimental discovery manager to avoid restarts upon
      reload.
    * UI: Debounce timerange setting changes. #9359
  + Bugfixes:
    * Backfill: Apply rule labels after query labels. #9421
    * Scrape: Resolve conflicts between multiple exported label
      prefixes. #9479 #9518
    * Scrape: Restart scrape loops when __scrape_interval__ is
      changed. #9551
    * TSDB: Fix memory leak in samples deletion. #9151
    * UI: Use consistent margin-bottom for all alert kinds. #9318
- Upgrade to upstream version 2.30.3
  + Bugfixes:
    * TSDB: Fix panic on failed snapshot replay. #9438
    * TSDB: Don't fail snapshot replay with exemplar storage
      disabled when the snapshot contains exemplars. #9438
- Upgrade to upstream version 2.30.2
  + Bugfix:
    * TSDB: Don't error on overlapping m-mapped chunks during WAL
      replay. #9381
- Upgrade to upstream version 2.30.1
  + Enhancements:
    * Remote Write: Redact remote write URL when used for metric
      label. #9383
    * UI: Redact remote write URL and proxy URL passwords in the
      /config page. #9408
  + Bugfixes:
    * promtool rules backfill: Prevent creation of data before the
      start time. #9339
    * promtool rules backfill: Do not query after the end time.
    * Azure SD: Fix panic when no computername is set. #9387
- Upgrade to upstream version 2.30.0
  + Features:
    * experimental TSDB: Snapshot in-memory chunks on shutdown for
      faster restarts. #7229
    * experimental Scrape: Configure scrape interval and scrape
      timeout via relabeling using __scrape_interval__ and
      __scrape_timeout__ labels respectively. #8911
    * Scrape: Add scrape_timeout_seconds and scrape_sample_limit
      metric. #9247 #9295
  + Enhancements:
    * Scrape: Add --scrape.timestamp-tolerance flag to adjust
      scrape timestamp tolerance when enabled via
      --scrape.adjust-timestamps. #9283
    * Remote Write: Improve throughput when sending exemplars.
    * TSDB: Optimise WAL loading by removing extra map and caching
      min-time #9160
    * promtool: Speed up checking for duplicate rules. #9262/#9306
    * Scrape: Reduce allocations when parsing the metrics. #9299
    * docker_sd: Support host network mode #9125
  + Bugfixes:
    * Exemplars: Fix panic when resizing exemplar storage from 0 to
      a non-zero size. #9286
    * TSDB: Correctly decrement
      prometheus_tsdb_head_active_appenders when the append has no
      samples. #9230
    * promtool rules backfill: Return 1 if backfill was
      unsuccessful. #9303
    * promtool rules backfill: Avoid creation of overlapping
      blocks. #9324
    * config: Fix a panic when reloading configuration with a null
      relabel action. #9224
- Upgrade to upstream version 2.29.2
  + Bugfixes:
    * Fix Kubernetes SD failing to discover Ingress in
      Kubernetes v1.22. #9205
    * Fix data race in loading write-ahead-log (WAL). #9259
- Upgrade to upstream version 2.29.1
  + Bugfixes:
    * TSDB: align atomically accessed int64 to prevent panic in
      32-bit archs. #9192
- Upgrade to upstream version 2.29.0
  + Changes:
    * Promote --storage.tsdb.allow-overlapping-blocks flag to
      stable. #9117
    * Promote --storage.tsdb.retention.size flag to stable. #9004
  + Features:
    * Add Kuma service discovery. #8844
    * Add present_over_time PromQL function. #9097
    * Allow configuring exemplar storage via file and make it
      reloadable. #8974
    * UI: Allow selecting time range with mouse drag. #8977
    * promtool: Add feature flags flag --enable-feature. #8958
    * promtool: Add file_sd file validation. #8950
  + Enhancements:
    * Reduce blocking of outgoing remote write requests from series
      garbage collection. #9109
    * Improve write-ahead-log decoding performance. #9106
    * Improve append performance in TSDB by reducing mutexes usage.
    * Allow configuring max_samples_per_send for remote write
      metadata. #8959
    * Add __meta_gce_interface_ipv4_<name> meta label to GCE
      discovery. #8978
    * Add __meta_ec2_availability_zone_id meta label to EC2
      discovery. #8896
    * Add __meta_azure_machine_computer_name meta label to Azure
      discovery. #9112
    * Add __meta_hetzner_hcloud_labelpresent_<labelname> meta label
      to Hetzner discovery. #9028
    * promtool: Add compaction efficiency to promtool tsdb analyze
      reports. #8940
    * promtool: Allow configuring max block duration for
      backfilling via --max-block-duration flag. #8919
    * UI: Add sorting and filtering to flags page. #8988
    * UI: Improve alerts page rendering performance. #9005
  + Bugfixes:
    * Log when total symbol size exceeds 2^32 bytes, causing
      compaction to fail, and skip compaction. #9104
    * Fix incorrect target_limit reloading of zero value. #9120
    * Fix head GC and pending readers race condition. #9081
    * Fix timestamp handling in OpenMetrics parser. #9008
    * Fix potential duplicate metrics in /federate endpoint when
      specifying multiple matchers. #8885
    * Fix server configuration and validation for authentication
      via client cert. #9123
    * Allow start and end again as label names in PromQL queries.
      They were disallowed since the introduction of @ timestamp
      feature. #9119
- Upgrade to upstream version 2.28.1
  + Bugfixes:
    * HTTP SD: Allow charset specification in Content-Type header.
    * HTTP SD: Fix handling of disappeared target groups. #9019
    * Fix incorrect log-level handling after moving to go-kit/log.
- Upgrade to upstream version 2.28.0
  + Change:
    * UI: Make the new experimental PromQL editor the default.
  + Features:
    * Linode SD: Add Linode service discovery. #8846
    * HTTP SD: Add generic HTTP-based service discovery. #8839
    * Kubernetes SD: Allow configuring API Server access via a
      kubeconfig file. #8811
    * UI: Add exemplar display support to the graphing interface.
    * Consul SD: Add namespace support for Consul Enterprise. #8900
  + Enhancements:
    * Promtool: Allow silencing output when importing / backfilling
      data. #8917
    * Consul SD: Support reading tokens from file. #8926
    * Rules: Add a new .ExternalURL alert field templating
      variable, containing the external URL of the Prometheus
      server. #8878
    * Scrape: Add experimental body_size_limit scrape configuration
      setting to limit the allowed response body size for target
      scrapes. #8833 #8886
    * Kubernetes SD: Add ingress class name label for ingress
      discovery. #8916
    * UI: Show a startup screen with progress bar when the TSDB is
      not ready yet. #8662 #8908 #8909 #8946
    * SD: Add a target creation failure counter
      prometheus_target_sync_failed_total and improve target
      creation failure handling. #8786
    * TSDB: Improve validation of exemplar label set length. #8816
    * TSDB: Add a prometheus_tsdb_clean_start metric that indicates
      whether a TSDB lockfile from a previous run still existed
      upon startup. #8824
  + Bugfixes:
    * UI: In the experimental PromQL editor, fix autocompletion and
      parsing for special float values and improve series metadata
      fetching. #8856
    * TSDB: When merging chunks, split resulting chunks if they
      would contain more than the maximum of 120 samples. #8582
    * SD: Fix the computation of the
      prometheus_sd_discovered_targets metric when using multiple
      service discoveries. #8828

OBS-URL: https://build.opensuse.org/request/show/947654
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=50
2022-01-25 14:07:30 +00:00
f1e522af95 Accepting request 922153 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/922153
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=17
2021-10-05 20:33:32 +00:00
Witek Bedyk
902bd43305 Accepting request 920532 from home:jsegitz:branches:systemdhardening:server:monitoring
Automatic systemd hardening effort by the security team. This has not been tested. For details please see https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort

OBS-URL: https://build.opensuse.org/request/show/920532
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=49
2021-09-29 10:37:53 +00:00
6835598ce6 Accepting request 907767 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/907767
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=16
2021-07-22 20:43:07 +00:00
Witek Bedyk
2b694a36fb Accepting request 907765 from home:witekbedyk:branches:server:monitoring
Add Bugzilla bug reference to changelog.

OBS-URL: https://build.opensuse.org/request/show/907765
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=48
2021-07-22 13:55:11 +00:00
c736ec99c4 Accepting request 905075 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/905075
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=15
2021-07-11 23:24:46 +00:00
Witek Bedyk
c276db8393 Accepting request 904744 from home:witekbedyk:branches:server:monitoring
- Provide and reload firewalld configuration only for:
  + openSUSE Leap 15.0, 15.1, 15.2
  + SUSE SLE15, SLE15 SP1, SLE15 SP2

OBS-URL: https://build.opensuse.org/request/show/904744
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=47
2021-07-08 13:35:59 +00:00
Witek Bedyk
e2e843b7d3 Accepting request 904229 from home:witekbedyk:branches:server:monitoring
Add ECO reference to changelog.

OBS-URL: https://build.opensuse.org/request/show/904229
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=46
2021-07-05 16:04:03 +00:00
d75aae3dcc Accepting request 903100 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/903100
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=14
2021-07-02 11:27:02 +00:00
Witek Bedyk
3718c77008 Accepting request 901736 from home:witekbedyk:branches:server:monitoring
- Refresh patches
  + Changed:
    * 0001-Do-not-force-the-pure-Go-name-resolver.patch
    * 0002-Default-settings.patch
    * 0003-Add-Uyuni-service-discovery.patch
- Upgrade to upstream version 2.27.1
  + Bugfix:
   * SECURITY: Fix arbitrary redirects under the /new endpoint (CVE-2021-29622)  
- Upgrade to upstream version 2.27.0
  + Features:
    * Promtool: Retroactive rule evaluation functionality. #7675
    * Configuration: Environment variable expansion for external labels. Behind --enable-feature=expand-external-labels flag. #8649
    * TSDB: Add a flag(--storage.tsdb.max-block-chunk-segment-size) to control the max chunks file size of the blocks for small Prometheus instances. #8478
    * UI: Add a dark theme. #8604
    * AWS Lightsail Discovery: Add AWS Lightsail Discovery. #8693
    * Docker Discovery: Add Docker Service Discovery. #8629
    * OAuth: Allow OAuth 2.0 to be used anywhere an HTTP client is used. #8761
    * Remote Write: Send exemplars via remote write. Experimental and disabled by default. #8296
  + Enhancements:
    * Digital Ocean Discovery: Add __meta_digitalocean_vpc label. #8642
    * Scaleway Discovery: Read Scaleway secret from a file. #8643
    * Scrape: Add configurable limits for label size and count. #8777
    * UI: Add 16w and 26w time range steps. #8656
    * Templating: Enable parsing strings in humanize functions. #8682
  + Bugfixes:
    * UI: Provide errors instead of blank page on TSDB Status Page. #8654 #8659
    * TSDB: Do not panic when writing very large records to the WAL. #8790
    * TSDB: Avoid panic when mmaped memory is referenced after the file is closed. #8723
    * Scaleway Discovery: Fix nil pointer dereference. #8737
    * Consul Discovery: Restart no longer required after config update with no targets. #8766
- 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
- Uyuni: `hostname` label is now set to FQDN instead of IP
  + Changed:
    * 0003-Add-Uyuni-service-discovery.patch
- Update to upstream version 2.22.1
- Update packaging
  * Remove systemd and shadow hard requirements
  * use systemd-sysusers to configure the user in a dedicated 'system-user-prometheus' subpackage
  * add 'prometheus' package alias
- Update 0003-Add-Uyuni-service-discovery.patch:
  + Add support for Prometheus exporters proxy
- Update change log and spec file
  + Modified spec file: default to golang 1.14 to avoid "have choice" build issues in OBS. 
  + Rebase and update patches for version 2.18.0
  + Changed:  
    * 0001-Do-not-force-the-pure-Go-name-resolver.patch
    * 0002-Default-settings.patch Changed
    * 0003-Add-Uyuni-service-discovery.patch
- Update to 2.18.0 
  + Features 
    * Tracing: Added experimental Jaeger support #7148
  + Changes
    * Federation: Only use local TSDB for federation (ignore remote read). #7096
    * Rules: `rule_evaluations_total` and `rule_evaluation_failures_total` have a `rule_group` label now. #7094
  + Enhancements
    * TSDB: Significantly reduce WAL size kept around after a block cut. #7098
    * Discovery: Add `architecture` meta label for EC2. #7000
  + Bug fixes
    * UI: Fixed wrong MinTime reported by /status. #7182
    * React UI: Fixed multiselect legend on OSX. #6880
    * Remote Write: Fixed blocked resharding edge case. #7122
    * Remote Write: Fixed remote write not updating on relabel configs change. #7073
- Changes from 2.17.2
  + Bug fixes
    * Federation: Register federation metrics #7081
    * PromQL: Fix panic in parser error handling #7132
    * Rules: Fix reloads hanging when deleting a rule group that is being evaluated #7138
    * TSDB: Fix a memory leak when prometheus starts with an empty TSDB WAL #7135
    * TSDB: Make isolation more robust to panics in web handlers #7129 #7136
- Changes from 2.17.1
  + Bug fixes
    * TSDB: Fix query performance regression that increased memory and CPU usage #7051
- Changes from 2.17.0
  + Features 
    * TSDB: Support isolation #6841
    * This release implements isolation in TSDB. API queries and recording rules are
      guaranteed to only see full scrapes and full recording rules. This comes with a
      certain overhead in resource usage. Depending on the situation, there might be
      some increase in memory usage, CPU usage, or query latency.
  + Enhancements
    * PromQL: Allow more keywords as metric names #6933
    * React UI: Add normalization of localhost URLs in targets page #6794
    * Remote read: Read from remote storage concurrently #6770
    * Rules: Mark deleted rule series as stale after a reload #6745
    * Scrape: Log scrape append failures as debug rather than warn #6852
    * TSDB: Improve query performance for queries that partially hit the head #6676
    * Consul SD: Expose service health as meta label #5313
    * EC2 SD: Expose EC2 instance lifecycle as meta label #6914
    * Kubernetes SD: Expose service type as meta label for K8s service role #6684
    * Kubernetes SD: Expose label_selector and field_selector #6807
    * Openstack SD: Expose hypervisor id as meta label #6962
  + Bug fixes
    * PromQL: Do not escape HTML-like chars in query log #6834 #6795
    * React UI: Fix data table matrix values #6896
    * React UI: Fix new targets page not loading when using non-ASCII characters #6892
    * Remote read: Fix duplication of metrics read from remote storage with external labels #6967 #7018
    * Remote write: Register WAL watcher and live reader metrics for all remotes, not just the first one #6998
    * Scrape: Prevent removal of metric names upon relabeling #6891
    * Scrape: Fix 'superfluous response.WriteHeader call' errors when scrape fails under some circonstances #6986
    * Scrape: Fix crash when reloads are separated by two scrape intervals #7011
- Changes from 2.16.0
  + Features 
    * React UI: Support local timezone on /graph #6692
    * PromQL: add absent_over_time query function #6490
    * Adding optional logging of queries to their own file #6520
  + Enhancements
    * React UI: Add support for rules page and "Xs ago" duration displays #6503
    * React UI: alerts page, replace filtering togglers tabs with checkboxes #6543
    * TSDB: Export metric for WAL write errors #6647
    * TSDB: Improve query performance for queries that only touch the most recent 2h of data. #6651
    * PromQL: Refactoring in parser errors to improve error messages #6634
    * PromQL: Support trailing commas in grouping opts #6480
    * Scrape: Reduce memory usage on reloads by reusing scrape cache #6670
    * Scrape: Add metrics to track bytes and entries in the metadata cache #6675
    * promtool: Add support for line-column numbers for invalid rules output #6533
    * Avoid restarting rule groups when it is unnecessary #6450
  + Bug fixes
    * React UI: Send cookies on fetch() on older browsers #6553
    * React UI: adopt grafana flot fix for stacked graphs #6603
    * React UI: broken graph page browser history so that back button works as expected #6659
    * TSDB: ensure compactionsSkipped metric is registered, and log proper error if one is returned from head.Init #6616
    * TSDB: return an error on ingesting series with duplicate labels #6664
    * PromQL: Fix unary operator precedence #6579
    * PromQL: Respect query.timeout even when we reach query.max-concurrency #6712
    * PromQL: Fix string and parentheses handling in engine, which affected React UI #6612
    * PromQL: Remove output labels returned by absent() if they are produced by multiple identical label matchers #6493
    * Scrape: Validate that OpenMetrics input ends with `# EOF` #6505
    * Remote read: return the correct error if configs can't be marshal'd to JSON #6622
    * Remote write: Make remote client `Store` use passed context, which can affect shutdown timing #6673
    * Remote write: Improve sharding calculation in cases where we would always be consistently behind by tracking pendingSamples #6511
    * Ensure prometheus_rule_group metrics are deleted when a rule group is removed #6693
- Changes from 2.15.2
  + Bug fixes
    * TSDB: Fixed support for TSDB blocks built with Prometheus before 2.1.0. #6564
    * TSDB: Fixed block compaction issues on Windows. #6547
- Changes from 2.15.1
  + Bug fixes
    * TSDB: Fixed race on concurrent queries against same data. #6512
- Changes from 2.15.0
  + Features 
    * API: Added new endpoint for exposing per metric metadata `/metadata`. #6420 #6442
  + Changes
    * Discovery: Removed `prometheus_sd_kubernetes_cache_*` metrics. Additionally `prometheus_sd_kubernetes_workqueue_latency_seconds` and `prometheus_sd_kubernetes_workqueue_work_duration_seconds` metrics now show correct values in seconds. #6393
    * Remote write: Changed `query` label on `prometheus_remote_storage_*` metrics to `remote_name` and `url`. #6043
  + Enhancements
    * TSDB: Significantly reduced memory footprint of loaded TSDB blocks. #6418 #6461
    * TSDB: Significantly optimized what we buffer during compaction which should result in lower memory footprint during compaction. #6422 #6452 #6468 #6475
    * TSDB: Improve replay latency. #6230
    * TSDB: WAL size is now used for size based retention calculation. #5886
    * Remote read: Added query grouping and range hints to the remote read request #6401
    * Remote write: Added `prometheus_remote_storage_sent_bytes_total` counter per queue. #6344
    * promql: Improved PromQL parser performance. #6356
    * React UI: Implemented missing pages like `/targets` #6276, TSDB status page #6281 #6267 and many other fixes and performance improvements.
    * promql: Prometheus now accepts spaces between time range and square bracket. e.g `[ 5m]` #6065  
  + Bug fixes
    * Config: Fixed alertmanager configuration to not miss targets when configurations are similar. #6455
    * Remote write: Value of `prometheus_remote_storage_shards_desired` gauge shows raw value of desired shards and it's updated correctly. #6378
    * Rules: Prometheus now fails the evaluation of rules and alerts where metric results collide with labels specified in `labels` field. #6469
    * API: Targets Metadata API `/targets/metadata` now accepts empty `match_targets` parameter as in the spec. #6303
- Changes from 2.14.0
  + Features 
    * API: `/api/v1/status/runtimeinfo` and `/api/v1/status/buildinfo` endpoints added for use by the React UI. #6243
    * React UI: implement the new experimental React based UI. #5694 and many more
      * Can be found by under `/new`.
      * Not all pages are implemented yet.
    * Status: Cardinality statistics added to the Runtime & Build Information page. #6125
  + Enhancements
    * Remote write: fix delays in remote write after a compaction. #6021
    * UI: Alerts can be filtered by state. #5758
  + Bug fixes
    * Ensure warnings from the API are escaped. #6279
    * API: lifecycle endpoints return 403 when not enabled. #6057
    * Build: Fix Solaris build. #6149
    * Promtool: Remove false duplicate rule warnings when checking rule files with alerts. #6270
    * Remote write: restore use of deduplicating logger in remote write. #6113
    * Remote write: do not reshard when unable to send samples. #6111
    * Service discovery: errors are no longer logged on context cancellation. #6116, #6133
    * UI: handle null response from API properly. #6071
- Changes from 2.13.1
  + Bug fixes
    * Fix panic in ARM builds of Prometheus. #6110
    * promql: fix potential panic in the query logger. #6094
    * Multiple errors of http: superfluous response.WriteHeader call in the logs. #6145
- Changes from 2.13.0
  + Enhancements
    * Metrics: renamed prometheus_sd_configs_failed_total to prometheus_sd_failed_configs and changed to Gauge #5254
    * Include the tsdb tool in builds. #6089
    * Service discovery: add new node address types for kubernetes. #5902
    * UI: show warnings if query have returned some warnings. #5964
    * Remote write: reduce memory usage of the series cache. #5849
    * Remote read: use remote read streaming to reduce memory usage. #5703
    * Metrics: added metrics for remote write max/min/desired shards to queue manager. #5787
    * Promtool: show the warnings during label query. #5924
    * Promtool: improve error messages when parsing bad rules. #5965
    * Promtool: more promlint rules. #5515
  + Bug fixes
    * UI: Fix a Stored DOM XSS vulnerability with query history [CVE-2019-10215](http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-10215). #6098
    * Promtool: fix recording inconsistency due to duplicate labels. #6026
    * UI: fixes service-discovery view when accessed from unhealthy targets. #5915
    * Metrics format: OpenMetrics parser crashes on short input. #5939
    * UI: avoid truncated Y-axis values. #6014
- Changes from 2.12.0
  + Features 
    * Track currently active PromQL queries in a log file. #5794
    * Enable and provide binaries for `mips64` / `mips64le` architectures. #5792
  + Enhancements
    * Improve responsiveness of targets web UI and API endpoint. #5740
    * Improve remote write desired shards calculation. #5763
    * Flush TSDB pages more precisely. tsdb#660
    * Add `prometheus_tsdb_retention_limit_bytes` metric. tsdb#667
    * Add logging during TSDB WAL replay on startup. tsdb#662
    * Improve TSDB memory usage. tsdb#653, tsdb#643, tsdb#654, tsdb#642, tsdb#627
  + Bug fixes
    * Check for duplicate label names in remote read. #5829
    * Mark deleted rules' series as stale on next evaluation. #5759
    * Fix JavaScript error when showing warning about out-of-sync server time. #5833
    * Fix `promtool test rules` panic when providing empty `exp_labels`. #5774
    * Only check last directory when discovering checkpoint number. #5756
    * Fix error propagation in WAL watcher helper functions. #5741
    * Correctly handle empty labels from alert templates. #5845
- Update Uyuni/SUSE Manager service discovery patch
  + Modified 0003-Add-Uyuni-service-discovery.patch:
  + Adapt service discovery to the new Uyuni API endpoints
  + Modified spec file: force golang 1.12 to fix build issues in SLE15SP2
- Update to Prometheus 2.11.2
- Patch macros on spec file to support builds on SLE 12 
- Remove prometheus.firewall.xml source file
- Remove firewalld files. They are installed in the main firewalld
  package.
- Update Uyuni/SUSE Manager service discovery patch
  + Modified 0003-Add-Uyuni-service-discovery.patch 
  + Fixes crashes when systems have no FQDN 
  + Adds Parallel calls to Uyuni API, meaningful performance increase
  + Adds Support for system group labels
- Do not install the firewalld config file on Tumbleweed (on
  versions newer than Leap 15.1). It's installed in the main
  firewalld package.
- remove 0004-prometheus-buildmode-pie.patch
  + this patch produces binaries that crash immediately
- add -v to promu build command for better build debugging
- reorder some %install tasks
- Add network-online (Wants and After) dependency to systemd unit bsc#1143913
- Build with PIE
  + Added 0004-prometheus-buildmode-pie.patch
- Only package required files (reduces rpm size by 4 MB)
- Add sysconfig file
- Add firewall config file
- Use variables for defining user and group
- Add support for Uyuni/SUSE Manager service discovery
  + Added 0003-Add-Uyuni-service-discovery.patch
- readded _service file removed in error. 
- Update to 2.11.1 
  + Bug Fix:
    * Fix potential panic when prometheus is watching multiple zookeeper paths.
- Update to 2.11.0
  + Bug Fix:
    * resolve race condition in maxGauge. 
    * Fix ZooKeeper connection leak. 
    * Improved atomicity of .tmp block replacement during compaction for usual case. 
    * Fix "unknown series references" after clean shutdown. 
    * Re-calculate block size when calling block.Delete. 
    * Fix unsafe snapshots with head block. 
    * prometheus_tsdb_compactions_failed_total is now incremented on any compaction failure. 
  + Changes:
    * Remove max_retries from queue_config (it has been unused since rewriting remote-write to utilize the write-ahead-log)
    * The meta file BlockStats no longer holds size information. This is now dynamically calculated and kept in memory. It also includes the meta file size which was not included before
    * Renamed metric from prometheus_tsdb_wal_reader_corruption_errors to prometheus_tsdb_wal_reader_corruption_errors_total
  + Features:
    * Add option to use Alertmanager API v2. 
    * Added humanizePercentage function for templates. 
    * Include InitContainers in Kubernetes Service Discovery. 
    * Provide option to compress WAL records using Snappy. 
  + Enhancements:
    * Create new clean segment when starting the WAL. 
    * Reduce allocations in PromQL aggregations. 
    * Add storage warnings to LabelValues and LabelNames API results. 
    * Add prometheus_http_requests_total metric. 
    * Enable openbsd/arm build. 
    * Remote-write allocation improvements. 
    * Query performance improvement: Efficient iteration and search in HashForLabels and HashWithoutLabels. 
    * Allow injection of arbitrary headers in promtool. 
    * Allow passing external_labels in alert unit tests groups. 
    * Allows globs for rules when unit testing.
    * Improved postings intersection matching. 
    * Reduced disk usage for WAL for small setups. 
    * Optimize queries using regexp for set lookups. 
 
- rebase patch002-Default-settings.patch 
- Update to 2.10.0:
  + Bug Fixes:
    * TSDB: Don't panic when running out of disk space and recover nicely from the condition
    * TSDB: Correctly handle empty labels.
    * TSDB: Don't crash on an unknown tombstone reference. 
    * Storage/remote: Remove queue-manager specific metrics if queue no longer exists. 
    * PromQL: Correctly display {__name__="a"}. 
    * Discovery/kubernetes: Use service rather than ingress as the name for the service workqueue. 
    * Discovery/azure: Don't panic on a VM with a public IP. 
    * Web: Fixed Content-Type for js and css instead of using /etc/mime.types.
    * API: Encode alert values as string to correctly represent Inf/NaN. 
  + Features:
    * Template expansion: Make external labels available as $externalLabels in alert and console template expansion. 
    * TSDB: Add prometheus_tsdb_wal_segment_current metric for the WAL segment index that TSDB is currently writing to. tsdb
    * Scrape: Add scrape_series_added per-scrape metric. #5546
  + Enhancements
    * Discovery/kubernetes: Add labels __meta_kubernetes_endpoint_node_name and __meta_kubernetes_endpoint_hostname. 
    * Discovery/azure: Add label __meta_azure_machine_public_ip. 
    * TSDB: Simplify mergedPostings.Seek, resulting in better performance if there are many posting lists. tsdb
    * Log filesystem type on startup. 
    * Cmd/promtool: Use POST requests for Query and QueryRange. client_golang
    * Web: Sort alerts by group name. 
    * Console templates: Add convenience variables $rawParams, $params, $path.
- Upadte to 2.9.2
  + Bug Fixes:
    * Make sure subquery range is taken into account for selection 
    * Exhaust every request body before closing it 
    * Cmd/promtool: return errors from rule evaluations 
    * Remote Storage: string interner should not panic in release 
    * Fix memory allocation regression in mergedPostings.Seek tsdb
- Update to 2.9.1
  + Bug Fixes:
    * Discovery/kubernetes: fix missing label sanitization 
    * Remote_write: Prevent reshard concurrent with calling stop 
- Update to 2.9.0 
  + Feature: 
    * Add honor_timestamps scrape option.
  + Enhancements:	
    * Update Consul to support catalog.ServiceMultipleTags.
    * Discovery/kubernetes: add present labels for labels/annotations.
    * OpenStack SD: Add ProjectID and UserID meta labels.
    * Add GODEBUG and retention to the runtime page. 
    * Add support for POSTing to /series endpoint. 
    * Support PUT methods for Lifecycle and Admin APIs.
    * Scrape: Add global jitter for HA server.
    * Check for cancellation on every step of a range evaluation. 
    * String interning for labels & values in the remote_write path.
    * Don't lose the scrape cache on a failed scrape.
    * Reload cert files from disk automatically. common
    * Use fixed length millisecond timestamp format for logs. common
    * Performance improvements for postings. 
  Bug Fixes:
    * Remote Write: fix checkpoint reading. 
    * Check if label value is valid when unmarshaling external labels from YAML. 
    * Promparse: sort all labels when parsing. 
    * Reload rules: copy state on both name and labels. 
    * Exponentation operator to drop metric name in result of operation. 
    * Config: resolve more file paths. 
    * Promtool: resolve relative paths in alert test files. 
    * Set TLSHandshakeTimeout in HTTP transport. common
    * Use fsync to be more resilient to machine crashes. 
    * Keep series that are still in WAL in checkpoints.
- Update to 2.8.1
  + Bug Fixes
    *  Display the job labels in /targets which was removed accidentally
- Update to 2.8.0 
  + Change:
    * This release uses Write-Ahead Logging (WAL) for the remote_write API. This currently causes a slight increase in memory usage, which will be addressed in future releases.
    * Default time retention is used only when no size based retention is specified. These are flags where time retention is specified by the flag --storage.tsdb.retention and size retention by --storage.tsdb.retention.size. 
    * prometheus_tsdb_storage_blocks_bytes_total is now prometheus_tsdb_storage_blocks_bytes. 
  + Feature:
    * (EXPERIMENTAL) Time overlapping blocks are now allowed; vertical compaction and vertical query merge. It is an optional feature which is controlled by the --storage.tsdb.allow-overlapping-blocks flag, disabled by default.
  + Enhancements:  
	* Use the WAL for remote_write API.
    * Query performance improvements. 
    * UI enhancements with upgrade to Bootstrap 4. 
    * Reduce time that Alertmanagers are in flux when reloaded. 
    * Limit number of metrics displayed on UI to 10000. 
    * (1) Remember All/Unhealthy choice on target-overview when reloading page. (2) Resize text-input area on Graph page on mouseclick. 
    * In histogram_quantile merge buckets with equivalent le values. 
    * Show list of offending labels in the error message in many-to-many scenarios. 
    * Show Storage Retention criteria in effect on /status page. 
  + Bug Fixes: 
    + Fix sorting of rule groups. 
    + Fix support for password_file and bearer_token_file in Kubernetes SD. 
    + Scrape: catch errors when creating HTTP clients  
    + Adds new metrics:
        prometheus_target_scrape_pools_total
        prometheus_target_scrape_pools_failed_total
        prometheus_target_scrape_pool_reloads_total
        prometheus_target_scrape_pool_reloads_failed_total
    + Fix panic when aggregator param is not a literal.
- fix spec file: actually ship promtool
- Update to 2.7.1:
  + Bug Fixes:
    * Fix a Stored DOM XSS vulnerability with query history (boo#1124610)
    * prometheus_rule_group_last_duration_seconds now reports seconds instead of nanoseconds
    * Make sure the targets are consistently sorted in the targets page
- Update to 2.7.0:
  + cli flag depreacted: storage.tsdb.retention use storage.tsdb.retention.time
    instead; depreacted flag will be removed in 3.0
  + Features:
    * Add subqueries to PromQL
    * Add support for disk size based retention. Note that we don't
      consider the WAL size which could be significant and the time
      based retention policy also applies (experimental)
    * Add CORS origin flag
  + Bug Fixes:
    * Don't depend on given order when comparing samples in alert unit testing
    * Make sure the retention period doesn't overflow
    * Don't generate blocks with no samples
- Update to 2.6.0:
  + Remove default flags from the container's entrypoint, run Prometheus from
    /etc/prometheus and symlink the storage directory to /etc/prometheus/data
  + Promtool: Remove the update command
  + Features:
    * Add JSON log format via the --log.format flag
    * API: Add /api/v1/labels endpoint to get all label names
    * Web: Allow setting the page's title via the --web.ui-title flag
  + Enhancements:
    * Add prometheus_tsdb_lowest_timestamp_seconds, prometheus_tsdb_head_min_time_seconds
      and prometheus_tsdb_head_max_time_seconds metrics
    * Add rule_group_last_evaluation_timestamp_seconds metric
    * Add prometheus_template_text_expansion_failures_total and prometheus_template_text_expansions_total metrics
    * Set consistent User-Agent header in outgoing requests
    * Azure SD: Error out at load time when authentication parameters are missing
    * EC2 SD: Add the machine's private DNS name to the discovery metadata
    * EC2 SD: Add the operating system's platform to the discovery metadata
    * Kubernetes SD: Add the pod's phase to the discovery metadata
    * Kubernetes SD: Log Kubernetes messages
    * Promtool: Collect CPU and trace profiles
    * Promtool: Support writing output as JSON
    * Remote Read: Return available data if remote read fails partially
    * Remote Write: Improve queue performance
    * Remote Write: Add min_shards parameter to set the minimum number of shards
    * TSDB: Improve WAL reading
    * TSDB: Memory improvements
    * Web: Log stack traces on panic
    * Web UI: Add copy to clipboard button for configuration
    * Web UI: Support console queries at specific times
    * Web UI: group targets by job then instance
  + Bug Fixes:
    * Deduplicate handler labels for HTTP metrics
    * Fix leaked queriers causing shutdowns to hang
    * Fix configuration loading panics on nil pointer slice elements
    * API: Correctly skip mismatching targets on /api/v1/targets/metadata
    * API: Better rounding for incoming query timestamps
    * Discovery: Remove all targets when the scrape configuration gets empty
    * PromQL: Fix a goroutine leak in the lexer/parser
    * Scrape: Fix deadlock in the scrape's manager
    * Scrape: Scrape targets at fixed intervals even after Prometheus restarts
    * TSDB: Support restored snapshots including the head properly
    * TSDB: Repair WAL when the last record in a segment is torn
- Update to 2.5.0
  + Group targets by scrape config instead of job name
  + Marathon SD: Various changes to adapt to Marathon 1.5+
  + Discovery: Split prometheus_sd_discovered_targets metric by scrape and
    notify (Alertmanager SD) as well as by section in the respective configuration
  + Enhancements:
    * Support s390x platform for Linux
    * API: Add prometheus_api_remote_read_queries metric tracking currently
      executed or waiting remote read API requests
    * Remote Read: Add prometheus_remote_storage_remote_read_queries metric
      tracking currently in-flight remote read queries
    * Remote Read: Reduced memory usage
    * Discovery: Add prometheus_sd_discovered_targets,
      prometheus_sd_received_updates_total, prometheus_sd_updates_delayed_total,
      and prometheus_sd_updates_total metrics for discovery subsystem
    * Discovery: Improve performance of previously slow updates of changes of targets
    * Kubernetes SD: Add extended metrics
    * OpenStack SD: Support discovering instances from all projects
    * OpenStack SD: Discover all interfaces
    * OpenStack SD: Support tls_config for the used HTTP client
    * Triton SD: Add ability to filter triton_sd targets by pre-defined groups
    * Web UI: Avoid browser spell-checking in expression field
    * Web UI: Add scrape duration and last evaluation time in targets and rules pages
    * Web UI: Improve rule view by wrapping lines
    * Rules: Error out at load time for invalid templates, rather than at evaluation time
  + Bug Fixes:
    * Change max/min over_time to handle NaNs properly
    * Check label name for count_values PromQL function
    * Ensure that vectors and matrices do not contain identical label-sets
- Update to 2.4.3
  + Bug Fixes:
    [BUGFIX] Fix panic when using custom EC2 API for SD #4672
    [BUGFIX] Fix panic when Zookeeper SD cannot connect to servers #4669
    [BUGFIX] Make the skip_head an optional parameter for snapshot API #4674
- Update to 2.4.2
  + Bug Fixes:
    [BUGFIX] Handle WAL corruptions properly prometheus/tsdb#389
    [BUGFIX] Handle WAL migrations correctly on Windows prometheus/tsdb#392
- Update to 2.4.1
  + New TSDB metrics
  + Bug Fixes:
  Render UI correctly for Windows
- Update to 2.4.0
  + The WAL implementation has been re-written so the storage is not forward
    compatible. Prometheus 2.3 storage will work on 2.4 but not vice-versa
  + Reduce remote write default retries
  + Remove /heap endpoint
  + Features:
    * Persist alert 'for' state across restarts
    * Add API providing per target metric metadata
    * Add API providing recording and alerting rules
  + Enhancements:
    * Brand new WAL implementation for TSDB. Forwards incompatible with previous WAL.
    * Show rule evaluation errors in UI
    * Throttle resends of alerts to Alertmanager
    * Send EndsAt along with the alert to Alertmanager
    * Limit the samples returned by remote read endpoint
    * Limit the data read in through remote read
    * Coalesce identical SD configuations
    * promtool: Add new commands for debugging and querying
    * Update console examples for node_exporter v0.16.0
    * Optimize PromQL aggregations
    * Remote read: Add Offset to hints
    * consul_sd: Add support for ServiceMeta field
    * ec2_sd: Maintain order of subnet_id label
    * ec2_sd: Add support for custom endpoint to support EC2 compliant APIs
    * ec2_sd: Add instance_owner label
    * azure_sd: Add support for VMSS discovery and multiple environments
    * gce_sd: Add instance_id label
    * Forbid rule-abiding robots from indexing
    * Log virtual memory limits on startup
  + Bug Fixes:
    * Wait for service discovery to stop before exiting
    * Render SD configs properly
    * Only add LookbackDelta to vector selectors
    * ec2_sd: Handle panic-ing nil pointer
    * consul_sd: Stop leaking connections
    * Use templated labels also to identify alerts
    * Reduce floating point errors in stddev and related functions
    * Log errors while encoding responses
- Update to 2.3.2
  + Bug Fixes:
    * Fix various tsdb bugs
    * Reorder startup and shutdown to prevent panics.
    * Exit with non-zero code on error
    * discovery/kubernetes/ingress: fix scheme discovery
    * Fix race in zookeeper sd
    * Better timeout handling in promql
    * Propogate errors when selecting series from the tsdb
- Update to 2.3.1
  + Bug Fixes:
    * Avoid infinite loop on duplicate NaN values.
    * Fix nil pointer deference when using various API endpoints
    * config: set target group source index during unmarshalling
    * discovery/file: fix logging
    * kubernetes_sd: fix namespace filtering
    * web: restore old path prefix behavior
    * web: remove security headers added in 2.3.0
- Update to 2.3.0
  + marathon_sd: use auth_token and auth_token_file for token-based authentication
    instead of bearer_token and bearer_token_file respectively
  + Metric names for HTTP server metrics changed
  + Features:
    * Add query commands to promtool
    * Add security headers to HTTP server responses
    * Pass query hints via remote read API
    * Basic auth passwords can now be configured via file across all configuration
  + Enhancements:
    * Optimise PromQL and API serialization for memory usage and allocations
    * Limit number of dropped targets in web UI
    * Consul and EC2 service discovery allow using server-side filtering for performance improvement
    * Add advanced filtering configuration to EC2 service discovery
    * marathon_sd: adds support for basic and bearer authentication, plus all
      other common HTTP client options (TLS config, proxy URL, etc.)
    * Provide machine type metadata and labels in GCE service discovery
    * Add pod controller kind and name to Kubernetes service discovery data
    * Move TSDB to flock-based log file that works with Docker containers
  + Bug Fixes:
    * Properly propagate storage errors in PromQL
    * Fix path prefix for web pages
    * Fix goroutine leak in Consul service discovery
    * Fix races in scrape manager
    * Fix OOM for very large k in PromQL topk() queries
    * Make remote write more resilient to unavailable receivers
    * Make remote write shutdown cleanly
    * Don't leak files on errors in TSDB's tombstone cleanup
    * Unary minus expressions now removes the metric name from results
    * Fix bug that lead to wrong amount of samples considered for time range expressions
- Update to 2.2.1
  + Bug Fixes:
    * Fix data loss in TSDB on compaction
    * Correctly stop timer in remote-write path
    * Fix deadlock triggered by loading targets page
    * Fix incorrect buffering of samples on range selection queries
    * Handle large index files on windows properly
- Update to 2.2.0
  + This release introduces improvements to the storage format and fixes a
    regression introduced in 2.1. As a result Prometheus servers upgraded
    to 2.2 cannot be downgraded to a lower version anymore!
  + Rename file SD mtime metric
  + Send target update on empty pod IP in Kubernetes SD
  + Features:
    * Add API endpoint for flags.
    * Add API endpoint for dropped targets.
    * Display annotations on alerts page.
    * Add option to skip head data when taking snapshots
  + Enhancements:
    * Federation performance improvement.
    * Read bearer token file on every scrape.
    * Improve typeahead on /graph page.
    * Change rule file formatting.
    * Set consul server default to localhost:8500.
    * Add dropped Alertmanagers to API info endpoint.
    * Add OS type meta label to Azure SD.
    * Validate required fields in SD configuration.
  + Bug Fixes:
    * Prevent stack overflow on deep recursion in TSDB.
    * Correctly read offsets in index files that are greater than 4GB.
    * Fix scraping behavior for empty labels.
    * Drop metric name for bool modifier.
    * Fix races in discovery.
    * Fix Kubernetes endpoints SD for empty subsets.
    * Throttle updates from SD providers, which caused increased CPU usage and allocations.
    * Fix TSDB block reload issue.
    * Fix PromQL printing of empty without().
    * Don't reset FiredAt for inactive alerts.
    * Fix erroneous file version changes and repair existing data.
- remove pr-3174.patch, has been fixed in https://github.com/prometheus/prometheus/pull/3517
- spec: fix directory for fdupes 
- Update to 2.1.0:
  + Features:
    * New Service Discovery UI showing labels before and after relabelling.
    * New Admin APIs added to v1 to delete, snapshot and remove tombstones.
  + Enhancements:
    * The graph UI autcomplete now includes your previous queries.
    * Federation is now much faster for large numbers of series.
    * Added new metrics to measure rule timings.
    * Rule evaluation times added to the rules UI.
    * Added metrics to measure modified time of file SD files.
    * Kubernetes SD now includes POD UID in discovery metadata.
    * The Query APIs now return optional stats on query execution times.
    * The index now no longer has the 4GiB size limit and is also smaller.
  + Bug Fixes:
    * Remote read read_recent option is now false by default.
    * Pass the right configuration to each Alertmanager (AM) when using
      multiple AM configs.
    * Fix not-matchers not selecting series with labels unset.
    * tsdb: Fix occasional panic in head block.
    * tsdb: Close files before deletion to fix retention issues on Windows
      and NFS.
    * tsdb: Cleanup and do not retry failing compactions.
    * tsdb: Close WAL while shutting down.
- Update to final v2.0.0 release (bsc#1067341):
  + Compared to version 1.x, this release includes a completely rewritten
    storage engine, huge performance improvements, but also many backwards
    incompatible changes.  For more information, read the announcement blog
    post and migration guide:
    - https://prometheus.io/blog/2017/11/08/announcing-prometheus-2-0/
    - https://prometheus.io/docs/prometheus/2.0/migration/
  + Changes:
    * Completely rewritten storage layer, with WAL.  This is not backwards
      compatible with 1.x storage,  and many flags have changed/disappeared.
    * New staleness behavior. Series now marked stale after target scrapes
      no longer return them, and soon after targets disappear from service
      discovery.
    * Rules files use YAML syntax now.  Conversion tool added to promtool.
    * Removed count_scalar, drop_common_labels functions and keep_common
      modifier from PromQL.
    * Rewritten exposition format parser with much higher performance.  The
      Protobuf exposition format is no longer supported.
    * Example console templates updated for new storage and metrics names.
      Examples other than node exporter and Prometheus removed.
    * Admin and lifecycle APIs now disabled by default, can be reenabled via
      flags
    * Flags switched to using Kingpin, all flags are now --flagname rather
      than -flagname.
  + Features:
    * Remote read can be configured to not read data which is available
      locally.  This is enabled by default.
    * Rules can be grouped now.  Rules within a rule group are executed
      sequentially.
    * Added experimental GRPC apis
    * Add timestamp() function to PromQL.
  + Enhancements:
    * Remove remote read from the query path if no remote storage is
      configured.
    * Bump Consul HTTP client timeout to not match the Consul SD watch
      timeout.
    * Go-conntrack added to provide HTTP connection metrics.
  + Bug Fixes:
    * Fix connection leak in Consul SD.
- Update to v2.0.0-rc.3 (bsc#1067030):
  + Enhancements:
    * Remove remote read from the query path if no remote storage
      is configured.
    * Bump Consul HTTP client timeout to not match the Consul SD
      watch timeout.
    * Bump up a too small max block duration to the min block
      duration instead of returning an error.
  + Bug Fixes:
    * Avoid needless padding of 4 zero bytes in index files.
    * Delete old blocks during reload (necessary on MS Windows).
    * Fix regression of alert rules state loss on config reload.
    * Serialize background WAL operations to avoid data races.
  + This also contains bugfixes and remote-storage features from
    the 1.8 branch.
- Update to v2.0.0-rc.2 (bsc#1065377):
  + Enhancements:
    * Handle WAL segments with corrupted header gracefully
    * Stabilize memory usage during WAL replay
  + Changes:
    * Prefix all storage metrics with prometheus_
  + Bug Fixes:
    * Correctly handle label removal in remote read
    * Fix chunk misalignment causing out-of-order samples
    * Fix connection leak in Consul SD
    * Handle invalid chunk dereferences gracefully
    * Prevent potential deadlock during failing querier construction
- Update to v2.0.0-rc.1:
  + Features/Enhancements:
    * Added a warning for time-drift between the browser and the
      prometheus-server.
    * Much faster WAL read-back on restart.
  + Bug Fixes:
    * Fixed Remote-read to not drop the first series.
    * Validate recording-rule names.
    * Fix several races.
    * Only close blocks if there are no iterators accessing it.
- Refresh 0002-Default-settings.patch
- Update to v2.0.0-rc.0:
  + Numerous changes to the new storage layer, the main changes being:
    * Remove `count_scalar`, `keep_common` and `drop_common_labels` functions
    * Breaking change in the index format for better consistency 
    * Fix panic due garbage collected mmap'ed strings 
    * Fix broken snapshots and admin APIs 
    * Send HTTP Accept header when scraping
    * Use the WAL flush interval passed instead of the hardcoded value
  + This release requires a clean storage directory and is not compatible
    with files created by previous beta releases
- Refresh 0002-Default-settings.patch
- Fix loopback address for REST API gateway (bsc#1059462)
  + Added pr-3174.patch
- Update to v2.0.0-beta.5:
  + Bug Fixes:
    *  Remove deadlock on startup when restoring WAL
    * Fix semantical races resulting in invalid persisted files
    * Correctly read back WAL in certain edge cases
    * Prevent crashes caused by changing metric representations in target's
      /metrics
  + Enhancements:
    * Overall memory usage reduction
    * Serve debugging endpoints while TSDB is loading
    * Healthy endpoint correctly reflects liveness during startup
    * Switch to consistent usage of go-kit/log
  + This release may have issues with files written by previous beta releases
- Refresh 0002-Default-settings.patch to apply cleanly again
- Update to v2.0.0-beta.4:
  + Numerous changes to the new storage layer, the main changes being:
    * Single, compacted write ahead log
    * Single in-memory block with garbage collection
    * Improve compression of index files
    * Cache series dropped via metric_relabel_configs
    * Pool byte buffers for scraping
  + Overall the changes achieve a baseline reduction in memory consumption
    and reduce peak memory usage by 30-40% compared to 2.0.0-beta.2
  + This release requires a clean storage directory and is not compatible
    with files created by previous beta releases
- Update to v2.0.0-beta.2
  + vendor: update prometheus/tsdb (Fix panic caused by 0 division)
- Update to v2.0.0-beta.1
  + Includes a new storage layer, which reduces bottlenecks and shows
    considerable performance improvements, but does not work with old v1
    storage data.
- Refresh 0002-Default-settings.patch to apply cleanly again
- Add systemd unit file and default config (/etc/prometheus/prometheus.yml)
- Run as unprivileged "prometheus" user
- Default to /etc/prometheus for config and /var/lib/prometheus for metrics
  + Added 0002-Default-settings.patch
- Add BuildRequires: glibc-devel-static to fix aarch64 build
- Initial version

OBS-URL: https://build.opensuse.org/request/show/901736
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=45
2021-06-29 14:09:29 +00:00
bb17b87aae Accepting request 895903 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/895903
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=13
2021-06-01 08:33:22 +00:00
Stefano Torresi
3f0a33246a Accepting request 895359 from home:dmolkentin:infrarun
- Refresh patches
- Upgrade to upstream version 2.27.1
  + Bugfix:
   * SECURITY: Fix arbitrary redirects under the /new endpoint (CVE-2021-29622)  
- Upgrade to upstream version 2.27.0
  + Features:
    * Promtool: Retroactive rule evaluation functionality. #7675
    * Configuration: Environment variable expansion for external labels. Behind --enable-feature=expand-external-labels flag. #8649
    * TSDB: Add a flag(--storage.tsdb.max-block-chunk-segment-size) to control the max chunks file size of the blocks for small Prometheus instances. #8478
    * UI: Add a dark theme. #8604
    * AWS Lightsail Discovery: Add AWS Lightsail Discovery. #8693
    * Docker Discovery: Add Docker Service Discovery. #8629
    * OAuth: Allow OAuth 2.0 to be used anywhere an HTTP client is used. #8761
    * Remote Write: Send exemplars via remote write. Experimental and disabled by default. #8296
  + Enhancements:
    * Digital Ocean Discovery: Add __meta_digitalocean_vpc label. #8642
    * Scaleway Discovery: Read Scaleway secret from a file. #8643
    * Scrape: Add configurable limits for label size and count. #8777
    * UI: Add 16w and 26w time range steps. #8656
    * Templating: Enable parsing strings in humanize functions. #8682
  + Bugfixes:
    * UI: Provide errors instead of blank page on TSDB Status Page. #8654 #8659
    * TSDB: Do not panic when writing very large records to the WAL. #8790
    * TSDB: Avoid panic when mmaped memory is referenced after the file is closed. #8723
    * Scaleway Discovery: Fix nil pointer dereference. #8737
    * Consul Discovery: Restart no longer required after config update with no targets. #8766

OBS-URL: https://build.opensuse.org/request/show/895359
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=43
2021-05-28 07:41:31 +00:00
68a8b2e126 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
2021-05-07 14:45:35 +00:00
Witek Bedyk
e67a12583f Accepting request 890624 from home:witekbedyk:branches:server:monitoring
Fix changelog

OBS-URL: https://build.opensuse.org/request/show/890624
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=41
2021-05-06 08:37:18 +00:00
Stefano Torresi
076e8aae29 Accepting request 890467 from home:witekbedyk:branches:server:monitoring
- Upgrade to upstream version 2.26.0
- Add vendor and web_assets tarballs
- Uyuni: Read formula data from exporters map
- Uyuni: Add support for TLS targets
  + Changed:
    * 0003-Add-Uyuni-service-discovery.patch

OBS-URL: https://build.opensuse.org/request/show/890467
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=40
2021-05-04 17:11:11 +00:00
Richard Brown
0c1b0588e5 Accepting request 880691 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/880691
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=11
2021-03-25 13:52:36 +00:00
Patrick Seidensal
2f9621e7cd Accepting request 880681 from home:witekbedyk:branches:server:monitoring
Update changelog

OBS-URL: https://build.opensuse.org/request/show/880681
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=38
2021-03-23 10:39:45 +00:00
Richard Brown
e18779e208 Accepting request 879418 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/879418
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=10
2021-03-19 15:39:33 +00:00
Stefano Torresi
a3ec3a51f9 Accepting request 878004 from home:witekbedyk:branches:server:monitoring
- Uyuni: `hostname` label is now set to FQDN instead of IP

OBS-URL: https://build.opensuse.org/request/show/878004
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=36
2021-03-16 13:14:42 +00:00
Witek Bedyk
1f0866e2bd Accepting request 848823 from home:STorresi:containers
- Update to upstream version 2.22.1
- Update packaging
  * Remove systemd and shadow hard requirements
  * Require the user from a dedicated 'system-user-prometheus' sibling package
  * Add 'prometheus' package alias

OBS-URL: https://build.opensuse.org/request/show/848823
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=35
2020-11-17 12:05:11 +00:00
b23339da47 Accepting request 833739 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/833739
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=9
2020-09-14 10:15:24 +00:00
Dirk Stoecker
148a94cc9a Accepting request 833503 from home:witekbedyk:branches:server:monitoring
- Update 0003-Add-Uyuni-service-discovery.patch:
  + Add support for Prometheus exporters proxy

OBS-URL: https://build.opensuse.org/request/show/833503
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=33
2020-09-11 09:32:03 +00:00
1cbfe22497 Accepting request 811857 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/811857
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=8
2020-06-11 08:00:06 +00:00
Witek Bedyk
8c66b4b3d1 Accepting request 811474 from home:jcavalheiro:monitoring
Adding missing entries to the change log and update the spec to use go1.14

OBS-URL: https://build.opensuse.org/request/show/811474
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=31
2020-06-05 15:13:19 +00:00
Lars Vogdt
f87217a1a3 Accepting request 809049 from home:jcavalheiro:monitoring
- Update to 2.18.0 
  + Features 
    * Tracing: Added experimental Jaeger support #7148
  + Changes
    * Federation: Only use local TSDB for federation (ignore remote read). #7096
    * Rules: `rule_evaluations_total` and `rule_evaluation_failures_total` have a `rule_group` label now. #7094
  + Enhancements
    * TSDB: Significantly reduce WAL size kept around after a block cut. #7098
    * Discovery: Add `architecture` meta label for EC2. #7000
  + Bug fixes
    * UI: Fixed wrong MinTime reported by /status. #7182
    * React UI: Fixed multiselect legend on OSX. #6880
    * Remote Write: Fixed blocked resharding edge case. #7122
    * Remote Write: Fixed remote write not updating on relabel configs change. #7073
- Changes from 2.17.2
  + Bug fixes
    * Federation: Register federation metrics #7081
    * PromQL: Fix panic in parser error handling #7132
    * Rules: Fix reloads hanging when deleting a rule group that is being evaluated #7138
    * TSDB: Fix a memory leak when prometheus starts with an empty TSDB WAL #7135
    * TSDB: Make isolation more robust to panics in web handlers #7129 #7136
- Changes from 2.17.1
  + Bug fixes
    * TSDB: Fix query performance regression that increased memory and CPU usage #7051
- Changes from 2.17.0
  + Features 
    * TSDB: Support isolation #6841
    * This release implements isolation in TSDB. API queries and recording rules are
      guaranteed to only see full scrapes and full recording rules. This comes with a
      certain overhead in resource usage. Depending on the situation, there might be
      some increase in memory usage, CPU usage, or query latency.
  + Enhancements
    * PromQL: Allow more keywords as metric names #6933
    * React UI: Add normalization of localhost URLs in targets page #6794
    * Remote read: Read from remote storage concurrently #6770
    * Rules: Mark deleted rule series as stale after a reload #6745
    * Scrape: Log scrape append failures as debug rather than warn #6852
    * TSDB: Improve query performance for queries that partially hit the head #6676
    * Consul SD: Expose service health as meta label #5313
    * EC2 SD: Expose EC2 instance lifecycle as meta label #6914
    * Kubernetes SD: Expose service type as meta label for K8s service role #6684
    * Kubernetes SD: Expose label_selector and field_selector #6807
    * Openstack SD: Expose hypervisor id as meta label #6962
  + Bug fixes
    * PromQL: Do not escape HTML-like chars in query log #6834 #6795
    * React UI: Fix data table matrix values #6896
    * React UI: Fix new targets page not loading when using non-ASCII characters #6892
    * Remote read: Fix duplication of metrics read from remote storage with external labels #6967 #7018
    * Remote write: Register WAL watcher and live reader metrics for all remotes, not just the first one #6998
    * Scrape: Prevent removal of metric names upon relabeling #6891
    * Scrape: Fix 'superfluous response.WriteHeader call' errors when scrape fails under some circonstances #6986
    * Scrape: Fix crash when reloads are separated by two scrape intervals #7011
- Changes from 2.16.0
  + Features 
    * React UI: Support local timezone on /graph #6692
    * PromQL: add absent_over_time query function #6490
    * Adding optional logging of queries to their own file #6520
  + Enhancements
    * React UI: Add support for rules page and "Xs ago" duration displays #6503
    * React UI: alerts page, replace filtering togglers tabs with checkboxes #6543
    * TSDB: Export metric for WAL write errors #6647
    * TSDB: Improve query performance for queries that only touch the most recent 2h of data. #6651
    * PromQL: Refactoring in parser errors to improve error messages #6634
    * PromQL: Support trailing commas in grouping opts #6480
    * Scrape: Reduce memory usage on reloads by reusing scrape cache #6670
    * Scrape: Add metrics to track bytes and entries in the metadata cache #6675
    * promtool: Add support for line-column numbers for invalid rules output #6533
    * Avoid restarting rule groups when it is unnecessary #6450
  + Bug fixes
    * React UI: Send cookies on fetch() on older browsers #6553
    * React UI: adopt grafana flot fix for stacked graphs #6603
    * React UI: broken graph page browser history so that back button works as expected #6659
    * TSDB: ensure compactionsSkipped metric is registered, and log proper error if one is returned from head.Init #6616
    * TSDB: return an error on ingesting series with duplicate labels #6664
    * PromQL: Fix unary operator precedence #6579
    * PromQL: Respect query.timeout even when we reach query.max-concurrency #6712
    * PromQL: Fix string and parentheses handling in engine, which affected React UI #6612
    * PromQL: Remove output labels returned by absent() if they are produced by multiple identical label matchers #6493
    * Scrape: Validate that OpenMetrics input ends with `# EOF` #6505
    * Remote read: return the correct error if configs can't be marshal'd to JSON #6622
    * Remote write: Make remote client `Store` use passed context, which can affect shutdown timing #6673
    * Remote write: Improve sharding calculation in cases where we would always be consistently behind by tracking pendingSamples #6511
    * Ensure prometheus_rule_group metrics are deleted when a rule group is removed #6693
- Changes from 2.15.2
  + Bug fixes
    * TSDB: Fixed support for TSDB blocks built with Prometheus before 2.1.0. #6564
    * TSDB: Fixed block compaction issues on Windows. #6547
- Changes from 2.15.1
  + Bug fixes
    * TSDB: Fixed race on concurrent queries against same data. #6512
- Changes from 2.15.0
  + Features 
    * API: Added new endpoint for exposing per metric metadata `/metadata`. #6420 #6442
  + Changes
    * Discovery: Removed `prometheus_sd_kubernetes_cache_*` metrics. Additionally `prometheus_sd_kubernetes_workqueue_latency_seconds` and `prometheus_sd_kubernetes_workqueue_work_duration_seconds` metrics now show correct values in seconds. #6393
    * Remote write: Changed `query` label on `prometheus_remote_storage_*` metrics to `remote_name` and `url`. #6043
  + Enhancements
    * TSDB: Significantly reduced memory footprint of loaded TSDB blocks. #6418 #6461
    * TSDB: Significantly optimized what we buffer during compaction which should result in lower memory footprint during compaction. #6422 #6452 #6468 #6475
    * TSDB: Improve replay latency. #6230
    * TSDB: WAL size is now used for size based retention calculation. #5886
    * Remote read: Added query grouping and range hints to the remote read request #6401
    * Remote write: Added `prometheus_remote_storage_sent_bytes_total` counter per queue. #6344
    * promql: Improved PromQL parser performance. #6356
    * React UI: Implemented missing pages like `/targets` #6276, TSDB status page #6281 #6267 and many other fixes and performance improvements.
    * promql: Prometheus now accepts spaces between time range and square bracket. e.g `[ 5m]` #6065  
  + Bug fixes
    * Config: Fixed alertmanager configuration to not miss targets when configurations are similar. #6455
    * Remote write: Value of `prometheus_remote_storage_shards_desired` gauge shows raw value of desired shards and it's updated correctly. #6378
    * Rules: Prometheus now fails the evaluation of rules and alerts where metric results collide with labels specified in `labels` field. #6469
    * API: Targets Metadata API `/targets/metadata` now accepts empty `match_targets` parameter as in the spec. #6303
- Changes from 2.14.0
  + Features 
    * API: `/api/v1/status/runtimeinfo` and `/api/v1/status/buildinfo` endpoints added for use by the React UI. #6243
    * React UI: implement the new experimental React based UI. #5694 and many more
      * Can be found by under `/new`.
      * Not all pages are implemented yet.
    * Status: Cardinality statistics added to the Runtime & Build Information page. #6125
  + Enhancements
    * Remote write: fix delays in remote write after a compaction. #6021
    * UI: Alerts can be filtered by state. #5758
  + Bug fixes
    * Ensure warnings from the API are escaped. #6279
    * API: lifecycle endpoints return 403 when not enabled. #6057
    * Build: Fix Solaris build. #6149
    * Promtool: Remove false duplicate rule warnings when checking rule files with alerts. #6270
    * Remote write: restore use of deduplicating logger in remote write. #6113
    * Remote write: do not reshard when unable to send samples. #6111
    * Service discovery: errors are no longer logged on context cancellation. #6116, #6133
    * UI: handle null response from API properly. #6071
- Changes from 2.13.1
  + Bug fixes
    * Fix panic in ARM builds of Prometheus. #6110
    * promql: fix potential panic in the query logger. #6094
    * Multiple errors of http: superfluous response.WriteHeader call in the logs. #6145
- Changes from 2.13.0
  + Enhancements
    * Metrics: renamed prometheus_sd_configs_failed_total to prometheus_sd_failed_configs and changed to Gauge #5254
    * Include the tsdb tool in builds. #6089
    * Service discovery: add new node address types for kubernetes. #5902
    * UI: show warnings if query have returned some warnings. #5964
    * Remote write: reduce memory usage of the series cache. #5849
    * Remote read: use remote read streaming to reduce memory usage. #5703
    * Metrics: added metrics for remote write max/min/desired shards to queue manager. #5787
    * Promtool: show the warnings during label query. #5924
    * Promtool: improve error messages when parsing bad rules. #5965
    * Promtool: more promlint rules. #5515
  + Bug fixes
    * UI: Fix a Stored DOM XSS vulnerability with query history [CVE-2019-10215](http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-10215). #6098
    * Promtool: fix recording inconsistency due to duplicate labels. #6026
    * UI: fixes service-discovery view when accessed from unhealthy targets. #5915
    * Metrics format: OpenMetrics parser crashes on short input. #5939
    * UI: avoid truncated Y-axis values. #6014
- Changes from 2.12.0
  + Features 
    * Track currently active PromQL queries in a log file. #5794
    * Enable and provide binaries for `mips64` / `mips64le` architectures. #5792
  + Enhancements
    * Improve responsiveness of targets web UI and API endpoint. #5740
    * Improve remote write desired shards calculation. #5763
    * Flush TSDB pages more precisely. tsdb#660
    * Add `prometheus_tsdb_retention_limit_bytes` metric. tsdb#667
    * Add logging during TSDB WAL replay on startup. tsdb#662
    * Improve TSDB memory usage. tsdb#653, tsdb#643, tsdb#654, tsdb#642, tsdb#627
  + Bug fixes
    * Check for duplicate label names in remote read. #5829
    * Mark deleted rules' series as stale on next evaluation. #5759
    * Fix JavaScript error when showing warning about out-of-sync server time. #5833
    * Fix `promtool test rules` panic when providing empty `exp_labels`. #5774
    * Only check last directory when discovering checkpoint number. #5756
    * Fix error propagation in WAL watcher helper functions. #5741
    * Correctly handle empty labels from alert templates. #5845
- Update Uyuni/SUSE Manager service discovery patch
  + Modified 0003-Add-Uyuni-service-discovery.patch:
  + Adapt service discovery to the new Uyuni API endpoints
  + Modified spec file: force golang 1.12 to fix build issues in SLE15SP2
- Update to Prometheus 2.11.2

OBS-URL: https://build.opensuse.org/request/show/809049
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=30
2020-06-02 20:45:18 +00:00
Jan Fajerski
0cdc715ef8 Accepting request 767725 from home:witekbedyk:branches:server:monitoring
- Update to Prometheus 2.11.2

OBS-URL: https://build.opensuse.org/request/show/767725
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=29
2020-01-27 14:02:31 +00:00
ba75614851 Accepting request 750798 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/750798
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=7
2019-12-02 10:30:26 +00:00
Jan Fajerski
bbc1d7ca82 Accepting request 750776 from home:jcavalheiro:monitoring
Fix spec file to allow build in SLE 12

OBS-URL: https://build.opensuse.org/request/show/750776
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=27
2019-11-25 15:41:44 +00:00
Lars Vogdt
be2cdb4342 Accepting request 750103 from home:jfajerski:branches:server:monitoring
- Remove prometheus.firewall.xml source file

OBS-URL: https://build.opensuse.org/request/show/750103
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=25
2019-11-25 13:10:48 +00:00
85200fb256 Accepting request 750102 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/750102
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=6
2019-11-25 10:22:31 +00:00
Jan Fajerski
03de3965fb Accepting request 750018 from home:mrostecki:branches:server:monitoring
- Remove firewalld files. They are installed in the main firewalld
  package.

OBS-URL: https://build.opensuse.org/request/show/750018
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=23
2019-11-21 13:26:06 +00:00
Jan Fajerski
7718fb7f67 Accepting request 749960 from home:jcavalheiro:monitoring
- Update Uyuni/SUSE Manager service discovery patch
  + Modified 0003-Add-Uyuni-service-discovery.patch 
  + Fixes crashes when systems have no FQDN 
  + Adds Parallel calls to Uyuni API, meaningful performance increase
  + Adds Support for system group labels
- Do not install the firewalld config file on Tumbleweed (on
  versions newer than Leap 15.1). It's installed in the main
  firewalld package.

OBS-URL: https://build.opensuse.org/request/show/749960
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=22
2019-11-21 13:23:19 +00:00
Jan Fajerski
36f130c841 Accepting request 733036 from home:mrostecki:branches:server:monitoring
- Do not install the firewalld config file on Tumbleweed (on
  versions newer than Leap 15.1). It's installed in the main
  firewalld package.

OBS-URL: https://build.opensuse.org/request/show/733036
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=21
2019-09-25 06:49:15 +00:00
31237338a0 Accepting request 723937 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/723937
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=5
2019-08-23 09:03:01 +00:00
Tim Serong
5b1dc77f7b Accepting request 723936 from home:jfajerski:branches:server:monitoring
document changes a bit better

OBS-URL: https://build.opensuse.org/request/show/723936
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=19
2019-08-16 08:40:50 +00:00
bc5625bd16 Accepting request 721459 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/721459
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=4
2019-08-09 14:50:44 +00:00
Tim Serong
2f88fef4ba Accepting request 720641 from home:jfajerski:branches:server:monitoring
- Add network-online (Wants and After) dependency to systemd unit bsc#1143913
- Build with PIE
  + Added 0004-prometheus-buildmode-pie.patch
- Only package required files (reduces rpm size by 4 MB)
- Add sysconfig file
- Add firewall config file
- Use variables for defining user and group
- Add support for Uyuni/SUSE Manager service discovery
  + Added 0003-Add-Uyuni-service-discovery.patch
- readded _service file removed in error. 
- Update to 2.11.1 
  + Bug Fix:
    * Fix potential panic when prometheus is watching multiple zookeeper paths.
- Update to 2.11.0
  + Bug Fix:
    * resolve race condition in maxGauge. 
    * Fix ZooKeeper connection leak. 
    * Improved atomicity of .tmp block replacement during compaction for usual case. 
    * Fix "unknown series references" after clean shutdown. 
    * Re-calculate block size when calling block.Delete. 
    * Fix unsafe snapshots with head block. 
    * prometheus_tsdb_compactions_failed_total is now incremented on any compaction failure. 
  + Changes:
    * Remove max_retries from queue_config (it has been unused since rewriting remote-write to utilize the write-ahead-log)
    * The meta file BlockStats no longer holds size information. This is now dynamically calculated and kept in memory. It also includes the meta file size which was not included before
    * Renamed metric from prometheus_tsdb_wal_reader_corruption_errors to prometheus_tsdb_wal_reader_corruption_errors_total
  + Features:
    * Add option to use Alertmanager API v2. 
    * Added humanizePercentage function for templates. 
    * Include InitContainers in Kubernetes Service Discovery. 
    * Provide option to compress WAL records using Snappy. 
  + Enhancements:
    * Create new clean segment when starting the WAL. 
    * Reduce allocations in PromQL aggregations. 
    * Add storage warnings to LabelValues and LabelNames API results. 
    * Add prometheus_http_requests_total metric. 
    * Enable openbsd/arm build. 
    * Remote-write allocation improvements. 
    * Query performance improvement: Efficient iteration and search in HashForLabels and HashWithoutLabels. 
    * Allow injection of arbitrary headers in promtool. 
    * Allow passing external_labels in alert unit tests groups. 
    * Allows globs for rules when unit testing.
    * Improved postings intersection matching. 
    * Reduced disk usage for WAL for small setups. 
    * Optimize queries using regexp for set lookups. 
 
- rebase patch002-Default-settings.patch 
- Update to 2.10.0:
  + Bug Fixes:
    * TSDB: Don't panic when running out of disk space and recover nicely from the condition
    * TSDB: Correctly handle empty labels.
    * TSDB: Don't crash on an unknown tombstone reference. 
    * Storage/remote: Remove queue-manager specific metrics if queue no longer exists. 
    * PromQL: Correctly display {__name__="a"}. 
    * Discovery/kubernetes: Use service rather than ingress as the name for the service workqueue. 
    * Discovery/azure: Don't panic on a VM with a public IP. 
    * Web: Fixed Content-Type for js and css instead of using /etc/mime.types.
    * API: Encode alert values as string to correctly represent Inf/NaN. 
  + Features:
    * Template expansion: Make external labels available as $externalLabels in alert and console template expansion. 
    * TSDB: Add prometheus_tsdb_wal_segment_current metric for the WAL segment index that TSDB is currently writing to. tsdb
    * Scrape: Add scrape_series_added per-scrape metric. #5546
  + Enhancements
    * Discovery/kubernetes: Add labels __meta_kubernetes_endpoint_node_name and __meta_kubernetes_endpoint_hostname. 
    * Discovery/azure: Add label __meta_azure_machine_public_ip. 
    * TSDB: Simplify mergedPostings.Seek, resulting in better performance if there are many posting lists. tsdb
    * Log filesystem type on startup. 
    * Cmd/promtool: Use POST requests for Query and QueryRange. client_golang
    * Web: Sort alerts by group name. 
    * Console templates: Add convenience variables $rawParams, $params, $path.
- Upadte to 2.9.2
  + Bug Fixes:
    * Make sure subquery range is taken into account for selection 
    * Exhaust every request body before closing it 
    * Cmd/promtool: return errors from rule evaluations 
    * Remote Storage: string interner should not panic in release 
    * Fix memory allocation regression in mergedPostings.Seek tsdb
- Update to 2.9.1
  + Bug Fixes:
    * Discovery/kubernetes: fix missing label sanitization 
    * Remote_write: Prevent reshard concurrent with calling stop 
- Update to 2.9.0 
  + Feature: 
    * Add honor_timestamps scrape option.
  + Enhancements:	
    * Update Consul to support catalog.ServiceMultipleTags.
    * Discovery/kubernetes: add present labels for labels/annotations.
    * OpenStack SD: Add ProjectID and UserID meta labels.
    * Add GODEBUG and retention to the runtime page. 
    * Add support for POSTing to /series endpoint. 
    * Support PUT methods for Lifecycle and Admin APIs.
    * Scrape: Add global jitter for HA server.
    * Check for cancellation on every step of a range evaluation. 
    * String interning for labels & values in the remote_write path.
    * Don't lose the scrape cache on a failed scrape.
    * Reload cert files from disk automatically. common
    * Use fixed length millisecond timestamp format for logs. common
    * Performance improvements for postings. 
  Bug Fixes:
    * Remote Write: fix checkpoint reading. 
    * Check if label value is valid when unmarshaling external labels from YAML. 
    * Promparse: sort all labels when parsing. 
    * Reload rules: copy state on both name and labels. 
    * Exponentation operator to drop metric name in result of operation. 
    * Config: resolve more file paths. 
    * Promtool: resolve relative paths in alert test files. 
    * Set TLSHandshakeTimeout in HTTP transport. common
    * Use fsync to be more resilient to machine crashes. 
    * Keep series that are still in WAL in checkpoints.
- Update to 2.8.1
  + Bug Fixes
    *  Display the job labels in /targets which was removed accidentally
- Update to 2.8.0 
  + Change:
    * This release uses Write-Ahead Logging (WAL) for the remote_write API. This currently causes a slight increase in memory usage, which will be addressed in future releases.
    * Default time retention is used only when no size based retention is specified. These are flags where time retention is specified by the flag --storage.tsdb.retention and size retention by --storage.tsdb.retention.size. 
    * prometheus_tsdb_storage_blocks_bytes_total is now prometheus_tsdb_storage_blocks_bytes. 
  + Feature:
    * (EXPERIMENTAL) Time overlapping blocks are now allowed; vertical compaction and vertical query merge. It is an optional feature which is controlled by the --storage.tsdb.allow-overlapping-blocks flag, disabled by default.
  + Enhancements:  
	* Use the WAL for remote_write API.
    * Query performance improvements. 
    * UI enhancements with upgrade to Bootstrap 4. 
    * Reduce time that Alertmanagers are in flux when reloaded. 
    * Limit number of metrics displayed on UI to 10000. 
    * (1) Remember All/Unhealthy choice on target-overview when reloading page. (2) Resize text-input area on Graph page on mouseclick. 
    * In histogram_quantile merge buckets with equivalent le values. 
    * Show list of offending labels in the error message in many-to-many scenarios. 
    * Show Storage Retention criteria in effect on /status page. 
  + Bug Fixes: 
    + Fix sorting of rule groups. 
    + Fix support for password_file and bearer_token_file in Kubernetes SD. 
    + Scrape: catch errors when creating HTTP clients  
    + Adds new metrics:
        prometheus_target_scrape_pools_total
        prometheus_target_scrape_pools_failed_total
        prometheus_target_scrape_pool_reloads_total
        prometheus_target_scrape_pool_reloads_failed_total
    + Fix panic when aggregator param is not a literal.
- fix spec file: actually ship promtool
- Update to 2.7.1:
  + Bug Fixes:
    * Fix a Stored DOM XSS vulnerability with query history (boo#1124610)
    * prometheus_rule_group_last_duration_seconds now reports seconds instead of nanoseconds
    * Make sure the targets are consistently sorted in the targets page
- Update to 2.7.0:
  + cli flag depreacted: storage.tsdb.retention use storage.tsdb.retention.time
    instead; depreacted flag will be removed in 3.0
  + Features:
    * Add subqueries to PromQL
    * Add support for disk size based retention. Note that we don't
      consider the WAL size which could be significant and the time
      based retention policy also applies (experimental)
    * Add CORS origin flag
  + Bug Fixes:
    * Don't depend on given order when comparing samples in alert unit testing
    * Make sure the retention period doesn't overflow
    * Don't generate blocks with no samples
- Update to 2.6.0:
  + Remove default flags from the container's entrypoint, run Prometheus from
    /etc/prometheus and symlink the storage directory to /etc/prometheus/data
  + Promtool: Remove the update command
  + Features:
    * Add JSON log format via the --log.format flag
    * API: Add /api/v1/labels endpoint to get all label names
    * Web: Allow setting the page's title via the --web.ui-title flag
  + Enhancements:
    * Add prometheus_tsdb_lowest_timestamp_seconds, prometheus_tsdb_head_min_time_seconds
      and prometheus_tsdb_head_max_time_seconds metrics
    * Add rule_group_last_evaluation_timestamp_seconds metric
    * Add prometheus_template_text_expansion_failures_total and prometheus_template_text_expansions_total metrics
    * Set consistent User-Agent header in outgoing requests
    * Azure SD: Error out at load time when authentication parameters are missing
    * EC2 SD: Add the machine's private DNS name to the discovery metadata
    * EC2 SD: Add the operating system's platform to the discovery metadata
    * Kubernetes SD: Add the pod's phase to the discovery metadata
    * Kubernetes SD: Log Kubernetes messages
    * Promtool: Collect CPU and trace profiles
    * Promtool: Support writing output as JSON
    * Remote Read: Return available data if remote read fails partially
    * Remote Write: Improve queue performance
    * Remote Write: Add min_shards parameter to set the minimum number of shards
    * TSDB: Improve WAL reading
    * TSDB: Memory improvements
    * Web: Log stack traces on panic
    * Web UI: Add copy to clipboard button for configuration
    * Web UI: Support console queries at specific times
    * Web UI: group targets by job then instance
  + Bug Fixes:
    * Deduplicate handler labels for HTTP metrics
    * Fix leaked queriers causing shutdowns to hang
    * Fix configuration loading panics on nil pointer slice elements
    * API: Correctly skip mismatching targets on /api/v1/targets/metadata
    * API: Better rounding for incoming query timestamps
    * Discovery: Remove all targets when the scrape configuration gets empty
    * PromQL: Fix a goroutine leak in the lexer/parser
    * Scrape: Fix deadlock in the scrape's manager
    * Scrape: Scrape targets at fixed intervals even after Prometheus restarts
    * TSDB: Support restored snapshots including the head properly
    * TSDB: Repair WAL when the last record in a segment is torn
- Update to 2.5.0
  + Group targets by scrape config instead of job name
  + Marathon SD: Various changes to adapt to Marathon 1.5+
  + Discovery: Split prometheus_sd_discovered_targets metric by scrape and
    notify (Alertmanager SD) as well as by section in the respective configuration
  + Enhancements:
    * Support s390x platform for Linux
    * API: Add prometheus_api_remote_read_queries metric tracking currently
      executed or waiting remote read API requests
    * Remote Read: Add prometheus_remote_storage_remote_read_queries metric
      tracking currently in-flight remote read queries
    * Remote Read: Reduced memory usage
    * Discovery: Add prometheus_sd_discovered_targets,
      prometheus_sd_received_updates_total, prometheus_sd_updates_delayed_total,
      and prometheus_sd_updates_total metrics for discovery subsystem
    * Discovery: Improve performance of previously slow updates of changes of targets
    * Kubernetes SD: Add extended metrics
    * OpenStack SD: Support discovering instances from all projects
    * OpenStack SD: Discover all interfaces
    * OpenStack SD: Support tls_config for the used HTTP client
    * Triton SD: Add ability to filter triton_sd targets by pre-defined groups
    * Web UI: Avoid browser spell-checking in expression field
    * Web UI: Add scrape duration and last evaluation time in targets and rules pages
    * Web UI: Improve rule view by wrapping lines
    * Rules: Error out at load time for invalid templates, rather than at evaluation time
  + Bug Fixes:
    * Change max/min over_time to handle NaNs properly
    * Check label name for count_values PromQL function
    * Ensure that vectors and matrices do not contain identical label-sets
- Update to 2.4.3
  + Bug Fixes:
    [BUGFIX] Fix panic when using custom EC2 API for SD #4672
    [BUGFIX] Fix panic when Zookeeper SD cannot connect to servers #4669
    [BUGFIX] Make the skip_head an optional parameter for snapshot API #4674
- Update to 2.4.2
  + Bug Fixes:
    [BUGFIX] Handle WAL corruptions properly prometheus/tsdb#389
    [BUGFIX] Handle WAL migrations correctly on Windows prometheus/tsdb#392
- Update to 2.4.1
  + New TSDB metrics
  + Bug Fixes:
  Render UI correctly for Windows
- Update to 2.4.0
  + The WAL implementation has been re-written so the storage is not forward
    compatible. Prometheus 2.3 storage will work on 2.4 but not vice-versa
  + Reduce remote write default retries
  + Remove /heap endpoint
  + Features:
    * Persist alert 'for' state across restarts
    * Add API providing per target metric metadata
    * Add API providing recording and alerting rules
  + Enhancements:
    * Brand new WAL implementation for TSDB. Forwards incompatible with previous WAL.
    * Show rule evaluation errors in UI
    * Throttle resends of alerts to Alertmanager
    * Send EndsAt along with the alert to Alertmanager
    * Limit the samples returned by remote read endpoint
    * Limit the data read in through remote read
    * Coalesce identical SD configuations
    * promtool: Add new commands for debugging and querying
    * Update console examples for node_exporter v0.16.0
    * Optimize PromQL aggregations
    * Remote read: Add Offset to hints
    * consul_sd: Add support for ServiceMeta field
    * ec2_sd: Maintain order of subnet_id label
    * ec2_sd: Add support for custom endpoint to support EC2 compliant APIs
    * ec2_sd: Add instance_owner label
    * azure_sd: Add support for VMSS discovery and multiple environments
    * gce_sd: Add instance_id label
    * Forbid rule-abiding robots from indexing
    * Log virtual memory limits on startup
  + Bug Fixes:
    * Wait for service discovery to stop before exiting
    * Render SD configs properly
    * Only add LookbackDelta to vector selectors
    * ec2_sd: Handle panic-ing nil pointer
    * consul_sd: Stop leaking connections
    * Use templated labels also to identify alerts
    * Reduce floating point errors in stddev and related functions
    * Log errors while encoding responses
- Update to 2.3.2
  + Bug Fixes:
    * Fix various tsdb bugs
    * Reorder startup and shutdown to prevent panics.
    * Exit with non-zero code on error
    * discovery/kubernetes/ingress: fix scheme discovery
    * Fix race in zookeeper sd
    * Better timeout handling in promql
    * Propogate errors when selecting series from the tsdb
- Update to 2.3.1
  + Bug Fixes:
    * Avoid infinite loop on duplicate NaN values.
    * Fix nil pointer deference when using various API endpoints
    * config: set target group source index during unmarshalling
    * discovery/file: fix logging
    * kubernetes_sd: fix namespace filtering
    * web: restore old path prefix behavior
    * web: remove security headers added in 2.3.0
- Update to 2.3.0
  + marathon_sd: use auth_token and auth_token_file for token-based authentication
    instead of bearer_token and bearer_token_file respectively
  + Metric names for HTTP server metrics changed
  + Features:
    * Add query commands to promtool
    * Add security headers to HTTP server responses
    * Pass query hints via remote read API
    * Basic auth passwords can now be configured via file across all configuration
  + Enhancements:
    * Optimise PromQL and API serialization for memory usage and allocations
    * Limit number of dropped targets in web UI
    * Consul and EC2 service discovery allow using server-side filtering for performance improvement
    * Add advanced filtering configuration to EC2 service discovery
    * marathon_sd: adds support for basic and bearer authentication, plus all
      other common HTTP client options (TLS config, proxy URL, etc.)
    * Provide machine type metadata and labels in GCE service discovery
    * Add pod controller kind and name to Kubernetes service discovery data
    * Move TSDB to flock-based log file that works with Docker containers
  + Bug Fixes:
    * Properly propagate storage errors in PromQL
    * Fix path prefix for web pages
    * Fix goroutine leak in Consul service discovery
    * Fix races in scrape manager
    * Fix OOM for very large k in PromQL topk() queries
    * Make remote write more resilient to unavailable receivers
    * Make remote write shutdown cleanly
    * Don't leak files on errors in TSDB's tombstone cleanup
    * Unary minus expressions now removes the metric name from results
    * Fix bug that lead to wrong amount of samples considered for time range expressions
- Update to 2.2.1
  + Bug Fixes:
    * Fix data loss in TSDB on compaction
    * Correctly stop timer in remote-write path
    * Fix deadlock triggered by loading targets page
    * Fix incorrect buffering of samples on range selection queries
    * Handle large index files on windows properly
- Update to 2.2.0
  + This release introduces improvements to the storage format and fixes a
    regression introduced in 2.1. As a result Prometheus servers upgraded
    to 2.2 cannot be downgraded to a lower version anymore!
  + Rename file SD mtime metric
  + Send target update on empty pod IP in Kubernetes SD
  + Features:
    * Add API endpoint for flags.
    * Add API endpoint for dropped targets.
    * Display annotations on alerts page.
    * Add option to skip head data when taking snapshots
  + Enhancements:
    * Federation performance improvement.
    * Read bearer token file on every scrape.
    * Improve typeahead on /graph page.
    * Change rule file formatting.
    * Set consul server default to localhost:8500.
    * Add dropped Alertmanagers to API info endpoint.
    * Add OS type meta label to Azure SD.
    * Validate required fields in SD configuration.
  + Bug Fixes:
    * Prevent stack overflow on deep recursion in TSDB.
    * Correctly read offsets in index files that are greater than 4GB.
    * Fix scraping behavior for empty labels.
    * Drop metric name for bool modifier.
    * Fix races in discovery.
    * Fix Kubernetes endpoints SD for empty subsets.
    * Throttle updates from SD providers, which caused increased CPU usage and allocations.
    * Fix TSDB block reload issue.
    * Fix PromQL printing of empty without().
    * Don't reset FiredAt for inactive alerts.
    * Fix erroneous file version changes and repair existing data.
- remove pr-3174.patch, has been fixed in https://github.com/prometheus/prometheus/pull/3517
- spec: fix directory for fdupes 
- Update to 2.1.0:
  + Features:
    * New Service Discovery UI showing labels before and after relabelling.
    * New Admin APIs added to v1 to delete, snapshot and remove tombstones.
  + Enhancements:
    * The graph UI autcomplete now includes your previous queries.
    * Federation is now much faster for large numbers of series.
    * Added new metrics to measure rule timings.
    * Rule evaluation times added to the rules UI.
    * Added metrics to measure modified time of file SD files.
    * Kubernetes SD now includes POD UID in discovery metadata.
    * The Query APIs now return optional stats on query execution times.
    * The index now no longer has the 4GiB size limit and is also smaller.
  + Bug Fixes:
    * Remote read read_recent option is now false by default.
    * Pass the right configuration to each Alertmanager (AM) when using
      multiple AM configs.
    * Fix not-matchers not selecting series with labels unset.
    * tsdb: Fix occasional panic in head block.
    * tsdb: Close files before deletion to fix retention issues on Windows
      and NFS.
    * tsdb: Cleanup and do not retry failing compactions.
    * tsdb: Close WAL while shutting down.
- Update to final v2.0.0 release (bsc#1067341):
  + Compared to version 1.x, this release includes a completely rewritten
    storage engine, huge performance improvements, but also many backwards
    incompatible changes.  For more information, read the announcement blog
    post and migration guide:
    - https://prometheus.io/blog/2017/11/08/announcing-prometheus-2-0/
    - https://prometheus.io/docs/prometheus/2.0/migration/
  + Changes:
    * Completely rewritten storage layer, with WAL.  This is not backwards
      compatible with 1.x storage,  and many flags have changed/disappeared.
    * New staleness behavior. Series now marked stale after target scrapes
      no longer return them, and soon after targets disappear from service
      discovery.
    * Rules files use YAML syntax now.  Conversion tool added to promtool.
    * Removed count_scalar, drop_common_labels functions and keep_common
      modifier from PromQL.
    * Rewritten exposition format parser with much higher performance.  The
      Protobuf exposition format is no longer supported.
    * Example console templates updated for new storage and metrics names.
      Examples other than node exporter and Prometheus removed.
    * Admin and lifecycle APIs now disabled by default, can be reenabled via
      flags
    * Flags switched to using Kingpin, all flags are now --flagname rather
      than -flagname.
  + Features:
    * Remote read can be configured to not read data which is available
      locally.  This is enabled by default.
    * Rules can be grouped now.  Rules within a rule group are executed
      sequentially.
    * Added experimental GRPC apis
    * Add timestamp() function to PromQL.
  + Enhancements:
    * Remove remote read from the query path if no remote storage is
      configured.
    * Bump Consul HTTP client timeout to not match the Consul SD watch
      timeout.
    * Go-conntrack added to provide HTTP connection metrics.
  + Bug Fixes:
    * Fix connection leak in Consul SD.
- Update to v2.0.0-rc.3 (bsc#1067030):
  + Enhancements:
    * Remove remote read from the query path if no remote storage
      is configured.
    * Bump Consul HTTP client timeout to not match the Consul SD
      watch timeout.
    * Bump up a too small max block duration to the min block
      duration instead of returning an error.
  + Bug Fixes:
    * Avoid needless padding of 4 zero bytes in index files.
    * Delete old blocks during reload (necessary on MS Windows).
    * Fix regression of alert rules state loss on config reload.
    * Serialize background WAL operations to avoid data races.
  + This also contains bugfixes and remote-storage features from
    the 1.8 branch.
- Update to v2.0.0-rc.2 (bsc#1065377):
  + Enhancements:
    * Handle WAL segments with corrupted header gracefully
    * Stabilize memory usage during WAL replay
  + Changes:
    * Prefix all storage metrics with prometheus_
  + Bug Fixes:
    * Correctly handle label removal in remote read
    * Fix chunk misalignment causing out-of-order samples
    * Fix connection leak in Consul SD
    * Handle invalid chunk dereferences gracefully
    * Prevent potential deadlock during failing querier construction
- Update to v2.0.0-rc.1:
  + Features/Enhancements:
    * Added a warning for time-drift between the browser and the
      prometheus-server.
    * Much faster WAL read-back on restart.
  + Bug Fixes:
    * Fixed Remote-read to not drop the first series.
    * Validate recording-rule names.
    * Fix several races.
    * Only close blocks if there are no iterators accessing it.
- Refresh 0002-Default-settings.patch
- Update to v2.0.0-rc.0:
  + Numerous changes to the new storage layer, the main changes being:
    * Remove `count_scalar`, `keep_common` and `drop_common_labels` functions
    * Breaking change in the index format for better consistency 
    * Fix panic due garbage collected mmap'ed strings 
    * Fix broken snapshots and admin APIs 
    * Send HTTP Accept header when scraping
    * Use the WAL flush interval passed instead of the hardcoded value
  + This release requires a clean storage directory and is not compatible
    with files created by previous beta releases
- Refresh 0002-Default-settings.patch
- Fix loopback address for REST API gateway (bsc#1059462)
  + Added pr-3174.patch
- Update to v2.0.0-beta.5:
  + Bug Fixes:
    *  Remove deadlock on startup when restoring WAL
    * Fix semantical races resulting in invalid persisted files
    * Correctly read back WAL in certain edge cases
    * Prevent crashes caused by changing metric representations in target's
      /metrics
  + Enhancements:
    * Overall memory usage reduction
    * Serve debugging endpoints while TSDB is loading
    * Healthy endpoint correctly reflects liveness during startup
    * Switch to consistent usage of go-kit/log
  + This release may have issues with files written by previous beta releases
- Refresh 0002-Default-settings.patch to apply cleanly again
- Update to v2.0.0-beta.4:
  + Numerous changes to the new storage layer, the main changes being:
    * Single, compacted write ahead log
    * Single in-memory block with garbage collection
    * Improve compression of index files
    * Cache series dropped via metric_relabel_configs
    * Pool byte buffers for scraping
  + Overall the changes achieve a baseline reduction in memory consumption
    and reduce peak memory usage by 30-40% compared to 2.0.0-beta.2
  + This release requires a clean storage directory and is not compatible
    with files created by previous beta releases
- Update to v2.0.0-beta.2
  + vendor: update prometheus/tsdb (Fix panic caused by 0 division)
- Update to v2.0.0-beta.1
  + Includes a new storage layer, which reduces bottlenecks and shows
    considerable performance improvements, but does not work with old v1
    storage data.
- Refresh 0002-Default-settings.patch to apply cleanly again
- Add systemd unit file and default config (/etc/prometheus/prometheus.yml)
- Run as unprivileged "prometheus" user
- Default to /etc/prometheus for config and /var/lib/prometheus for metrics
  + Added 0002-Default-settings.patch
- Add BuildRequires: glibc-devel-static to fix aarch64 build
- Initial version

OBS-URL: https://build.opensuse.org/request/show/720641
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=17
2019-08-07 08:15:50 +00:00
Jan Fajerski
e4a9cf08d9 Accepting request 720580 from home:gladiac:branches:server:monitoring
Uses $ARGS in sysconfig and service file now.

OBS-URL: https://build.opensuse.org/request/show/720580
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=16
2019-08-02 11:20:08 +00:00
Jan Fajerski
2c7e43427f Accepting request 718818 from home:jcavalheiro:monitoring
Temporary patch to support SUSE Manager service discovery. Its a non-disruptive extension to Prometheus and it is expected to be resilient to version upgrades. Plan is to remove this patch once we have it upstreamed. 

- Add support for Uyuni/SUSE Manager service discovery
  + Added 0003-Add-Uyuni-service-discovery

OBS-URL: https://build.opensuse.org/request/show/718818
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=15
2019-07-26 11:24:49 +00:00
45857ab0cd Accepting request 716752 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/716752
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=3
2019-07-22 10:18:33 +00:00
Jan Fajerski
cb6536eb0e Accepting request 716729 from home:simoncrute:branches:server:monitoring
- readded _service file removed in error. 
- Update to 2.11.1 
  + Bug Fix:
    * Fix potential panic when prometheus is watching multiple zookeeper paths.
- Update to 2.11.0
  + Bug Fix:
    * resolve race condition in maxGauge. 
    * Fix ZooKeeper connection leak. 
    * Improved atomicity of .tmp block replacement during compaction for usual case. 
    * Fix "unknown series references" after clean shutdown. 
    * Re-calculate block size when calling block.Delete. 
    * Fix unsafe snapshots with head block. 
    * prometheus_tsdb_compactions_failed_total is now incremented on any compaction failure. 
  + Changes:
    * Remove max_retries from queue_config (it has been unused since rewriting remote-write to utilize the write-ahead-log)
    * The meta file BlockStats no longer holds size information. This is now dynamically calculated and kept in memory. It also includes the meta file size which was not included before
    * Renamed metric from prometheus_tsdb_wal_reader_corruption_errors to prometheus_tsdb_wal_reader_corruption_errors_total
  + Features:
    * Add option to use Alertmanager API v2. 
    * Added humanizePercentage function for templates. 
    * Include InitContainers in Kubernetes Service Discovery. 
    * Provide option to compress WAL records using Snappy. 
  + Enhancements:
    * Create new clean segment when starting the WAL. 
    * Reduce allocations in PromQL aggregations. 
    * Add storage warnings to LabelValues and LabelNames API results. 
    * Add prometheus_http_requests_total metric. 
    * Enable openbsd/arm build. 
    * Remote-write allocation improvements. 
    * Query performance improvement: Efficient iteration and search in HashForLabels and HashWithoutLabels. 
    * Allow injection of arbitrary headers in promtool. 
    * Allow passing external_labels in alert unit tests groups. 
    * Allows globs for rules when unit testing.
    * Improved postings intersection matching. 
    * Reduced disk usage for WAL for small setups. 
    * Optimize queries using regexp for set lookups.

OBS-URL: https://build.opensuse.org/request/show/716729
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=13
2019-07-19 07:43:39 +00:00
Dirk Stoecker
3485edbd72 Accepting request 713709 from home:simoncrute:branches:server:monitoring
- rebase patch002-Default-settings.patch 
- Update to 2.10.0:
  + Bug Fixes:
    * TSDB: Don't panic when running out of disk space and recover nicely from the condition
    * TSDB: Correctly handle empty labels.
    * TSDB: Don't crash on an unknown tombstone reference. 
    * Storage/remote: Remove queue-manager specific metrics if queue no longer exists. 
    * PromQL: Correctly display {__name__="a"}. 
    * Discovery/kubernetes: Use service rather than ingress as the name for the service workqueue. 
    * Discovery/azure: Don't panic on a VM with a public IP. 
    * Web: Fixed Content-Type for js and css instead of using /etc/mime.types.
    * API: Encode alert values as string to correctly represent Inf/NaN. 
  + Features:
    * Template expansion: Make external labels available as $externalLabels in alert and console template expansion. 
    * TSDB: Add prometheus_tsdb_wal_segment_current metric for the WAL segment index that TSDB is currently writing to. tsdb
    * Scrape: Add scrape_series_added per-scrape metric. #5546
  + Enhancements
    * Discovery/kubernetes: Add labels __meta_kubernetes_endpoint_node_name and __meta_kubernetes_endpoint_hostname. 
    * Discovery/azure: Add label __meta_azure_machine_public_ip. 
    * TSDB: Simplify mergedPostings.Seek, resulting in better performance if there are many posting lists. tsdb
    * Log filesystem type on startup. 
    * Cmd/promtool: Use POST requests for Query and QueryRange. client_golang
    * Web: Sort alerts by group name. 
    * Console templates: Add convenience variables $rawParams, $params, $path.
- Upadte to 2.9.2
  + Bug Fixes:
    * Make sure subquery range is taken into account for selection 
    * Exhaust every request body before closing it 
    * Cmd/promtool: return errors from rule evaluations 
    * Remote Storage: string interner should not panic in release 
    * Fix memory allocation regression in mergedPostings.Seek tsdb
- Update to 2.9.1
  + Bug Fixes:
    * Discovery/kubernetes: fix missing label sanitization 
    * Remote_write: Prevent reshard concurrent with calling stop 
- Update to 2.9.0 
  + Feature: 
    * Add honor_timestamps scrape option.
  + Enhancements:	
    * Update Consul to support catalog.ServiceMultipleTags.
    * Discovery/kubernetes: add present labels for labels/annotations.
    * OpenStack SD: Add ProjectID and UserID meta labels.
    * Add GODEBUG and retention to the runtime page. 
    * Add support for POSTing to /series endpoint. 
    * Support PUT methods for Lifecycle and Admin APIs.
    * Scrape: Add global jitter for HA server.
    * Check for cancellation on every step of a range evaluation. 
    * String interning for labels & values in the remote_write path.
    * Don't lose the scrape cache on a failed scrape.
    * Reload cert files from disk automatically. common
    * Use fixed length millisecond timestamp format for logs. common
    * Performance improvements for postings. 
  Bug Fixes:
    * Remote Write: fix checkpoint reading. 
    * Check if label value is valid when unmarshaling external labels from YAML. 
    * Promparse: sort all labels when parsing. 
    * Reload rules: copy state on both name and labels. 
    * Exponentation operator to drop metric name in result of operation. 
    * Config: resolve more file paths. 
    * Promtool: resolve relative paths in alert test files. 
    * Set TLSHandshakeTimeout in HTTP transport. common
    * Use fsync to be more resilient to machine crashes. 
    * Keep series that are still in WAL in checkpoints.
- Update to 2.8.1
  + Bug Fixes
    *  Display the job labels in /targets which was removed accidentally
- Update to 2.8.0 
  + Change:
    * This release uses Write-Ahead Logging (WAL) for the remote_write API. This currently causes a slight increase in memory usage, which will be addressed in future releases.
    * Default time retention is used only when no size based retention is specified. These are flags where time retention is specified by the flag --storage.tsdb.retention and size retention by --storage.tsdb.retention.size. 
    * prometheus_tsdb_storage_blocks_bytes_total is now prometheus_tsdb_storage_blocks_bytes. 
  + Feature:
    * (EXPERIMENTAL) Time overlapping blocks are now allowed; vertical compaction and vertical query merge. It is an optional feature which is controlled by the --storage.tsdb.allow-overlapping-blocks flag, disabled by default.
  + Enhancements:  
	* Use the WAL for remote_write API.
    * Query performance improvements. 
    * UI enhancements with upgrade to Bootstrap 4. 
    * Reduce time that Alertmanagers are in flux when reloaded. 
    * Limit number of metrics displayed on UI to 10000. 
    * (1) Remember All/Unhealthy choice on target-overview when reloading page. (2) Resize text-input area on Graph page on mouseclick. 
    * In histogram_quantile merge buckets with equivalent le values. 
    * Show list of offending labels in the error message in many-to-many scenarios. 
    * Show Storage Retention criteria in effect on /status page. 
  + Bug Fixes: 
    + Fix sorting of rule groups. 
    + Fix support for password_file and bearer_token_file in Kubernetes SD. 
    + Scrape: catch errors when creating HTTP clients  
    + Adds new metrics:
        prometheus_target_scrape_pools_total
        prometheus_target_scrape_pools_failed_total
        prometheus_target_scrape_pool_reloads_total
        prometheus_target_scrape_pool_reloads_failed_total
    + Fix panic when aggregator param is not a literal.

OBS-URL: https://build.opensuse.org/request/show/713709
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=12
2019-07-06 20:18:59 +00:00
Stephan Kulow
deca19e5cd Accepting request 678197 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/678197
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=2
2019-02-28 20:42:37 +00:00
Tim Serong
8496b3ae03 Accepting request 678196 from home:jfajerski:branches:server:monitoring
- fix spec file: actually ship promtool

OBS-URL: https://build.opensuse.org/request/show/678196
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=10
2019-02-22 09:44:31 +00:00
Jan Fajerski
157d051512 Accepting request 673317 from home:jfajerski:branches:server:monitoring
Change BuildRequires for go1.11

OBS-URL: https://build.opensuse.org/request/show/673317
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=9
2019-02-11 12:07:08 +00:00
Jan Fajerski
c8f22932a6 Accepting request 673305 from home:jfajerski:branches:server:monitoring
Note pr-3174.patch removal in changes file to make Factory bot happy.

OBS-URL: https://build.opensuse.org/request/show/673305
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=8
2019-02-11 11:32:54 +00:00
Tim Serong
d6a5de2026 Accepting request 672738 from home:jfajerski:branches:server:monitoring
- Update to 2.7.1:
  + Bug Fixes:
    * Fix a Stored DOM XSS vulnerability with query history (boo#1124610)
    * prometheus_rule_group_last_duration_seconds now reports seconds instead of nanoseconds
    * Make sure the targets are consistently sorted in the targets page
- Update to 2.7.0:
  + cli flag depreacted: storage.tsdb.retention use storage.tsdb.retention.time
    instead; depreacted flag will be removed in 3.0
  + Features:
    * Add subqueries to PromQL
    * Add support for disk size based retention. Note that we don't
      consider the WAL size which could be significant and the time
      based retention policy also applies (experimental)
    * Add CORS origin flag
  + Bug Fixes:
    * Don't depend on given order when comparing samples in alert unit testing
    * Make sure the retention period doesn't overflow
    * Don't generate blocks with no samples
- Update to 2.6.0:
  + Remove default flags from the container's entrypoint, run Prometheus from
    /etc/prometheus and symlink the storage directory to /etc/prometheus/data
  + Promtool: Remove the update command
  + Features:
    * Add JSON log format via the --log.format flag
    * API: Add /api/v1/labels endpoint to get all label names
    * Web: Allow setting the page's title via the --web.ui-title flag
  + Enhancements:
    * Add prometheus_tsdb_lowest_timestamp_seconds, prometheus_tsdb_head_min_time_seconds
      and prometheus_tsdb_head_max_time_seconds metrics
    * Add rule_group_last_evaluation_timestamp_seconds metric
    * Add prometheus_template_text_expansion_failures_total and prometheus_template_text_expansions_total metrics
    * Set consistent User-Agent header in outgoing requests
    * Azure SD: Error out at load time when authentication parameters are missing
    * EC2 SD: Add the machine's private DNS name to the discovery metadata
    * EC2 SD: Add the operating system's platform to the discovery metadata
    * Kubernetes SD: Add the pod's phase to the discovery metadata
    * Kubernetes SD: Log Kubernetes messages
    * Promtool: Collect CPU and trace profiles
    * Promtool: Support writing output as JSON
    * Remote Read: Return available data if remote read fails partially
    * Remote Write: Improve queue performance
    * Remote Write: Add min_shards parameter to set the minimum number of shards
    * TSDB: Improve WAL reading
    * TSDB: Memory improvements
    * Web: Log stack traces on panic
    * Web UI: Add copy to clipboard button for configuration
    * Web UI: Support console queries at specific times
    * Web UI: group targets by job then instance
  + Bug Fixes:
    * Deduplicate handler labels for HTTP metrics
    * Fix leaked queriers causing shutdowns to hang
    * Fix configuration loading panics on nil pointer slice elements
    * API: Correctly skip mismatching targets on /api/v1/targets/metadata
    * API: Better rounding for incoming query timestamps
    * Discovery: Remove all targets when the scrape configuration gets empty
    * PromQL: Fix a goroutine leak in the lexer/parser
    * Scrape: Fix deadlock in the scrape's manager
    * Scrape: Scrape targets at fixed intervals even after Prometheus restarts
    * TSDB: Support restored snapshots including the head properly
    * TSDB: Repair WAL when the last record in a segment is torn
- Update to 2.5.0
  + Group targets by scrape config instead of job name
  + Marathon SD: Various changes to adapt to Marathon 1.5+
  + Discovery: Split prometheus_sd_discovered_targets metric by scrape and
    notify (Alertmanager SD) as well as by section in the respective configuration
  + Enhancements:
    * Support s390x platform for Linux
    * API: Add prometheus_api_remote_read_queries metric tracking currently
      executed or waiting remote read API requests
    * Remote Read: Add prometheus_remote_storage_remote_read_queries metric
      tracking currently in-flight remote read queries
    * Remote Read: Reduced memory usage
    * Discovery: Add prometheus_sd_discovered_targets,
      prometheus_sd_received_updates_total, prometheus_sd_updates_delayed_total,
      and prometheus_sd_updates_total metrics for discovery subsystem
    * Discovery: Improve performance of previously slow updates of changes of targets
    * Kubernetes SD: Add extended metrics
    * OpenStack SD: Support discovering instances from all projects
    * OpenStack SD: Discover all interfaces
    * OpenStack SD: Support tls_config for the used HTTP client
    * Triton SD: Add ability to filter triton_sd targets by pre-defined groups
    * Web UI: Avoid browser spell-checking in expression field
    * Web UI: Add scrape duration and last evaluation time in targets and rules pages
    * Web UI: Improve rule view by wrapping lines
    * Rules: Error out at load time for invalid templates, rather than at evaluation time
  + Bug Fixes:
    * Change max/min over_time to handle NaNs properly
    * Check label name for count_values PromQL function
    * Ensure that vectors and matrices do not contain identical label-sets
- Update to 2.4.3
  + Bug Fixes:
    [BUGFIX] Fix panic when using custom EC2 API for SD #4672
    [BUGFIX] Fix panic when Zookeeper SD cannot connect to servers #4669
    [BUGFIX] Make the skip_head an optional parameter for snapshot API #4674
- Update to 2.4.2
  + Bug Fixes:
    [BUGFIX] Handle WAL corruptions properly prometheus/tsdb#389
    [BUGFIX] Handle WAL migrations correctly on Windows prometheus/tsdb#392
- Update to 2.4.1
  + New TSDB metrics
  + Bug Fixes:
  Render UI correctly for Windows
- Update to 2.4.0
  + The WAL implementation has been re-written so the storage is not forward
    compatible. Prometheus 2.3 storage will work on 2.4 but not vice-versa
  + Reduce remote write default retries
  + Remove /heap endpoint
  + Features:
    * Persist alert 'for' state across restarts
    * Add API providing per target metric metadata
    * Add API providing recording and alerting rules
  + Enhancements:
    * Brand new WAL implementation for TSDB. Forwards incompatible with previous WAL.
    * Show rule evaluation errors in UI
    * Throttle resends of alerts to Alertmanager
    * Send EndsAt along with the alert to Alertmanager
    * Limit the samples returned by remote read endpoint
    * Limit the data read in through remote read
    * Coalesce identical SD configuations
    * promtool: Add new commands for debugging and querying
    * Update console examples for node_exporter v0.16.0
    * Optimize PromQL aggregations
    * Remote read: Add Offset to hints
    * consul_sd: Add support for ServiceMeta field
    * ec2_sd: Maintain order of subnet_id label
    * ec2_sd: Add support for custom endpoint to support EC2 compliant APIs
    * ec2_sd: Add instance_owner label
    * azure_sd: Add support for VMSS discovery and multiple environments
    * gce_sd: Add instance_id label
    * Forbid rule-abiding robots from indexing
    * Log virtual memory limits on startup
  + Bug Fixes:
    * Wait for service discovery to stop before exiting
    * Render SD configs properly
    * Only add LookbackDelta to vector selectors
    * ec2_sd: Handle panic-ing nil pointer
    * consul_sd: Stop leaking connections
    * Use templated labels also to identify alerts
    * Reduce floating point errors in stddev and related functions
    * Log errors while encoding responses
- Update to 2.3.2
  + Bug Fixes:
    * Fix various tsdb bugs
    * Reorder startup and shutdown to prevent panics.
    * Exit with non-zero code on error
    * discovery/kubernetes/ingress: fix scheme discovery
    * Fix race in zookeeper sd
    * Better timeout handling in promql
    * Propogate errors when selecting series from the tsdb
- Update to 2.3.1
  + Bug Fixes:
    * Avoid infinite loop on duplicate NaN values.
    * Fix nil pointer deference when using various API endpoints
    * config: set target group source index during unmarshalling
    * discovery/file: fix logging
    * kubernetes_sd: fix namespace filtering
    * web: restore old path prefix behavior
    * web: remove security headers added in 2.3.0
- Update to 2.3.0
  + marathon_sd: use auth_token and auth_token_file for token-based authentication
    instead of bearer_token and bearer_token_file respectively
  + Metric names for HTTP server metrics changed
  + Features:
    * Add query commands to promtool
    * Add security headers to HTTP server responses
    * Pass query hints via remote read API
    * Basic auth passwords can now be configured via file across all configuration
  + Enhancements:
    * Optimise PromQL and API serialization for memory usage and allocations
    * Limit number of dropped targets in web UI
    * Consul and EC2 service discovery allow using server-side filtering for performance improvement
    * Add advanced filtering configuration to EC2 service discovery
    * marathon_sd: adds support for basic and bearer authentication, plus all
      other common HTTP client options (TLS config, proxy URL, etc.)
    * Provide machine type metadata and labels in GCE service discovery
    * Add pod controller kind and name to Kubernetes service discovery data
    * Move TSDB to flock-based log file that works with Docker containers
  + Bug Fixes:
    * Properly propagate storage errors in PromQL
    * Fix path prefix for web pages
    * Fix goroutine leak in Consul service discovery
    * Fix races in scrape manager
    * Fix OOM for very large k in PromQL topk() queries
    * Make remote write more resilient to unavailable receivers
    * Make remote write shutdown cleanly
    * Don't leak files on errors in TSDB's tombstone cleanup
    * Unary minus expressions now removes the metric name from results
    * Fix bug that lead to wrong amount of samples considered for time range expressions
- Update to 2.2.1
  + Bug Fixes:
    * Fix data loss in TSDB on compaction
    * Correctly stop timer in remote-write path
    * Fix deadlock triggered by loading targets page
    * Fix incorrect buffering of samples on range selection queries
    * Handle large index files on windows properly
- Update to 2.2.0
  + This release introduces improvements to the storage format and fixes a
    regression introduced in 2.1. As a result Prometheus servers upgraded
    to 2.2 cannot be downgraded to a lower version anymore!
  + Rename file SD mtime metric
  + Send target update on empty pod IP in Kubernetes SD
  + Features:
    * Add API endpoint for flags.
    * Add API endpoint for dropped targets.
    * Display annotations on alerts page.
    * Add option to skip head data when taking snapshots
  + Enhancements:
    * Federation performance improvement.
    * Read bearer token file on every scrape.
    * Improve typeahead on /graph page.
    * Change rule file formatting.
    * Set consul server default to localhost:8500.
    * Add dropped Alertmanagers to API info endpoint.
    * Add OS type meta label to Azure SD.
    * Validate required fields in SD configuration.
  + Bug Fixes:
    * Prevent stack overflow on deep recursion in TSDB.
    * Correctly read offsets in index files that are greater than 4GB.
    * Fix scraping behavior for empty labels.
    * Drop metric name for bool modifier.
    * Fix races in discovery.
    * Fix Kubernetes endpoints SD for empty subsets.
    * Throttle updates from SD providers, which caused increased CPU usage and allocations.
    * Fix TSDB block reload issue.
    * Fix PromQL printing of empty without().
    * Don't reset FiredAt for inactive alerts.
    * Fix erroneous file version changes and repair existing data.

OBS-URL: https://build.opensuse.org/request/show/672738
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=7
2019-02-08 10:30:26 +00:00
f36b7c44d0 Accepting request 586687 from server:monitoring
Initial submission to Factory. https://lists.opensuse.org/opensuse-factory/2018-03/msg00085.html

OBS-URL: https://build.opensuse.org/request/show/586687
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-prometheus?expand=0&rev=1
2018-03-16 09:41:39 +00:00
Klaus Kämpf
c606722779 Accepting request 586680 from home:jfajerski:branches:server:monitoring
- spec: fix directory for fdupes

OBS-URL: https://build.opensuse.org/request/show/586680
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=5
2018-03-14 08:37:06 +00:00
Klaus Kämpf
7c8a5543ed Accepting request 581969 from home:tserong:branches:server:monitoring
Add detail to 2.1.0 changelog entry

OBS-URL: https://build.opensuse.org/request/show/581969
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=4
2018-03-03 08:28:17 +00:00
Lars Vogdt
141b291c5b Accepting request 569480 from security:logging
- Update to 2.1.0

OBS-URL: https://build.opensuse.org/request/show/569480
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=3
2018-01-29 12:36:06 +00:00
Lars Vogdt
94d001d618 Accepting request 542044 from filesystems:openATTIC:3.x
OBS-URL: https://build.opensuse.org/request/show/542044
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=2
2017-11-18 17:00:03 +00:00
Lars Vogdt
213acb88c1 Accepting request 493648 from home:tserong
Added systemd unit and default config on top of moio's package

OBS-URL: https://build.opensuse.org/request/show/493648
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=1
2017-05-17 22:07:04 +00:00
15 changed files with 433 additions and 107 deletions

View File

@ -1,4 +1,4 @@
From abe26292de2c69a14aa223d2ba866779e63d79cd Mon Sep 17 00:00:00 2001
From b47f7e3be0836970dfe48ba476039dc9ac9998b7 Mon Sep 17 00:00:00 2001
From: Jan Fajerski <jfajerski@suse.com>
Date: Fri, 8 Feb 2019 09:17:06 +0100
Subject: [PATCH] Do not force the pure Go name resolver
@ -16,7 +16,7 @@ Signed-off-by: Johannes Kastl <git@johannes-kastl.de>
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.promu.yml b/.promu.yml
index 0aa51d6d3..06c9c579d 100644
index 6feaa6ef6..48d42ee92 100644
--- a/.promu.yml
+++ b/.promu.yml
@@ -12,12 +12,12 @@ build:
@ -34,5 +34,5 @@ index 0aa51d6d3..06c9c579d 100644
-X github.com/prometheus/common/version.Version={{.Version}}
-X github.com/prometheus/common/version.Revision={{.Revision}}
--
2.44.1
2.44.2

View File

@ -1,29 +1,30 @@
From 5d505396f2a4e1a9f5fd3ea57113fa58c968518e Mon Sep 17 00:00:00 2001
From 2f263c89b6d7acae310f2e5ae384345673b3fe24 Mon Sep 17 00:00:00 2001
From: Jan Fajerski <jfajerski@suse.com>
Date: Fri, 8 Feb 2019 09:28:12 +0100
Subject: [PATCH] Default settings
Signed-off-by: Jan Fajerski <jfajerski@suse.com>
Signed-off-by: Johannes Kastl <kastl@b1-systems.de>
Signed-off-by: Johannes Kastl <git@johannes-kastl.de>
---
cmd/prometheus/main.go | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/cmd/prometheus/main.go b/cmd/prometheus/main.go
index 1d844ddba..5580dfa57 100644
index bcfbe24a6..447c8919e 100644
--- a/cmd/prometheus/main.go
+++ b/cmd/prometheus/main.go
@@ -288,7 +288,7 @@ func main() {
@@ -319,7 +319,7 @@ func main() {
a.HelpFlag.Short('h')
a.Flag("config.file", "Prometheus configuration file path.").
- Default("prometheus.yml").StringVar(&cfg.configFile)
+ Default("/etc/prometheus/prometheus.yml").StringVar(&cfg.configFile)
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() {
Default(supportedRemoteWriteProtoMsgs.Strings()...).SetValue(rwProtoMsgFlagValue(&cfg.web.AcceptRemoteWriteProtoMsgs))
a.Flag("config.auto-reload-interval", "Specifies the interval for checking and automatically reloading the Prometheus configuration file upon detecting changes.").
Default("30s").SetValue(&cfg.autoReloadInterval)
@@ -379,10 +379,10 @@ func main() {
Default("false").BoolVar(&cfg.web.EnableOTLPWriteReceiver)
a.Flag("web.console.templates", "Path to the console template directory, available at /consoles.").
- Default("consoles").StringVar(&cfg.web.ConsoleTemplatesPath)
@ -35,7 +36,7 @@ index 1d844ddba..5580dfa57 100644
a.Flag("web.page-title", "Document title of Prometheus instance.").
Default("Prometheus Time Series Collection and Processing Server").StringVar(&cfg.web.PageTitle)
@@ -347,7 +347,7 @@ func main() {
@@ -391,7 +391,7 @@ func main() {
Default(".*").StringVar(&cfg.corsRegexString)
serverOnlyFlag(a, "storage.tsdb.path", "Base path for metrics storage.").
@ -45,5 +46,5 @@ index 1d844ddba..5580dfa57 100644
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)
--
2.44.1
2.44.2

View File

@ -1,61 +0,0 @@
From 4d25a94faa74e0a16e4bb7874c1d82faaf911d85 Mon Sep 17 00:00:00 2001
From: Daniel Mellado <dmellado@redhat.com>
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 <dmellado@redhat.com>
---
go.mod | 4 ++--
go.sum | 9 ++++-----
2 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/go.mod b/go.mod
index ac8b4f469d0..ce2f0714a0a 100644
--- a/go.mod
+++ b/go.mod
@@ -146,10 +146,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=

View File

@ -19,8 +19,8 @@ tar:
tar -zxf $$wd/$$tar.gz && \
cd $$basename && \
make assets npm_licenses assets-compress && \
tar -cf $$wd/$$web_ui web/ui/static/react && \
find web/ui/static -type f -name '*.gz' -exec tar -rf $$wd/$$web_ui "{}" \; && \
tar -cf $$wd/$$web_ui web/ui/static/react-app && \
find web/ui/static -type f -name '*.gz' -exec tar -rf $$wd/$$web_ui "{}" \; && \
tar -rf $$wd/$$web_ui web/ui/embed.go && \
cd .. && \
echo "Creating web assets tarball" && \
@ -28,3 +28,4 @@ tar:
cd $$wd && \
gzip -f $$web_ui && \
rm -rf $$tmpdir
echo "Finished successfully"

View File

@ -4,15 +4,15 @@
<param name="scm">git</param>
<param name="exclude">.git</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="revision">v2.54.0</param>
<param name="revision">v3.2.1</param>
<param name="versionrewrite-pattern">v(.*)</param>
<param name="match-tag">v2*</param>
<param name="match-tag">v3*</param>
</service>
<service name="recompress" mode="manual">
<param name="file">*.tar</param>
<param name="compression">gz</param>
</service>
<service name="go_modules" mode="manual">
<param name="archive">prometheus-2.54.0.tar.gz</param>
<param name="archive">prometheus-3.2.1.tar.gz</param>
</service>
</services>

View File

@ -1,3 +1,395 @@
-------------------------------------------------------------------
Wed Feb 26 09:58:56 UTC 2025 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
- update to 3.2.1:
* [BUGFIX] Don't send
Acceptheaderescape=allow-utf-8whenmetric_name_validation_scheme:
legacy` is configured. #16061
-------------------------------------------------------------------
Tue Feb 18 06:07:57 UTC 2025 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
- update to 3.2.0:
* [CHANGE] relabel: Replace actions can now use UTF-8 characters
in targetLabel field. Note that $<chars> or ${<chars>} will be
expanded. This also apply to replacement field for LabelMap
action. #15851
* [CHANGE] rulefmt: Rule names can use UTF-8 characters, except {
and } characters (due to common mistake checks). #15851
* [FEATURE] remote/otlp: Add feature flag otlp-deltatocumulative
to support conversion from delta to cumulative. #15165
* [ENHANCEMENT] openstack SD: Discover Octavia loadbalancers.
#15539
* [ENHANCEMENT] scrape: Add metadata for automatic metrics to WAL
for metadata-wal-records feature. #15837
* [ENHANCEMENT] promtool: Support linting of scrape interval,
through lint option too-long-scrape-interval. #15719
* [ENHANCEMENT] promtool: Add --ignore-unknown-fields option.
#15706
* [ENHANCEMENT] ui: Make "hide empty rules" and hide empty rules"
persistent #15807
* [ENHANCEMENT] web/api: Add a limit parameter to /query and
/query_range. #15552
* [ENHANCEMENT] api: Add fields Node and ServerTime to /status.
#15784
* [PERF] Scraping: defer computing labels for dropped targets
until they are needed by the UI. #15261
* [BUGFIX] remotewrite2: Fix invalid metadata bug for metrics
without metadata. #15829
* [BUGFIX] remotewrite2: Fix the unit field propagation. #15825
* [BUGFIX] scrape: Fix WAL metadata for histograms and summaries.
#15832
* [BUGFIX] ui: Merge duplicate "Alerts page settings" sections.
#15810
* [BUGFIX] PromQL: Fix <aggr_over_time> functions with
histograms. #15711
-------------------------------------------------------------------
Thu Jan 2 17:19:35 UTC 2025 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
- update to 3.1.0:
* [SECURITY] upgrade golang.org/x/crypto to address reported
CVE-2024-45337. #15691
* [CHANGE] Notifier: Increment
prometheus_notifications_errors_total by the number of affected
alerts rather than per batch. #15428
* [CHANGE] API: list rules field "groupNextToken:omitempty"
renamed to "groupNextToken". #15400
* [ENHANCEMENT] OTLP translate: keep identifying attributes in
target_info. #15448
* [ENHANCEMENT] Paginate rule groups, add infinite scroll to
rules within groups. #15677
* [ENHANCEMENT] TSDB: Improve calculation of space used by
labels. #13880
* [ENHANCEMENT] Rules: new metric
rule_group_last_rule_duration_sum_seconds. #15672
* [ENHANCEMENT] Observability: Export
'go_sync_mutex_wait_total_seconds_total' metric. #15339
* [ENHANCEMEN] Remote-Write: optionally use a DNS resolver that
picks a random IP. #15329
* [PERF] Optimize l=~".+" matcher. #15474, #15684
* [PERF] TSDB: Cache all symbols for compaction . #15455
* [PERF] TSDB: MemPostings: keep a map of label values slices.
#15426
* [PERF] Remote-Write: Remove interning hook. #15456
* [PERF] Scrape: optimize string manipulation for experimental
native histograms with custom buckets. #15453
* [PERF] TSDB: reduce memory allocations. #15465, #15427
* [PERF] Storage: Implement limit in mergeGenericQuerier. #14489
* [PERF] TSDB: Optimize inverse matching. #14144
* [PERF] Regex: use stack memory for lowercase copy of string.
#15210
* [PERF] TSDB: When deleting from postings index, pause to unlock
and let readers read. #15242
* [BUGFIX] Main: Avoid possible segfault at exit. (#15724)
* [BUGFIX] Rules: Do not run rules concurrently if uncertain
about dependencies. #15560
* [BUGFIX] PromQL: Adds test for absent, absent_over_time and
deriv func with histograms. #15667
* [BUGFIX] PromQL: Fix various bugs related to quoting UTF-8
characters. #15531
* [BUGFIX] Scrape: fix nil panic after scrape loop reload. #15563
* [BUGFIX] Remote-write: fix panic on repeated log message.
#15562
* [BUGFIX] Scrape: reload would ignore
always_scrape_classic_histograms and
convert_classic_histograms_to_nhcb configs. #15489
* [BUGFIX] TSDB: fix data corruption in experimental native
histograms. #15482
* [BUGFIX] PromQL: Ignore histograms in all time related
functions. #15479
* [BUGFIX] OTLP receiver: Convert metric metadata. #15416
* [BUGFIX] PromQL: Fix resets function for histograms. #15527
* [BUGFIX] PromQL: Fix behaviour of changes() for mix of
histograms and floats. #15469
* [BUGFIX] PromQL: Fix behaviour of some aggregations with
histograms. #15432
* [BUGFIX] allow quoted exemplar keys in openmetrics text format.
#15260
* [BUGFIX] TSDB: fixes for rare conditions when loading
write-behind-log (WBL). #15380
* [BUGFIX] round() function did not remove __name__ label. #15250
* [BUGFIX] Promtool: analyze block shows metric name with 0
cardinality. #15438
* [BUGFIX] PromQL: Fix count_values for histograms. #15422
* [BUGFIX] PromQL: fix issues with comparison binary operations
with bool modifier and native histograms. #15413
* [BUGFIX] PromQL: fix incorrect "native histogram ignored in
aggregation" annotations. #15414
* [BUGFIX] PromQL: Corrects the behaviour of some operator and
aggregators with Native Histograms. #15245
* [BUGFIX] TSDB: Always return unknown hint for first sample in
non-gauge histogram chunk. #15343
* [BUGFIX] PromQL: Clamp functions: Ignore any points with native
histograms. #15169
* [BUGFIX] TSDB: Fix race on stale values in headAppender. #15322
* [BUGFIX] UI: Fix selector / series formatting for empty metric
names. #15340
* [BUGFIX] OTLP receiver: Allow colons in non-standard units.
#15710
-------------------------------------------------------------------
Fri Dec 13 11:39:57 UTC 2024 - Witek Bedyk <witold.bedyk@suse.com>
- Explicitly set CGO_ENABLED=1 for architectures which require it
-------------------------------------------------------------------
Fri Dec 6 15:58:05 UTC 2024 - Witek Bedyk <witold.bedyk@suse.com>
- Packaging improvements:
* Require Go >= 1.22 for building
* Drop BuildRequires: golang-packaging
* Build PIE
-------------------------------------------------------------------
Sat Nov 30 16:10:34 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
- update to 3.0.1:
* [BUGFIX] Promql: Make subqueries left open. #15431
* [BUGFIX] Fix memory leak when query log is enabled. #15434
* [BUGFIX] Support utf8 names on /v1/label/:name/values endpoint.
#15399
-------------------------------------------------------------------
Sat Nov 30 13:31:05 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
- update to 3.0.0:
This release includes new features such as a brand new UI and
UTF-8 support enabled by default. As this marks the first new
major version in seven years, several breaking changes are
introduced. The breaking changes are mainly around the removal of
deprecated feature flags and CLI arguments, and the full list can
be found below. For users that want to upgrade we recommend to
read through our migration guide.
- [CHANGE] Set the GOMAXPROCS variable automatically to match the
Linux CPU quota. Use --no-auto-gomaxprocs to disable it. The
auto-gomaxprocs feature flag was removed. #15376
- [CHANGE] Set the GOMEMLIMIT variable automatically to match the
Linux container memory limit. Use --no-auto-gomemlimit to
disable it. The auto-gomemlimit feature flag was removed.
#15373
- [CHANGE] Scraping: Remove implicit fallback to the Prometheus
text format in case of invalid/missing Content-Type and fail
the scrape instead. Add ability to specify a
fallback_scrape_protocol in the scrape config. #15136
- [CHANGE] Remote-write: default enable_http2 to false. #15219
- [CHANGE] Scraping: normalize "le" and "quantile" label values
upon ingestion. #15164
- [CHANGE] Scraping: config scrape_classic_histograms was renamed
to always_scrape_classic_histograms. #15178
- [CHANGE] Config: remove expand-external-labels flag, expand
external labels env vars by default. #14657
- [CHANGE] Disallow configuring AM with the v1 api. #13883
- [CHANGE] regexp . now matches all characters (performance
improvement). #14505
- [CHANGE] holt_winters is now called
double_exponential_smoothing and moves behind the
experimental-promql-functions feature flag. #14930
- [CHANGE] API: The OTLP receiver endpoint can now be enabled
using --web.enable-otlp-receiver instead of
--enable-feature=otlp-write-receiver. #14894
- [CHANGE] Prometheus will not add or remove port numbers from
the target address. no-default-scrape-port feature flag
removed. #14160
- [CHANGE] Logging: the format of log lines has changed a little,
along with the adoption of Go's Structured Logging package.
#14906
- [CHANGE] Don't create extra `_created` timeseries if
feature-flag created-timestamp-zero-ingestion is enabled.
#14738
- [CHANGE] Float literals and time durations being the same is
now a stable fetaure. #15111
- [CHANGE] UI: The old web UI has been replaced by a completely
new one that is less cluttered and adds a few new features
(PromLens-style tree view, better metrics explorer, "Explain"
tab). However, it is still missing some features of the old UI
(notably, exemplar display and heatmaps). To switch back to the
old UI, you can use the feature flag --enable-feature=old-ui
for the time being. #14872
- [CHANGE] PromQL: Range selectors and the lookback delta are now
left-open, i.e. a sample coinciding with the lower time limit
is excluded rather than included. #13904
- [CHANGE] Kubernetes SD: Remove support for
discovery.k8s.io/v1beta1 API version of EndpointSlice. This
version is no longer served as of Kubernetes v1.25. #14365
- [CHANGE] Kubernetes SD: Remove support for
networking.k8s.io/v1beta1 API version of Ingress. This version
is no longer served as of Kubernetes v1.22. #14365
- [CHANGE] UTF-8: Enable UTF-8 support by default. Prometheus now
allows all UTF-8 characters in metric and label names. The
corresponding utf8-name feature flag has been removed. #14705
- [CHANGE] Console: Remove example files for the console feature.
Users can continue using the console feature by supplying their
own JavaScript and templates. #14807
- [CHANGE] SD: Enable the new service discovery manager by
default. This SD manager does not restart unchanged discoveries
upon reloading. This makes reloads faster and reduces pressure
on service discoveries' sources. The corresponding
new-service-discovery-manager feature flag has been removed.
#14770
- [CHANGE] Agent mode has been promoted to stable. The feature
flag agent has been removed. To run Prometheus in Agent mode,
use the new --agent cmdline arg instead. #14747
- [CHANGE] Remove deprecated
remote-write-receiver,promql-at-modifier, and
promql-negative-offset feature flags. #13456, #14526
- [CHANGE] Remove deprecated
storage.tsdb.allow-overlapping-blocks, alertmanager.timeout,
and storage.tsdb.retention flags. #14640, #14643
- [FEATURE] OTLP receiver: Ability to skip UTF-8 normalization
using otlp.translation_strategy = NoUTF8EscapingWithSuffixes
configuration option. #15384
- [FEATURE] Support config reload automatically - feature flag
auto-reload-config. #14769
- [ENHANCEMENT] Scraping, rules: handle targets reappearing, or
rules moving group, when out-of-order is enabled. #14710
- [ENHANCEMENT] Tools: add debug printouts to promtool rules unit
testing #15196
- [ENHANCEMENT] Scraping: support Created-Timestamp feature on
native histograms. #14694
- [ENHANCEMENT] UI: Many fixes and improvements. #14898, #14899,
#14907, #14908, #14912, #14913, #14914, #14931, #14940, #14945,
#14946, #14972, #14981, #14982, #14994, #15096
- [ENHANCEMENT] UI: Web UI now displays notifications, e.g. when
starting up and shutting down. #15082
- [ENHANCEMENT] PromQL: Introduce exponential interpolation for
native histograms. #14677
- [ENHANCEMENT] TSDB: Add support for ingestion of out-of-order
native histogram samples. #14850, #14546
- [ENHANCEMENT] Alerts: remove metrics for removed Alertmanagers.
#13909
- [ENHANCEMENT] Kubernetes SD: Support sidecar containers in
endpoint discovery. #14929
- [ENHANCEMENT] Consul SD: Support catalog filters. #11224
- [ENHANCEMENT] Move AM discovery page from "Monitoring status"
to "Server status". #14875
- [PERF] TSDB: Parallelize deletion of postings after head
compaction. #14975
- [PERF] TSDB: Chunk encoding: shorten some write sequences.
#14932
- [PERF] TSDB: Grow postings by doubling. #14721
- [PERF] Relabeling: Optimize adding a constant label pair.
#12180
- [BUGFIX] Scraping: Don't log errors on empty scrapes. #15357
- [BUGFIX] UI: fix selector / series formatting for empty metric
names. #15341
- [BUGFIX] PromQL: Fix stddev+stdvar aggregations to always
ignore native histograms. #14941
- [BUGFIX] PromQL: Fix stddev+stdvar aggregations to treat
Infinity consistently. #14941
- [BUGFIX] OTLP receiver: Preserve colons when generating metric
names in suffix adding mode (this mode is always enabled,
unless one uses Prometheus as a library). #15251
- [BUGFIX] Scraping: Unit was missing when using protobuf format.
#15095
- [BUGFIX] PromQL: Only return "possible non-counter" annotation
when rate returns points. #14910
- [BUGFIX] TSDB: Chunks could have one unnecessary zero byte at
the end. #14854
- [BUGFIX] "superfluous response.WriteHeader call" messages in
log. #14884
- [BUGFIX] PromQL: Unary negation of native histograms. #14821
- [BUGFIX] PromQL: Handle stale marker in native histogram series
(e.g. if series goes away and comes back). #15025
- [BUGFIX] Autoreload: Reload invalid yaml files. #14947
- [BUGFIX] Scrape: Do not override target parameter labels with
config params. #11029
- rebased patches to 3.0.0
* 0001-Do-not-force-the-pure-Go-name-resolver.patch
* 0002-Default-settings.patch
-------------------------------------------------------------------
Thu Nov 14 13:20:04 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
- update to 2.55.1:
* [BUGFIX] round() function did not remove __name__ label. #15250
-------------------------------------------------------------------
Wed Oct 23 09:47:24 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
- update to 2.55.0:
* [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
- rebase patches
0001-Do-not-force-the-pure-Go-name-resolver.patch and
0002-Default-settings.patch
-------------------------------------------------------------------
Sat Sep 14 15:33:35 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
- update to 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
-------------------------------------------------------------------
Fri Aug 16 18:49:21 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>

View File

@ -1,7 +1,7 @@
#
# spec file for package golang-github-prometheus-prometheus
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2017 Silvio Moioli <moio@suse.com>
#
# All modifications and additions to the file contributed by third parties
@ -27,7 +27,7 @@
%endif
Name: golang-github-prometheus-prometheus
Version: 2.54.0
Version: 3.2.1
Release: 0
Summary: The Prometheus monitoring system and time series database
License: Apache-2.0
@ -55,8 +55,7 @@ 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
BuildRequires: golang(API) >= 1.22
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} >= 1500
Recommends: firewalld-prometheus-config
@ -68,8 +67,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 +82,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
@ -98,9 +102,6 @@ install -D -m 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/prometheus/prometheus.y
install -d -m 0755 %{buildroot}%{_sbindir}
ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rcprometheus
install -m 0755 -d %{buildroot}%{_datarootdir}/prometheus
cp -fr console_libraries/ consoles/ %{buildroot}%{_datarootdir}/prometheus
install -m 0755 -d %{buildroot}%{_fillupdir}
install -m 0644 %{SOURCE5} %{buildroot}%{_fillupdir}/sysconfig.prometheus
@ -114,7 +115,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}
@ -146,7 +146,6 @@ install -D -m0644 %{SOURCE7} %{buildroot}/%{_defaultlicensedir}/%{name}/npm_lice
%{_bindir}/promtool
%{_unitdir}/prometheus.service
%{_sbindir}/rcprometheus
%{_datarootdir}/prometheus
%{_fillupdir}/sysconfig.prometheus
%dir %attr(0700,prometheus,prometheus) %{_sharedstatedir}/prometheus
%dir %attr(0700,prometheus,prometheus) %{_sharedstatedir}/prometheus/data

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1253e3a02d6a6c774686cb414d69f17b52f6e1b8cd2ca47cd3690cf522061251
size 168914
oid sha256:ab534b4cf418de419ac13d8c002161d66a4949b7b4c373b77fa8fd4f789cdae1
size 95047

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2cf137bb8057c8634a5c25ac4b3717dfc9cbc6b81f3f0e5e6894dab797f256d7
size 6317918

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3425b96304551b524854f9d08d4dbaa70df3e04343b772373040b7217c81b2c7
size 6411184

3
prometheus-3.2.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7465009f3971471513a9cbcb64f048d28950ed0e7a0502cac76e8a2734dcf9d8
size 5130285

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2d85b4fb98ec75410384d4d270de0f83554f41ecfe448c2f1c061f975161025c
size 14596283
oid sha256:4ed8c8eb1bd20f0a9e698f08672bce495fda4d82035ff6be26596d4a63d67eee
size 15213959

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7a6f8def612ce4658afe2b7a0c78b388d19348e749f42b64e8e237795fc3a20a
size 3603395

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:986a7cd4b5ed99f051b5406e27b1e5d2262fcb3dfad2efa356a3ebaad3800351
size 3679048

3
web-ui-3.2.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:24339e4224cec2a97feae2df0d7eb9d82633b8626cbb0692e4ca3dc2bd9cec85
size 8631048