{
"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",
curl -s 'https://oss-sensu-dit.example.com/clients' | jq
[
{
"name": "ditweb132",
"address": "10.10.10.36",
"subscriptions": [
"client:ditweb132"
],
"version": "1.0.2",
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
(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 |