{"action":"closed","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/8938","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/8938/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/8938/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/8938/events","html_url":"https://github.com/elastic/elasticsearch/issues/8938","id":51861384,"number":8938,"title":"Indices stats: Add counter for failed indexing requests","user":{"login":"ppf2","id":7216393,"avatar_url":"https://avatars.githubusercontent.com/u/7216393?v=3","gravatar_id":"","url":"https://api.github.com/users/ppf2","html_url":"https://github.com/ppf2","followers_url":"https://api.github.com/users/ppf2/followers","following_url":"https://api.github.com/users/ppf2/following{/other_user}","gists_url":"https://api.github.com/users/ppf2/gists{/gist_id}","starred_url":"https://api.github.com/users/ppf2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppf2/subscriptions","organizations_url":"https://api.github.com/users/ppf2/orgs","repos_url":"https://api.github.com/users/ppf2/repos","events_url":"https://api.github.com/users/ppf2/events{/privacy}","received_events_url":"https://api.github.com/users/ppf2/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/:Stats","name":":Stats","color":"009800"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/adoptme","name":"adoptme","color":"207de5"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/low%20hanging%20fruit","name":"low hanging fruit","color":"009800"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-12-12T22:37:26Z","updated_at":"2015-09-10T14:13:51Z","closed_at":"2015-09-10T14:13:51Z","body":"Currently, the indexing.index_total shows the count of documents that are successfully indexed.  In other words, if a document reaches a shard and fails indexing (eg. due to concurrency control, other conditions), it is not counted towards the total.  It will be nice to add a metric to provide a count of failed indexing requests for admins (for those requests that actually reached the shard, eg. not blocked by the cluster state).\r\n\r\n```\r\n      \"primaries\" : {\r\n        \"indexing\" : {\r\n          \"index_total\" : 32283250,\r\n          \"index_time\" : \"2d\",\r\n          \"index_time_in_millis\" : 180763935,\r\n          \"delete_total\" : 0,\r\n```"}}