diff --git a/deploy_script_exporter.sh b/deploy_script_exporter.sh index 82f73b6..2ac1ed7 100755 --- a/deploy_script_exporter.sh +++ b/deploy_script_exporter.sh @@ -26,7 +26,7 @@ GCE_IMG_FAMILY="coreos-stable" # instance machine types to account for expected load. case $PROJECT in mlab-oti) - MACHINE_TYPE="n1-standard-4" + MACHINE_TYPE="n1-highmem-4" ;; mlab-staging) MACHINE_TYPE="n1-standard-2" @@ -84,5 +84,8 @@ gcloud compute scp $SCP_FILES $GCE_NAME:~ # Build the snmp_exporter Docker container. gcloud compute ssh $GCE_NAME --command "docker build -t ${IMAGE_TAG} ." -# Start a new container based on the new/updated image +# Start a new container based on the new/updated image. gcloud compute ssh $GCE_NAME --command "docker run --cap-add NET_ADMIN -p 9172:9172 -d ${IMAGE_TAG}" + +# Run Prometheus node_exporter in a container so we can gather VM metrics. +gcloud compute ssh $GCE_NAME --command "docker run --detach --publish 9100:9100 --volume /proc:/host/proc --volume /sys:/host/sys prom/node-exporter --path.procfs /host/proc --path.sysfs /host/sys --no-collector.arp --no-collector.bcache --no-collector.conntrack --no-collector.edac --no-collector.entropy --no-collector.filefd --no-collector.hwmon --no-collector.infiniband --no-collector.ipvs --no-collector.mdadm --no-collector.netstat --no-collector.sockstat --no-collector.time --no-collector.timex --no-collector.uname --no-collector.vmstat --no-collector.wifi --no-collector.xfs --no-collector.zfs"