You can execute PromQL statements to query time series data on the Metricstore query page. In the following figure, the PromQL statement is rate(apiserver_request_total[1m])
, which queries the growth rate of requests.After you execute a PromQL statement on the page, you can click Save as Alert in the upper-right corner of the search box to save the current PromQL statement as an alert policy, as shown in the following figure.On the Save as Alert page, set the parameters such as Rule Name, Check Frequency, Query Statistics, Trigger Condition, and Destination, and click OK.
On the Save as Alert page, set the parameters such as Rule Name, Check Frequency, Query Statistics, Trigger Condition, and Destination, and click OK.