Merge pull request #229332 from IndeedNotJames/grafana-agent
grafana-agent: 0.33.0 -> 0.33.1
This commit is contained in:
commit
a5996bb88d
1 changed files with 19 additions and 4 deletions
|
@ -1,14 +1,22 @@
|
||||||
{ lib, stdenv, buildGoModule, fetchFromGitHub, systemd, nixosTests }:
|
{ lib
|
||||||
|
, buildGoModule
|
||||||
|
, fetchFromGitHub
|
||||||
|
, grafana-agent
|
||||||
|
, nixosTests
|
||||||
|
, stdenv
|
||||||
|
, systemd
|
||||||
|
, testers
|
||||||
|
}:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "grafana-agent";
|
pname = "grafana-agent";
|
||||||
version = "0.33.0";
|
version = "0.33.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
owner = "grafana";
|
owner = "grafana";
|
||||||
repo = "agent";
|
repo = "agent";
|
||||||
sha256 = "sha256-Goj/IySGDMa8pNwU/4oXIlGqMysghNj0EjnQZtN6v1E=";
|
sha256 = "sha256-iE7LNm0Nur0eo7AjTDl9sq3oxm6SdIUoSfT8h2C4jOA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorHash = "sha256-NqsUeTxTYQrVMJ4LYA5NC8A/PpVuy6fnKptxK+ieZAU=";
|
vendorHash = "sha256-NqsUeTxTYQrVMJ4LYA5NC8A/PpVuy6fnKptxK+ieZAU=";
|
||||||
|
@ -50,7 +58,14 @@ buildGoModule rec {
|
||||||
$out/bin/grafana-agent
|
$out/bin/grafana-agent
|
||||||
'';
|
'';
|
||||||
|
|
||||||
passthru.tests.grafana-agent = nixosTests.grafana-agent;
|
passthru.tests = {
|
||||||
|
inherit (nixosTests) grafana-agent;
|
||||||
|
version = testers.testVersion {
|
||||||
|
inherit version;
|
||||||
|
command = "${lib.getExe grafana-agent} --version";
|
||||||
|
package = grafana-agent;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A lightweight subset of Prometheus and more, optimized for Grafana Cloud";
|
description = "A lightweight subset of Prometheus and more, optimized for Grafana Cloud";
|
||||||
|
|
Loading…
Reference in a new issue