Configuring time series dashboard

  • What Grafana version and what operating system are you using?
    Grafana v9.1.4
  • What are you trying to achieve?
    Monitor the message queue of my application
  • How are you trying to achieve it?
    Selecting a count(*) of my message queue table
  • What happened?
    The count value is not shown in the graph.

Hello dear community,

i recently started to use Grafana and i just can’t seem to wrap my mind around this.
My application uses the com_received_message table as a message queue. I want to monitor the count of this table. I want to be able to see how many messaged were in the message queue at one point in time.

What am i doing wrong? Can someone please push me in the right direction? Thank you in advance!


what data type is dati_processed? Also can you try adding

$time(dati_processed) as time

Click on the Show Help next to time series and you will see all of the time related functions.

I already did but i can’t figure out what I’m doing wrong.

When clicking Show Help look at Macros: and compare what you have with the list of time related functions.

I am using $__time just as it’s described there, but it doesn’t show up for some reason

time for some coffee

oops sorry, $__time for some coffee for me!

$__time(dati_processed) as time


$__timeGroup(dati_processed,'1d', NULL) time,
count(1) as value
FROM com_received_message
GROUP by $__timeGroup(dati_processed, '1d')

probably means your dati_message is not utc but local time