libraryDependencies ++= Seq(
jdbc,
cache,
ws,
specs2 % Test
)
resolvers += "scalaz-bintray" at "http://dl.bintray.com/scalaz/releases"
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
package main | |
import ( | |
"crypto/hmac" | |
"crypto/sha256" | |
"encoding/hex" | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"log" |
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
export AWS_DEFAULT_PROFILE=default | |
export KUBE_AWS_ZONE=us-west-2a | |
export NUM_NODES=2 | |
export MASTER_SIZE=m3.medium | |
export NODE_SIZE=m3.medium | |
export KUBE_AWS_INSTANCE_PREFIX=k8s | |
export KUBERNETES_PROVIDER=aws; wget -q -O - https://get.k8s.io | bash |
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
#!/bin/bash | |
# Install Wavefront Proxy and configures standard telegraf plugin | |
# #### | |
function logo() { | |
cat << "EOT" | |
__ __ _____ __ | |
/ \ / \_____ ___ __ _____/ ____\______ ____ _____/ |_ | |
\ \/\/ /\__ \\ \/ // __ \ __\\_ __ \/ _ \ / \ __\ | |
\ / / __ \\ /\ ___/| | | | \( <_> ) | \ | |
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
{ | |
"family": "cadvisor", | |
"containerDefinitions": [ | |
{ | |
"name": "cadvisor", | |
"image": "wavefronthq/cadvisor:latest", | |
"cpu": 10, | |
"memory": 300, | |
"portMappings": [ | |
{ |
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
#!/bin/bash | |
task_def="cadvisor" | |
start ecs | |
yum install -y aws-cli jq | |
instance_arn=$(curl -s http://localhost:51678/v1/metadata \ | |
| jq -r '. | .ContainerInstanceArn' | awk -F/ '{print $NF}' ) | |
cluster=$(curl -s http://localhost:51678/v1/metadata | jq -r '. | .Cluster' ) | |
az=$(curl -s http://169.254.169.254/latest/meta-data/placement/availability-zone) | |
region=${az:0:${#az} - 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
# Telegraf Configuration | |
# | |
# Telegraf is entirely plugin driven. All metrics are gathered from the | |
# declared inputs, and sent to the declared outputs. | |
# | |
# Plugins must be declared in here to be active. | |
# To deactivate a plugin, comment out the name and any variables. | |
# | |
# Use 'telegraf -config telegraf.conf -test' to see what metrics a config |
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
apiVersion: v1 | |
kind: ReplicationController | |
metadata: | |
labels: | |
k8s-app: heapster | |
name: heapster | |
version: v6 | |
name: heapster | |
namespace: default |
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
curl -i '[API_HOST]/api/dashboard' -X POST -H "Content-Type:application/json" -H 'X-AUTH-TOKEN: [API_TOKEN]' -d ' | |
{ | |
"customer": "collector", | |
"url": "collectd_test2", | |
"name": "Collectd Template", | |
"eventFilterType": "BYCHART", | |
"sections": [ | |
{ | |
"name": "CPU", | |
"rows": [ |
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
#defaul wavefront config | |
LoadPlugin swap | |
LoadPlugin df | |
LoadPlugin processes | |
LoadPlugin uptime | |
LoadPlugin users | |
<LoadPlugin python> | |
Globals true | |
</LoadPlugin> | |
<Plugin python> |
NewerOlder