Skip to content

Instantly share code, notes, and snippets.

@zero-master
Last active May 21, 2018 18:39
Show Gist options
  • Save zero-master/142a9bbded2c5c1cf410711791e8ca21 to your computer and use it in GitHub Desktop.
Save zero-master/142a9bbded2c5c1cf410711791e8ca21 to your computer and use it in GitHub Desktop.
Monitor Mongo with StackDriver
#!/bin/bash
curl -sSO https://dl.google.com/cloudagents/install-monitoring-agent.sh
sudo bash install-monitoring-agent.sh
rm install-monitoring-agent.sh
cd /opt/stackdriver/collectd/etc/collectd.d/
sudo curl -O https://raw.githubusercontent.com/Stackdriver/stackdriver-agent-service-configs/master/etc/collectd.d/mongodb.conf
cd -
sudo service stackdriver-agent restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment