Skip to content

Metrics mismatch between response codes and actions #1213

Open
@robbavey

Description

@robbavey

The Elasticsearch output bulk_request metrics are intended to show the results of interactions with Elasticsearch, measuring response codes returned from the bulk request, and measuring whether a bulk request was a "success" (all actions in the bulk request processed successfully), a "failure" (none of the documents processed), or "with_errors" (bulk request succeeded, but individual actions in the bulk request generated errors).

Ordinarily, we would expect the total number of responses to match, or at least very closely match, the total of failures', successes, and with_errors`. However there are situations where these numbers do not match:

"bulk_requests": {
              "responses": {
                "200": 2514,
                "429": 1
              },
              "with_errors": 274,
              "failures": 1,
              "successes": 1602
            },
          }

We should fix these metrics, so that we have correlations to understand what is happening for each of the responses from Elasticsearch.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions