We wrote a script that reads from a file and sends the metrics to InfluxDB.
In that script we are sending the following metrics:
- fields: host, log level, URL, processing time
- tags: host, log level, URL
In the above parameters, except processing time, everything is in string format.
Now the issue is,
We want to see the log level at dashboards i.e., we have different log levels like INFO, DEBUG, CRITICAL, ERROR, WARN etc.,
We want to see when the ERROR or CRITICAL logs occur at which time.
We made a dashboard but we think it won’t works. The query is:
A FROM default django_metric WHERE host =~ /^$HOST$/ AND loglevel =~ /^$Loglevel$/
SELECT field (loglevel) mean ()
GROUP BY time ($__interval) fill (none)
FORMAT AS TIME SERIES
Can you help us to resolve this issue?.
If you want any inputs, we will update here.