+2
nixos/doc/manual/release-notes/rl-2505.section.md
+2
nixos/doc/manual/release-notes/rl-2505.section.md
···- [Kimai](https://www.kimai.org/), a web-based multi-user time-tracking application. Available as [services.kimai](option.html#opt-services.kimai).+- [Amazon CloudWatch Agent](https://github.com/aws/amazon-cloudwatch-agent), the official telemetry collector for AWS CloudWatch and AWS X-Ray. Available as [services.amazon-cloudwatch-agent](#opt-services.amazon-cloudwatch-agent.enable).<!-- To avoid merge conflicts, consider adding your item at an arbitrary place in the list instead. -->
+1
nixos/modules/module-list.nix
+1
nixos/modules/module-list.nix
···
+179
nixos/modules/services/monitoring/amazon-cloudwatch-agent.nix
+179
nixos/modules/services/monitoring/amazon-cloudwatch-agent.nix
···+# See https://docs.aws.amazon.com/prescriptive-guidance/latest/implementing-logging-monitoring-cloudwatch/create-store-cloudwatch-configurations.html#store-cloudwatch-configuration-s3.+# but "config-translator" will log a benign error if the "-input-dir" option is omitted or is a non-existent directory.+# Create an empty directory to hide this benign error log. This prevents false-positives if users filter for "error" in the agent logs.+<https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/install-CloudWatch-Agent-commandline-fleet.html#CloudWatch-Agent-profile-instance-first>+<https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Agent-Configuration-File-Details.html>+# Subset of "CloudWatch agent configuration file: Complete examples" and "CloudWatch agent configuration file: Traces section" in the description link.+# Log file path changed from "/opt/aws/amazon-cloudwatch-agent/logs" to "/var/log/amazon-cloudwatch-agent" to follow the FHS.+Amazon CloudWatch Agent mode. Indicates whether the agent is running in EC2 ("ec2"), on-premises ("onPremise"),+or if it should guess based on metadata endpoints like IMDS or the ECS task metadata endpoint ("auto").+# See https://github.com/aws/amazon-cloudwatch-agent/blob/v1.300048.1/packaging/dependencies/amazon-cloudwatch-agent.service.+# "start-amazon-cloudwatch-agent" assumes the package is installed at "/opt/aws/amazon-cloudwatch-agent" so we can't use it.+# 2. Runs "config-translator" to translate the input JSON configuration files into separate TOML (for CloudWatch Logs + Metrics),
+1
nixos/tests/all-tests.nix
+1
nixos/tests/all-tests.nix
···
+93
nixos/tests/amazon-cloudwatch-agent.nix
+93
nixos/tests/amazon-cloudwatch-agent.nix
···
+63
pkgs/by-name/am/amazon-cloudwatch-agent/package.nix
+63
pkgs/by-name/am/amazon-cloudwatch-agent/package.nix
···+# See the list in https://github.com/aws/amazon-cloudwatch-agent/blob/v1.300048.1/Makefile#L68-L77.+# Broken since it hardcodes the package install path. See https://github.com/aws/amazon-cloudwatch-agent/issues/1319.+description = "CloudWatch Agent enables you to collect and export host-level metrics and logs on instances running Linux or Windows server";