mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
prometheus: format, add stripping options, remove redundant meta.platforms, cleanup maintainers
This commit is contained in:
parent
da2f281453
commit
24d2e1f8e3
@ -61,51 +61,29 @@ buildGoModule rec {
|
||||
|
||||
# Enable only select service discovery to shrink binaries.
|
||||
(
|
||||
true # prevent bash syntax error when all plugins are disabled
|
||||
${lib.optionalString (enableAWS)
|
||||
"echo - github.com/prometheus/prometheus/discovery/aws"}
|
||||
${lib.optionalString (enableAzure)
|
||||
"echo - github.com/prometheus/prometheus/discovery/azure"}
|
||||
${lib.optionalString (enableConsul)
|
||||
"echo - github.com/prometheus/prometheus/discovery/consul"}
|
||||
${lib.optionalString (enableDigitalOcean)
|
||||
"echo - github.com/prometheus/prometheus/discovery/digitalocean"}
|
||||
${lib.optionalString (enableDNS)
|
||||
"echo - github.com/prometheus/prometheus/discovery/dns"}
|
||||
${lib.optionalString (enableEureka)
|
||||
"echo - github.com/prometheus/prometheus/discovery/eureka"}
|
||||
${lib.optionalString (enableGCE)
|
||||
"echo - github.com/prometheus/prometheus/discovery/gce"}
|
||||
${lib.optionalString (enableHetzner)
|
||||
"echo - github.com/prometheus/prometheus/discovery/hetzner"}
|
||||
${lib.optionalString (enableIONOS)
|
||||
"echo - github.com/prometheus/prometheus/discovery/ionos"}
|
||||
${lib.optionalString (enableKubernetes)
|
||||
"echo - github.com/prometheus/prometheus/discovery/kubernetes"}
|
||||
${lib.optionalString (enableLinode)
|
||||
"echo - github.com/prometheus/prometheus/discovery/linode"}
|
||||
${lib.optionalString (enableMarathon)
|
||||
"echo - github.com/prometheus/prometheus/discovery/marathon"}
|
||||
${lib.optionalString (enableMoby)
|
||||
"echo - github.com/prometheus/prometheus/discovery/moby"}
|
||||
${lib.optionalString (enableNomad)
|
||||
"echo - github.com/prometheus/prometheus/discovery/nomad"}
|
||||
${lib.optionalString (enableOpenstack)
|
||||
"echo - github.com/prometheus/prometheus/discovery/openstack"}
|
||||
${lib.optionalString (enablePuppetDB)
|
||||
"echo - github.com/prometheus/prometheus/discovery/puppetdb"}
|
||||
${lib.optionalString (enableScaleway)
|
||||
"echo - github.com/prometheus/prometheus/discovery/scaleway"}
|
||||
${lib.optionalString (enableTriton)
|
||||
"echo - github.com/prometheus/prometheus/discovery/triton"}
|
||||
${lib.optionalString (enableUyuni)
|
||||
"echo - github.com/prometheus/prometheus/discovery/uyuni"}
|
||||
${lib.optionalString (enableVultr)
|
||||
"echo - github.com/prometheus/prometheus/discovery/vultr"}
|
||||
${lib.optionalString (enableXDS)
|
||||
"echo - github.com/prometheus/prometheus/discovery/xds"}
|
||||
${lib.optionalString (enableZookeeper)
|
||||
"echo - github.com/prometheus/prometheus/discovery/zookeeper"}
|
||||
true # prevent bash syntax error when all plugins are disabled
|
||||
${lib.optionalString enableAWS "echo - github.com/prometheus/prometheus/discovery/aws"}
|
||||
${lib.optionalString enableAzure "echo - github.com/prometheus/prometheus/discovery/azure"}
|
||||
${lib.optionalString enableConsul "echo - github.com/prometheus/prometheus/discovery/consul"}
|
||||
${lib.optionalString enableDigitalOcean "echo - github.com/prometheus/prometheus/discovery/digitalocean"}
|
||||
${lib.optionalString enableDNS "echo - github.com/prometheus/prometheus/discovery/dns"}
|
||||
${lib.optionalString enableEureka "echo - github.com/prometheus/prometheus/discovery/eureka"}
|
||||
${lib.optionalString enableGCE "echo - github.com/prometheus/prometheus/discovery/gce"}
|
||||
${lib.optionalString enableHetzner "echo - github.com/prometheus/prometheus/discovery/hetzner"}
|
||||
${lib.optionalString enableIONOS "echo - github.com/prometheus/prometheus/discovery/ionos"}
|
||||
${lib.optionalString enableKubernetes "echo - github.com/prometheus/prometheus/discovery/kubernetes"}
|
||||
${lib.optionalString enableLinode "echo - github.com/prometheus/prometheus/discovery/linode"}
|
||||
${lib.optionalString enableMarathon "echo - github.com/prometheus/prometheus/discovery/marathon"}
|
||||
${lib.optionalString enableMoby "echo - github.com/prometheus/prometheus/discovery/moby"}
|
||||
${lib.optionalString enableNomad "echo - github.com/prometheus/prometheus/discovery/nomad"}
|
||||
${lib.optionalString enableOpenstack "echo - github.com/prometheus/prometheus/discovery/openstack"}
|
||||
${lib.optionalString enablePuppetDB "echo - github.com/prometheus/prometheus/discovery/puppetdb"}
|
||||
${lib.optionalString enableScaleway "echo - github.com/prometheus/prometheus/discovery/scaleway"}
|
||||
${lib.optionalString enableTriton "echo - github.com/prometheus/prometheus/discovery/triton"}
|
||||
${lib.optionalString enableUyuni "echo - github.com/prometheus/prometheus/discovery/uyuni"}
|
||||
${lib.optionalString enableVultr "echo - github.com/prometheus/prometheus/discovery/vultr"}
|
||||
${lib.optionalString enableXDS "echo - github.com/prometheus/prometheus/discovery/xds"}
|
||||
${lib.optionalString enableZookeeper "echo - github.com/prometheus/prometheus/discovery/zookeeper"}
|
||||
) > plugins.yml
|
||||
'';
|
||||
|
||||
@ -120,6 +98,8 @@ buildGoModule rec {
|
||||
t = "github.com/prometheus/common/version";
|
||||
in
|
||||
[
|
||||
"-s"
|
||||
"-w"
|
||||
"-X ${t}.Version=${version}"
|
||||
"-X ${t}.Revision=unknown"
|
||||
"-X ${t}.Branch=unknown"
|
||||
@ -146,7 +126,6 @@ buildGoModule rec {
|
||||
description = "Service monitoring system and time series database";
|
||||
homepage = "https://prometheus.io";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ benley fpletz globin willibutz Frostman ];
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ fpletz willibutz Frostman ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user