Merge pull request #156315 from lheckemann/promtail-package

Promtail package
This commit is contained in:
Maximilian Bosch 2022-01-28 23:41:48 +01:00 committed by GitHub
commit 7b2f9d4732
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View file

@ -45,7 +45,7 @@ in {
Restart = "on-failure";
TimeoutStopSec = 10;
ExecStart = "${pkgs.grafana-loki}/bin/promtail -config.file=${prettyJSON cfg.configuration} ${escapeShellArgs cfg.extraFlags}";
ExecStart = "${pkgs.promtail}/bin/promtail -config.file=${prettyJSON cfg.configuration} ${escapeShellArgs cfg.extraFlags}";
ProtectSystem = "strict";
ProtectHome = true;

View file

@ -21106,6 +21106,12 @@ with pkgs;
buildGoModule = buildGo116Module;
};
promtail = grafana-loki.overrideAttrs (o: {
pname = "promtail";
subPackages = ["clients/cmd/promtail"];
CGO_ENABLED = 1;
});
grafana_reporter = callPackage ../servers/monitoring/grafana-reporter { };
grafana-image-renderer = callPackage ../servers/monitoring/grafana-image-renderer { };