Last active
May 21, 2018 18:39
-
-
Save zero-master/142a9bbded2c5c1cf410711791e8ca21 to your computer and use it in GitHub Desktop.
Monitor Mongo with StackDriver
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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