Skip to content

Instantly share code, notes, and snippets.

View HealthCheckCollector.py
import urllib2
import diamond.collector
AVAILABLE_METRIC = 'available'
class HealthCheckCollector(diamond.collector.Collector):
View diamond.conf
################################################################################
# Diamond Configuration File
################################################################################
################################################################################
### Options for the server
[server]
# Handlers for published metrics.
handlers = diamond.handler.graphite.GraphiteHandler
View diamond.yml
---
- name : Install packages
apt : name={{item}} state=present
with_items :
- python-pip
- gcc
- python-dev
tags:
- diamond
@mirajavora
mirajavora / cloudformation-aws-elasticsearch.json
Last active Nov 29, 2018
Elastic Search AWS Cloudformation Script
View cloudformation-aws-elasticsearch.json
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "Creates auto scaling Elastic Search Cluster",
"Parameters" : {
"InstanceType" : {
"Description" : "Elastic Search node instance type",
"Type" : "String",
"Default" : "t2.small",
You can’t perform that action at this time.