Hello,
I have just been testing out loki and grafana, first impression : Very nice!
What i have been doing is implementing some code to store logs into loki this is somewhat the format:
Stream : Application : testapp, Component: component1
Value: , functionname
this seems to be working fine, but i wonder if i’m using it right??
Next im trying to get an graph where i can display calls to my functions.
this is the query i am using:
count_over_time({Application=“testapp”,Component=“component1”}[1y])
this gives me a result but not what i expect (total count of functions i think)
when i use this in the explorer: ({Application=“testapp”,Component=“component1”})
i have logs like functioname1
what i want to display are bars for each unique functionname with the total calls
functioname1 : 10
functioname2 : 66
Thanks in advance,
Martijn