Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

fix: Grafana 8.1+ compatibility #230

Merged
merged 1 commit into from
Nov 3, 2021
Merged

fix: Grafana 8.1+ compatibility #230

merged 1 commit into from
Nov 3, 2021

Conversation

diafour
Copy link
Collaborator

@diafour diafour commented Nov 3, 2021

Overview

Dasboard with statusmap fire this error in Grafana 8.1+:

Annotation Query Failed
Cannot read property 'to' of undefined

What this PR does / why we need it

Quote from #219 (comment) :

I'm suspecting this commit grafana/grafana@6f38883.
The updateTimeRange is no longer called before issueQueries so this.range is not set until super.issueQueries is called.

Special notes for your reviewer

Does this PR introduce a user-facing change?

- Grafana 8.1+ compatibility

@taogejiang
Copy link

Dear @diafour , please check this problem, thanks very much .

  • env:
    Grafana version: Grafana v8.3.3
    flant-statusmap-panel version: 0.4.2
    Data source type & version: MySQL
    OS Grafana is installed on: Centos v7.9
    User OS & Browser: Windows 10 & Microsoft Edge

  • problem:

"failed to convert long to wide series when converting from dataframe: long series must be sorted ascending by time to be converted" in grafana v8.3.3
image

but it's ok in grafana v7.4.0
image

  • MySQL SQL:
    SELECT
    UNIX_TIMESTAMP(STR_TO_DATE(SUBSTR(trigger_time, 1, 8), '%Y%m%d')) AS time,
    concat(department,' - ',product_series,' - ',base_qgmr_version) AS metric,
    min(CASE ci_result WHEN 'FAIL' THEN 0 WHEN 'PASS' THEN 1 WHEN 'NONE' THEN 2 WHEN 'RUNNING' THEN 3 ELSE -1 END) AS "status"
    FROM qdevops_version_pipeline
    WHERE
    department='SW1'
    GROUP BY 1,2
    ORDER BY metric

Looking forward to your reply ^-^

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

Successfully merging this pull request may close these issues.

Display error when use zabbix datasource Annotation Query Failed Cannot read property 'to' of undefined
2 participants