grafana-agent: add NixOS passthru test
This commit is contained in:
parent
31b47913f3
commit
1c7f2a67a0
|
@ -1,4 +1,4 @@
|
||||||
{ lib, buildGoModule, fetchFromGitHub, systemd }:
|
{ lib, buildGoModule, fetchFromGitHub, systemd, nixosTests }:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "grafana-agent";
|
pname = "grafana-agent";
|
||||||
|
@ -36,6 +36,8 @@ buildGoModule rec {
|
||||||
$out/bin/agent
|
$out/bin/agent
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
passthru.tests.grafana-agent = nixosTests.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";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
|
|
Loading…
Reference in a new issue