services.amazon-cloudwatch-agent.configurationFile
Amazon CloudWatch Agent configuration file. See https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Agent-Configuration-File-Details.html for supported values.
The following options aren't supported:
agent.run_as_user- Use
userinstead.
- Use
configurationFile takes precedence over configuration.
Note: Restricted evaluation blocks access to paths outside the Nix store.
This means detecting content changes for mutable paths (i.e. not input or content-addressed) can't be done.
As a result, nixos-rebuild won't reload/restart the systemd unit when mutable path contents change.
systemctl restart amazon-cloudwatch-agent.service must be used instead.
- Type
absolute path- Default
jsonFormat.generate "amazon-cloudwatch-agent.json" cfg.configuration- Example
"/etc/amazon-cloudwatch-agent/amazon-cloudwatch-agent.json"- Declared
- <nixpkgs/nixos/modules/services/monitoring/amazon-cloudwatch-agent.nix>