Commit Graph

502 Commits

Author SHA1 Message Date
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
R. Ryantm
3b6c07fb36 prometheus-redis-exporter: 1.33.0 -> 1.34.1 2022-01-24 21:38:36 +00:00
0x4A6F
44dceeb0ef
promscale: enable checks 2022-01-19 00:11:44 +01:00
0x4A6F
47d0f19a57
promescale: 0.7.1 -> 0.8.0 2022-01-18 23:42:14 +01:00
Roosembert Palacios
8efd3bacc2
prometheus-bind-exporter: 0.4.0 -> 0.5.0
Signed-off-by: Roosembert Palacios <roosemberth@posteo.ch>
2022-01-11 07:45:39 +01:00
Maximilian Bosch
f562adfab8
prometheus-openldap-exporter: 2.1.4 -> 2.2.0
ChangeLog: https://github.com/tomcz/openldap_exporter/releases/tag/v2.2.0
2022-01-02 13:35:55 +01:00
zowoq
36b5fc4b36 buildGoModule packages: remove unnecessary runVend 2022-01-01 15:55:33 +10:00
Jörg Thalheim
41ed5dc048
Merge pull request #152212 from K900/prometheus-fix
prometheus: build with node 14
2021-12-28 09:55:47 +00:00
K900
b117c46188 prometheus: build with node 14
node2nix is still broken on 16.

see: 4c60ee3da1
2021-12-26 14:03:07 +03:00
R. Ryantm
cb2ee2dc83 prometheus-redis-exporter: 1.32.0 -> 1.33.0 2021-12-24 10:03:05 +00:00
Graham Christensen
d3aee09b99 prometheus-fastly-exporter: 6.1.0 -> 7.0.1 2021-12-20 10:50:29 -05:00
Tom Herbers
7ea4ffd640
prometheus-mikrotik-exporter: 2020-02-10 -> 2021-08-10 2021-12-13 23:44:59 +01:00
Maximilian Bosch
c7b1cff390
Merge pull request #149226 from r-ryantm/auto-update/redis_exporter
prometheus-redis-exporter: 1.29.0 -> 1.32.0
2021-12-10 12:14:04 +01:00
Jörg Thalheim
d9e5ac7f68
Merge pull request #149619 from r-ryantm/auto-update/node_exporter
prometheus-node-exporter: 1.3.0 -> 1.3.1
2021-12-08 14:54:40 +00:00
James Guthrie
1f8a8bd75a promscale: 0.6.2 -> 0.7.1 2021-12-08 14:43:07 +01:00
R. Ryantm
73a4286e3b prometheus-node-exporter: 1.3.0 -> 1.3.1 2021-12-08 13:18:25 +00:00
R. Ryantm
44f97f94e3 prometheus-redis-exporter: 1.29.0 -> 1.32.0 2021-12-07 03:37:05 +00:00
Martin Weinelt
0c008f9c0d
Merge pull request #147056 from mweinelt/smartctl-exporter 2021-12-05 03:00:48 +01:00
YI
6da3d9a749 prometheus-node-exporter: 1.2.2 -> 1.3.0 2021-11-26 00:59:12 +08:00
Martin Weinelt
0f4340da1d
prometheus-smartctl-exporter: init at unstable-2020-11-14
Includes a rebased version of
https://github.com/prometheus-community/smartctl_exporter/pull/18 which
collided with other patchsets.
2021-11-23 11:30:23 +01:00
Martin Weinelt
37fa1e7c1d treewide: pass and inherit writeShellScript in node2nix packages 2021-11-16 16:08:23 +01:00
Bas van Dijk
3e019f7577
Merge pull request #141477 from eyJhb/prometheus-2.3.3
prometheus: 2.27.1 -> 2.30.3
2021-11-07 15:02:53 +01:00
R. Ryantm
da665b7e6e prometheus-redis-exporter: 1.23.1 -> 1.29.0 2021-10-29 03:28:46 +00:00
eyjhb
c319107a93
prometheus: 2.27.1 -> 2.30.3 2021-10-22 17:24:35 +02:00
0x4A6F
5753211e2b
promscale: 0.6.0 -> 0.6.2 2021-10-20 21:37:20 +02:00
eyjhb
7051b2014b
prometheus-node-exporter: 1.1.2 -> 1.2.2 2021-10-11 22:02:16 +02:00
Alexandre Iooss
0b6148fae9 prometheus-openvpn-exporter: mark as broken
Prometheus OpenVPN exporter has been broken since OpenVPN 2.5.0 changed
the format of the datetime to ISO8601. After submitting an issue to
upstream, the upstream decided to no longer maintain this exporter.
2021-10-07 10:19:55 +02:00
0x4A6F
b095376aab
promscale: 0.5.1 -> 0.6.0 2021-09-30 22:46:39 +02:00
Graham Christensen
6c88e85807
Merge pull request #133726 from deshaw/fastly-exporter
prometheus-fastly-exporter: init at v6.1.0
2021-09-27 11:09:33 -04:00
Bernardo Meurer
91874d9239
prometheus-unbound-exporter: unstable-2021-03-17 -> unstable-2021-09-18 2021-09-22 16:37:53 -07:00
Souvik Sen
2f669293bf prometheus-fastly-exporter: init at v6.1.0 2021-09-21 04:05:18 -04:00
zowoq
3360a376cb buildGoModule: warn if buildFlagsArray is used 2021-08-26 21:35:06 +10:00
zowoq
13ea123c74 treewide: buildFlagsArray -> ldflags 2021-08-26 21:35:06 +10:00
zowoq
e6494966dd treewide: buildFlagsArray -> ldflags 2021-08-26 15:43:28 +10:00
Martin Weinelt
6b77988f96
treewide: prometheus_client -> prometheus-client 2021-08-26 02:21:59 +02:00
Maximilian Bosch
5e37ccce7d
prometheus-knot-exporter: 2020-01-30 -> 2021-08-21
The only change that is relevant for us is that my Knot fix is now part
of the repo itself[1], so no need apply a patch anymore.

[1] b18eb7db73
2021-08-23 12:29:22 +02:00
Simon Bruder
f115e51587
prometheus-fritzbox-exporter: 1.0-32-g90fc0c5 -> unstable-2021-04-13
This also changes the derivation to use buildGoModule instead of the
legacy buildGoPackage and updates the homepage meta URL to point to the
fork we use.
2021-08-20 23:07:39 +02:00
R. RyanTM
4c1f5a6391 promscale: 0.4.1 -> 0.5.1 2021-08-17 15:07:34 +00:00
Robert Hensing
a201246bac treewide: runCommandNoCC -> runCommand in generated code
This has been synonymous for ~5y.

Note that many of these runCommand bindings are unused, but that's
ok for generated code.
2021-08-15 17:36:41 +02:00
zowoq
b2fe4752a4 prometheus-postfix-exporter: buildFlags -> tags 2021-08-08 10:17:23 +10:00
zowoq
4db0983ae4 prometheus: buildFlags{,Array} -> ldflags, tags 2021-08-08 10:17:23 +10:00
Sandro
dbe5054806
Merge pull request #131944 from SuperSandro2000/cleanup 2021-07-29 13:31:35 +00:00
Sandro Jäckel
aaae1445d1
prometheus.node-exporter: cleanup 2021-07-29 15:09:02 +02:00
Sandro
7b055521ba
Merge pull request #131523 from Stunkymonkey/servers-pname-version 2021-07-29 12:48:18 +00:00
Sandro Jäckel
a2758d5a99
influxdb-exporter: format, cleanup 2021-07-29 14:19:26 +02:00
Maximilian Bosch
f7fb107bf2
prometheus-postgres-exporter: 0.9.0 -> 0.10.0
ChangeLog: https://github.com/prometheus-community/postgres_exporter/releases/tag/v0.10.0
2021-07-29 12:48:18 +02:00
Franz Pletz
8f40f574f8
Merge pull request #131578 from mweinelt/influxdb-exporter
prometheus-influxdb-exporter: init at 0.8.0
2021-07-28 19:47:06 +02:00
Felix Buehler
a56d117bdb servers: replace name with pname&version 2021-07-26 20:15:46 +02:00
Maximilian Bosch
dadbcdfa3e
prometheus-mysqld-exporter: add version info 2021-07-26 14:19:57 +02:00