[prometheus-users] Re: Writing prometheus test with metric operations/function

2020-04-04 Thread Brian Candler
On Saturday, 4 April 2020 10:43:27 UTC+1, Belmark Caday wrote: > > Here are the udpdated tests : > > - series: 'node_filesystem_free{fstype="ext4"}' >values: '1+0x120' > > - expr: 'predict_linear(node_filesystem_free{fstype!~"tmpfs"}[1h], 4 * > 3600) > 0'

[prometheus-users] Re: Writing prometheus test with metric operations/function

2020-04-04 Thread Belmark Caday
Here are the udpdated tests : - series: 'node_filesystem_free{fstype="ext4"}' values: '1+0x120' - expr: 'predict_linear(node_filesystem_free{fstype!~"tmpfs"}[1h], 4 * 3600) > 0'

[prometheus-users] Re: Writing prometheus test with metric operations/function

2020-04-04 Thread Belmark Caday
Here are the test's ive updated : Series and values: [image: Capture1.PNG] Expr : [image: Capture2.PNG] And here is the error message : [image: Capture3.PNG] On Saturday, April 4, 2020 at 5:05:49 PM UTC+8, Brian Candler wrote: > > Put at least two data points in the time series. > -- Yo

[prometheus-users] Re: Writing prometheus test with metric operations/function

2020-04-04 Thread Brian Candler
Put at least two data points in the time series. -- 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+unsubscr...@googlegroups.com. To view this

[prometheus-users] Re: Writing prometheus test with metric operations/function

2020-04-03 Thread Belmark Caday
On Friday, April 3, 2020 at 3:02:45 PM UTC+8, Brian Candler wrote: > > Expression 1 uses a range vector (data over a 1 hour time window) with > predict_linear. However if you only provide one data point, then there's > no way it can do linear regression to fit a line. > I already cha

[prometheus-users] Re: Writing prometheus test with metric operations/function

2020-04-03 Thread Brian Candler
Expression 1 uses a range vector (data over a 1 hour time window) with predict_linear. However if you only provide one data point, then there's no way it can do linear regression to fit a line. Expression 2 performs an operation between two different metrics, but you've only provided a data po