nixpkgs/pkgs/servers/monitoring
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
..
alerta alerta: move to all-packages.nix and use buildPythonApplication 2021-02-28 12:25:52 +01:00
alertmanager-bot alertmanager-bot: buildFlagsArray -> ldflags 2021-08-20 17:14:30 +10:00
alertmanager-irc-relay alertmanager-irc-relay: 0.4.2 -> 0.4.3 2021-12-05 17:56:50 +00:00
bosun
buildkite-agent-metrics buildkite-agent-metrics: init at 5.2.1 2021-07-19 08:35:57 -07:00
cadvisor treewide: buildFlagsArray -> ldflags 2021-08-26 21:35:06 +10:00
consul-alerts treewide: remove stdenv where not needed 2021-01-25 18:31:47 +01:00
do-agent do-agent: 3.12.0 -> 3.13.0 2022-01-11 06:03:55 +00:00
fusion-inventory fusionInventory: add missing files 2022-01-26 17:29:48 +01:00
grafana grafana: 8.3.3 -> 8.3.4 2022-01-21 11:05:02 +01:00
grafana-agent grafana-agent: 0.21.1 -> 0.21.2 2021-12-08 21:22:46 +01:00
grafana-image-renderer treewide: replace http://github.com with https://github.com 2022-01-07 09:58:36 +07:00
grafana-reporter treewide: remove stdenv where not needed 2021-01-25 18:31:47 +01:00
heapster servers: replace name with pname&version 2021-07-26 20:15:46 +02:00
icinga2 icinga2: Fix infinite loop regression 2021-11-19 13:33:54 +01:00
kapacitor kapacitor: 1.5.6 -> 1.5.7 2020-11-03 08:56:26 -08:00
lcdproc lcdproc: do not show the GPL on every start (#118772) 2021-04-09 16:27:57 +08:00
loki grafana-loki: 2.4.1 -> 2.4.2 (#154835) 2022-01-14 09:23:44 +09:00
longview treewide: makeWrapper buildInputs to nativeBuildInputs 2021-02-19 20:09:16 +07:00
mackerel-agent mackerel-agent: 0.72.2 -> 0.72.3 2021-11-03 12:57:42 +00:00
matrix-alertmanager matrix-alertmanager: fix and re-run update script 2021-12-07 11:49:23 +01:00
mtail treewide: buildFlagsArray -> ldflags 2021-08-26 21:35:06 +10:00
munin munin: 2.0.66 -> 2.0.69 2021-12-09 10:40:03 +00:00
nagios checkSSLCert: add homepage 2022-01-14 22:38:36 +01:00
net-snmp net-snmp: General fixup 2022-01-17 17:44:09 +01:00
newrelic-sysmond treewide: with stdenv.lib; in meta -> with lib; 2021-01-11 10:38:22 +01:00
plugins monitoring-plugins: 2.2.0 -> 2.3.0 2021-06-25 15:45:04 +08:00
prometheus prometheus: Optionally remove service discovery. 2022-01-28 15:58:32 -08:00
riemann riemann: 0.3.7 -> 0.3.8 2022-01-20 14:44:22 +00:00
riemann-dash treewide: add final newline 2021-01-22 07:18:04 +10:00
sensu treewide: add final newline 2021-01-22 07:18:04 +10:00
sensu-go sensu-go-{cli,backend,agent}: set meta.mainProgram, format 2021-10-21 08:55:33 -04:00
seyren seyren: deprecate phases (#131137) 2021-07-22 23:41:58 -04:00
telegraf telegraf: 1.20.3 -> 1.20.4 2021-12-07 23:09:15 -06:00
thanos thanos: 0.23.1 -> 0.24.0 2021-12-24 05:59:06 +00:00
uchiwa treewide: makeWrapper buildInputs to nativeBuildInputs 2021-02-19 20:09:16 +07:00
unifi-poller unify-poller: remove default platform 2021-10-05 17:32:06 +02:00
zabbix zabbix: 5.0.17 -> 5.0.19 2022-01-16 22:39:36 -05:00
zipkin treewide: makeWrapper buildInputs to nativeBuildInputs 2021-02-19 20:09:16 +07:00