Dashboards Visualisations for Heartbeat data

Hi,

Just wondering if anyones got some cool dashboards they would be willing to export and share for heartbeat v7.6.0 data.

I have 300 servers that i have icmp monitors enabled for and collecting good data and seeing it in the baked in Uptime app... but we are keen to do and see the data in more ways.

1 Like

I can share this experimental Vega visualization:

{
  "$schema": "https://vega.github.io/schema/vega-lite/v2.json",
  "title": "Time plot",
  "data": {
    "url": {
      "index": "heartbeat-*",
      "body": {
        "_source": [
          "@timestamp",
          "monitor.duration.us",
          "monitor.name",
          "monitor.status"
        ],
        "query": {
          "bool": {
            "must": [
              "%dashboard_context-must_clause%",
              {
                "range": {
                  "@timestamp": {
                    "%timefilter%": true,
                    "shift": 10,
                    "unit": "minute"
                  }
                }
              }
            ],
            "must_not": ["%dashboard_context-must_not_clause%"]
          }
        },
        "size": 10000
      }
    },
    "format": {"property": "hits.hits"}
  },
  "transform": [
    {"calculate": "toDate(datum._source['@timestamp'])", "as": "start"},
    {
      "calculate": "toDate(datum._source['@timestamp']) + (toNumber(datum._source.monitor.duration.us)/1000)",
      "as": "end"
    }
  ],
  "mark": "bar",
  "encoding": {
    "y": {
      "field": "_source.monitor.name",
      "type": "nominal",
      "title": "Origin"
    },
    "x": {"field": "start", "type": "temporal", "title": ""},
    "x2": {"field": "end", "type": "temporal"},
    "color": {"field": "_source.monitor.status", "type": "nominal"}
  }
}

Which will show up something like that:

It has the limitation of allowing only 10000 events to be shown within the visualization.

Thanks Luca for sharing that item. I copied that and it worked straight away, I hadnt considered Vega before so I'll do a bit of reading and experimenting with that as well.

Keen to see other items anyone else wants to share as well though.

1 Like

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