This file contains 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
# explicitly define host-ip mappings | |
# dnsmasq entries are always wildcard entries, so this maps both myapp.local and *.myapp.local | |
address=/myapp.local/219.219.219.125 | |
# set the upstream resolver for people running Linux; this allows all other DNS to be resolved: | |
server=1.1.1.1 | |
server=1.0.0.1 |
This file contains 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
FROM centos:7 | |
RUN yum install -y https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/pgdg-centos10-10-2.noarch.rpm | |
RUN yum install -y postgresql10 postgresql10-devel |
This file contains 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
from checks import AgentCheck | |
import psutil | |
class DiskPartitionCheck(AgentCheck): | |
def check(self, instance): | |
self.gauge('disk_partition.count', len(psutil.disk_partitions())) |
This file contains 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
access_key_id: XXXXXXX | |
secret_access_key: XXXXXXX |
This file contains 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
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get install git firefox | |
#Python 3 should already be installed on Ubuntu 14 | |
apt-get install python3-dev libffi-dev libssl-dev | |
wget https://bootstrap.pypa.io/get-pip.py | |
sudo -H python3 get-pip.py | |
sudo -H pip install requests[security] |