Admins will be upgrading ORNL GitLab Servers on Saturday, 16 May 2026, from 7 AM until 11 AM EST. Repositories will experience intermittent outages during this time.
# See https://docs.aws.amazon.com/prescriptive-guidance/latest/implementing-logging-monitoring-cloudwatch/create-store-cloudwatch-configurations.html#store-cloudwatch-configuration-s3.
#
# We don't use the multiple JSON configuration files feature,
{option}`configurationFile` takes precedence over {option}`configuration`.
'';
# Subset of "CloudWatch agent configuration file: Complete examples" and "CloudWatch agent configuration file: Traces section" in the description link.
#
@@ -110,6 +156,15 @@ in
};
};
};
# Replaces "agent.run_as_user" from the configuration file.
user=lib.mkOption{
type=lib.types.str;
default="root";
description=''
The user that runs the Amazon CloudWatch Agent.
'';
example="amazon-cloudwatch-agent";
};
mode=lib.mkOption{
type=lib.types.str;
default="auto";
@@ -122,7 +177,7 @@ in
};
config=lib.mkIfcfg.enable{
# See https://github.com/aws/amazon-cloudwatch-agent/blob/v1.300048.1/packaging/dependencies/amazon-cloudwatch-agent.service.
# See https://github.com/aws/amazon-cloudwatch-agent/blob/v1.300049.1/packaging/dependencies/amazon-cloudwatch-agent.service.
systemd.services.amazon-cloudwatch-agent={
description="Amazon CloudWatch Agent";
after=["network.target"];
@@ -140,40 +195,28 @@ in
# 3. Runs "amazon-cloudwatch-agent" with the paths to these generated files.