Hello,
According to the documentation there are currently two agents one can install on a Linux instance to collect metrics and logs:
* Ops Agent
* Legacy Monitoring agent
We want to collect custom logs from files from our own applications on the instances. It seems that the Ops Agent does not support this, so we installed and configured the Legacy Monitoring agent to do that.
However, it seems that the Legacy agent does not collect all system metrics. For example, we can't find Disk/Volume usage in the metrics. After some research it seems that the Ops Agent does collect those.
Now, one idea is to install both agents and configure the Legacy agent to collect our custom logs. Then disable log collection in the Ops Agent to have it only collect metrics. However, the Ops Agent documentation suggests that this is not a safe thing to do:
> Ensure your VM doesn't have the legacy Cloud Logging agent or Cloud Monitoring agent installed on it. This can cause ingestion of duplicate logs or a conflict in metrics ingestion. In addition, this agent uses new configuration files that are not compatible with the old agents.
For our use case, would it be safe to install both agents on the same instances if we disabled log collection in the Ops Agent?
If this is not possible, how can we achieve our goal, i.e. collection of all metrics and also collection of non-standard logs in files from our own applications?
Regards
Frank