nixos/opentelemetry-collector: Use SupplementaryGroups to add the dynamic user to systemd-journal group

OpenTelemetry collector's Journald Receiver has not enough permissions
This commit is contained in:
Artur Faizullin 2024-07-11 08:23:20 +02:00
parent e304e2ee59
commit 40013729d3

View File

@ -65,6 +65,10 @@ in
NoNewPrivileges = true;
WorkingDirectory = "/var/lib/opentelemetry-collector";
StateDirectory = "opentelemetry-collector";
SupplementaryGroups = [
# allow to read the systemd journal for opentelemetry-collector
"systemd-journal"
];
};
};
};