Commit Graph

69 Commits

Author SHA1 Message Date
Julien Pivotto
c6fae8bb0e prometheus: 2.30.3 -> 2.35.0
Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>
2022-04-27 15:30:36 +02:00
Corbin
f3cc015b87 prometheus: Optionally remove more service discovery.
Almost all service discovery can now be disabled, except for DNS-,
HTTP-, and file-based service discovery, which do not appear to include
extra code in the binary.

Before this change, bin/prometheus was about 38M and bin/promtool was
51M. Now, bin/prometheus is about 31M and bin/promtool is about 44M.
Assuming all service discovery is disabled, of course.
2022-02-06 15:16:27 -08:00
Corbin
175cc7efd2 prometheus: Optionally remove service discovery.
I read this hilarious blog post:

https://wejick.wordpress.com/2022/01/29/can-i-have-a-smaller-prometheus/

We can have a smaller Prometheus too. This patch allows users to remove
service discovery for five public clouds (AWS, Azure, DigitalOcean, GCP,
and Linode) and also Kubernetes, simply by setting the corresponding
enable-flag to `false`. I have tested building with each flag as I added
it to the list. I also tested running with all six flags set to `false`,
and the resulting Prometheus can still handle my orthogonal
service-discovery configuration (files).

To meet Adam Savage's definition of science, I measured the size of the
`prometheus` and `promtool` binaries after adding each flag with
`ls -h`.

flag          | prometheus | promtool
--------------|------------|----------
starting size | 84M        | 74M
AWS           | 72M        | 61M
Azure         | 71M        | 61M
GCE           | 64M        | 53M
k8s           | 40M        | 53M
DO            | 39M        | 52M
Linode        | 38M        | 51M

I did not go as far as the blog post. If folks want, I'll make the rest
of the service discovery optional too.

I did not shrink the build closure, just the output closure; we still
pull all of the various vendored modules into the Nix store during
builds. I don't see how to do this in a neat or easy way.
2022-01-28 15:58:32 -08:00
K900
b117c46188 prometheus: build with node 14
node2nix is still broken on 16.

see: 4c60ee3da1
2021-12-26 14:03:07 +03:00
eyjhb
c319107a93
prometheus: 2.27.1 -> 2.30.3 2021-10-22 17:24:35 +02:00
zowoq
4db0983ae4 prometheus: buildFlags{,Array} -> ldflags, tags 2021-08-08 10:17:23 +10:00
happysalada
0eaa40b01d prometheus: disable tests for now 2021-07-23 10:20:06 +09:00
happysalada
56ceaa6c8b prometheus: nixpkgs-fmt 2021-07-23 10:20:06 +09:00
Martin Weinelt
de89bddf7e
prometheus: 2.26.0 -> 2.27.1
Fixes an open redirect vulnerability on the /new endpoint.
https://github.com/prometheus/prometheus/security/advisories/GHSA-vx57-7f4q-fpc7

https://github.com/prometheus/prometheus/releases/tag/v2.27.1
https://github.com/prometheus/prometheus/releases/tag/v2.27.0

Fixes: CVE-2021-29622
2021-05-19 13:10:47 +02:00
Robin Gloster
5b3634881b
prometheus: 2.23.0 -> 2.26.0 2021-05-10 22:23:29 -05:00
Maximilian Bosch
b33b086506
prometheus: gross hack to fix linker flags for versioning info
Apparently the handling of `buildFlagsArray` in `buildGo*` is blatantly
broken since it doesn't quote flags specified as list elements properly.

Because of that, the `-ldflags` are not interpreted properly and
`prometheus --version` doesn't output anything useful. By specifying
flags in both `buildFlags` and `buildFlagsArray` the issue gets fixed
since both variables are passed to `go install`.
2020-12-23 16:38:29 +01:00
Maximilian Bosch
5a26fb3c98
prometheus: 2.22.2 -> 2.23.0
ChangeLog: https://github.com/prometheus/prometheus/releases/tag/v2.23.0

* Applied a patch to fix a regression in release 2.23[1].

[1] https://github.com/prometheus/prometheus/issues/8144
2020-12-23 14:40:05 +01:00
zowoq
20f3e3a02b prometheus: 2.22.1 -> 2.22.2
https://github.com/prometheus/prometheus/releases/tag/v2.22.2
2020-11-19 08:10:42 +10:00
Sergey Lukjanov
7a8b30fb60 prometheus: 2.20.1 -> 2.22.1 2020-11-05 10:09:44 -08:00
WilliButz
876396cac0
prometheus: 2.19.3 -> 2.20.1, fix thanos test 2020-08-20 11:14:43 +02:00
Mario Rodas
79246a95c4
prometheus: 2.19.2 -> 2.19.3 2020-07-30 04:20:00 -05:00
Sergey Lukjanov
9967b8036a prometheus: 2.19.1 -> 2.19.2 2020-06-26 15:06:05 -07:00
Philipp Riegger
674b914181 prometheus: 2.18.1 -> 2.19.1 2020-06-19 15:22:02 +00:00
Sergey Lukjanov
742e5bff36 prometheus: 2.17.2 -> 2.18.1 2020-05-08 07:40:38 -07:00
zowoq
b5dc07a4b4 treewide: use $out instead of $bin with buildGoPackage 2020-04-28 20:30:29 +10:00
Sergey Lukjanov
0cd48c19f6 prometheus: 2.17.1 -> 2.17.2 2020-04-23 09:15:35 -07:00
Sergey Lukjanov
f5f98920f7 prometheus: 2.16.0 -> 2.17.1 2020-04-01 10:28:56 -07:00
Sergey Lukjanov
c2dc35e6fe
prometheus: 2.15.2 -> 2.16.0 (#80105) 2020-02-14 14:45:21 -05:00
Sergey Lukjanov
4965950365
prometheus: 2.14.0 -> 2.15.2 (#79400) 2020-02-06 21:36:39 -05:00
Pierre Bourdon
a5fc982ea5
prometheus: bundle the webui assets and build the new React UI
v2.14 introduced a new experimental React UI and changed how web assets
are bundled with Prometheus. A separate pre-build command is required to
generate an asset bundle that gets statically linked into the Prometheus
binary.
2019-12-04 15:44:22 +01:00
Mario Rodas
c42f58233c
prometheus: 2.13.1 -> 2.14.0
Changelog: https://github.com/prometheus/prometheus/releases/tag/v2.14.0
2019-11-13 04:20:00 -05:00
Mario Rodas
096558a0f6
prometheus: 2.13.0 -> 2.13.1
Changelog: https://github.com/prometheus/prometheus/releases/tag/v2.13.1
2019-10-17 18:00:00 -05:00
Robin Gloster
2137b0c8f0
prometheus: fix hash 2019-10-16 00:46:40 +02:00
Mario Rodas
aa69f548b7
prometheus: 2.12.0 -> 2.13.0
Changelog: https://github.com/prometheus/prometheus/releases/tag/v2.13.0
2019-10-05 04:20:00 -05:00
WilliButz
283d9a0942
prometheus: remove prometheus_1, rename prometheus_2
As prometheus is no longer developed, nixpkgs now only includes
prometheus 2. Having only one version of prometheus, there is no need
for having the version in the attribute name.
2019-09-06 21:55:19 +02:00
Mario Rodas
b0ea62045b
prometheus_2: 2.11.1 -> 2.12.0
Changelog: https://github.com/prometheus/prometheus/releases/tag/v2.12.0
2019-08-22 19:26:55 -05:00
Robin Gloster
4e60b0efae
treewide: update globin's maintained drvs 2019-08-20 19:36:05 +02:00
Mario Rodas
338b4c5a9e
prometheus_2: 2.11.0 -> 2.11.1 2019-07-13 04:20:00 -05:00
Mario Rodas
b730ae12af
prometheus_2: 2.10.0 -> 2.11.0
Changelog: https://github.com/prometheus/prometheus/releases/tag/v2.11.0
2019-07-09 16:20:00 -05:00
Mario Rodas
4883b078f6
prometheus_2: 2.9.2 -> 2.10.0 2019-06-18 18:00:00 -05:00
Ivan Kozik
f13c5ccc41 prometheus_2: 2.8.1 -> 2.9.2 2019-05-05 20:13:02 +00:00
Bas van Dijk
2a722175cd prometheus_2: 2.6.0 -> 2.8.1
See: https://github.com/prometheus/prometheus/releases/tag/v2.8.1
2019-04-08 18:06:00 +02:00
Bas van Dijk
b6fdd1a0fc prometheus: rename the generic function to buildPrometheus
Since the `generic` function is now exported it should have a less
generic name, pun intended.
2019-04-08 16:40:42 +02:00
Jean-Baptiste Giraudeau
670359e8da
Expose prometheus generic builder.
So that people can easily try newer prometheus version
 in overlays:

 self: super: {
   prometheus_2 = (super.callPackage <nixpkgs/pkgs/servers/monitoring/prometheus> {}).generic {
     version = "2.8.1";
     sha256 = "0x8w0qdh4lcf19nmdlhvgzpy08c2a932d3k49cjwhi5npcsf858n";
     doCheck = false;
   };
 }
2019-04-08 14:02:31 +02:00
Franz Pletz
5fc271257e
prometheus_2: 2.4.3 -> 2.6.0 2018-12-17 23:30:12 +01:00
Thilo Uttendorfer
adc6e9c2c4 prometheus_2: 2.3.2 -> 2.4.3 (#48118) 2018-10-10 22:22:04 +02:00
Maximilian Bode
7c98b3d0d1 prometheus_2: 2.2.1 -> 2.3.2 (#46333) 2018-09-17 11:23:12 +02:00
Uli Baum
d44e68c856 prometheus_1: 1.8.1 -> 1.8.2 2018-05-18 23:01:05 +02:00
Pascal Bach
13ceaf66aa prometheus: correctly set version information (#40617)
The way prometheus expects the version to be set is not what was currently set.
2018-05-17 00:05:53 +02:00
Maximilian Bode
b34d6f90b1 prometheus: actually run tests
as remarked in #36782
2018-04-02 21:04:49 +02:00
Maximilian Bode
cd9b6a5615 prometheus: 2.1.0 -> 2.2.1 2018-04-02 21:04:44 +02:00
Maximilian Bode
78f50651f9 prometheus: add 2.1.0 2018-03-11 01:08:34 +01:00
Franz Pletz
422fd6a2aa
prometheus: 1.7.2 -> 1.8.1 2017-10-24 14:21:05 +02:00
Franz Pletz
15cca009c1
prometheus: 1.7.1 -> 1.7.2 2017-10-02 20:25:02 +02:00
Matthew Justin Bauer
2eacddf0dc treewide: homepage URL fixes (#28475)
* pgadmin: use https homepage

* msn-pecan: move homepage to github

google code is now unavailable

* pidgin-latex: use https for homepage

* pidgin-opensteamworks: use github for homepage

google code is unavailable

* putty: use https for homepage

* ponylang: use https for homepage

* picolisp: use https for homepage

* phonon: use https for homepage

* pugixml: use https for homepage

* pioneer: use https for homepage

* packer: use https for homepage

* pokerth: usee https for homepage

* procps-ng: use https for homepage

* pycaml: use https for homepage

* proot: move homepage to .github.io

* pius: use https for homepage

* pdfread: use https for homepage

* postgresql: use https for homepage

* ponysay: move homepage to new site

* prometheus: use https for homepage

* powerdns: use https for homepage

* pm-utils: use https for homepage

* patchelf: move homepage to https

* tesseract: move homepage to github

* quodlibet: move homepage from google code

* jbrout: move homepage from google code

* eiskaltdcpp: move homepage to github

* nodejs: use https to homepage

* nix: use https for homepage

* pdf2djvu: move homepage from google code

* game-music-emu: move homepage from google code

* vacuum: move homepae from google code
2017-08-22 20:50:04 +02:00