mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
parent
b656483a05
commit
0e29eb34e2
35
pkgs/servers/monitoring/mimir/default.nix
Normal file
35
pkgs/servers/monitoring/mimir/default.nix
Normal file
@ -0,0 +1,35 @@
|
||||
{ lib, buildGoModule, fetchFromGitHub }:
|
||||
buildGoModule rec {
|
||||
pname = "mimir";
|
||||
version = "2.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
rev = "${pname}-${version}";
|
||||
owner = "grafana";
|
||||
repo = pname;
|
||||
sha256 = "T1lljhC/TS3eoIc9AFo9Oy9/COM/XnfcwtkU618YCdM=";
|
||||
};
|
||||
|
||||
vendorSha256 = null;
|
||||
|
||||
subPackages = [ "cmd/mimir" ];
|
||||
|
||||
ldflags = let t = "github.com/grafana/mimir/pkg/util/version";
|
||||
in [
|
||||
''-extldflags "-static"''
|
||||
"-s"
|
||||
"-w"
|
||||
"-X ${t}.Version=${version}"
|
||||
"-X ${t}.Revision=unknown"
|
||||
"-X ${t}.Branch=unknown"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description =
|
||||
"Grafana Mimir provides horizontally scalable, highly available, multi-tenant, long-term storage for Prometheus. ";
|
||||
homepage = "https://github.com/grafana/mimir";
|
||||
license = licenses.agpl3Only;
|
||||
maintainers = with maintainers; [ ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
@ -21656,6 +21656,8 @@ with pkgs;
|
||||
|
||||
grafana-loki = callPackage ../servers/monitoring/loki { };
|
||||
|
||||
grafana-mimir = callPackage ../servers/monitoring/mimir { };
|
||||
|
||||
promtail = grafana-loki.overrideAttrs (o: {
|
||||
pname = "promtail";
|
||||
subPackages = ["clients/cmd/promtail"];
|
||||
|
Loading…
Reference in New Issue
Block a user