more monitoring
This commit is contained in:
parent
5d7d2c7e94
commit
80509191ae
3 changed files with 34 additions and 22 deletions
|
@ -8,16 +8,16 @@
|
|||
{
|
||||
sops = {
|
||||
secrets."services/loki/basic_auth" = {
|
||||
mode = "0444";
|
||||
owner = "nobody";
|
||||
group = "nobody";
|
||||
mode = "0440";
|
||||
owner = "alloy";
|
||||
group = "alloy";
|
||||
restartUnits = [ "alloy.service" ];
|
||||
sopsFile = ../secrets/passwords.yaml;
|
||||
};
|
||||
secrets."services/mimir/basic_auth" = {
|
||||
mode = "0444";
|
||||
owner = "nobody";
|
||||
group = "nobody";
|
||||
mode = "0440";
|
||||
owner = "alloy";
|
||||
group = "alloy";
|
||||
restartUnits = [ "alloy.service" ];
|
||||
sopsFile = ../secrets/passwords.yaml;
|
||||
};
|
||||
|
@ -27,6 +27,18 @@
|
|||
enable = true;
|
||||
};
|
||||
|
||||
users = {
|
||||
users.alloy = {
|
||||
isSystemUser = true;
|
||||
group = "alloy";
|
||||
};
|
||||
groups.alloy = { };
|
||||
};
|
||||
|
||||
systemd.services."alloy".serviceConfig = {
|
||||
DynamicUser = lib.mkForce false;
|
||||
};
|
||||
|
||||
environment.etc."alloy/config.alloy" = {
|
||||
text = ''
|
||||
prometheus.remote_write "default" {
|
||||
|
@ -81,8 +93,7 @@
|
|||
}
|
||||
|
||||
logging {
|
||||
level = "warn"
|
||||
format = "logfmt"
|
||||
level = "info"
|
||||
}
|
||||
|
||||
prometheus.exporter.unix "local_system" { }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue