Download deployment/aws/cloudwatch/agent-config.json from Wizzas/DefectRAG: direct link, hf CLI and curl.
- Browser
- Download file 903 Bytes
-
https://huggingface.co/Wizzas/DefectRAG/resolve/main/deployment/aws/cloudwatch/agent-config.json
- Command line
-
hf download hf://Wizzas/DefectRAG/deployment/aws/cloudwatch/agent-config.json
-
curl -L -o agent-config.json https://huggingface.co/Wizzas/DefectRAG/resolve/main/deployment/aws/cloudwatch/agent-config.json
903 Bytes
| { | |
| "agent": { "metrics_collection_interval": 60, "run_as_user": "root" }, | |
| "metrics": { | |
| "namespace": "DefectRAG/Lab", | |
| "append_dimensions": { "InstanceId": "${aws:InstanceId}" }, | |
| "metrics_collected": { | |
| "mem": { "measurement": ["mem_used_percent"] }, | |
| "disk": { "measurement": ["used_percent"], "resources": ["/"] } | |
| } | |
| }, | |
| "logs": { | |
| "logs_collected": { | |
| "files": { | |
| "collect_list": [ | |
| { | |
| "file_path": "/var/log/nginx/access.log", | |
| "log_group_name": "/defectrag/lab/nginx-access", | |
| "log_stream_name": "{instance_id}", | |
| "retention_in_days": 7 | |
| }, | |
| { | |
| "file_path": "/var/log/nginx/error.log", | |
| "log_group_name": "/defectrag/lab/nginx-error", | |
| "log_stream_name": "{instance_id}", | |
| "retention_in_days": 7 | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| } | |