Commit Graph

14 Commits

Author SHA1 Message Date
Alex Simkin abf8949a2a prometheus: Update default tsdb directory handling
Use /srv/prometheus instead of /data, because user `prometheus` doens't
have permissions to create `/data/` in `/`.

Instead this commit puts prometheus data into `/srv/prometheus` by
default, which is a cleaner path, and it'll create tsdb path & then assign
required permissions on each prometheus service start.

This way, also, the cases when users re-configure tsdb to point to
external USB - it'll also be created and assigned required permissions for
prometheus.

Signed-off-by: Alex Simkin <sashasimkin@gmail.com>
2021-09-09 08:17:08 -10:00
Paul Spooren 6bfe3f12c9 prometheus: update to 2.25.2
See changes at upstream release log:
https://github.com/prometheus/prometheus/releases

Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-03-23 18:22:50 -10:00
Paul Spooren 08ba430c7d prometheus: bump to 2.22.0
As announced in the 2.21.0 release notes, the experimental gRPC API v2
has been removed.

[CHANGE] web: Remove APIv2. #7935
[ENHANCEMENT] React UI: Implement missing TSDB head stats section. #7876
[ENHANCEMENT] UI: Add Collapse all button to targets page. #6957
[ENHANCEMENT] UI: Clarify alert state toggle via checkbox icon. #7936
[ENHANCEMENT] Add rule_group_last_evaluation_samples and
    prometheus_tsdb_data_replay_duration_seconds metrics. #7737 #7977
[ENHANCEMENT] Gracefully handle unknown WAL record types. #8004
[ENHANCEMENT] Issue a warning for 64 bit systems running 32 bit
    binaries. #8012
[BUGFIX] Adjust scrape timestamps to align them to the intended
    schedule, effectively reducing block size. Workaround for a regression
    in go1.14+. #7976
[BUGFIX] promtool: Ensure alert rules are marked as restored in unit
    tests. #7661
[BUGFIX] Eureka: Fix service discovery when compiled in 32-bit. #7964
[BUGFIX] Don't do literal regex matching optimisation when case
    insensitive. #8013
[BUGFIX] Fix classic UI sometimes running queries for instant query when
    in range query mode. #7984

Signed-off-by: Paul Spooren <mail@aparcar.org>
2020-10-18 10:18:53 -10:00
Paul Spooren 69c8cb4129 prometheus: bump to 2.21.0
This release is built with Go 1.15, which deprecates X.509 CommonName
in TLS certificates validation.

In the unlikely case that you use the gRPC API v2 (which is limited to TSDB
admin commands), please note that we will remove this experimental API in the
next minor release 2.22.

