APM visualizations on a custom dashboard (v7.17)

Hi, im trying to reproduce this APM visualizations in the Observability section of kibana, on a custom dashboard without success

image

this is what i have in TSVB

how can i convert the values to percentaje like in the first picture?

also the error visualization, for some reason I can only get the field "error.exception.message" with vega-lite visualizations, and another problem is that doesnt show the same errors that are in the APM visualizations in the Observability section.

{
  "$schema": "https://vega.github.io/schema/vega-lite/v4.json",
  "data": {
    "url": {
      "index": "andina-apm-error-*",
      "body": {
        "_source": ["@timestamp", "error.exception.message", "url.full", "http.request.method", "http.response.status_code"],
        "query": {
          "bool": {
            "filter": [
              {"exists": {"field": "error.exception.message"}},
              {"range": {"@timestamp": {"%timefilter%": true}}}
            ]
          }
        }
      }
    },
    "format": {"property": "hits.hits"}
  },
  "mark": {"type": "bar", "color": "orange"},
  "encoding": {
    "x": {
      "field": "_source.@timestamp",
      "type": "temporal",
      "axis": {"title": "@timestamp"}
    },
    "y": {
      "aggregate": "count",
      "type": "quantitative",
      "axis": {"title": "Count"}
    },
    "tooltip": [
      {"field": "_source.error.exception[0].message", "type": "nominal", "title": "Error Message"},
      {"field": "_source.url.full", "type": "nominal", "title": "URL"},
      {"field": "_source.http.request.method", "type": "nominal", "title": "HTTP Method"}
    ]
  }
}

Can anyone help?
Thanks!

how can i convert the values to percentaje like in the first picture?

A Lens area percentage chart should do what you want:

(you'd have to change vertical axis dimension to Average of "span.duration.us" )

another problem is that doesnt show the same errors that are in the APM visualizations in the Observability section.

Unfortunately, APM built that visualization programmatically (not using the user-facing tools). So, I'm not sure on the feasibility of this piece...

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.