Skip to content

Commit

Permalink
Merge pull request #8 from m-lab/sandbox-kinkade
Browse files Browse the repository at this point in the history
Run node_exporter in VM + machine type for mlab-oti is now n1-highmem-4
  • Loading branch information
nkinkade authored Feb 12, 2018
2 parents 26b7678 + 437787a commit bd77add
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions deploy_script_exporter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"

0 comments on commit bd77add

Please sign in to comment.