Skip to content

Instantly share code, notes, and snippets.

View cjchand's full-sized avatar

Chris Chandler cjchand

  • T-Mobile
  • Dallas, TX
View GitHub Profile
{
  "sensu": [
    {
      "name": "qlab01",
      "host": "oss-sensu-qlab01.example.com",
      "port": 4567,
      "timeout": 5
    },
    {
{
  "sensu": [
    {
      "name": "us-east-1",
      "host": "10.0.0.1",
      "port": 4567
    },
    {
 "name": "us-east-1",
@cjchand
cjchand / clients.md
Created January 25, 2018 17:24
clients api example
curl -s 'https://oss-sensu-dit.example.com/clients' | jq
[
  {
    "name": "ditweb132",
    "address": "10.10.10.36",
    "subscriptions": [
      "client:ditweb132"
    ],
 "version": "1.0.2",
@cjchand
cjchand / gist:3ebdea0c83c23e9a0e9f91d7d3174bc6
Last active June 21, 2017 01:24
Overview - Driving Consul Service Registry via Sensu
(With apologies for the lack of brevity...)
More to come in a future blog post, but here the idea:
# TL;DR
* Check definition has a service_regsitry section that has the info about the service to be registered in Consul (service name, port, other metadata like tags, etc)
* Handler in Sensu toggles service in Consul to passing/failing based on sensu-client check result
# Long-winded version