services.amazon-cloudwatch-agent.configurationFile

NixOS option

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 user instead. 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 in: nixos/modules/services/monitoring/amazon-cloudwatch-agent.nixView source on NixOS/nixpkgs →