Skip to content
pingwright
Docs menu Dashboards

Logs, metrics and errors

Dashboards

A dashboard puts what you watch on one page: your services' metrics and logs, your checks' response times and uptime, and your error issues. Build one in the console, or ask your coding agent for one.

Dashboards is a beta feature preview. Widgets over metrics, logs or errors also need that preview on.

Sections and widgets

A dashboard is a list of sections, each a 12-column grid of widgets. Collapse a section to keep it out of the way; its widgets load when you open it.

WidgetShows
NumberOne big value, optionally with a sparkline and thresholds.
Time seriesLines, areas or bars over time, with a legend or a table of avg, min, max, sum and last.
BarsValues side by side.
Top listThe largest values, ranked.
TableValues in rows and columns.
Log streamMatching log lines, newest first.
Issue listError issues matching a filter.
NotePlain text, for context or a runbook link.

Number, time series, bars, top list and table widgets take up to six queries each, over metrics (the query builder or MetricsQL), logs (a count or other aggregation of matching lines), or checks (response time percentiles, runs, failures, success and error rate, by check, location, type, status code or outcome).

Variables

Template variables, such as service or environment, change every widget at once. A variable's values come from a metric label, a log field, or a list you write. It can allow several values and an "All" option.

Use it in a query as $service or ${service}. Also available: $__interval, $__rate_interval and $__range.

Saved views

A saved view is a named time range and set of variable values, such as "production, last 24 hours", shared with everyone in your organization. Up to 50 per dashboard.

The JSON definition

Every dashboard is a JSON document (schemaVersion 1). Edit it directly in the console's edit mode, duplicate a dashboard to start from it, or have your agent write one. A small example:

JSON
{
  "schemaVersion": 1,
  "defaultRange": "24h",
  "refreshSeconds": 30,
  "variables": [
    {
      "name": "env",
      "label": "Environment",
      "source": { "kind": "metricLabel", "label": "deployment_environment_name" },
      "multi": true,
      "includeAll": true
    }
  ],
  "sections": [
    {
      "id": "checkout",
      "title": "Checkout",
      "widgets": [
        {
          "id": "p95",
          "type": "timeseries",
          "title": "p95 latency",
          "layout": { "x": 0, "y": 0, "w": 8, "h": 4 },
          "queries": [
            {
              "id": "a",
              "source": "metrics",
              "builder": {
                "metric": "http_server_request_duration_seconds",
                "aggregation": "p95",
                "groupBy": ["service_name"],
                "filters": [{ "label": "deployment_environment_name", "op": "=~", "value": "$env" }]
              },
              "legend": "{{service_name}}"
            }
          ],
          "display": { "unit": "s" }
        },
        {
          "id": "errors",
          "type": "number",
          "title": "Error lines",
          "layout": { "x": 8, "y": 0, "w": 4, "h": 4 },
          "queries": [
            {
              "id": "a",
              "source": "logs",
              "query": "level:error",
              "aggregation": { "fn": "count" }
            }
          ],
          "display": { "sparkline": true }
        }
      ]
    }
  ]
}

refreshSeconds is how often the dashboard updates while you watch it: 0 (manual), 10, 30, 60, 300 or 900. defaultRange is one of 15m, 1h, 6h, 24h, 7d or 30d.

Build one with your agent

Over MCP, get_dashboard_schema gives your agent the full JSON Schema, and create_dashboard and update_dashboard check every definition before saving it. Ask something like:

"Make a dashboard for checkout-api: request rate and p95 latency by environment, error log lines, and its open issues."

Limits

Up to 100 dashboards per organization, 60 widgets and 256 KB per dashboard, 20 sections and 10 variables.

Open Dashboards in the console