Vonage / Grafana_Status_panel

A panel plugin for Grafana to monitor multiple parameters at once
Other
178 stars 108 forks source link

Status Panel Visualisation does not change when server is critical #157

Open Silas-Asamoah opened 4 years ago

Silas-Asamoah commented 4 years ago

What happened: Status Panel does not indicate red when server is critical.

What you expected to happen: Status panel goes red when server is critical or displays no colour when shutdown.

How to reproduce it (as minimally and precisely as possible):

{
  "xhrStatus": "complete",
  "request": {
    "method": "GET",
    "url": "api/datasources/proxy/1/query",
    "params": {
      "db": "telegraf",
      "q": "SELECT last(\"result_code\") FROM \"net_response\" WHERE (\"server\" = 'SERVER_ADDRESS' AND \"port\" = 'PORT No.') AND time >= now() - 1m GROUP BY time(500ms) fill(none)",
      "epoch": "ms"
    },
    "data": null,
    "precision": "ms"
  },
  "response": {
    "results": [
      {
        "statement_id": 0,
        "series": [
          {
            "name": "net_response",
            "columns": [
              "time",
              "last"
            ],
            "values": [
              [
                1579274615000,
                2
              ],
              [
                1579274625000,
                2
              ],
              [
                1579274635000,
                2
              ],
              [
                1579274645000,
                2
              ],
              [
                1579274655000,
                2
              ]
            ]
          }
        ]
      }
    ]
  }
}

Anything else we need to know?:

Environment: