{"action":"reopened","issue":{"url":"https://api.github.com/repos/elastic/logstash/issues/10121","repository_url":"https://api.github.com/repos/elastic/logstash","labels_url":"https://api.github.com/repos/elastic/logstash/issues/10121/labels{/name}","comments_url":"https://api.github.com/repos/elastic/logstash/issues/10121/comments","events_url":"https://api.github.com/repos/elastic/logstash/issues/10121/events","html_url":"https://github.com/elastic/logstash/issues/10121","id":377791641,"node_id":"MDU6SXNzdWUzNzc3OTE2NDE=","number":10121,"title":"Enhance `GET /` API for Metricbeat monitoring","user":{"login":"ycombinator","id":51061,"node_id":"MDQ6VXNlcjUxMDYx","avatar_url":"https://avatars2.githubusercontent.com/u/51061?v=4","gravatar_id":"","url":"https://api.github.com/users/ycombinator","html_url":"https://github.com/ycombinator","followers_url":"https://api.github.com/users/ycombinator/followers","following_url":"https://api.github.com/users/ycombinator/following{/other_user}","gists_url":"https://api.github.com/users/ycombinator/gists{/gist_id}","starred_url":"https://api.github.com/users/ycombinator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ycombinator/subscriptions","organizations_url":"https://api.github.com/users/ycombinator/orgs","repos_url":"https://api.github.com/users/ycombinator/repos","events_url":"https://api.github.com/users/ycombinator/events{/privacy}","received_events_url":"https://api.github.com/users/ycombinator/received_events","type":"User","site_admin":false},"labels":[{"id":90997545,"node_id":"MDU6TGFiZWw5MDk5NzU0NQ==","url":"https://api.github.com/repos/elastic/logstash/labels/enhancement","name":"enhancement","color":"009800","default":true},{"id":258254839,"node_id":"MDU6TGFiZWwyNTgyNTQ4Mzk=","url":"https://api.github.com/repos/elastic/logstash/labels/monitoring","name":"monitoring","color":"c7def8","default":false}],"state":"open","locked":false,"assignee":{"login":"cachedout","id":111616,"node_id":"MDQ6VXNlcjExMTYxNg==","avatar_url":"https://avatars3.githubusercontent.com/u/111616?v=4","gravatar_id":"","url":"https://api.github.com/users/cachedout","html_url":"https://github.com/cachedout","followers_url":"https://api.github.com/users/cachedout/followers","following_url":"https://api.github.com/users/cachedout/following{/other_user}","gists_url":"https://api.github.com/users/cachedout/gists{/gist_id}","starred_url":"https://api.github.com/users/cachedout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cachedout/subscriptions","organizations_url":"https://api.github.com/users/cachedout/orgs","repos_url":"https://api.github.com/users/cachedout/repos","events_url":"https://api.github.com/users/cachedout/events{/privacy}","received_events_url":"https://api.github.com/users/cachedout/received_events","type":"User","site_admin":false},"assignees":[{"login":"cachedout","id":111616,"node_id":"MDQ6VXNlcjExMTYxNg==","avatar_url":"https://avatars3.githubusercontent.com/u/111616?v=4","gravatar_id":"","url":"https://api.github.com/users/cachedout","html_url":"https://github.com/cachedout","followers_url":"https://api.github.com/users/cachedout/followers","following_url":"https://api.github.com/users/cachedout/following{/other_user}","gists_url":"https://api.github.com/users/cachedout/gists{/gist_id}","starred_url":"https://api.github.com/users/cachedout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cachedout/subscriptions","organizations_url":"https://api.github.com/users/cachedout/orgs","repos_url":"https://api.github.com/users/cachedout/repos","events_url":"https://api.github.com/users/cachedout/events{/privacy}","received_events_url":"https://api.github.com/users/cachedout/received_events","type":"User","site_admin":false}],"milestone":null,"comments":10,"created_at":"2018-11-06T10:51:39Z","updated_at":"2019-06-11T07:49:46Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"### Background\r\n\r\nToday, when the `xpack.monitoring.*` settings are configured in `logstash.yml`, Logstash performs _internal_ collection of it's own monitoring metrics and ships them to `.monitoring-logstash-*`. The Monitoring UI in Kibana then reads documents from these indices to create visualizations of a user's Logstash instances and pipelines.\r\n\r\nIn the future, we're aiming to have Metricbeat _externally_ collect Logstash metrics and ship them to `.monitoring-logstash-*` indices. This will mean that Metricbeat has to poll various Logstash HTTP APIs to collect said metrics.\r\n\r\n### The Request\r\n\r\nCurrently the `GET /` API returns much of the Logstash node information that Metricbeat will need in order to build the documents to be indexed into `.monitoring-logstash-*`. However, there are a few additional pieces of information that this API would need to return to complete the picture:\r\n\r\n* `status`: Status of node (`green`, etc.)\r\n* `ephemeral_id`: Ephemeral ID of node\r\n* `uuid`: Persistent UUID of node\r\n* `name`: Name of node, could be different from `host`\r\n* `snapshot`: Whether the node is working off a snapshot build\r\n\r\nHere is an example JSON document showing **just these additional fields**:\r\n\r\n```json\r\n{\r\n  \"status\": \"green\",\r\n  \"ephemeral_id\":\"6d69db08-f2a5-411f-81cf-0f395d5de358\",\r\n  \"uuid\":\"7565df20-c3aa-4261-81d5-3b0ab8d15c16\",\r\n  \"name\":\"Shaunaks-MBP-2\",\r\n  \"snapshot\": false\r\n}\r\n```"}}
{"actor":{"display_login":"cachedout"}}