Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save PlagueHO/3bab648221f7189d9af56bd2155c964b to your computer and use it in GitHub Desktop.
Save PlagueHO/3bab648221f7189d9af56bd2155c964b to your computer and use it in GitHub Desktop.
Shell command to enable sending container telemetry to an Azure Monitor Log Analytics workspace
sudo docker run --privileged -d -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/docker/containers:/var/lib/docker/containers -e WSID="<YOUR WORKSPACE ID>" -e KEY="<YOUR WORKSPACE KEY>" -h=`hostname` -p 127.0.0.1:25225:25225 --name="omsagent" --restart=always microsoft/oms:1.8.1-256
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment