--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/63701f48-05f5-44f9-b416-30e7653ac9dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
If you're trying to write an alerting rule, you probably want something like this:predict_linear(container_fs_usage_bytes{device=~"/dev/x.*"}[1h]), 4 * 3600) > container_fs_limit_bytes
On Tue, May 29, 2018 at 4:56 PM, <zhug...@gmail.com> wrote:
Hey guys,Here is my current query to get the percentage of disk usage my containers:container_fs_usage_bytes{device=~"/dev/x.*"} / container_fs_limit_bytes{device=~"/dev/x.*"} * 100Now, based on this article: I want to use predict_linear to send an alert if the disk looks like its gonna fill in N hours.Here is the query I've been struggling with (I just want the estimated percentage of disk utilized 4 hours from now):predict_linear(container_fs_usage_bytes{device=~"/dev/x.*"} / container_fs_limit_bytes{device=~"/dev/x.*"} * 100, 4 * 3600)This query returns the following error: Error executing query: parse error at char 124: expected type matrix in call to function "predict_linear", got vectorCan anybody tell me how I am thinking about this wrong?Also, is there an easy way to get the type of prometheus value returned by the queries in the GUI tool?Thanks,Zach
--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To post to this group, send email to promethe...@googlegroups.com.