Collect logs and metrics from Grafana Agent docker container

  • What Grafana version and what operating system are you using?
    Grafana Cloud. Host is Ubuntu 22.04.

  • What are you trying to achieve?
    Collect host metrics and logs using Grafana Agent.

  • How are you trying to achieve it?
    Grafana Agent docker container.

  • What happened?
    Can’t find any documentation on how to achieve this.

  • What did you expect to happen?

  • Can you copy/paste the configuration(s) that you are having problems with?

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.

  • Did you follow any online instructions? If so, what is the URL?
    Can’t find any suitable.