8000 k3s: k3s' journal on the Cluster board, with Loki's views by andsens · Pull Request #29 · nixos-homelab/shared · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,36 @@
inherit pkgs;
modules = [ { homelab.k8sss.enable = true; } ];
};
# The LogQL queries of this flake's dashboard panels, through the pinned Loki: k3s' journal on Cluster
checks.logql = inputs.homelab-monitoring.lib.logs.queries {
inherit pkgs;
config =
(inputs.nixpkgs.lib.nixosSystem {
modules =
lib.attrValues self.nixosModules
++ lib.attrValues inputs.homelab-monitoring.nixosModules
++ [
self.lib.checks.fixture
{ nixpkgs.hostPlatform = system; }
{
homelab = {
alloy.enable = true;
grafana.enable = true;
loki.enable = true;
};
}
];
}).config;
streams = [
{
source = "journal";
node = "nas";
unit = "k3s.service";
program = "k3s";
service_name = "k3s";
}
];
};
checks.manifests = self.lib.checks.manifests {
inherit pkgs;
modules = [
Expand Down
Loading
0