Prometheus# Prometheus 基础知识 METRIC TYPES Summary Histogram Summary Types of Prometheus metrics Range vector Histogram Histograms 与 Summary 比较 Library support Count and sum of observations Apdex score Quantiles histogram_quantile() - histogram 转百分位 不错的资料 Step and query_range - 步长与查询范围 Grafana global-variables $__interval $__interval_ms $__range $__rate_interval Using interval and range variables Using $__rate_interval New in Grafana 7.2: $__rate_interval for Prometheus rate queries that just work Rate - 秒增量 rate() What range should I use with rate()? irate() increase() rate() versus irate() irate() vs rate() – What’re they telling you? Why irate from Prometheus doesn't capture spikes Spikes and irate Capturing spikes Conclusion Top Metrics Design rate vs increase functions Prometheus 性能# Why does Prometheus use so much RAM? How long can Prometheus retention be? Looking beyond retention Cardinality is key How much RAM does Prometheus 2.x need for cardinality and ingestion? Limiting PromQL resource usage Troubleshooting# What queries were running when Prometheus died?