A
A
Albert Krozhezhepitskay2022-04-01 17:09:09
MySQL
Albert Krozhezhepitskay, 2022-04-01 17:09:09

How to link a dashboard built on MySQL queries to a Grafana selection?

Colleagues welcome! I deployed helpdesk and connected grafana to the helpdesk (HESK) database.
I fetch data using sql queries

SELECT COUNT(*) FROM hesk_tickets WHERE category=2 AND status=4
through the visualization "Stat"
6247073462185915361382.png
How can I bind the range of the dashboard sample to the issue?
6247077c0e488911513786.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Albert Krozhezhepitskay, 2022-04-25
@deni

https://grafana.com/docs/grafana/latest/datasource...
SELECT COUNT(*) FROM hesk_tickets WHERE category=2 AND status=4 AND $__timeFilter(dt)

A
Aliaksandr_M, 2022-04-19
@Aliaksandr_M

Greetings! Can you describe in more detail the creation of a dashboard in Grafana for the HESK database?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question