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
#! /usr/bin/env python | |
# TODOs: | |
# - Clean up logging (Propose prefixing all messages with something identifying the plugin) | |
# - Mock collectd functionality for testing / development | |
# - Evaluate whether or not we care that sendall won't let you know what you sent, which | |
# will include a lot of buffer management and metric boundaries. | |
# - Self monitoring - publish i.e. reconnect tries, seconds connected vs. seconds not connected, queue size | |
# Example 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
LoadPlugin swap | |
LoadPlugin df | |
LoadPlugin processes | |
LoadPlugin uptime | |
LoadPlugin users | |
<LoadPlugin python> | |
Globals true | |
</LoadPlugin> | |
<Plugin python> | |
ModulePath "/opt/wavefront/collectd/plugin" |
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> |
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
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
# 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
#!/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
{ | |
"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 | |
# Install Wavefront Proxy and configures standard telegraf plugin | |
# #### | |
function logo() { | |
cat << "EOT" | |
__ __ _____ __ | |
/ \ / \_____ ___ __ _____/ ____\______ ____ _____/ |_ | |
\ \/\/ /\__ \\ \/ // __ \ __\\_ __ \/ _ \ / \ __\ | |
\ / / __ \\ /\ ___/| | | | \( <_> ) | \ | |
OlderNewer