{
  "title": "CloudQuery Syncs Insights",
  "description": "",
  "widgets": [
    {
      "id": 6533183048352006,
      "definition": {
        "title": "test",
        "banner_img": "",
        "show_title": false,
        "type": "group",
        "layout_type": "ordered",
        "widgets": [
          {
            "id": 818019981090292,
            "definition": {
              "type": "note",
              "content": "![CloudQueryLogo](https://www.cloudquery.io/docs/images/brand-logo/cloudquery_logo_png_light_background.png)",
              "background_color": "white",
              "font_size": "36",
              "text_align": "center",
              "vertical_align": "center",
              "show_tick": false,
              "tick_pos": "50%",
              "tick_edge": "left",
              "has_padding": true
            },
            "layout": { "x": 0, "y": 0, "width": 6, "height": 2 }
          },
          {
            "id": 1803149444713820,
            "definition": {
              "type": "note",
              "content": "Use this dashboard to get insights into CloudQuery syncs and optimize them. For more information on setting up CloudQuery with Datadog visit our [docs](https://www.cloudquery.io/docs/cli/managing-cloudquery/monitoring#opentelemetry-and-datadog).",
              "background_color": "white",
              "font_size": "14",
              "text_align": "left",
              "vertical_align": "top",
              "show_tick": false,
              "tick_pos": "50%",
              "tick_edge": "left",
              "has_padding": true
            },
            "layout": { "x": 0, "y": 2, "width": 3, "height": 2 }
          },
          {
            "id": 7570738384871020,
            "definition": {
              "type": "note",
              "content": "## Links\n\n- [Home](https://www.cloudquery.io/)\n- [Download CLI](https://www.cloudquery.io/download)\n- [Register](https://www.cloudquery.io/auth/register)\n- [Pricing](https://www.cloudquery.io/pricing)",
              "background_color": "white",
              "font_size": "14",
              "text_align": "left",
              "vertical_align": "top",
              "show_tick": false,
              "tick_pos": "50%",
              "tick_edge": "left",
              "has_padding": true
            },
            "layout": { "x": 3, "y": 2, "width": 3, "height": 2 }
          }
        ]
      },
      "layout": { "x": 0, "y": 0, "width": 6, "height": 5 }
    },
    {
      "id": 7236287707805706,
      "definition": {
        "title": "Resources per table",
        "title_size": "16",
        "title_align": "left",
        "type": "query_table",
        "requests": [
          {
            "queries": [
              {
                "name": "query1",
                "data_source": "metrics",
                "query": "sum:sync.table.resources{$sync.table.name, $sync.client.id, $service} by {sync.table.name}.as_count()",
                "aggregator": "sum"
              }
            ],
            "response_format": "scalar",
            "sort": {
              "count": 500,
              "order_by": [{ "type": "formula", "index": 0, "order": "desc" }]
            },
            "formulas": [
              {
                "cell_display_mode": "bar",
                "alias": "Resources",
                "formula": "query1"
              }
            ]
          }
        ],
        "has_search_bar": "auto"
      },
      "layout": { "x": 6, "y": 0, "width": 6, "height": 5 }
    },
    {
      "id": 7997006831764135,
      "definition": {
        "title": "Top 12 Slowest Tables (p95)",
        "title_size": "16",
        "title_align": "left",
        "type": "split_group",
        "source_widget_definition": {
          "title": "",
          "title_size": "16",
          "title_align": "left",
          "type": "timeseries",
          "requests": [
            {
              "formulas": [{ "formula": "p95" }],
              "queries": [
                {
                  "data_source": "metrics",
                  "name": "p95",
                  "query": "p95:trace.io.cloudquery.internal{service:$service.value,resource_name:sync.table.$sync.table.name.value}"
                }
              ],
              "response_format": "timeseries",
              "style": {
                "palette": "dog_classic",
                "line_type": "solid",
                "line_width": "normal"
              },
              "display_type": "line"
            }
          ],
          "markers": []
        },
        "split_config": {
          "split_dimensions": [{ "one_graph_per": "resource_name" }],
          "limit": 12,
          "sort": {
            "order": "desc",
            "compute": {
              "aggregation": "p95",
              "metric": "trace.io.cloudquery.internal"
            }
          }
        },
        "size": "sm",
        "has_uniform_y_axes": true
      },
      "layout": { "x": 0, "y": 5, "width": 12, "height": 3 }
    },
    {
      "id": 4618294854537207,
      "definition": {
        "title": "Throttled APIs detected in logs over time",
        "title_size": "16",
        "title_align": "left",
        "show_legend": false,
        "legend_layout": "auto",
        "legend_columns": ["avg", "min", "max", "value", "sum"],
        "type": "timeseries",
        "requests": [
          {
            "formulas": [{ "formula": "a" }],
            "queries": [
              {
                "data_source": "logs",
                "name": "a",
                "indexes": ["*"],
                "compute": { "aggregation": "count" },
                "group_by": [],
                "search": {
                  "query": "(@retry.attempt:>=2 OR \"retrying request\") @service.name:$service.value"
                },
                "storage": "hot"
              }
            ],
            "response_format": "timeseries",
            "style": { "palette": "dog_classic" },
            "display_type": "bars"
          }
        ]
      },
      "layout": { "x": 0, "y": 0, "width": 12, "height": 6 }
    },
    {
      "id": 5021998435653025,
      "definition": {
        "title": "Permission errors over time",
        "title_size": "16",
        "title_align": "left",
        "show_legend": false,
        "legend_layout": "auto",
        "legend_columns": ["avg", "min", "max", "value", "sum"],
        "type": "timeseries",
        "requests": [
          {
            "formulas": [{ "formula": "a" }],
            "queries": [
              {
                "data_source": "logs",
                "name": "a",
                "indexes": ["*"],
                "compute": { "aggregation": "count" },
                "group_by": [],
                "search": {
                  "query": "*:(*permissions OR denied*) -status:(info OR debug) @service.name:$service.value"
                },
                "storage": "hot"
              }
            ],
            "response_format": "timeseries",
            "style": { "palette": "dog_classic" },
            "display_type": "bars"
          }
        ]
      },
      "layout": { "x": 0, "y": 6, "width": 12, "height": 3 }
    },
    {
      "id": 2851755114443664,
      "definition": {
        "title": "Errors per table",
        "title_size": "16",
        "title_align": "left",
        "type": "query_table",
        "requests": [
          {
            "queries": [
              {
                "name": "query1",
                "data_source": "metrics",
                "query": "sum:sync.table.errors{$sync.table.name, $sync.client.id, $service} by {sync.table.name}.as_count()",
                "aggregator": "sum"
              }
            ],
            "response_format": "scalar",
            "sort": {
              "count": 500,
              "order_by": [{ "type": "formula", "index": 0, "order": "desc" }]
            },
            "formulas": [
              {
                "cell_display_mode": "bar",
                "alias": "Errors",
                "formula": "query1"
              }
            ]
          }
        ],
        "has_search_bar": "auto"
      },
      "layout": {
        "x": 0,
        "y": 0,
        "width": 5,
        "height": 5,
        "is_column_break": true
      }
    },
    {
      "id": 8467667933609944,
      "definition": {
        "title": "Sync errors rate over time",
        "title_size": "16",
        "title_align": "left",
        "show_legend": true,
        "legend_layout": "auto",
        "legend_columns": ["avg", "min", "max", "value", "sum"],
        "type": "timeseries",
        "requests": [
          {
            "formulas": [{ "formula": "query1" }],
            "queries": [
              {
                "data_source": "metrics",
                "name": "query1",
                "query": "sum:sync.table.errors{$service, $sync.table.name, $sync.client.id}.as_rate()"
              }
            ],
            "response_format": "timeseries",
            "style": {
              "palette": "dog_classic",
              "order_by": "values",
              "line_type": "solid",
              "line_width": "normal"
            },
            "display_type": "line"
          }
        ]
      },
      "layout": { "x": 5, "y": 0, "width": 7, "height": 5 }
    },
    {
      "id": 4153628843582668,
      "definition": {
        "title": "Sync time per plugin over time",
        "title_size": "16",
        "title_align": "left",
        "type": "split_group",
        "source_widget_definition": {
          "title": "",
          "title_size": "16",
          "title_align": "left",
          "type": "timeseries",
          "requests": [
            {
              "formulas": [{ "formula": "query1" }],
              "queries": [
                {
                  "data_source": "metrics",
                  "name": "query1",
                  "query": "sum:trace.io.cloudquery.internal{service:$service.value ,resource_name:sync} by {service}.as_count()"
                }
              ],
              "response_format": "timeseries",
              "style": {
                "palette": "dog_classic",
                "order_by": "values",
                "line_type": "solid",
                "line_width": "normal"
              },
              "display_type": "bars"
            }
          ]
        },
        "split_config": {
          "split_dimensions": [{ "one_graph_per": "service" }],
          "limit": 6,
          "sort": {
            "order": "desc",
            "compute": {
              "aggregation": "count",
              "metric": "trace.io.cloudquery.internal"
            }
          }
        },
        "size": "lg",
        "has_uniform_y_axes": true
      },
      "layout": { "x": 0, "y": 5, "width": 12, "height": 3 }
    },
    {
      "id": 4790101845729091,
      "definition": {
        "title": "Tables by sync duration",
        "title_size": "16",
        "title_align": "left",
        "requests": [
          {
            "response_format": "event_list",
            "columns": [
              { "field": "service", "width": "auto" },
              { "field": "resource_name", "width": "auto" },
              { "field": "@duration", "width": "auto" },
              { "field": "@sync.client.id", "width": "auto" },
              { "field": "@sync.invocation.id", "width": "auto" }
            ],
            "query": {
              "data_source": "trace_stream",
              "query_string": "@_top_level:1 resource_name:sync.table.$sync.table.name.value service:$service.value @sync.client.id:$sync.client.id.value",
              "indexes": []
            }
          }
        ],
        "type": "list_stream"
      },
      "layout": { "x": 0, "y": 0, "width": 12, "height": 10 }
    }
  ],
  "template_variables": [
    {
      "name": "service",
      "prefix": "service",
      "available_values": [],
      "default": "*"
    },
    {
      "name": "sync.table.name",
      "prefix": "sync.table.name",
      "available_values": [],
      "default": "*"
    },
    {
      "name": "sync.client.id",
      "prefix": "sync.client.id",
      "available_values": [],
      "default": "*"
    }
  ],
  "layout_type": "ordered",
  "notify_list": [],
  "reflow_type": "fixed"
}
