refactor(services/self_host): adding the monitor to the nixfmt
This commit is contained in:
parent
2bc5f5ae65
commit
e54c9c482f
1 changed files with 27 additions and 28 deletions
|
|
@ -1,8 +1,8 @@
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
@ -15,7 +15,7 @@ let
|
||||||
"grafana"
|
"grafana"
|
||||||
];
|
];
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
config = lib.mkIf cfg {
|
config = lib.mkIf cfg {
|
||||||
services = {
|
services = {
|
||||||
grafana = {
|
grafana = {
|
||||||
|
|
@ -212,7 +212,8 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
schema_config = {
|
schema_config = {
|
||||||
configs = [{
|
configs = [
|
||||||
|
{
|
||||||
from = "2024-01-01";
|
from = "2024-01-01";
|
||||||
store = "tsdb";
|
store = "tsdb";
|
||||||
object_store = "filesystem";
|
object_store = "filesystem";
|
||||||
|
|
@ -221,7 +222,8 @@ in
|
||||||
prefix = "index_";
|
prefix = "index_";
|
||||||
period = "24h";
|
period = "24h";
|
||||||
};
|
};
|
||||||
}];
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -277,7 +279,6 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
systemd.services = {
|
systemd.services = {
|
||||||
alloy.serviceConfig.SupplementaryGroups = [ "systemd-journal" ];
|
alloy.serviceConfig.SupplementaryGroups = [ "systemd-journal" ];
|
||||||
process_exporter = {
|
process_exporter = {
|
||||||
|
|
@ -343,7 +344,5 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue