Prometheus has a number of http apis which allow you to request raw data and evaluate PromQL queries.
Often needed or computationally expensive queries can be optimized by the use of Prometheus Recording RulesPrometheus Recording Rules
Recording rules allow us to evaluate and store results of PromQL queries in storage as a new time series, so we don't have to calculate everything on the fly whenever we want to render a graph. The....
Status: #🌱
References: