38 lines
763 B
Nix
38 lines
763 B
Nix
{ ... }:
|
|
let
|
|
db_pass = import ../config/_passwords.nix;
|
|
in
|
|
{
|
|
my-lxc.monitoring = {
|
|
container = {
|
|
enable = true;
|
|
cores = 2;
|
|
memory = 2048;
|
|
disk = "13G";
|
|
swap = 1024;
|
|
};
|
|
system = {
|
|
port = 3000; # grafana
|
|
additionalPorts = [
|
|
3100 # loki
|
|
];
|
|
importConfig = [
|
|
../config/monitoring-grafana.nix
|
|
../config/monitoring-loki.nix
|
|
];
|
|
};
|
|
db = {
|
|
enable = true;
|
|
password = db_pass.monitoring;
|
|
};
|
|
logging = {
|
|
enable = true;
|
|
metricsEnable = true;
|
|
};
|
|
private = true;
|
|
auth = true;
|
|
description = "Interface de monitoring via Grafana.";
|
|
icon = "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/grafana.png";
|
|
};
|
|
}
|