Hello.I have a task to calculate the nginx average response time for a dynamic amount of servers. Is there a way to dynamically define variables based on the data from a log to calculate the average for each server? Maybe there is a way to define a variable as an argument to mtail programs?
--
You received this message because you are subscribed to the Google Groups "mtail-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mtail-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mtail-users/fd54048b-1935-4953-82e7-e538dc517551n%40googlegroups.com.
Unfortunately, there are too many rows in this case which would dramatically slow down Prometheus.Best regards,Anton Kiryushkin
It doesn’t matter how many Prometheus instances I run. This is just wasting of the resources.Mtail can calculate average value itself and save a lot of time and resources.Best regards,Anton Kiryushkin
Okay. I'll try again.I have servers with nginx, and I want to know the average response time for certain types of requests based on their logs. There are about 10 million of these requests per day from each server. I want to know the average response time for each server.
My original question was whether it is possible to calculate this average time for each server without declaring hidden variables for each server. And the answer is obviously no.
Ingesting 10 million lines into Prometheus or VictoriaMetrics seems very wasteful because querying for one server might still work in a reasonable time, but querying for a hundred servers likely won't.
--Best regards,Anton Kiryushkin