Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

42.7 KB
Raw Blame
{
  "schemaVersion": "v6",
  "image": "",
  "name": "",
  "generateName": true,
  "tags": [
    {
      "key": "tag",
      "value": "postgres"
    },
    {
      "key": "tag",
      "value": "database"
    }
  ],
  "spec": {
    "display": {
      "name": "Postgres overview",
      "description": "This dashboard provides a high-level overview of your PostgreSQL databases. It includes replication, locks, and throughput etc..."
    },
    "variables": [
      {
        "kind": "ListVariable",
        "spec": {
          "display": {
            "name": "host.name",
            "description": "List of hosts sending Postgres metrics"
          },
          "allowAllValue": true,
          "allowMultiple": true,
          "customAllValue": "",
          "capturingRegexp": "",
          "sort": "alphabetical-asc",
          "plugin": {
            "kind": "signoz/QueryVariable",
            "spec": {
              "queryValue": "SELECT JSONExtractString(labels, 'host.name') AS `host.name`\nFROM signoz_metrics.distributed_time_series_v4_1day\nWHERE metric_name = 'postgresql.operations'\nGROUP BY `host.name`"
            }
          },
          "name": "host.name"
        }
      },
      {
        "kind": "ListVariable",
        "spec": {
          "display": {
            "name": "table.name",
            "description": "List of tables"
          },
          "defaultValue": [
            "public.activations",
            "public.licenses",
            "public.plans",
            "public.subscription_items",
            "public.subscriptions",
            "public.trials",
            "public.usage"
          ],
          "allowAllValue": true,
          "allowMultiple": true,
          "customAllValue": "",
          "capturingRegexp": "",
          "sort": "alphabetical-asc",
          "plugin": {
            "kind": "signoz/QueryVariable",
            "spec": {
              "queryValue": "SELECT JSONExtractString(labels, 'postgresql.table.name') AS `table.name`\nFROM signoz_metrics.distributed_time_series_v4_1day\nWHERE metric_name = 'postgresql.operations' AND JSONExtractString(labels, 'postgresql.database.name') IN {{.db.name}}\nGROUP BY `table.name`"
            }
          },
          "name": "table.name"
        }
      },
      {
        "kind": "ListVariable",
        "spec": {
          "display": {
            "name": "db.name",
            "description": "List of databases"
          },
          "defaultValue": [
            "postgres"
          ],
          "allowAllValue": true,
          "allowMultiple": true,
          "customAllValue": "",
          "capturingRegexp": "",
          "sort": "none",
          "plugin": {
            "kind": "signoz/QueryVariable",
            "spec": {
              "queryValue": "SELECT JSONExtractString(labels, 'postgresql.database.name') AS `db.name`\nFROM signoz_metrics.distributed_time_series_v4_1day\nWHERE metric_name = 'postgresql.operations'\nGROUP BY `db.name`"
            }
          },
          "name": "db.name"
        }
      }
    ],
    "panels": {
      "114fcf80-e1de-4716-b1aa-0e0738dba10e": {
        "kind": "Panel",
        "spec": {
          "display": {
            "name": "Deleted",
            "description": "The average number of db delete operations."
          },
          "plugin": {
            "kind": "signoz/TimeSeriesPanel",
            "spec": {
              "visualization": {
                "timePreference": "global_time",
                "fillSpans": false
              },
              "formatting": {
                "unit": "none",
                "decimalPrecision": "2"
              },
              "chartAppearance": {
                "lineInterpolation": "spline",
                "showPoints": false,
                "lineStyle": "solid",
                "fillMode": "none",
                "spanGaps": {
                  "fillOnlyBelow": false,
                  "fillLessThan": ""
                }
              },
              "axes": {
                "softMin": null,
                "softMax": null,
                "isLogScale": false
              },
              "legend": {
                "position": "bottom",
                "mode": "list",
                "customColors": null
              },
              "thresholds": null
            }
          },
          "queries": [
            {
              "kind": "time_series",
              "spec": {
                "name": "A",
                "plugin": {
                  "kind": "signoz/BuilderQuery",
                  "spec": {
                    "name": "A",
                    "stepInterval": 60,
                    "signal": "metrics",
                    "source": "",
                    "aggregations": [
                      {
                        "metricName": "postgresql.operations",
                        "temporality": "",
                        "timeAggregation": "avg",
                        "spaceAggregation": "avg",
                        "reduceTo": "sum"
                      }
                    ],
                    "disabled": false,
                    "filter": {
                      "expression": "(operation = 'del' AND host.name IN $host.name AND postgresql.database.name IN $db.name)"
                    },
                    "groupBy": [
                      {
                        "name": "postgresql.database.name",
                        "signal": "",
                        "fieldContext": "attribute",
                        "fieldDataType": "string"
                      }
                    ],
                    "order": [],
                    "having": {
                      "expression": ""
                    },
                    "legend": "{{postgresql.database.name}}"
                  }
                }
              }
            }
          ],
          "links": []
        }
      },
      "191d09a6-40b0-4de8-a5b0-aa4254454b99": {
        "kind": "Panel",
        "spec": {
          "display": {
            "name": "Inserts",
            "description": "The average number of db insert operations."
          },
          "plugin": {
            "kind": "signoz/TimeSeriesPanel",
            "spec": {
              "visualization": {
                "timePreference": "global_time",
                "fillSpans": false
              },
              "formatting": {
                "unit": "none",
                "decimalPrecision": "2"
              },
              "chartAppearance": {
                "lineInterpolation": "spline",
                "showPoints": false,
                "lineStyle": "solid",
                "fillMode": "none",
                "spanGaps": {
                  "fillOnlyBelow": false,
                  "fillLessThan": ""
                }
              },
              "axes": {
                "softMin": null,
                "softMax": null,
                "isLogScale": false
              },
              "legend": {
                "position": "bottom",
                "mode": "list",
                "customColors": null
              },
              "thresholds": null
            }
          },
          "queries": [
            {
              "kind": "time_series",
              "spec": {
                "name": "A",
                "plugin": {
                  "kind": "signoz/BuilderQuery",
                  "spec": {
                    "name": "A",
                    "stepInterval": 60,
                    "signal": "metrics",
                    "source": "",
                    "aggregations": [
                      {
                        "metricName": "postgresql.operations",
                        "temporality": "",
                        "timeAggregation": "avg",
                        "spaceAggregation": "avg",
                        "reduceTo": "sum"
                      }
                    ],
                    "disabled": false,
                    "filter": {
                      "expression": "(operation = 'ins' AND host.name IN $host.name AND postgresql.database.name IN $db.name)"
                    },
                    "groupBy": [
                      {
                        "name": "postgresql.database.name",
                        "signal": "",
                        "fieldContext": "attribute",
                        "fieldDataType": "string"
                      }
                    ],
                    "order": [],
                    "having": {
                      "expression": ""
                    },
                    "legend": "{{postgresql.database.name}}"
                  }
                }
              }
            }
          ],
          "links": []
        }
      },
      "667428ef-9b9a-4e91-bd1e-938e0dc1ff32": {
        "kind": "Panel",
        "spec": {
          "display": {
            "name": "Heap updates",
            "description": "The average number of db heap-only update operations."
          },
          "plugin": {
            "kind": "signoz/TimeSeriesPanel",
            "spec": {
              "visualization": {
                "timePreference": "global_time",
                "fillSpans": false
              },
              "formatting": {
                "unit": "none",
                "decimalPrecision": "2"
              },
              "chartAppearance": {
                "lineInterpolation": "spline",
                "showPoints": false,
                "lineStyle": "solid",
                "fillMode": "none",
                "spanGaps": {
                  "fillOnlyBelow": false,
                  "fillLessThan": ""
                }
              },
              "axes": {
                "softMin": null,
                "softMax": null,
                "isLogScale": false
              },
              "legend": {
                "position": "bottom",
                "mode": "list",
                "customColors": null
              },
              "thresholds": null
            }
          },
          "queries": [
            {
              "kind": "time_series",
              "spec": {
                "name": "A",
                "plugin": {
                  "kind": "signoz/BuilderQuery",
                  "spec": {
                    "name": "A",
                    "stepInterval": 60,
                    "signal": "metrics",
                    "source": "",
                    "aggregations": [
                      {
                        "metricName": "postgresql.operations",
                        "temporality": "",
                        "timeAggregation": "avg",
                        "spaceAggregation": "avg",
                        "reduceTo": "sum"
                      }
                    ],
                    "disabled": false,
                    "filter": {
                      "expression": "(operation = 'hot_upd' AND host.name IN $host.name AND postgresql.database.name IN $db.name)"
                    },
                    "groupBy": [
                      {
                        "name": "postgresql.database.name",
                        "signal": "",
                        "fieldContext": "attribute",
                        "fieldDataType": "string"
                      }
                    ],
                    "order": [],
                    "having": {
                      "expression": ""
                    },
                    "legend": "{{postgresql.database.name}}"
                  }
                }
              }
            }
          ],
          "links": []
        }
      },
      "6b700035-e3c2-4c48-99fa-ebfd6202eed3": {
        "kind": "Panel",
        "spec": {
          "display": {
            "name": "Locks by lock mode",
            "description": "The number of database locks."
          },
          "plugin": {
            "kind": "signoz/TimeSeriesPanel",
            "spec": {
              "visualization": {
                "timePreference": "global_time",
                "fillSpans": false
              },
              "formatting": {
                "unit": "none",
                "decimalPrecision": "2"
              },
              "chartAppearance": {
                "lineInterpolation": "spline",
                "showPoints": false,
                "lineStyle": "solid",
                "fillMode": "none",
                "spanGaps": {
                  "fillOnlyBelow": false,
                  "fillLessThan": ""
                }
              },
              "axes": {
                "softMin": null,
                "softMax": null,
                "isLogScale": false
              },
              "legend": {
                "position": "bottom",
                "mode": "list",
                "customColors": null
              },
              "thresholds": null
            }
          },
          "queries": [
            {
              "kind": "time_series",
              "spec": {
                "name": "A",
                "plugin": {
                  "kind": "signoz/BuilderQuery",
                  "spec": {
                    "name": "A",
                    "stepInterval": 60,
                    "signal": "metrics",
                    "source": "",
                    "aggregations": [
                      {
                        "metricName": "postgresql.database.locks",
                        "temporality": "",
                        "timeAggregation": "sum",
                        "spaceAggregation": "sum",
                        "reduceTo": "sum"
                      }
                    ],
                    "disabled": false,
                    "filter": {
                      "expression": "host.name IN $host.name"
                    },
                    "groupBy": [
                      {
                        "name": "mode",
                        "signal": "",
                        "fieldContext": "attribute",
                        "fieldDataType": "string"
                      }
                    ],
                    "order": [],
                    "having": {
                      "expression": ""
                    },
                    "legend": "{{mode}}"
                  }
                }
              }
            }
          ],
          "links": []
        }
      },
      "8638a199-20a0-4255-b0a2-3b1ba06c485b": {
        "kind": "Panel",
        "spec": {
          "display": {
            "name": "Connections per db",
            "description": ""
          },
          "plugin": {
            "kind": "signoz/TimeSeriesPanel",
            "spec": {
              "visualization": {
                "timePreference": "global_time",
                "fillSpans": false
              },
              "formatting": {
                "unit": "none",
                "decimalPrecision": "2"
              },
              "chartAppearance": {
                "lineInterpolation": "spline",
                "showPoints": false,
                "lineStyle": "solid",
                "fillMode": "none",
                "spanGaps": {
                  "fillOnlyBelow": false,
                  "fillLessThan": ""
                }
              },
              "axes": {
                "softMin": null,
                "softMax": null,
                "isLogScale": false
              },
              "legend": {
                "position": "bottom",
                "mode": "list",
                "customColors": null
              },
              "thresholds": null
            }
          },
          "queries": [
            {
              "kind": "time_series",
              "spec": {
                "name": "A",
                "plugin": {
                  "kind": "signoz/BuilderQuery",
                  "spec": {
                    "name": "A",
                    "stepInterval": 60,
                    "signal": "metrics",
                    "source": "",
                    "aggregations": [
                      {
                        "metricName": "postgresql.backends",
                        "temporality": "",
                        "timeAggregation": "avg",
                        "spaceAggregation": "avg",
                        "reduceTo": "sum"
                      }
                    ],
                    "disabled": false,
                    "filter": {
                      "expression": "(host.name IN $host.name AND postgresql.database.name IN $db.name)"
                    },
                    "groupBy": [
                      {
                        "name": "postgresql.database.name",
                        "signal": "",
                        "fieldContext": "attribute",
                        "fieldDataType": "string"
                      }
                    ],
                    "order": [],
                    "having": {
                      "expression": ""
                    },
                    "legend": "{{postgresql.database.name}}"
                  }
                }
              }
            }
          ],
          "links": []
        }
      },
      "9552123d-6265-48a7-8624-3f4a3fc3c9c0": {
        "kind": "Panel",
        "spec": {
          "display": {
            "name": "Table stats",
            "description": ""
          },
          "plugin": {
            "kind": "signoz/TablePanel",
            "spec": {
              "visualization": {
                "timePreference": "global_time"
              },
              "formatting": {
                "columnUnits": null,
                "decimalPrecision": "2"
              },
              "thresholds": null
            }
          },
          "queries": [
            {
              "kind": "scalar",
              "spec": {
                "plugin": {
                  "kind": "signoz/CompositeQuery",
                  "spec": {
                    "queries": [
                      {
                        "type": "builder_query",
                        "spec": {
                          "name": "A",
                          "stepInterval": 60,
                          "signal": "metrics",
                          "source": "",
                          "aggregations": [
                            {
                              "metricName": "postgresql.rows",
                              "temporality": "",
                              "timeAggregation": "avg",
                              "spaceAggregation": "avg",
                              "reduceTo": "avg"
                            }
                          ],
                          "disabled": false,
                          "filter": {
                            "expression": "(state = 'dead' AND host.name IN $host.name AND postgresql.database.name IN $db.name AND postgresql.table.name IN $table.name)"
                          },
                          "groupBy": [
                            {
                              "name": "postgresql.table.name",
                              "signal": "",
                              "fieldContext": "attribute",
                              "fieldDataType": "string"
                            }
                          ],
                          "order": [],
                          "having": {
                            "expression": ""
                          },
                          "legend": "Dead rows"
                        }
                      },
                      {
                        "type": "builder_query",
                        "spec": {
                          "name": "B",
                          "stepInterval": 60,
                          "signal": "metrics",
                          "source": "",
                          "aggregations": [
                            {
                              "metricName": "postgresql.rows",
                              "temporality": "",
                              "timeAggregation": "avg",
                              "spaceAggregation": "avg",
                              "reduceTo": "avg"
                            }
                          ],
                          "disabled": false,
                          "filter": {
                            "expression": "(state = 'live' AND host.name IN $host.name AND postgresql.database.name IN $db.name AND postgresql.table.name IN $table.name)"
                          },
                          "groupBy": [
                            {
                              "name": "postgresql.table.name",
                              "signal": "",
                              "fieldContext": "attribute",
                              "fieldDataType": "string"
                            }
                          ],
                          "order": [],
                          "having": {
                            "expression": ""
                          },
                          "legend": "Live rows"
                        }
                      },
                      {
                        "type": "builder_query",
                        "spec": {
                          "name": "C",
                          "stepInterval": 60,
                          "signal": "metrics",
                          "source": "",
                          "aggregations": [
                            {
                              "metricName": "postgresql.index.scans",
                              "temporality": "",
                              "timeAggregation": "rate",
                              "spaceAggregation": "sum",
                              "reduceTo": "sum"
                            }
                          ],
                          "disabled": false,
                          "filter": {
                            "expression": "(host.name IN $host.name AND postgresql.database.name IN $db.name AND postgresql.table.name IN $table.name)"
                          },
                          "groupBy": [
                            {
                              "name": "postgresql.table.name",
                              "signal": "",
                              "fieldContext": "attribute",
                              "fieldDataType": "string"
                            }
                          ],
                          "order": [],
                          "having": {
                            "expression": ""
                          },
                          "legend": "Index scans"
                        }
                      },
                      {
                        "type": "builder_query",
                        "spec": {
                          "name": "D",
                          "stepInterval": 60,
                          "signal": "metrics",
                          "source": "",
                          "aggregations": [
                            {
                              "metricName": "postgresql.table.size",
                              "temporality": "",
                              "timeAggregation": "avg",
                              "spaceAggregation": "avg",
                              "reduceTo": "avg"
                            }
                          ],
                          "disabled": false,
                          "filter": {
                            "expression": "(host.name IN $host.name AND postgresql.database.name IN $db.name AND postgresql.table.name IN $table.name)"
                          },
                          "groupBy": [
                            {
                              "name": "postgresql.table.name",
                              "signal": "",
                              "fieldContext": "attribute",
                              "fieldDataType": "string"
                            }
                          ],
                          "order": [],
                          "having": {
                            "expression": ""
                          },
                          "legend": "Table size"
                        }
                      }
                    ]
                  }
                }
              }
            }
          ],
          "links": []
        }
      },
      "bada7864-1d23-4d49-a868-c6b8a93c738f": {
        "kind": "Panel",
        "spec": {
          "display": {
            "name": "Operation by database",
            "description": ""
          },
          "plugin": {
            "kind": "signoz/TablePanel",
            "spec": {
              "visualization": {
                "timePreference": "global_time"
              },
              "formatting": {
                "columnUnits": null,
                "decimalPrecision": "2"
              },
              "thresholds": null
            }
          },
          "queries": [
            {
              "kind": "scalar",
              "spec": {
                "plugin": {
                  "kind": "signoz/CompositeQuery",
                  "spec": {
                    "queries": [
                      {
                        "type": "builder_query",
                        "spec": {
                          "name": "A",
                          "stepInterval": 60,
                          "signal": "metrics",
                          "source": "",
                          "aggregations": [
                            {
                              "metricName": "postgresql.operations",
                              "temporality": "",
                              "timeAggregation": "avg",
                              "spaceAggregation": "avg",
                              "reduceTo": "avg"
                            }
                          ],
                          "disabled": false,
                          "filter": {
                            "expression": "(operation = 'ins' AND host.name IN $host.name AND postgresql.database.name IN $db.name)"
                          },
                          "groupBy": [
                            {
                              "name": "postgresql.database.name",
                              "signal": "",
                              "fieldContext": "attribute",
                              "fieldDataType": "string"
                            }
                          ],
                          "order": [],
                          "having": {
                            "expression": ""
                          },
                          "legend": "Inserted"
                        }
                      },
                      {
                        "type": "builder_query",
                        "spec": {
                          "name": "B",
                          "stepInterval": 60,
                          "signal": "metrics",
                          "source": "",
                          "aggregations": [
                            {
                              "metricName": "postgresql.operations",
                              "temporality": "",
                              "timeAggregation": "avg",
                              "spaceAggregation": "avg",
                              "reduceTo": "avg"
                            }
                          ],
                          "disabled": false,
                          "filter": {
                            "expression": "(operation = 'upd' AND host.name IN $host.name AND postgresql.database.name IN $db.name)"
                          },
                          "groupBy": [
                            {
                              "name": "postgresql.database.name",
                              "signal": "",
                              "fieldContext": "attribute",
                              "fieldDataType": "string"
                            }
                          ],
                          "order": [],
                          "having": {
                            "expression": ""
                          },
                          "legend": "Updated"
                        }
                      },
                      {
                        "type": "builder_query",
                        "spec": {
                          "name": "C",
                          "stepInterval": 60,
                          "signal": "metrics",
                          "source": "",
                          "aggregations": [
                            {
                              "metricName": "postgresql.operations",
                              "temporality": "",
                              "timeAggregation": "avg",
                              "spaceAggregation": "avg",
                              "reduceTo": "avg"
                            }
                          ],
                          "disabled": false,
                          "filter": {
                            "expression": "(operation = 'del' AND host.name IN $host.name AND postgresql.database.name IN $db.name)"
                          },
                          "groupBy": [
                            {
                              "name": "postgresql.database.name",
                              "signal": "",
                              "fieldContext": "attribute",
                              "fieldDataType": "string"
                            }
                          ],
                          "order": [],
                          "having": {
                            "expression": ""
                          },
                          "legend": "Deleted"
                        }
                      }
                    ]
                  }
                }
              }
            }
          ],
          "links": []
        }
      },
      "d7838815-4f5b-4454-86fd-f658b201f3a9": {
        "kind": "Panel",
        "spec": {
          "display": {
            "name": "Index scans by index",
            "description": ""
          },
          "plugin": {
            "kind": "signoz/TimeSeriesPanel",
            "spec": {
              "visualization": {
                "timePreference": "global_time",
                "fillSpans": false
              },
              "formatting": {
                "unit": "none",
                "decimalPrecision": "2"
              },
              "chartAppearance": {
                "lineInterpolation": "spline",
                "showPoints": false,
                "lineStyle": "solid",
                "fillMode": "none",
                "spanGaps": {
                  "fillOnlyBelow": false,
                  "fillLessThan": ""
                }
              },
              "axes": {
                "softMin": null,
                "softMax": null,
                "isLogScale": false
              },
              "legend": {
                "position": "bottom",
                "mode": "list",
                "customColors": null
              },
              "thresholds": null
            }
          },
          "queries": [
            {
              "kind": "time_series",
              "spec": {
                "name": "A",
                "plugin": {
                  "kind": "signoz/BuilderQuery",
                  "spec": {
                    "name": "A",
                    "stepInterval": 60,
                    "signal": "metrics",
                    "source": "",
                    "aggregations": [
                      {
                        "metricName": "postgresql.index.scans",
                        "temporality": "",
                        "timeAggregation": "rate",
                        "spaceAggregation": "sum",
                        "reduceTo": "sum"
                      }
                    ],
                    "disabled": false,
                    "filter": {
                      "expression": "(host.name IN $host.name AND postgresql.database.name IN $db.name AND postgresql.table.name IN $table.name)"
                    },
                    "groupBy": [
                      {
                        "name": "postgresql.index.name",
                        "signal": "",
                        "fieldContext": "attribute",
                        "fieldDataType": "string"
                      }
                    ],
                    "order": [],
                    "having": {
                      "expression": ""
                    },
                    "legend": "{{postgresql.index.name}}"
                  }
                }
              }
            }
          ],
          "links": []
        }
      },
      "e9341e70-ccb3-47fc-af95-56ba8942c4f2": {
        "kind": "Panel",
        "spec": {
          "display": {
            "name": "Deadlocks count",
            "description": ""
          },
          "plugin": {
            "kind": "signoz/TimeSeriesPanel",
            "spec": {
              "visualization": {
                "timePreference": "global_time",
                "fillSpans": false
              },
              "formatting": {
                "unit": "none",
                "decimalPrecision": "2"
              },
              "chartAppearance": {
                "lineInterpolation": "spline",
                "showPoints": false,
                "lineStyle": "solid",
                "fillMode": "none",
                "spanGaps": {
                  "fillOnlyBelow": false,
                  "fillLessThan": ""
                }
              },
              "axes": {
                "softMin": null,
                "softMax": null,
                "isLogScale": false
              },
              "legend": {
                "position": "bottom",
                "mode": "list",
                "customColors": null
              },
              "thresholds": null
            }
          },
          "queries": [
            {
              "kind": "time_series",
              "spec": {
                "name": "A",
                "plugin": {
                  "kind": "signoz/BuilderQuery",
                  "spec": {
                    "name": "A",
                    "stepInterval": 60,
                    "signal": "metrics",
                    "source": "",
                    "aggregations": [
                      {
                        "metricName": "postgresql.deadlocks",
                        "temporality": "",
                        "timeAggregation": "rate",
                        "spaceAggregation": "sum",
                        "reduceTo": "sum"
                      }
                    ],
                    "disabled": false,
                    "filter": {
                      "expression": "(host.name IN $host.name AND postgresql.database.name IN $db.name)"
                    },
                    "groupBy": [
                      {
                        "name": "postgresql.database.name",
                        "signal": "",
                        "fieldContext": "attribute",
                        "fieldDataType": "string"
                      }
                    ],
                    "order": [],
                    "having": {
                      "expression": ""
                    },
                    "legend": "{{postgresql.database.name}}"
                  }
                }
              }
            }
          ],
          "links": []
        }
      },
      "f9a6f683-7455-4643-acc8-467cc5ea52cf": {
        "kind": "Panel",
        "spec": {
          "display": {
            "name": "Dead rows",
            "description": ""
          },
          "plugin": {
            "kind": "signoz/TimeSeriesPanel",
            "spec": {
              "visualization": {
                "timePreference": "global_time",
                "fillSpans": false
              },
              "formatting": {
                "unit": "none",
                "decimalPrecision": "2"
              },
              "chartAppearance": {
                "lineInterpolation": "spline",
                "showPoints": false,
                "lineStyle": "solid",
                "fillMode": "none",
                "spanGaps": {
                  "fillOnlyBelow": false,
                  "fillLessThan": ""
                }
              },
              "axes": {
                "softMin": null,
                "softMax": null,
                "isLogScale": false
              },
              "legend": {
                "position": "bottom",
                "mode": "list",
                "customColors": null
              },
              "thresholds": null
            }
          },
          "queries": [
            {
              "kind": "time_series",
              "spec": {
                "name": "A",
                "plugin": {
                  "kind": "signoz/BuilderQuery",
                  "spec": {
                    "name": "A",
                    "stepInterval": 60,
                    "signal": "metrics",
                    "source": "",
                    "aggregations": [
                      {
                        "metricName": "postgresql.rows",
                        "temporality": "",
                        "timeAggregation": "sum",
                        "spaceAggregation": "sum",
                        "reduceTo": "sum"
                      }
                    ],
                    "disabled": false,
                    "filter": {
                      "expression": "(state = 'dead' AND host.name IN $host.name AND postgresql.database.name IN $db.name AND postgresql.table.name IN $table.name)"
                    },
                    "groupBy": [],
                    "order": [],
                    "having": {
                      "expression": ""
                    },
                    "legend": "Dead rows"
                  }
                }
              }
            }
          ],
          "links": []
        }
      },
      "fa941c00-ce19-49cc-baf2-c38598767dee": {
        "kind": "Panel",
        "spec": {
          "display": {
            "name": "Updates",
            "description": "The average number of db update operations."
          },
          "plugin": {
            "kind": "signoz/TimeSeriesPanel",
            "spec": {
              "visualization": {
                "timePreference": "global_time",
                "fillSpans": false
              },
              "formatting": {
                "unit": "none",
                "decimalPrecision": "2"
              },
              "chartAppearance": {
                "lineInterpolation": "spline",
                "showPoints": false,
                "lineStyle": "solid",
                "fillMode": "none",
                "spanGaps": {
                  "fillOnlyBelow": false,
                  "fillLessThan": ""
                }
              },
              "axes": {
                "softMin": null,
                "softMax": null,
                "isLogScale": false
              },
              "legend": {
                "position": "bottom",
                "mode": "list",
                "customColors": null
              },
              "thresholds": null
            }
          },
          "queries": [
            {
              "kind": "time_series",
              "spec": {
                "name": "A",
                "plugin": {
                  "kind": "signoz/BuilderQuery",
                  "spec": {
                    "name": "A",
                    "stepInterval": 60,
                    "signal": "metrics",
                    "source": "",
                    "aggregations": [
                      {
                        "metricName": "postgresql.operations",
                        "temporality": "",
                        "timeAggregation": "avg",
                        "spaceAggregation": "avg",
                        "reduceTo": "sum"
                      }
                    ],
                    "disabled": false,
                    "filter": {
                      "expression": "(operation = 'upd' AND host.name IN $host.name AND postgresql.database.name IN $db.name)"
                    },
                    "groupBy": [
                      {
                        "name": "postgresql.database.name",
                        "signal": "",
                        "fieldContext": "attribute",
                        "fieldDataType": "string"
                      }
                    ],
                    "order": [],
                    "having": {
                      "expression": ""
                    },
                    "legend": "{{postgresql.database.name}}"
                  }
                }
              }
            }
          ],
          "links": []
        }
      }
    },
    "layouts": [
      {
        "kind": "Grid",
        "spec": {
          "items": [
            {
              "x": 0,
              "y": 0,
              "width": 6,
              "height": 3,
              "content": {
                "$ref": "#/spec/panels/191d09a6-40b0-4de8-a5b0-aa4254454b99"
              }
            },
            {
              "x": 6,
              "y": 0,
              "width": 6,
              "height": 3,
              "content": {
                "$ref": "#/spec/panels/fa941c00-ce19-49cc-baf2-c38598767dee"
              }
            },
            {
              "x": 0,
              "y": 3,
              "width": 6,
              "height": 3,
              "content": {
                "$ref": "#/spec/panels/114fcf80-e1de-4716-b1aa-0e0738dba10e"
              }
            },
            {
              "x": 6,
              "y": 3,
              "width": 6,
              "height": 3,
              "content": {
                "$ref": "#/spec/panels/667428ef-9b9a-4e91-bd1e-938e0dc1ff32"
              }
            },
            {
              "x": 3,
              "y": 6,
              "width": 6,
              "height": 3,
              "content": {
                "$ref": "#/spec/panels/bada7864-1d23-4d49-a868-c6b8a93c738f"
              }
            },
            {
              "x": 0,
              "y": 9,
              "width": 6,
              "height": 3,
              "content": {
                "$ref": "#/spec/panels/6b700035-e3c2-4c48-99fa-ebfd6202eed3"
              }
            },
            {
              "x": 6,
              "y": 9,
              "width": 6,
              "height": 3,
              "content": {
                "$ref": "#/spec/panels/e9341e70-ccb3-47fc-af95-56ba8942c4f2"
              }
            },
            {
              "x": 3,
              "y": 12,
              "width": 6,
              "height": 3,
              "content": {
                "$ref": "#/spec/panels/8638a199-20a0-4255-b0a2-3b1ba06c485b"
              }
            },
            {
              "x": 0,
              "y": 15,
              "width": 6,
              "height": 3,
              "content": {
                "$ref": "#/spec/panels/f9a6f683-7455-4643-acc8-467cc5ea52cf"
              }
            },
            {
              "x": 6,
              "y": 15,
              "width": 6,
              "height": 3,
              "content": {
                "$ref": "#/spec/panels/d7838815-4f5b-4454-86fd-f658b201f3a9"
              }
            },
            {
              "x": 0,
              "y": 18,
              "width": 6,
              "height": 3,
              "content": {
                "$ref": "#/spec/panels/9552123d-6265-48a7-8624-3f4a3fc3c9c0"
              }
            }
          ]
        }
      }
    ],
    "duration": "",
    "refreshInterval": "",
    "links": []
  }
}