Skip to content

Instantly share code, notes, and snippets.

@jeanfrancis
Last active August 29, 2015 14:14
Show Gist options
  • Save jeanfrancis/f863e8c8a6c7a9333c3b to your computer and use it in GitHub Desktop.
Save jeanfrancis/f863e8c8a6c7a9333c3b to your computer and use it in GitHub Desktop.
manage together multiple Sensu instance in Uchiwa dashboard
Setting of Uchiwa dealing with multiple sensu-server
In json of Uchiwa, by the sensu in array as follows, it seems it's enough to describe the end point of all of sensu-api.
uchiwa.json
{
"Uchiwa": {
(Omitted)
},
"Sensu": [
{
"Name": "sensu-a",
"Host": "<sensu-a-api host>",
"Port": <sensu-a-api port>,
(Omitted)
},
{
"Name": "sensu-b",
"Host": "<sensu-b-api host>",
"Port": <sensu-b-api port>,
(Omitted)
},
{
"Name": "sensu-c",
"Host": "<sensu-c-api host>",
"Port": <sensu-c-api port>,
(Omitted)
}
]
}
By the way, uchiwa-chef If you are using, and if you pass the attribute as described below, will generate a json as described above.
"Uchiwa": {
"Settings": {
(Omitted)
},
"Api": [
{
"Name": "sensu-a",
"Host": "<sensu-a host>",
"Port": <sensu-a port>,
(Omitted)
}, {
"Name": "sensu-b",
"Host": "<sensu-b host>",
"Port": <sensu-b port>,
(Omitted)
}, {
"Name": "<sensu-c>",
"Host": "<sensu-c host>",
"Port": <sensu-c port>,
(Omitted)
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment