Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Uptime] Step count sometimes incorrect #89560

Closed
andrewvc opened this issue Jan 28, 2021 · 1 comment · Fixed by #89940
Closed

[Uptime] Step count sometimes incorrect #89560

andrewvc opened this issue Jan 28, 2021 · 1 comment · Fixed by #89940
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability v7.11.0

Comments

@andrewvc
Copy link
Contributor

I've noticed that sometimes the step count is incorrect in the performance breakdown, showing 445 steps where there should only be 2:

image

I believe the root cause is that it is for some reason adding stderr events to the count, when it should just be counting the number of documents with a synthetics.type of step. See the query output below that shows this to be the case:


GET heartbeat*/_search
{
  "query": {
    "match": {
      "monitor.check_group": "a86d9b42-616f-11eb-9185-42010a84000f"
    }
  },
  "size": 0,
  "aggs": {
    "stepidx": {
      "terms": {
        "field": "synthetics.step.index"
      }
    },
    "type": {
      "terms": {
        "field": "synthetics.type"
      }
    }
  }
}


// output
{
  "took" : 32,
  "timed_out" : false,
  "_shards" : {
    "total" : 2,
    "successful" : 2,
    "skipped" : 0,
    "failed" : 0
  },
  "hits" : {
    "total" : {
      "value" : 605,
      "relation" : "eq"
    },
    "max_score" : null,
    "hits" : [ ]
  },
  "aggregations" : {
    "stepidx" : {
      "doc_count_error_upper_bound" : 0,
      "sum_other_doc_count" : 0,
      "buckets" : [
        {
          "key" : 1,
          "doc_count" : 152
        },
        {
          "key" : 2,
          "doc_count" : 6
        }
      ]
    },
    "type" : {
      "doc_count_error_upper_bound" : 0,
      "sum_other_doc_count" : 0,
      "buckets" : [
        {
          "key" : "stderr",
          "doc_count" : 443
        },
        {
          "key" : "journey/network_info",
          "doc_count" : 145
        },
        {
          "key" : "journey/browserconsole",
          "doc_count" : 9
        },
        {
          "key" : "step/end",
          "doc_count" : 2
        },
        {
          "key" : "step/screenshot",
          "doc_count" : 2
        },
        {
          "key" : "heartbeat/summary",
          "doc_count" : 1
        },
        {
          "key" : "journey/end",
          "doc_count" : 1
        },
        {
          "key" : "journey/start",
          "doc_count" : 1
        }
      ]
    }
  }
}
@andrewvc andrewvc added bug Fixes for quality problems that affect the customer experience [zube]: Ready Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability v7.11.0 labels Jan 28, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/uptime (Team:uptime)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability v7.11.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants