I am new to Grafana and have a problem mapping Time Series from a CSV file.
my CSV file gives me the following values.
The values come from a ticket system.
I have already picked out the necessary values that I want to display.
Ticketnummer (Unique number for a ticket, Ticket ID)
Geschlossen (Date when the ticket was closed)
Status (Ticket status)
I would like to see how many tickets were closed per year.
it would probably be enough to output the values of the table by year. So how many entries in the table are there for the year 2020, how many entries are there for 2021…
parse-csv
| extend "Geschlossen"=todatetime("Geschlossen") # converts the Geschlossen string to actual date
| extend "rounded_date"=startofyear("Geschlossen") # rounds the Geschlossen to year
| summarize count() by "rounded_date" # group by date
| order by "rounded_date" asc
shure, here you can find the CSV. https://drive.google.com/file/d/1o-n1dYxjvfI3t9SjOLo2QmgWkqOikSyr/view?usp=sharing
The CSV file contains many more fields.
I assumed that closed status is actually enough for my display.
I have already set the type for three fields an set “ignore unknown”
Ticketnummer= Number
Geschlossen= Time
Status= String
Maybe there is a programmatic way of embedding the csv file’s data into the inline Data section?
Another thing that worked for me was I spun up a small node express api that read the csv fiel from disk and pointed the infinity Source as URL to my node api. But I think that is gross. Might as well hit the original api and serve it up for this infinity plugin to consume it from an url.