{
  "version": "0.1.0",
  "name": "Example Temporal dashboard",
  "tiles": [
    {
      "id": "10kc7w",
      "x": 0,
      "y": 0,
      "w": 5,
      "h": 6,
      "config": {
        "name": "Open Workflows",
        "source": "Metrics",
        "displayType": "number",
        "granularity": "auto",
        "select": [
          {
            "aggFn": "sum",
            "aggCondition": "",
            "aggConditionLanguage": "lucene",
            "valueExpression": "Value",
            "metricType": "gauge",
            "metricName": "temporal_cloud_v1_namespace_open_workflows"
          }
        ],
        "where": "",
        "whereLanguage": "lucene"
      }
    },
    {
      "id": "o5kgv",
      "x": 5,
      "y": 0,
      "w": 7,
      "h": 11,
      "config": {
        "name": "Successful workflows",
        "source": "Metrics",
        "displayType": "stacked_bar",
        "granularity": "auto",
        "select": [
          {
            "aggFn": "sum",
            "aggCondition": "",
            "aggConditionLanguage": "lucene",
            "valueExpression": "Value",
            "alias": "successful workflows",
            "metricType": "gauge",
            "metricName": "temporal_cloud_v1_workflow_success_count"
          }
        ],
        "where": "",
        "whereLanguage": "lucene",
        "groupBy": "Attributes['temporal_workflow_type']"
      }
    },
    {
      "id": "5105k",
      "x": 12,
      "y": 0,
      "w": 12,
      "h": 11,
      "config": {
        "name": "Actions/sec",
        "source": "Metrics",
        "displayType": "line",
        "granularity": "auto",
        "select": [
          {
            "aggFn": "sum",
            "aggCondition": "",
            "aggConditionLanguage": "lucene",
            "valueExpression": "Value",
            "alias": "action/sec",
            "metricType": "gauge",
            "metricName": "temporal_cloud_v1_total_action_count"
          },
          {
            "aggFn": "sum",
            "aggCondition": "",
            "aggConditionLanguage": "lucene",
            "valueExpression": "Value",
            "alias": "actions limit",
            "metricType": "gauge",
            "metricName": "temporal_cloud_v1_action_limit"
          }
        ],
        "where": "",
        "whereLanguage": "lucene"
      }
    },
    {
      "id": "2s9gv",
      "x": 0,
      "y": 6,
      "w": 5,
      "h": 5,
      "config": {
        "name": "Queue Backlog",
        "source": "Metrics",
        "displayType": "number",
        "granularity": "auto",
        "select": [
          {
            "aggFn": "sum",
            "aggCondition": "",
            "aggConditionLanguage": "lucene",
            "valueExpression": "Value",
            "metricType": "gauge",
            "metricName": "temporal_cloud_v1_approximate_backlog_count"
          }
        ],
        "where": "",
        "whereLanguage": "lucene"
      }
    },
    {
      "id": "rqi7u",
      "x": 0,
      "y": 11,
      "w": 12,
      "h": 12,
      "config": {
        "name": "Active Namespaces",
        "source": "Metrics",
        "displayType": "line",
        "granularity": "auto",
        "select": [
          {
            "aggFn": "count_distinct",
            "aggCondition": "",
            "aggConditionLanguage": "lucene",
            "valueExpression": "Value",
            "alias": "active namespaces",
            "metricType": "gauge",
            "metricName": "temporal_cloud_v1_namespace_open_workflows"
          }
        ],
        "where": "",
        "whereLanguage": "lucene",
        "groupBy": ""
      }
    },
    {
      "id": "dspie",
      "x": 12,
      "y": 11,
      "w": 12,
      "h": 12,
      "config": {
        "name": "Pending requests/sec",
        "source": "Metrics",
        "displayType": "line",
        "granularity": "auto",
        "select": [
          {
            "aggFn": "sum",
            "aggCondition": "",
            "aggConditionLanguage": "lucene",
            "valueExpression": "Value",
            "alias": "requests/sec",
            "metricType": "gauge",
            "metricName": "temporal_cloud_v1_service_pending_requests"
          },
          {
            "aggFn": "sum",
            "aggCondition": "",
            "aggConditionLanguage": "lucene",
            "valueExpression": "Value",
            "alias": "request limit",
            "metricType": "gauge",
            "metricName": "temporal_cloud_v1_service_request_limit"
          }
        ],
        "where": "",
        "whereLanguage": "lucene"
      }
    },
    {
      "id": "1cd1kr",
      "x": 0,
      "y": 23,
      "w": 12,
      "h": 12,
      "config": {
        "name": "Operations per namespace",
        "source": "Metrics",
        "displayType": "line",
        "granularity": "auto",
        "select": [
          {
            "aggFn": "sum",
            "aggCondition": "",
            "aggConditionLanguage": "lucene",
            "valueExpression": "Value",
            "alias": "ops/namespace",
            "metricType": "gauge",
            "metricName": "temporal_cloud_v1_operations_count"
          },
          {
            "aggFn": "sum",
            "aggCondition": "",
            "aggConditionLanguage": "lucene",
            "valueExpression": "Value",
            "alias": "operations limit",
            "metricType": "gauge",
            "metricName": "temporal_cloud_v1_operations_limit"
          }
        ],
        "where": "",
        "whereLanguage": "lucene",
        "groupBy": "Attributes['temporal_namespace']"
      }
    },
    {
      "id": "19t7yl",
      "x": 12,
      "y": 35,
      "w": 12,
      "h": 12,
      "config": {
        "name": "P95 latency",
        "source": "Metrics",
        "displayType": "line",
        "granularity": "auto",
        "select": [
          {
            "aggFn": "quantile",
            "aggCondition": "",
            "aggConditionLanguage": "lucene",
            "valueExpression": "Value",
            "alias": "secs",
            "metricType": "gauge",
            "metricName": "temporal_cloud_v1_service_latency_p95"
          }
        ],
        "where": "",
        "whereLanguage": "lucene"
      }
    },
    {
      "id": "1ax2bs",
      "x": 0,
      "y": 35,
      "w": 12,
      "h": 12,
      "config": {
        "name": "Task backlog",
        "source": "Metrics",
        "displayType": "line",
        "granularity": "auto",
        "select": [
          {
            "aggFn": "sum",
            "aggCondition": "",
            "aggConditionLanguage": "lucene",
            "valueExpression": "Value",
            "metricType": "gauge",
            "metricName": "temporal_cloud_v1_approximate_backlog_count"
          }
        ],
        "where": "",
        "whereLanguage": "lucene",
        "groupBy": "Attributes['temporal_task_queue']"
      }
    },
    {
      "id": "frqreq",
      "x": 0,
      "y": 47,
      "w": 12,
      "h": 12,
      "config": {
        "name": "Frontend requests/sec",
        "source": "Metrics",
        "displayType": "line",
        "granularity": "auto",
        "select": [
          {
            "aggFn": "sum",
            "aggCondition": "",
            "aggConditionLanguage": "lucene",
            "valueExpression": "Value",
            "alias": "requests/sec",
            "metricType": "gauge",
            "metricName": "temporal_cloud_v1_service_request_count"
          }
        ],
        "where": "",
        "whereLanguage": "lucene",
        "groupBy": "Attributes['operation']"
      }
    },
    {
      "id": "rscxhu",
      "x": 12,
      "y": 47,
      "w": 12,
      "h": 12,
      "config": {
        "name": "Resource exhausted errors/sec",
        "source": "Metrics",
        "displayType": "line",
        "granularity": "auto",
        "select": [
          {
            "aggFn": "sum",
            "aggCondition": "",
            "aggConditionLanguage": "lucene",
            "valueExpression": "Value",
            "alias": "errors/sec",
            "metricType": "gauge",
            "metricName": "temporal_cloud_v1_resource_exhausted_error_count"
          }
        ],
        "where": "",
        "whereLanguage": "lucene",
        "groupBy": "Attributes['resource_exhausted_cause']"
      }
    },
    {
      "id": "wflowo",
      "x": 12,
      "y": 59,
      "w": 12,
      "h": 10,
      "config": {
        "name": "Workflow outcomes/sec",
        "source": "Metrics",
        "displayType": "stacked_bar",
        "granularity": "auto",
        "select": [
          {
            "aggFn": "sum",
            "aggCondition": "",
            "aggConditionLanguage": "lucene",
            "valueExpression": "Value",
            "alias": "success",
            "metricType": "gauge",
            "metricName": "temporal_cloud_v1_workflow_success_count"
          },
          {
            "aggFn": "sum",
            "aggCondition": "",
            "aggConditionLanguage": "lucene",
            "valueExpression": "Value",
            "alias": "failed",
            "metricType": "gauge",
            "metricName": "temporal_cloud_v1_workflow_failed_count"
          },
          {
            "aggFn": "sum",
            "aggCondition": "",
            "aggConditionLanguage": "lucene",
            "valueExpression": "Value",
            "alias": "timeout",
            "metricType": "gauge",
            "metricName": "temporal_cloud_v1_workflow_timeout_count"
          },
          {
            "aggFn": "sum",
            "aggCondition": "",
            "aggConditionLanguage": "lucene",
            "valueExpression": "Value",
            "alias": "cancelled",
            "metricType": "gauge",
            "metricName": "temporal_cloud_v1_workflow_cancelled_count"
          },
          {
            "aggFn": "sum",
            "aggCondition": "",
            "aggConditionLanguage": "lucene",
            "valueExpression": "Value",
            "alias": "terminated",
            "metricType": "gauge",
            "metricName": "temporal_cloud_v1_workflow_terminated_count"
          },
          {
            "aggFn": "sum",
            "aggCondition": "",
            "aggConditionLanguage": "lucene",
            "valueExpression": "Value",
            "alias": "continued_as_new",
            "metricType": "gauge",
            "metricName": "temporal_cloud_v1_workflow_continued_as_new_count"
          }
        ],
        "where": "",
        "whereLanguage": "lucene",
        "groupBy": "Attributes['temporal_workflow_type']"
      }
    },
    {
      "id": "tqpoll",
      "x": 12,
      "y": 23,
      "w": 12,
      "h": 12,
      "config": {
        "name": "Task queue poll outcomes/sec",
        "source": "Metrics",
        "displayType": "stacked_bar",
        "granularity": "auto",
        "select": [
          {
            "aggFn": "sum",
            "aggCondition": "",
            "aggConditionLanguage": "lucene",
            "valueExpression": "Value",
            "alias": "poll_success",
            "metricType": "gauge",
            "metricName": "temporal_cloud_v1_poll_success_count"
          },
          {
            "aggFn": "sum",
            "aggCondition": "",
            "aggConditionLanguage": "lucene",
            "valueExpression": "Value",
            "alias": "poll_success_sync",
            "metricType": "gauge",
            "metricName": "temporal_cloud_v1_poll_success_sync_count"
          },
          {
            "aggFn": "sum",
            "aggCondition": "",
            "aggConditionLanguage": "lucene",
            "valueExpression": "Value",
            "alias": "poll_timeout",
            "metricType": "gauge",
            "metricName": "temporal_cloud_v1_poll_timeout_count"
          },
          {
            "aggFn": "sum",
            "aggCondition": "",
            "aggConditionLanguage": "lucene",
            "valueExpression": "Value",
            "alias": "no_poller_tasks",
            "metricType": "gauge",
            "metricName": "temporal_cloud_v1_no_poller_tasks_count"
          }
        ],
        "where": "",
        "whereLanguage": "lucene",
        "groupBy": "Attributes['temporal_task_queue']"
      }
    },
    {
      "id": "svclat",
      "x": 0,
      "y": 59,
      "w": 12,
      "h": 10,
      "config": {
        "name": "Service latency percentiles",
        "source": "Metrics",
        "displayType": "line",
        "granularity": "auto",
        "select": [
          {
            "aggFn": "quantile",
            "aggCondition": "",
            "aggConditionLanguage": "lucene",
            "valueExpression": "Value",
            "alias": "p50",
            "metricType": "gauge",
            "metricName": "temporal_cloud_v1_service_latency_p50"
          },
          {
            "aggFn": "quantile",
            "aggCondition": "",
            "aggConditionLanguage": "lucene",
            "valueExpression": "Value",
            "alias": "p95",
            "metricType": "gauge",
            "metricName": "temporal_cloud_v1_service_latency_p95"
          },
          {
            "aggFn": "quantile",
            "aggCondition": "",
            "aggConditionLanguage": "lucene",
            "valueExpression": "Value",
            "alias": "p99",
            "metricType": "gauge",
            "metricName": "temporal_cloud_v1_service_latency_p99"
          }
        ],
        "where": "",
        "whereLanguage": "lucene"
      }
    }
  ],
  "filters": [
    {
      "id": "8aeca2e7-1a43-4564-ad62-52ff3edc2225",
      "type": "QUERY_EXPRESSION",
      "name": "Temporal namespace",
      "expression": "Attributes['temporal_namespace']",
      "source": "Metrics",
      "sourceMetricType": "gauge"
    },
    {
      "id": "b8c2c7cd-7196-4dba-8942-4eed27247d09",
      "type": "QUERY_EXPRESSION",
      "name": "Temporal region",
      "expression": "Attributes['region']",
      "source": "Metrics",
      "sourceMetricType": "gauge"
    }
  ]
}
