Boa tarde, professor!
Ao seguir todo o passo a passo da aula da instalação do agente cloudwatch, percebi que após fazer o processo não estavam aparecendo as metricas no console AWS. Quando vejo o log do serviço do Cloudwatch diz assim:
Jan 12 14:02:27 ip-10-0-2-40 systemd[1]: Started Amazon CloudWatch Agent. Jan 12 14:02:27 ip-10-0-0-43 start-amazon-cloudwatch-agent[2888993]: D! [EC2] Found active network interface Jan 12 14:02:27 ip-10-0-0-43 start-amazon-cloudwatch-agent[2888993]: I! imds retry client will retry 1 timesI! Detected the instance is EC2 Jan 12 14:02:27 ip-10-0-0-43 start-amazon-cloudwatch-agent[2888993]: 2024/01/12 14:02:27 Reading json config file path: /opt/aws/amazon-cloudwatch-agent/etc/amazon-cloudwatch-agent.json ... Jan 12 14:02:27 ip-10-0-0-43 start-amazon-cloudwatch-agent[2888993]: /opt/aws/amazon-cloudwatch-agent/etc/amazon-cloudwatch-agent.json does not exist or cannot read. Skipping it. Jan 12 14:02:27 ip-10-0-0-43 start-amazon-cloudwatch-agent[2888993]: 2024/01/12 14:02:27 Reading json config file path: /opt/aws/amazon-cloudwatch-agent/etc/amazon-cloudwatch-agent.d/file_common-config.toml ... Jan 12 14:02:27 ip-10-0-0-43 start-amazon-cloudwatch-agent[2888993]: 2024/01/12 14:02:27 unable to scan config dir /opt/aws/amazon-cloudwatch-agent/etc/amazon-cloudwatch-agent.d with error: unable to parse json, error: invalid characte> Jan 12 14:02:28 ip-10-0-0-43 systemd[1]: amazon-cloudwatch-agent.service: Deactivated successfully.
Eu devo criar o arquivo json e configura-lo manualmente?