Skip to content

Instantly share code, notes, and snippets.

@xriu
xriu / cloudwatch-pipeline.conf
Created September 30, 2016 09:07 — forked from BrockReece/cloudwatch-pipeline.conf
Logstash cloudwatch output sample pipeline
input {
http_poller {
urls => {
node => {
method => get
url => "http://localhost:9200/_cluster/health"
headers => {
Accept => "application/json"
}
}
@xriu
xriu / Monit struct
Last active May 29, 2016 19:34
monit_struct.go
package monit
type Monit struct {
Monit struct {
Platform struct {
CPU string `json:"cpu"`
Machine string `json:"machine"`
Memory string `json:"memory"`
Name string `json:"name"`
Release string `json:"release"`