最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Can the increase() of prometheus be calculated for dynamic time ranges? - Stack Overflow

programmeradmin0浏览0评论

I would like to show the increment for 0am at current moment.

For example, I want to show increase(my_counter[1h]) at 1:00am and increase(my_counter[2h]) at 2:00am.

I had thought about using last_over_time to calculate the value taken at 0:00 and then taking the difference as an increment. However, once a restart occurs, negative values are possible.

发布评论

评论列表(0)

  1. 暂无评论