confusion between data from elk and prometheus

12 views
Skip to first unread message

nesa...@gmail.com

unread,
Sep 29, 2020, 3:57:53 AM9/29/20
to Prometheus Users
Hi 
I have configured promtail to generate metrics from an Nginx log file,
we also have the log file in our ELK stack.
what confuses me is the fact that when I filter the promtail metrics in the grafana to only show the 301 status code, I get this output:

here is the query:
sum(rate(nginx_request_status{status="301"}[5m]))

But here is what I see in the ELK output:

So according to ELK, everything is fine between 18:00 to 19:00 but according to Prometheus metric, the redirect rate is about 1 between 18:00 to 19:00

Brian Candler

unread,
Sep 29, 2020, 4:59:09 AM9/29/20
to Prometheus Users
You're talking about promtail, which is part of loki, not prometheus.

Try the "lokiproject" group instead.
Reply all
Reply to author
Forward
0 new messages