monitoring-client: fix alloy
This commit is contained in:
parent
eb25120d01
commit
e0b37cf230
5 changed files with 14 additions and 11 deletions
modules
staging
|
@ -22,10 +22,10 @@
|
|||
loki.write "default" {
|
||||
endpoint {
|
||||
url = "https://loki.${config.momo-cloud.networking.domain}/loki/api/v1/push"
|
||||
}
|
||||
basic_auth = {
|
||||
username = "loki"
|
||||
password_file = "${config.momo-cloud.monitoring-client.basicAuthPasswordFile}"
|
||||
basic_auth {
|
||||
username = "loki"
|
||||
password_file = sys.env("LOKI_BASIC_AUTH_PASSWORD_FILE")
|
||||
}
|
||||
}
|
||||
external_labels = {}
|
||||
}
|
||||
|
|
|
@ -18,8 +18,13 @@ in
|
|||
enable = true;
|
||||
};
|
||||
|
||||
systemd.services.alloy.reloadTriggers = [
|
||||
cfg.basicAuthPasswordFile
|
||||
];
|
||||
systemd.services.alloy = {
|
||||
environment = {
|
||||
LOKI_BASIC_AUTH_PASSWORD_FILE = "%d/loki_basic_auth_password_file";
|
||||
};
|
||||
serviceConfig = {
|
||||
LoadCredential = "loki_basic_auth_password_file:${config.momo-cloud.monitoring-client.basicAuthPasswordFile}";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -35,7 +35,7 @@ in
|
|||
http_listen_address = "127.0.0.1";
|
||||
http_listen_port = 3100;
|
||||
};
|
||||
auth_enabled = true;
|
||||
auth_enabled = false;
|
||||
common = {
|
||||
ring = {
|
||||
instance_enable_ipv6 = true;
|
||||
|
|
2
staging/flake.lock
generated
2
staging/flake.lock
generated
|
@ -252,7 +252,7 @@
|
|||
},
|
||||
"locked": {
|
||||
"lastModified": 0,
|
||||
"narHash": "sha256-5HBdgwzMiOVThrpkmaJ8GrJ3S+Qn74AhQ4Xf1gIL1CE=",
|
||||
"narHash": "sha256-7gFtsCcqhHvKcoSpKnbHk2eq71wJOwTW2mtpgi4qWbI=",
|
||||
"path": "../",
|
||||
"type": "path"
|
||||
},
|
||||
|
|
|
@ -6,8 +6,6 @@
|
|||
{
|
||||
age.secrets.alloy-basic-auth-password = {
|
||||
file = "${flake.self}/secrets/alloy-basic-auth-password.age";
|
||||
path = "/etc/alloy/secrets.alloy";
|
||||
symlink = false;
|
||||
mode = "400";
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue