Merge pull request #205033 from CathalMullan/phlare

phlare: init at 0.3.0
This commit is contained in:
Ryan Lahfa 2023-02-23 13:54:31 +09:00 committed by GitHub
commit 83e7e83ea7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 48 additions and 0 deletions

View file

@ -2442,6 +2442,12 @@
githubId = 5394722;
name = "Spencer Baugh";
};
cathalmullan = {
email = "contact@cathal.dev";
github = "CathalMullan";
githubId = 37139470;
name = "Cathal Mullan";
};
catouc = {
email = "catouc@philipp.boeschen.me";
github = "catouc";

View file

@ -0,0 +1,40 @@
{ lib, stdenv, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "phlare";
version = "0.3.0";
src = fetchFromGitHub {
rev = "v${version}";
owner = "grafana";
repo = "phlare";
sha256 = "sha256-z1PT5chkpHQJPziY7bGf6W1X5uezL6E2GUV6w/NlyFk=";
};
proxyVendor = true;
vendorSha256 = "sha256-KJbh+M9jYxUW9akVBHZoB/mtOHWpMPtlwIgC9fu+NYY=";
ldflags = let
prefix = "github.com/grafana/phlare/pkg/util/build";
in [
"-s" "-w"
# https://github.com/grafana/phlare/blob/v0.3.0/Makefile#L32
"-X ${prefix}.Version=${version}"
"-X ${prefix}.Branch=v${version}"
"-X ${prefix}.Revision=v${version}"
"-X ${prefix}.BuildUser=nix"
"-X ${prefix}.BuildDate=1980-01-01T00:00:00Z"
];
subPackages = [
"cmd/phlare"
"cmd/profilecli"
];
meta = with lib; {
description = "Grafana Phlare is an open source database that provides fast, scalable, highly available, and efficient storage and querying of profiling data.";
license = licenses.agpl3;
homepage = "https://grafana.com/oss/phlare";
maintainers = with maintainers; [ cathalmullan ];
};
}

View file

@ -24553,6 +24553,8 @@ with pkgs;
mimir = callPackage ../servers/monitoring/mimir { };
phlare = callPackage ../servers/monitoring/phlare { };
grafana_reporter = callPackage ../servers/monitoring/grafana-reporter { };
grafana-image-renderer = callPackage ../servers/monitoring/grafana-image-renderer { };