Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

11.0.0-preview - Table (old) to Table - differences #86147

Open
mhollstein opened this issue Apr 15, 2024 · 3 comments
Open

11.0.0-preview - Table (old) to Table - differences #86147

mhollstein opened this issue Apr 15, 2024 · 3 comments
Labels

Comments

@mhollstein
Copy link

mhollstein commented Apr 15, 2024

What happened?

Threshold values are lost. You have to add them manually. If you remember them.
Value Mappings are lost. You have to add them manually. If you remember them.
If you open "Value mappings" the focus is lost... you have to scroll again to edit them
Background color for a row is only in one column after migration - "apply to entire row" is missing
Sort from column is missing
decimals are missing
Alignment "Auto" is changed from left Table (old) to right in Table

What did you expect to happen?

Same behaviour after migration from Table (old) to Table

Did this work before?

Occurs the first time after migration from Grafana 10.x to 11.0.0-preview

How do we reproduce it?

  1. Use Grafana 10.4.x
  2. Migrate to Grafana 11.0.0-preview

Is the bug inside a dashboard panel?

Key Value
Panel table-old @ 10.3.4 (5bde273)
Grafana 10.3.4 (5bde273) // Open Source
Panel debug snapshot dashboard
{
  "panels": [
    {
      "datasource": {
        "type": "grafana",
        "uid": "grafana"
      },
      "columns": [],
      "description": "## Known limitations\n\n### [pve_disk_usage_bytes on all qemu guest is null](https://githubmemory.com/repo/prometheus-pve/prometheus-pve-exporter/issues/77)\n\nThanks for taking the time to report this issue. Regrettably this is a limitation in Proxmox VE itself. This information would only be available if PVE would query the guest-agent running inside the VM. And that is not implemented in PVE. So regrettably we cannot do anything about that. Also this is a dupe of #45",
      "fontSize": "100%",
      "gridPos": {
        "h": 13,
        "w": 15,
        "x": 0,
        "y": 0
      },
      "id": 2,
      "links": [],
      "scroll": true,
      "showHeader": true,
      "sort": {
        "col": 8,
        "desc": true
      },
      "styles": [
        {
          "$$hashKey": "object:756",
          "alias": "",
          "align": "auto",
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "Time",
          "thresholds": [],
          "type": "hidden",
          "unit": "short"
        },
        {
          "$$hashKey": "object:757",
          "alias": "ID",
          "align": "auto",
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "id",
          "thresholds": [],
          "type": "string",
          "unit": "short"
        },
        {
          "$$hashKey": "object:758",
          "alias": "Name",
          "align": "auto",
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "name",
          "thresholds": [],
          "type": "string",
          "unit": "short"
        },
        {
          "$$hashKey": "object:759",
          "alias": "Type",
          "align": "auto",
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "type",
          "thresholds": [],
          "type": "string",
          "unit": "short"
        },
        {
          "$$hashKey": "object:760",
          "alias": "",
          "align": "auto",
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "Value #A",
          "thresholds": [],
          "type": "hidden",
          "unit": "short"
        },
        {
          "$$hashKey": "object:761",
          "alias": "Status",
          "align": "auto",
          "colorMode": "value",
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "#56A64B",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 0,
          "mappingType": 1,
          "pattern": "Value #B",
          "thresholds": [
            "0.5"
          ],
          "type": "string",
          "unit": "short",
          "valueMaps": [
            {
              "$$hashKey": "object:876",
              "text": "stopped",
              "value": "0"
            },
            {
              "$$hashKey": "object:877",
              "text": "running",
              "value": "1"
            }
          ]
        },
        {
          "$$hashKey": "object:762",
          "alias": "vCPUs",
          "align": "auto",
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 0,
          "mappingType": 1,
          "pattern": "Value #C",
          "thresholds": [],
          "type": "number",
          "unit": "short"
        },
        {
          "$$hashKey": "object:763",
          "alias": "Memory",
          "align": "auto",
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 1,
          "mappingType": 1,
          "pattern": "Value #D",
          "thresholds": [],
          "type": "number",
          "unit": "bytes"
        },
        {
          "$$hashKey": "object:764",
          "alias": "Mem usage (%)",
          "align": "auto",
          "colorMode": "value",
          "colors": [
            "rgba(50, 172, 45, 0.97)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(245, 54, 54, 0.9)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 0,
          "mappingType": 1,
          "pattern": "Value #E",
          "thresholds": [
            "0.75",
            " 0.9"
          ],
          "type": "number",
          "unit": "percentunit"
        },
        {
          "$$hashKey": "object:765",
          "alias": "Disk",
          "align": "auto",
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 1,
          "mappingType": 1,
          "pattern": "Value #F",
          "thresholds": [],
          "type": "number",
          "unit": "bytes"
        },
        {
          "$$hashKey": "object:766",
          "alias": "Disk usage (%)",
          "align": "auto",
          "colorMode": "value",
          "colors": [
            "rgba(50, 172, 45, 0.97)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(245, 54, 54, 0.9)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "mappingType": 1,
          "pattern": "Value #G",
          "thresholds": [
            "0.7",
            " 0.9"
          ],
          "type": "number",
          "unit": "percentunit"
        }
      ],
      "targets": [
        {
          "refId": "A",
          "datasource": {
            "type": "grafana",
            "uid": "grafana"
          },
          "queryType": "snapshot",
          "snapshot": [
            {
              "schema": {
                "refId": "A",
                "meta": {
                  "type": "numeric-multi",
                  "typeVersion": [
                    0,
                    1
                  ],
                  "custom": {
                    "resultType": "vector"
                  },
                  "executedQueryString": "Expr: sum by (id, name, type) (pve_guest_info{node=\"rn2wfcsv020\",instance=\"px209:9221\",template!=\"1\"})\nStep: 15s",
                  "preferredVisualisationType": "rawPrometheus"
                },
                "fields": [
                  {
                    "name": "Time",
                    "type": "time",
                    "config": {}
                  },
                  {
                    "name": "id",
                    "config": {
                      "filterable": true
                    },
                    "type": "string"
                  },
                  {
                    "name": "name",
                    "config": {
                      "filterable": true
                    },
                    "type": "string"
                  },
                  {
                    "name": "type",
                    "config": {
                      "filterable": true
                    },
                    "type": "string"
                  },
                  {
                    "name": "Value #A",
                    "type": "number",
                    "config": {}
                  }
                ]
              },
              "data": {
                "values": [
                  [
                    1713189765186,
                    1713189765186,
                    1713189765186,
                    1713189765186,
                    1713189765186,
                    1713189765186,
                    1713189765186,
                    1713189765186,
                    1713189765186
                  ],
                  [
                    "qemu/101",
                    "qemu/108",
                    "qemu/164",
                    "qemu/185",
                    "qemu/187",
                    "qemu/190",
                    "qemu/198",
                    "qemu/210",
                    "qemu/204"
                  ],
                  [
                    "px101",
                    "px108",
                    "px164",
                    "px185",
                    "px187",
                    "px190",
                    "px198",
                    "px210",
                    "px204"
                  ],
                  [
                    "qemu",
                    "qemu",
                    "qemu",
                    "qemu",
                    "qemu",
                    "qemu",
                    "qemu",
                    "qemu",
                    "qemu"
                  ],
                  [
                    1,
                    1,
                    1,
                    1,
                    1,
                    1,
                    1,
                    1,
                    1
                  ]
                ]
              }
            },
            {
              "schema": {
                "refId": "B",
                "meta": {
                  "type": "numeric-multi",
                  "typeVersion": [
                    0,
                    1
                  ],
                  "custom": {
                    "resultType": "vector"
                  },
                  "executedQueryString": "Expr: sum by (id) (pve_up{instance=\"px209:9221\",template!=\"1\"} and on (id, instance) pve_guest_info{node=\"rn2wfcsv020\"})\nStep: 15s",
                  "preferredVisualisationType": "rawPrometheus"
                },
                "fields": [
                  {
                    "name": "Time",
                    "type": "time",
                    "config": {}
                  },
                  {
                    "name": "id",
                    "config": {
                      "filterable": true
                    },
                    "type": "string"
                  },
                  {
                    "name": "Value #B",
                    "type": "number",
                    "config": {}
                  }
                ]
              },
              "data": {
                "values": [
                  [
                    1713189765186,
                    1713189765186,
                    1713189765186,
                    1713189765186,
                    1713189765186,
                    1713189765186,
                    1713189765186,
                    1713189765186,
                    1713189765186
                  ],
                  [
                    "qemu/101",
                    "qemu/108",
                    "qemu/164",
                    "qemu/185",
                    "qemu/187",
                    "qemu/190",
                    "qemu/198",
                    "qemu/204",
                    "qemu/210"
                  ],
                  [
                    1,
                    1,
                    1,
                    1,
                    1,
                    1,
                    1,
                    1,
                    1
                  ]
                ]
              }
            },
            {
              "schema": {
                "refId": "D",
                "meta": {
                  "type": "numeric-multi",
                  "typeVersion": [
                    0,
                    1
                  ],
                  "custom": {
                    "resultType": "vector"
                  },
                  "executedQueryString": "Expr: sum by (id) (pve_memory_size_bytes{instance=\"px209:9221\",template!=\"1\"} and on (id, instance) pve_guest_info{node=\"rn2wfcsv020\"})\nStep: 15s",
                  "preferredVisualisationType": "rawPrometheus"
                },
                "fields": [
                  {
                    "name": "Time",
                    "type": "time",
                    "config": {}
                  },
                  {
                    "name": "id",
                    "config": {
                      "filterable": true
                    },
                    "type": "string"
                  },
                  {
                    "name": "Value #D",
                    "type": "number",
                    "config": {}
                  }
                ]
              },
              "data": {
                "values": [
                  [
                    1713189765186,
                    1713189765186,
                    1713189765186,
                    1713189765186,
                    1713189765186,
                    1713189765186,
                    1713189765186,
                    1713189765186,
                    1713189765186
                  ],
                  [
                    "qemu/204",
                    "qemu/101",
                    "qemu/108",
                    "qemu/164",
                    "qemu/185",
                    "qemu/187",
                    "qemu/190",
                    "qemu/198",
                    "qemu/210"
                  ],
                  [
                    8589934592,
                    4294967296,
                    1073741824,
                    17179869184,
                    17179869184,
                    25769803776,
                    2147483648,
                    17179869184,
                    17179869184
                  ]
                ]
              }
            },
            {
              "schema": {
                "refId": "E",
                "meta": {
                  "type": "numeric-multi",
                  "typeVersion": [
                    0,
                    1
                  ],
                  "custom": {
                    "resultType": "vector"
                  },
                  "executedQueryString": "Expr: sum by (id) (pve_memory_usage_bytes{instance=\"px209:9221\",template!=\"1\"} / pve_memory_size_bytes and on (id, instance) pve_guest_info{node=\"rn2wfcsv020\"})\nStep: 15s",
                  "preferredVisualisationType": "rawPrometheus"
                },
                "fields": [
                  {
                    "name": "Time",
                    "type": "time",
                    "config": {}
                  },
                  {
                    "name": "id",
                    "config": {
                      "filterable": true
                    },
                    "type": "string"
                  },
                  {
                    "name": "Value #E",
                    "type": "number",
                    "config": {}
                  }
                ]
              },
              "data": {
                "values": [
                  [
                    1713189765186,
                    1713189765186,
                    1713189765186,
                    1713189765186,
                    1713189765186,
                    1713189765186,
                    1713189765186,
                    1713189765186,
                    1713189765186
                  ],
                  [
                    "qemu/204",
                    "qemu/101",
                    "qemu/108",
                    "qemu/164",
                    "qemu/185",
                    "qemu/187",
                    "qemu/190",
                    "qemu/198",
                    "qemu/210"
                  ],
                  [
                    0.5010008811950684,
                    0.9157943725585938,
                    0.8331832885742188,
                    0.9297688007354736,
                    0.9667589664459229,
                    0.9678389231363932,
                    0.8364582061767578,
                    0.9362180233001709,
                    0.3821537494659424
                  ]
                ]
              }
            },
            {
              "schema": {
                "refId": "F",
                "meta": {
                  "type": "numeric-multi",
                  "typeVersion": [
                    0,
                    1
                  ],
                  "custom": {
                    "resultType": "vector"
                  },
                  "executedQueryString": "Expr: sum by (id) (pve_disk_size_bytes{instance=\"px209:9221\",template!=\"1\"} and on (id, instance) pve_guest_info{node=\"rn2wfcsv020\"})\nStep: 15s",
                  "preferredVisualisationType": "rawPrometheus"
                },
                "fields": [
                  {
                    "name": "Time",
                    "type": "time",
                    "config": {}
                  },
                  {
                    "name": "id",
                    "config": {
                      "filterable": true
                    },
                    "type": "string"
                  },
                  {
                    "name": "Value #F",
                    "type": "number",
                    "config": {}
                  }
                ]
              },
              "data": {
                "values": [
                  [
                    1713189765186,
                    1713189765186,
                    1713189765186,
                    1713189765186,
                    1713189765186,
                    1713189765186,
                    1713189765186,
                    1713189765186,
                    1713189765186
                  ],
                  [
                    "qemu/204",
                    "qemu/101",
                    "qemu/108",
                    "qemu/164",
                    "qemu/185",
                    "qemu/187",
                    "qemu/190",
                    "qemu/198",
                    "qemu/210"
                  ],
                  [
                    68719476736,
                    68719476736,
                    68719476736,
                    68719476736,
                    68719476736,
                    85899345920,
                    68719476736,
                    68719476736,
                    68719476736
                  ]
                ]
              }
            },
            {
              "schema": {
                "refId": "G",
                "meta": {
                  "type": "numeric-multi",
                  "typeVersion": [
                    0,
                    1
                  ],
                  "custom": {
                    "resultType": "vector"
                  },
                  "executedQueryString": "Expr: sum by (id) (pve_disk_usage_bytes{instance=\"px209:9221\",template!=\"1\"} / pve_disk_size_bytes and on (id, instance) pve_guest_info{node=\"rn2wfcsv020\"})\nStep: 15s",
                  "preferredVisualisationType": "rawPrometheus"
                },
                "fields": [
                  {
                    "name": "Time",
                    "type": "time",
                    "config": {}
                  },
                  {
                    "name": "id",
                    "config": {
                      "filterable": true
                    },
                    "type": "string"
                  },
                  {
                    "name": "Value #G",
                    "type": "number",
                    "config": {}
                  }
                ]
              },
              "data": {
                "values": [
                  [
                    1713189765186,
                    1713189765186,
                    1713189765186,
                    1713189765186,
                    1713189765186,
                    1713189765186,
                    1713189765186,
                    1713189765186,
                    1713189765186
                  ],
                  [
                    "qemu/204",
                    "qemu/101",
                    "qemu/108",
                    "qemu/164",
                    "qemu/185",
                    "qemu/187",
                    "qemu/190",
                    "qemu/198",
                    "qemu/210"
                  ],
                  [
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0
                  ]
                ]
              }
            }
          ]
        }
      ],
      "title": "Reproduced with embedded data",
      "transform": "table",
      "type": "table-old",
      "pageSize": null
    },
    {
      "gridPos": {
        "h": 7,
        "w": 9,
        "x": 15,
        "y": 0
      },
      "id": 5,
      "options": {
        "content": "<table width=\"100%\">\n    <tr>\n      <th width=\"2%\">Panel</th>\n      <td >table-old @ 10.3.4 (5bde27379c62c22183dd5e9deb7e66d90fada639)</td>\n    </tr>\n    <tr>\n      <th>Queries</th>\n      <td>A[prometheus], B[prometheus], C[prometheus], D[prometheus], E[prometheus], F[prometheus], G[prometheus]</td>\n    </tr>\n    \n    <tr><th>Data</th><td> 6 frames, 20 fields, 54 rows </td></tr>\n    \n    <tr>\n      <th>Grafana</th>\n      <td>10.3.4 (5bde27379c62c22183dd5e9deb7e66d90fada639) // Open Source</td>\n    </tr>\n  </table>",
        "mode": "html"
      },
      "title": "Debug info",
      "type": "text"
    },
    {
      "id": 6,
      "title": "Original Panel JSON",
      "type": "text",
      "gridPos": {
        "h": 13,
        "w": 9,
        "x": 15,
        "y": 7
      },
      "options": {
        "content": "{\n  \"datasource\": {\n    \"type\": \"prometheus\",\n    \"uid\": \"000000005\"\n  },\n  \"columns\": [],\n  \"description\": \"## Known limitations\\n\\n### [pve_disk_usage_bytes on all qemu guest is null](https://githubmemory.com/repo/prometheus-pve/prometheus-pve-exporter/issues/77)\\n\\nThanks for taking the time to report this issue. Regrettably this is a limitation in Proxmox VE itself. This information would only be available if PVE would query the guest-agent running inside the VM. And that is not implemented in PVE. So regrettably we cannot do anything about that. Also this is a dupe of #45\",\n  \"fontSize\": \"100%\",\n  \"gridPos\": {\n    \"h\": 17,\n    \"w\": 12,\n    \"x\": 0,\n    \"y\": 0\n  },\n  \"id\": 17,\n  \"links\": [],\n  \"scroll\": true,\n  \"showHeader\": true,\n  \"sort\": {\n    \"col\": 8,\n    \"desc\": true\n  },\n  \"styles\": [\n    {\n      \"$$hashKey\": \"object:756\",\n      \"alias\": \"\",\n      \"align\": \"auto\",\n      \"colors\": [\n        \"rgba(245, 54, 54, 0.9)\",\n        \"rgba(237, 129, 40, 0.89)\",\n        \"rgba(50, 172, 45, 0.97)\"\n      ],\n      \"dateFormat\": \"YYYY-MM-DD HH:mm:ss\",\n      \"decimals\": 2,\n      \"mappingType\": 1,\n      \"pattern\": \"Time\",\n      \"thresholds\": [],\n      \"type\": \"hidden\",\n      \"unit\": \"short\"\n    },\n    {\n      \"$$hashKey\": \"object:757\",\n      \"alias\": \"ID\",\n      \"align\": \"auto\",\n      \"colors\": [\n        \"rgba(245, 54, 54, 0.9)\",\n        \"rgba(237, 129, 40, 0.89)\",\n        \"rgba(50, 172, 45, 0.97)\"\n      ],\n      \"dateFormat\": \"YYYY-MM-DD HH:mm:ss\",\n      \"decimals\": 2,\n      \"mappingType\": 1,\n      \"pattern\": \"id\",\n      \"thresholds\": [],\n      \"type\": \"string\",\n      \"unit\": \"short\"\n    },\n    {\n      \"$$hashKey\": \"object:758\",\n      \"alias\": \"Name\",\n      \"align\": \"auto\",\n      \"colors\": [\n        \"rgba(245, 54, 54, 0.9)\",\n        \"rgba(237, 129, 40, 0.89)\",\n        \"rgba(50, 172, 45, 0.97)\"\n      ],\n      \"dateFormat\": \"YYYY-MM-DD HH:mm:ss\",\n      \"decimals\": 2,\n      \"mappingType\": 1,\n      \"pattern\": \"name\",\n      \"thresholds\": [],\n      \"type\": \"string\",\n      \"unit\": \"short\"\n    },\n    {\n      \"$$hashKey\": \"object:759\",\n      \"alias\": \"Type\",\n      \"align\": \"auto\",\n      \"colors\": [\n        \"rgba(245, 54, 54, 0.9)\",\n        \"rgba(237, 129, 40, 0.89)\",\n        \"rgba(50, 172, 45, 0.97)\"\n      ],\n      \"dateFormat\": \"YYYY-MM-DD HH:mm:ss\",\n      \"decimals\": 2,\n      \"mappingType\": 1,\n      \"pattern\": \"type\",\n      \"thresholds\": [],\n      \"type\": \"string\",\n      \"unit\": \"short\"\n    },\n    {\n      \"$$hashKey\": \"object:760\",\n      \"alias\": \"\",\n      \"align\": \"auto\",\n      \"colors\": [\n        \"rgba(245, 54, 54, 0.9)\",\n        \"rgba(237, 129, 40, 0.89)\",\n        \"rgba(50, 172, 45, 0.97)\"\n      ],\n      \"dateFormat\": \"YYYY-MM-DD HH:mm:ss\",\n      \"decimals\": 2,\n      \"mappingType\": 1,\n      \"pattern\": \"Value #A\",\n      \"thresholds\": [],\n      \"type\": \"hidden\",\n      \"unit\": \"short\"\n    },\n    {\n      \"$$hashKey\": \"object:761\",\n      \"alias\": \"Status\",\n      \"align\": \"auto\",\n      \"colorMode\": \"value\",\n      \"colors\": [\n        \"rgba(245, 54, 54, 0.9)\",\n        \"#56A64B\",\n        \"rgba(50, 172, 45, 0.97)\"\n      ],\n      \"dateFormat\": \"YYYY-MM-DD HH:mm:ss\",\n      \"decimals\": 0,\n      \"mappingType\": 1,\n      \"pattern\": \"Value #B\",\n      \"thresholds\": [\n        \"0.5\"\n      ],\n      \"type\": \"string\",\n      \"unit\": \"short\",\n      \"valueMaps\": [\n        {\n          \"$$hashKey\": \"object:876\",\n          \"text\": \"stopped\",\n          \"value\": \"0\"\n        },\n        {\n          \"$$hashKey\": \"object:877\",\n          \"text\": \"running\",\n          \"value\": \"1\"\n        }\n      ]\n    },\n    {\n      \"$$hashKey\": \"object:762\",\n      \"alias\": \"vCPUs\",\n      \"align\": \"auto\",\n      \"colors\": [\n        \"rgba(245, 54, 54, 0.9)\",\n        \"rgba(237, 129, 40, 0.89)\",\n        \"rgba(50, 172, 45, 0.97)\"\n      ],\n      \"dateFormat\": \"YYYY-MM-DD HH:mm:ss\",\n      \"decimals\": 0,\n      \"mappingType\": 1,\n      \"pattern\": \"Value #C\",\n      \"thresholds\": [],\n      \"type\": \"number\",\n      \"unit\": \"short\"\n    },\n    {\n      \"$$hashKey\": \"object:763\",\n      \"alias\": \"Memory\",\n      \"align\": \"auto\",\n      \"colors\": [\n        \"rgba(245, 54, 54, 0.9)\",\n        \"rgba(237, 129, 40, 0.89)\",\n        \"rgba(50, 172, 45, 0.97)\"\n      ],\n      \"dateFormat\": \"YYYY-MM-DD HH:mm:ss\",\n      \"decimals\": 1,\n      \"mappingType\": 1,\n      \"pattern\": \"Value #D\",\n      \"thresholds\": [],\n      \"type\": \"number\",\n      \"unit\": \"bytes\"\n    },\n    {\n      \"$$hashKey\": \"object:764\",\n      \"alias\": \"Mem usage (%)\",\n      \"align\": \"auto\",\n      \"colorMode\": \"value\",\n      \"colors\": [\n        \"rgba(50, 172, 45, 0.97)\",\n        \"rgba(237, 129, 40, 0.89)\",\n        \"rgba(245, 54, 54, 0.9)\"\n      ],\n      \"dateFormat\": \"YYYY-MM-DD HH:mm:ss\",\n      \"decimals\": 0,\n      \"mappingType\": 1,\n      \"pattern\": \"Value #E\",\n      \"thresholds\": [\n        \"0.75\",\n        \" 0.9\"\n      ],\n      \"type\": \"number\",\n      \"unit\": \"percentunit\"\n    },\n    {\n      \"$$hashKey\": \"object:765\",\n      \"alias\": \"Disk\",\n      \"align\": \"auto\",\n      \"colors\": [\n        \"rgba(245, 54, 54, 0.9)\",\n        \"rgba(237, 129, 40, 0.89)\",\n        \"rgba(50, 172, 45, 0.97)\"\n      ],\n      \"dateFormat\": \"YYYY-MM-DD HH:mm:ss\",\n      \"decimals\": 1,\n      \"mappingType\": 1,\n      \"pattern\": \"Value #F\",\n      \"thresholds\": [],\n      \"type\": \"number\",\n      \"unit\": \"bytes\"\n    },\n    {\n      \"$$hashKey\": \"object:766\",\n      \"alias\": \"Disk usage (%)\",\n      \"align\": \"auto\",\n      \"colorMode\": \"value\",\n      \"colors\": [\n        \"rgba(50, 172, 45, 0.97)\",\n        \"rgba(237, 129, 40, 0.89)\",\n        \"rgba(245, 54, 54, 0.9)\"\n      ],\n      \"dateFormat\": \"YYYY-MM-DD HH:mm:ss\",\n      \"mappingType\": 1,\n      \"pattern\": \"Value #G\",\n      \"thresholds\": [\n        \"0.7\",\n        \" 0.9\"\n      ],\n      \"type\": \"number\",\n      \"unit\": \"percentunit\"\n    }\n  ],\n  \"targets\": [\n    {\n      \"datasource\": {\n        \"type\": \"prometheus\",\n        \"uid\": \"000000005\"\n      },\n      \"exemplar\": true,\n      \"expr\": \"sum by (id, name, type) (pve_guest_info{node=\\\"$host\\\",instance=\\\"$instance\\\",template!=\\\"1\\\"})\",\n      \"format\": \"table\",\n      \"instant\": true,\n      \"interval\": \"\",\n      \"intervalFactor\": 1,\n      \"legendFormat\": \"\",\n      \"refId\": \"A\"\n    },\n    {\n      \"datasource\": {\n        \"type\": \"prometheus\",\n        \"uid\": \"000000005\"\n      },\n      \"exemplar\": true,\n      \"expr\": \"sum by (id) (pve_up{instance=\\\"$instance\\\",template!=\\\"1\\\"} and on (id, instance) pve_guest_info{node=\\\"$host\\\"})\",\n      \"format\": \"table\",\n      \"instant\": true,\n      \"interval\": \"\",\n      \"intervalFactor\": 1,\n      \"legendFormat\": \"\",\n      \"refId\": \"B\"\n    },\n    {\n      \"datasource\": {\n        \"type\": \"prometheus\",\n        \"uid\": \"000000005\"\n      },\n      \"exemplar\": true,\n      \"expr\": \"sum by (id) (pve_cpu_usage_limit{node=\\\"$host\\\",instance=\\\"$instance\\\",template!=\\\"1\\\"} and on (id, instance) pve_guest_info{node=\\\"$host\\\"})\",\n      \"format\": \"table\",\n      \"instant\": true,\n      \"interval\": \"\",\n      \"intervalFactor\": 1,\n      \"legendFormat\": \"\",\n      \"refId\": \"C\"\n    },\n    {\n      \"datasource\": {\n        \"type\": \"prometheus\",\n        \"uid\": \"000000005\"\n      },\n      \"exemplar\": true,\n      \"expr\": \"sum by (id) (pve_memory_size_bytes{instance=\\\"$instance\\\",template!=\\\"1\\\"} and on (id, instance) pve_guest_info{node=\\\"$host\\\"})\",\n      \"format\": \"table\",\n      \"instant\": true,\n      \"interval\": \"\",\n      \"intervalFactor\": 1,\n      \"legendFormat\": \"\",\n      \"refId\": \"D\"\n    },\n    {\n      \"datasource\": {\n        \"type\": \"prometheus\",\n        \"uid\": \"000000005\"\n      },\n      \"exemplar\": true,\n      \"expr\": \"sum by (id) (pve_memory_usage_bytes{instance=\\\"$instance\\\",template!=\\\"1\\\"} / pve_memory_size_bytes and on (id, instance) pve_guest_info{node=\\\"$host\\\"})\",\n      \"format\": \"table\",\n      \"instant\": true,\n      \"interval\": \"\",\n      \"intervalFactor\": 1,\n      \"legendFormat\": \"\",\n      \"refId\": \"E\"\n    },\n    {\n      \"datasource\": {\n        \"type\": \"prometheus\",\n        \"uid\": \"000000005\"\n      },\n      \"exemplar\": true,\n      \"expr\": \"sum by (id) (pve_disk_size_bytes{instance=\\\"$instance\\\",template!=\\\"1\\\"} and on (id, instance) pve_guest_info{node=\\\"$host\\\"})\",\n      \"format\": \"table\",\n      \"instant\": true,\n      \"interval\": \"\",\n      \"intervalFactor\": 1,\n      \"legendFormat\": \"\",\n      \"refId\": \"F\"\n    },\n    {\n      \"datasource\": {\n        \"type\": \"prometheus\",\n        \"uid\": \"000000005\"\n      },\n      \"exemplar\": true,\n      \"expr\": \"sum by (id) (pve_disk_usage_bytes{instance=\\\"$instance\\\",template!=\\\"1\\\"} / pve_disk_size_bytes and on (id, instance) pve_guest_info{node=\\\"$host\\\"})\",\n      \"format\": \"table\",\n      \"instant\": true,\n      \"interval\": \"\",\n      \"intervalFactor\": 1,\n      \"legendFormat\": \"\",\n      \"refId\": \"G\"\n    }\n  ],\n  \"title\": \"Resource allocation summary\",\n  \"transform\": \"table\",\n  \"type\": \"table-old\",\n  \"pageSize\": null\n}",
        "mode": "code",
        "code": {
          "language": "json",
          "showLineNumbers": true,
          "showMiniMap": true
        }
      }
    },
    {
      "id": 3,
      "title": "Data from panel above",
      "type": "table",
      "datasource": {
        "type": "datasource",
        "uid": "-- Dashboard --"
      },
      "gridPos": {
        "h": 7,
        "w": 15,
        "x": 0,
        "y": 13
      },
      "options": {
        "showTypeIcons": true
      },
      "targets": [
        {
          "datasource": {
            "type": "datasource",
            "uid": "-- Dashboard --"
          },
          "panelId": 2,
          "withTransforms": true,
          "refId": "A"
        }
      ]
    }
  ],
  "schemaVersion": 37,
  "title": "Debug: Resource allocation summary // 2024-04-15 16:03:00",
  "tags": [
    "debug",
    "debug-table-old"
  ],
  "time": {
    "from": "2024-04-15T08:03:00.458Z",
    "to": "2024-04-15T14:03:00.458Z"
  }
}

Environment (with versions)?

Grafana: 11.0.0-preview
OS: Docker
Browser: Chrome

Grafana platform?

Docker

Datasource(s)?

No response

@mhollstein
Copy link
Author

mhollstein commented Apr 15, 2024

Table (old)
2024-04-15 15_49_00

Table
2024-04-15 15_50_06

@leeoniya leeoniya added area/panel/table type/angular-2-react Angular -> React migration labels Apr 15, 2024
@mhollstein
Copy link
Author

mhollstein commented Apr 15, 2024

Color Mode Row - Table (old)
2024-04-15 16_25_47

Table
2024-04-15 16_27_51

@mhollstein
Copy link
Author

Decimals 0 in Table (old)
2024-04-15 16_36_19

Table

2024-04-15 16_35_12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants