Sorting Bar Gauge graph

  • What Grafana version and what operating system are you using? 8.26

  • What are you trying to achieve? I would like to have the metics sorted in the bar gauge

  • How are you trying to achieve it? I used sort() or sort_desc() function

  • What happened? , They only work with instant mode. I would like those to work with any type of results

  • What did you expect to happen? I expected the metrics to be sorted

  • Can you copy/paste the configuration(s) that you are having problems with?

   {
      "datasource": null,
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "displayName": "${__series.name}",
          "mappings": [],
          "max": 10,
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "s"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 6,
        "x": 12,
        "y": 0
      },
      "id": 10,
      "options": {
        "displayMode": "gradient",
        "orientation": "horizontal",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showUnfilled": true,
        "text": {}
      },
      "pluginVersion": "8.2.6",
      "targets": [
        {
          "exemplar": true,
          "expr": "sort(avg(apache_ReqPerSec{Stage=~\"$stage\", Environment=~\"$environment\"}) by (host))",
          "format": "time_series",
          "instant": false,
          "interval": "",
          "legendFormat": "{{host}}",
          "refId": "A"
        }
      ],
      "title": "Apache Request/s",
      "type": "bargauge"
    },
  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.

No errors

  • Did you follow any online instructions? If so, what is the URL?
    I didn’t find any

Hey, am I the only one that needs that? not sure why I don’t get anything from the community… is there any feature request to support it?