stakater / bugs

Stakater issue tracker
0 stars 1 forks source link

Add Kibana healthcheck for Consul #107

Open rasheedamir opened 7 years ago

rasheedamir commented 7 years ago

If you run a query like: http://:5601/api/status

it will return a response like

{
name: "44c69f351be0",
version: "5.2.1",
buildNum: 14707,
buildSha: "03953ddae5c505842cc39d2df349b7e35f30ee5b",
uuid: "a46390d1-adf5-4dbf-aee9-cdb76f064a5b",
status: {
overall: {
state: "red",
title: "Red",
nickname: "Danger Will Robinson! Danger!",
icon: "danger",
since: "2017-03-01T15:14:46.517Z"
},
statuses: [
{
id: "ui settings",
state: "red",
icon: "danger",
message: "Elasticsearch plugin is red",
since: "2017-03-01T15:14:46.520Z"
},

now we have to look into status.overall.state and if its anything other than GREEN then we should update Consul and mark this app to be unhealthy

rasheedamir commented 7 years ago

https://www.consul.io/docs/agent/checks.html