{
  "annotations": [
    {
      "kind": "AnnotationQuery",
      "spec": {
        "builtIn": true,
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "query": {
          "datasource": {
            "name": "-- Grafana --"
          },
          "group": "grafana",
          "kind": "DataQuery",
          "spec": {},
          "version": "v0"
        }
      }
    }
  ],
  "cursorSync": "Off",
  "editable": true,
  "elements": {
    "panel-1": {
      "kind": "Panel",
      "spec": {
        "data": {
          "kind": "QueryGroup",
          "spec": {
            "queries": [
              {
                "kind": "PanelQuery",
                "spec": {
                  "hidden": false,
                  "query": {
                    "datasource": {
                      "name": "grafanacloud-logs"
                    },
                    "group": "loki",
                    "kind": "DataQuery",
                    "spec": {
                      "direction": "backward",
                      "editorMode": "builder",
                      "expr": "{level=\"error\", app=\"frontend-client\", environment=\"production\"} |= ``",
                      "queryType": "range"
                    },
                    "version": "v0"
                  },
                  "refId": "A"
                }
              }
            ],
            "queryOptions": {},
            "transformations": [
              {
                "group": "organize",
                "kind": "Transformation",
                "spec": {
                  "options": {
                    "excludeByName": {
                      "id": true,
                      "labelTypes": true,
                      "traceID": true,
                      "traceID (field)": true,
                      "tsNs": true
                    },
                    "includeByName": {},
                    "indexByName": {
                      "Line": 2,
                      "Time": 0,
                      "id": 5,
                      "labelTypes": 4,
                      "labels": 1,
                      "traceID": 6,
                      "traceID (field)": 7,
                      "tsNs": 3
                    },
                    "renameByName": {
                      "Line": "Details",
                      "Time": "Date/Time",
                      "id": "Id",
                      "labels": "Labels"
                    }
                  }
                }
              }
            ]
          }
        },
        "description": "",
        "id": 1,
        "links": [],
        "title": "Frontend Client",
        "vizConfig": {
          "group": "table",
          "kind": "VizConfig",
          "spec": {
            "fieldConfig": {
              "defaults": {
                "color": {
                  "mode": "thresholds"
                },
                "custom": {
                  "align": "auto",
                  "cellOptions": {
                    "type": "auto"
                  },
                  "footer": {
                    "reducers": []
                  },
                  "inspect": false
                },
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": 0
                    },
                    {
                      "color": "red",
                      "value": 80
                    }
                  ]
                }
              },
              "overrides": [
                {
                  "matcher": {
                    "id": "byName",
                    "options": "Time"
                  },
                  "properties": [
                    {
                      "id": "custom.width",
                      "value": 180
                    }
                  ]
                },
                {
                  "matcher": {
                    "id": "byName",
                    "options": "id"
                  },
                  "properties": [
                    {
                      "id": "custom.width",
                      "value": 250
                    }
                  ]
                }
              ]
            },
            "options": {
              "cellHeight": "sm",
              "showHeader": true
            }
          },
          "version": "13.2.0-29079983887"
        }
      }
    },
    "panel-2": {
      "kind": "Panel",
      "spec": {
        "data": {
          "kind": "QueryGroup",
          "spec": {
            "queries": [
              {
                "kind": "PanelQuery",
                "spec": {
                  "hidden": false,
                  "query": {
                    "datasource": {
                      "name": "grafanacloud-logs"
                    },
                    "group": "loki",
                    "kind": "DataQuery",
                    "spec": {
                      "direction": "backward",
                      "editorMode": "builder",
                      "expr": "{app=\"aiHub\", environment=\"production\", level=\"error\"}",
                      "queryType": "range"
                    },
                    "version": "v0"
                  },
                  "refId": "A"
                }
              }
            ],
            "queryOptions": {},
            "transformations": [
              {
                "group": "organize",
                "kind": "Transformation",
                "spec": {
                  "options": {
                    "excludeByName": {
                      "id": true,
                      "labelTypes": true,
                      "traceID": true,
                      "traceID (field)": true,
                      "tsNs": true
                    },
                    "includeByName": {},
                    "indexByName": {
                      "Line": 2,
                      "Time": 0,
                      "id": 5,
                      "labelTypes": 4,
                      "labels": 1,
                      "traceID": 6,
                      "traceID (field)": 7,
                      "tsNs": 3
                    },
                    "renameByName": {
                      "Line": "Details",
                      "Time": "Date/Time",
                      "labels": "Labels"
                    }
                  }
                }
              }
            ]
          }
        },
        "description": "",
        "id": 2,
        "links": [],
        "title": "aiHub",
        "vizConfig": {
          "group": "table",
          "kind": "VizConfig",
          "spec": {
            "fieldConfig": {
              "defaults": {
                "custom": {
                  "align": "auto",
                  "cellOptions": {
                    "type": "auto"
                  },
                  "footer": {
                    "reducers": []
                  },
                  "inspect": false
                },
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": 0
                    },
                    {
                      "color": "red",
                      "value": 80
                    }
                  ]
                }
              },
              "overrides": [
                {
                  "matcher": {
                    "id": "byName",
                    "options": "Date/Time"
                  },
                  "properties": [
                    {
                      "id": "custom.width",
                      "value": 176
                    }
                  ]
                }
              ]
            },
            "options": {
              "cellHeight": "sm",
              "showHeader": true
            }
          },
          "version": "13.2.0-29079983887"
        }
      }
    },
    "panel-3": {
      "kind": "Panel",
      "spec": {
        "data": {
          "kind": "QueryGroup",
          "spec": {
            "queries": [
              {
                "kind": "PanelQuery",
                "spec": {
                  "hidden": false,
                  "query": {
                    "datasource": {
                      "name": "grafanacloud-logs"
                    },
                    "group": "loki",
                    "kind": "DataQuery",
                    "spec": {
                      "direction": "backward",
                      "editorMode": "builder",
                      "expr": "{app=\"frontend-server\", level=\"error\", environment=\"production\"} |= ``",
                      "queryType": "range"
                    },
                    "version": "v0"
                  },
                  "refId": "A"
                }
              }
            ],
            "queryOptions": {},
            "transformations": [
              {
                "group": "organize",
                "kind": "Transformation",
                "spec": {
                  "options": {
                    "excludeByName": {
                      "id": true,
                      "labelTypes": true,
                      "traceID": true,
                      "traceID (field)": true,
                      "tsNs": true
                    },
                    "includeByName": {},
                    "indexByName": {
                      "Line": 2,
                      "Time": 0,
                      "id": 5,
                      "labelTypes": 4,
                      "labels": 1,
                      "traceID": 6,
                      "traceID (field)": 7,
                      "tsNs": 3
                    },
                    "renameByName": {
                      "Line": "Details",
                      "Time": "Date/Time",
                      "labels": "Labels"
                    }
                  }
                }
              }
            ]
          }
        },
        "description": "",
        "id": 3,
        "links": [],
        "title": "Frontend Server",
        "vizConfig": {
          "group": "table",
          "kind": "VizConfig",
          "spec": {
            "fieldConfig": {
              "defaults": {
                "color": {
                  "mode": "palette-classic"
                },
                "custom": {
                  "align": "auto",
                  "cellOptions": {
                    "type": "auto"
                  },
                  "footer": {
                    "reducers": []
                  },
                  "inspect": false
                },
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": 0
                    },
                    {
                      "color": "red",
                      "value": 80
                    }
                  ]
                }
              },
              "overrides": []
            },
            "options": {
              "cellHeight": "sm",
              "showHeader": true
            }
          },
          "version": "13.2.0-29079983887"
        }
      }
    },
    "panel-4": {
      "kind": "Panel",
      "spec": {
        "data": {
          "kind": "QueryGroup",
          "spec": {
            "queries": [
              {
                "kind": "PanelQuery",
                "spec": {
                  "hidden": false,
                  "query": {
                    "datasource": {
                      "name": "grafanacloud-logs"
                    },
                    "group": "loki",
                    "kind": "DataQuery",
                    "spec": {
                      "direction": "backward",
                      "editorMode": "builder",
                      "expr": "{app=\"sana\", level=\"error\", environment=\"production\"} |= ``",
                      "queryType": "range"
                    },
                    "version": "v0"
                  },
                  "refId": "A"
                }
              }
            ],
            "queryOptions": {},
            "transformations": [
              {
                "group": "organize",
                "kind": "Transformation",
                "spec": {
                  "options": {
                    "excludeByName": {
                      "id": true,
                      "labelTypes": true,
                      "traceID": true,
                      "traceID (field)": true,
                      "tsNs": true
                    },
                    "includeByName": {},
                    "indexByName": {
                      "Line": 2,
                      "Time": 0,
                      "id": 5,
                      "labelTypes": 4,
                      "labels": 1,
                      "traceID": 6,
                      "traceID (field)": 7,
                      "tsNs": 3
                    },
                    "renameByName": {
                      "Line": "Details",
                      "Time": "Date/Time",
                      "labels": "Labels"
                    }
                  }
                }
              }
            ]
          }
        },
        "description": "",
        "id": 4,
        "links": [],
        "title": "Sana",
        "vizConfig": {
          "group": "table",
          "kind": "VizConfig",
          "spec": {
            "fieldConfig": {
              "defaults": {
                "color": {
                  "mode": "thresholds"
                },
                "custom": {
                  "align": "auto",
                  "cellOptions": {
                    "type": "auto"
                  },
                  "footer": {
                    "reducers": []
                  },
                  "hideFrom": {
                    "viz": false
                  },
                  "inspect": false
                },
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": 0
                    },
                    {
                      "color": "red",
                      "value": 80
                    }
                  ]
                }
              },
              "overrides": [
                {
                  "matcher": {
                    "id": "byName",
                    "options": "Date/Time"
                  },
                  "properties": [
                    {
                      "id": "custom.width",
                      "value": 290
                    }
                  ]
                }
              ]
            },
            "options": {
              "cellHeight": "sm",
              "showHeader": true
            }
          },
          "version": "13.2.0-29079983887"
        }
      }
    },
    "panel-5": {
      "kind": "Panel",
      "spec": {
        "data": {
          "kind": "QueryGroup",
          "spec": {
            "queries": [
              {
                "kind": "PanelQuery",
                "spec": {
                  "hidden": false,
                  "query": {
                    "datasource": {
                      "name": "grafanacloud-logs"
                    },
                    "group": "loki",
                    "kind": "DataQuery",
                    "spec": {
                      "direction": "backward",
                      "editorMode": "builder",
                      "expr": "sum by(app) (rate({app=~\".+\", environment=\"production\"} |= `error` [1m]))",
                      "queryType": "range"
                    },
                    "version": "v0"
                  },
                  "refId": "A"
                }
              }
            ],
            "queryOptions": {},
            "transformations": []
          }
        },
        "description": "",
        "id": 5,
        "links": [],
        "title": "Error Log Volume Over Time",
        "vizConfig": {
          "group": "timeseries",
          "kind": "VizConfig",
          "spec": {
            "fieldConfig": {
              "defaults": {
                "color": {
                  "mode": "palette-classic"
                },
                "custom": {
                  "axisBorderShow": false,
                  "axisCenteredZero": false,
                  "axisColorMode": "text",
                  "axisLabel": "",
                  "axisPlacement": "auto",
                  "barAlignment": 0,
                  "barWidthFactor": 0.6,
                  "drawStyle": "line",
                  "fillOpacity": 0,
                  "gradientMode": "none",
                  "hideFrom": {
                    "legend": false,
                    "tooltip": false,
                    "viz": false
                  },
                  "insertNulls": false,
                  "lineInterpolation": "linear",
                  "lineWidth": 1,
                  "pointSize": 5,
                  "scaleDistribution": {
                    "type": "linear"
                  },
                  "showPoints": "auto",
                  "showValues": false,
                  "spanNulls": false,
                  "stacking": {
                    "group": "A",
                    "mode": "none"
                  },
                  "thresholdsStyle": {
                    "mode": "off"
                  }
                },
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": 0
                    },
                    {
                      "color": "red",
                      "value": 80
                    }
                  ]
                }
              },
              "overrides": [
                {
                  "matcher": {
                    "id": "byRegexp",
                    "options": "/.*/"
                  },
                  "properties": [
                    {
                      "id": "color",
                      "value": {
                        "fixedColor": "dark-red",
                        "mode": "fixed"
                      }
                    },
                    {
                      "id": "custom.pointSize",
                      "value": 14
                    }
                  ]
                }
              ]
            },
            "options": {
              "annotations": {
                "clustering": -1,
                "multiLane": false
              },
              "legend": {
                "calcs": [],
                "displayMode": "list",
                "enableFacetedFilter": false,
                "overflow": "ellipsis",
                "placement": "bottom",
                "showLegend": true
              },
              "tooltip": {
                "hideZeros": false,
                "mode": "single",
                "sort": "none"
              }
            }
          },
          "version": "13.2.0-29079983887"
        }
      }
    },
    "panel-6": {
      "kind": "Panel",
      "spec": {
        "data": {
          "kind": "QueryGroup",
          "spec": {
            "queries": [
              {
                "kind": "PanelQuery",
                "spec": {
                  "hidden": false,
                  "query": {
                    "datasource": {
                      "name": "grafanacloud-logs"
                    },
                    "group": "loki",
                    "kind": "DataQuery",
                    "spec": {
                      "direction": "backward",
                      "editorMode": "builder",
                      "expr": "{app=\"aihub-sqs-processor\", environment=\"production\", level=\"error\"} |= ``",
                      "queryType": "range"
                    },
                    "version": "v0"
                  },
                  "refId": "A"
                }
              }
            ],
            "queryOptions": {},
            "transformations": [
              {
                "group": "organize",
                "kind": "Transformation",
                "spec": {
                  "options": {
                    "excludeByName": {
                      "id": true,
                      "labelTypes": true,
                      "traceID": true,
                      "traceID (field)": true,
                      "tsNs": true
                    },
                    "includeByName": {},
                    "indexByName": {
                      "Line": 2,
                      "Time": 0,
                      "id": 5,
                      "labelTypes": 4,
                      "labels": 1,
                      "traceID": 6,
                      "traceID (field)": 7,
                      "tsNs": 3
                    },
                    "renameByName": {
                      "Line": "Details",
                      "Time": "Date/Time",
                      "labels": "Labels"
                    }
                  }
                }
              }
            ]
          }
        },
        "description": "",
        "id": 6,
        "links": [],
        "title": "aiHub SQS Processor",
        "vizConfig": {
          "group": "table",
          "kind": "VizConfig",
          "spec": {
            "fieldConfig": {
              "defaults": {
                "custom": {
                  "align": "auto",
                  "cellOptions": {
                    "type": "auto"
                  },
                  "footer": {
                    "reducers": []
                  },
                  "inspect": false
                },
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": 0
                    },
                    {
                      "color": "red",
                      "value": 80
                    }
                  ]
                }
              },
              "overrides": [
                {
                  "matcher": {
                    "id": "byName",
                    "options": "Time"
                  },
                  "properties": [
                    {
                      "id": "custom.width",
                      "value": 180
                    }
                  ]
                },
                {
                  "matcher": {
                    "id": "byName",
                    "options": "id"
                  },
                  "properties": [
                    {
                      "id": "custom.width",
                      "value": 250
                    }
                  ]
                }
              ]
            },
            "options": {
              "cellHeight": "sm",
              "showHeader": true
            }
          },
          "version": "13.2.0-29079983887"
        }
      }
    }
  },
  "layout": {
    "kind": "GridLayout",
    "spec": {
      "items": [
        {
          "kind": "GridLayoutItem",
          "spec": {
            "element": {
              "kind": "ElementReference",
              "name": "panel-5"
            },
            "height": 11,
            "width": 12,
            "x": 0,
            "y": 0
          }
        },
        {
          "kind": "GridLayoutItem",
          "spec": {
            "element": {
              "kind": "ElementReference",
              "name": "panel-6"
            },
            "height": 11,
            "width": 12,
            "x": 12,
            "y": 0
          }
        },
        {
          "kind": "GridLayoutItem",
          "spec": {
            "element": {
              "kind": "ElementReference",
              "name": "panel-1"
            },
            "height": 10,
            "width": 12,
            "x": 0,
            "y": 11
          }
        },
        {
          "kind": "GridLayoutItem",
          "spec": {
            "element": {
              "kind": "ElementReference",
              "name": "panel-3"
            },
            "height": 10,
            "width": 12,
            "x": 12,
            "y": 11
          }
        },
        {
          "kind": "GridLayoutItem",
          "spec": {
            "element": {
              "kind": "ElementReference",
              "name": "panel-2"
            },
            "height": 9,
            "width": 12,
            "x": 0,
            "y": 21
          }
        },
        {
          "kind": "GridLayoutItem",
          "spec": {
            "element": {
              "kind": "ElementReference",
              "name": "panel-4"
            },
            "height": 9,
            "width": 12,
            "x": 12,
            "y": 21
          }
        }
      ]
    }
  },
  "links": [],
  "liveNow": false,
  "preload": false,
  "tags": ["production"],
  "timeSettings": {
    "autoRefresh": "",
    "autoRefreshIntervals": [
      "5s",
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ],
    "fiscalYearStartMonth": 0,
    "from": "now-12h",
    "hideTimepicker": false,
    "timezone": "browser",
    "to": "now"
  },
  "title": "Production - Logs",
  "variables": []
}