[CHANGE] Disable HTTP/2 because of concerns with the Go HTTP/2 client. #7588 #7701
[CHANGE] PromQL: query_log_file path is now relative to the config file. #7701
[CHANGE] Promtool: Replace the tsdb command line tool by a promtool tsdb subcommand. #6088
[CHANGE] Rules: Label rule_group_iterations metric with group name. #7823
[FEATURE] Eureka SD: New service discovery. #3369
[FEATURE] Hetzner SD: New service discovery. #7822
[FEATURE] Kubernetes SD: Support Kubernetes EndpointSlices. #6838
[FEATURE] Scrape: Add per scrape-config targets limit. #7554
[ENHANCEMENT] Support composite durations in PromQL, config and UI, e.g. 1h30m. #7713 #7833
[ENHANCEMENT] DNS SD: Add SRV record target and port meta labels. #7678
[ENHANCEMENT] Docker Swarm SD: Support tasks and service without published ports. #7686
[ENHANCEMENT] PromQL: Reduce the amount of data queried by remote read when a subquery has an offset. #7667
[ENHANCEMENT] Promtool: Add --time option to query instant command. #7829
[ENHANCEMENT] UI: Respect the --web.page-title parameter in the React UI. #7607
[ENHANCEMENT] UI: Add duration, labels, annotations to alerts page in the React UI. #7605
[ENHANCEMENT] UI: Add duration on the React UI rules page, hide annotation and labels if empty. #7606
[BUGFIX] API: Deduplicate series in /api/v1/series. #7862
[BUGFIX] PromQL: Drop metric name in bool comparison between two instant vectors. #7819
[BUGFIX] PromQL: Exit with an error when time parameters can't be parsed. #7505
[BUGFIX] Remote read: Re-add accidentally removed tracing for remote-read requests. #7916
[BUGFIX] Rules: Detect extra fields in rule files. #7767
[BUGFIX] Rules: Disallow overwriting the metric name in the labels section of recording rules. #7787
[BUGFIX] Rules: Keep evaluation timestamp across reloads. #7775
[BUGFIX] Scrape: Do not stop scrapes in progress during reload. #7752
[BUGFIX] TSDB: Fix chunks.HeadReadWriter: maxt of the files are not set error. #7856
[BUGFIX] TSDB: Delete blocks atomically to prevent corruption when there is a panic/crash during deletion. #7772
[BUGFIX] Triton SD: Fix a panic when triton_sd_config is nil. #7671
[BUGFIX] UI: Fix react UI bug with series going on and off. #7804
[BUGFIX] UI: Fix styling bug for target labels with special names in React UI. #7902
[BUGFIX] Web: Stop CMUX and GRPC servers even with stale connections, preventing the server to stop on SIGTERM. #7810

Signed-off-by: Paul Spooren <mail@aparcar.org>
2020-09-14 11:03:21 -10:00
Paul Spooren 5882c3adc3 prometheus: set build info via x-flags
Similar to `syncthing` also `prometheus` build environment sets
variables later shown in the `--version` string. Set those varialbes.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2020-09-10 10:06:07 -10:00
Paul Spooren f712546f45 prometheus: bump to 2.20.1
Signed-off-by: Paul Spooren <mail@aparcar.org>
2020-09-05 20:31:16 -10:00
Paul Spooren 87afddea5a prometheus: bump to 2.15.2
Also remove fsnotify patch as compiling without it worked for mipsel64le

Signed-off-by: Paul Spooren <mail@aparcar.org>
2020-02-07 10:53:19 -10:00
Jeffery To 79b1942116 prometheus: Fix build for mips64/mips64el
Prometheus uses an older version of fsnotify, which uses a system call
(unix.InotifyInit) that is not implemented for mips64/mips64el.

This patches Prometheus to use a newer version of fsnotify that uses a
different system call (unix.InotifyInit1) that should be available on
all Linux systems.

Fixes #9494.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-07-23 04:07:56 +08:00
Paul Spooren e83152151b prometheus: update to 2.10
Signed-off-by: Paul Spooren <mail@aparcar.org>
2019-05-28 21:35:01 +02:00
Paul Spooren 86ea25cec3 prometheus: update to 2.8.0 + bzr-less backport
Update to 2.8.0 and add patch to get rid of the bzr requirement

Signed-off-by: Paul Spooren <mail@aparcar.org>
2019-03-25 08:33:03 +01:00
Paul Spooren 6f5fabc5c8 prometheus: update to 2.7.1
Signed-off-by: Paul Spooren <mail@aparcar.org>
2019-02-04 10:11:14 +01:00
Paul Spooren bd577f1d57 prometheus: update to 2.6.1
Signed-off-by: Paul Spooren <mail@aparcar.org>
2019-01-21 19:05:55 +01:00
Rosen Penev e8b7209830 prometheus: Update to 2.6.0
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2018-12-19 12:38:23 -08:00
Paul Spooren 5290727e64 prometheus: add package
Compile tested: x86/64, aarch64_cortex-a53
Run tested: x86/64

Signed-off-by: Paul Spooren <spooren@informatik.uni-leipzig.de>
Signed-off-by: Paul Spooren <mail@aparcar.org>
2018-07-26 20:29:35 +09:00