add synapse metrics

This commit is contained in:
Vivian 2022-07-29 13:02:03 +02:00
parent af1fe253e7
commit f8d90ddf41
6 changed files with 95 additions and 32 deletions

View file

@ -6,6 +6,8 @@ final: prev: {
'';
});
vmagent = prev.callPackage ./vmagent { };
v = {
unbound = prev.unbound.override {
withSystemd = true;

View file

@ -0,0 +1,23 @@
{ lib, fetchFromGitHub, buildGoModule }:
buildGoModule rec {
pname = "vmagent";
version = "1.79.0";
src = fetchFromGitHub {
owner = "VictoriaMetrics";
repo = "VictoriaMetrics";
rev = "v${version}";
sha256 = "sha256-+LirbGbKeazXMtgVh5kZP+KEk/fDbSxceZ26OlE0hbY=";
};
vendorSha256 = null;
subPackages = [ "app/vmagent" ];
meta = with lib; {
description = "VictoriaMetrics metrics scraper";
homepage = "https://github.com/VictoriaMetrics/VictoriaMetrics/tree/master/app/vmagent";
license = licenses.asl20;
platforms = platforms.linux;
};
}