I have the Recording rule pattern:
```yaml
  - record: last-update
    expr: |
      timestamp(changes(metric-name[450s]) > 0)
        or
      last-update
```

However, that doesn't work. The `or last-update` part doesn't return a 
value.

I have tried using an offset,
` or (last-update offset 450s)`, 
to no avail.


My evaluation frequency is 5 minutes (the frequency that prometheus runs my 
Recording rules). I tried the 7.5 minutes offset because I theorized that 
the OR was attempting to write last-update as last-update but last-update 
was null in that second; if the OR were to attempt writing last-update as 
the value it was during it's previous evaluation, then it should find a 
value in last-update, but that returned no value as well.


This is what the metric looks like graphed: 

[choppy rather than a complete staircase][1] (I don't have enough 
reputation to post pictures...)



Thank you in advance for your help.

Why I care:
If a time series plateaus for an extended period of time then I want to 
know as that may mean it has begun to fail to return accurate data.


  [1]: I think the image link is preventing me from posting

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/b6a99025-809c-496d-a2e3-08b717f16f52%40googlegroups.com.

Reply via email to