Skip to content

Instantly share code, notes, and snippets.

import urllib2
import diamond.collector
AVAILABLE_METRIC = 'available'
class HealthCheckCollector(diamond.collector.Collector):
################################################################################
# Diamond Configuration File
################################################################################
################################################################################
### Options for the server
[server]
# Handlers for published metrics.
handlers = diamond.handler.graphite.GraphiteHandler
---
- 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 April 4, 2021 15:20
Elastic Search AWS Cloudformation Script
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "Creates auto scaling Elastic Search Cluster",
"Parameters" : {
"InstanceType" : {
"Description" : "Elastic Search node instance type",
"Type" : "String",
"Default" : "t2.small",