Generating range vectors from return values in Prometheus queries

前端 未结 2 1046
闹比i
闹比i 2020-12-31 05:01

I have a metric varnish_main_client_req of type counter and I want to set up an alert that triggers if the rate of requests drops/raises by a certain amount in a gi

2条回答
  •  悲哀的现实
    2020-12-31 05:30

    Yes, you need to use a recording rule for this.

    Prometheus calculates the rate of client requests over the last 2 mins and returns a derivative of the resulting values over the last 5 mins.

    Herein lies the problem - at what interval should Prometheus synthesise this data?

提交回复
热议问题