question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Grafana Alerts return: `rpc error: code = Unknown desc = invalid status code`

See original GitHub issue

Hello Team,

Thank you so much the continued work on this amazing, vital plugin for Grafana.

While trying the Alerting support on Grafana v7.3.3 (2489dc4d3a) I’m always receiving the following error. Mind the timeseries are correctly returned and displayed. Any suggestion?

clickhouse-grafana query:

$columns(ruri_user, avg(mos) c ) FROM $table WHERE mos > 0

clickhouse-grafana error:

{
  "firing": true,
  "state": "pending",
  "conditionEvals": " = true",
  "timeMs": "6.302ms",
  "error": "tsdb.HandleRequest() error rpc error: code = Unknown desc = invalid status code. status: 500 Internal Server Error",
  "logs": [
    {
      "message": "Condition[0]: Query",
      "data": {
        "from": 1605875259316,
        "queries": [
          {
            "refId": "A",
            "model": {
              "database": "hepic_data",
              "dateColDataType": "",
              "dateLoading": false,
              "dateTimeColDataType": "record_datetime",
              "dateTimeType": "DATETIME",
              "datetimeLoading": false,
              "extrapolate": true,
              "format": "time_series",
              "formattedQuery": "SELECT $timeSeries as t, count() FROM $table WHERE $timeFilter GROUP BY t ORDER BY t",
              "intervalFactor": 1,
              "query": "$columns(ruri_user, avg(mos) c ) FROM $table WHERE mos > 0",
              "rawQuery": "SELECT t, groupArray((ruri_user, c)) AS groupArr FROM ( SELECT (intDiv(toUInt32(record_datetime), 20) * 20) * 1000 AS t, ruri_user, avg(mos) c FROM hepic_data.sip_transaction_call WHERE record_datetime >= toDateTime(1605776207) AND mos > 0 GROUP BY t, ruri_user ORDER BY t, ruri_user) GROUP BY t ORDER BY t",
              "refId": "A",
              "round": "0s",
              "skip_comments": true,
              "table": "sip_transaction_call",
              "tableLoading": false
            },
            "datasource": {
              "id": 5,
              "name": "ClickHouse"
            },
            "maxDataPoints": 0,
            "intervalMs": 0
          }
        ],
        "to": 1605875559316
      }
    }
  ]
}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13

github_iconTop GitHub Comments

1reaction
lmanganicommented, Nov 22, 2020

btw @Slach we have golang devs in our team working on cloki-go, if you want we we can help or team up - ping @adubovikov

0reactions
lmanganicommented, Nov 24, 2020

After a little back and forth with Grafana failing auth, it works! Thank you so much and again apologies for the duplicate

Read more comments on GitHub >

github_iconTop Results From Across the Web

Support Basic Auth for datasource which used BasicAuth for ...
With Grafana 7.1.1 and latest clickhouse-grafana plugin version 2.0.5 ... Grafana Alerts return: rpc error: code = Unknown desc = invalid ...
Read more >
Alert rule rpc error - Time Series Panel - Grafana Community
When I want to setup the alert rule this error message come up. "tsdb.HandleRequest() error rpc error: code = Unavailable desc = transport ......
Read more >
Solved: Grafana - alerting issue - NetApp Community
Solved: Hi, I'm trying to define alerts for some of the graphs in Grafana. I get: error tsdb.HandleRequest() error Request failed status: ...
Read more >
Failed to pull image "<myimage>/posts:0.0.1": rpc error: code ...
Minikube is unable to directly access your local docker repository. There are several methods to resolve this and they are elaborated upon ...
Read more >
Kubernetes ImagePullBackOff: Troubleshooting With Examples
Failed to pull image "nginx:lates": rpc error: code = Unknown desc = Error response from daemon: manifest for nginx:lates not found: manifest unknown: ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found