【翻译】Prometheus 2.5.0 新特性

简介: Prometheus 2.5.0 现在(2018.11.12)已经发布,在 9 月份的 2.4.0 之后又进行了一些修正和改进。 这是新的6周计划的第二次发布。第一个重要的特性是,基于我们内部用于单元测试PromQL本身的语法,现在promtool中对规则和警报进行了单元测试。

Prometheus 2.5.0 现在(2018.11.12)已经发布,在 9 月份的 2.4.0 之后又进行了一些修正和改进。

这是新的6周计划的第二次发布。第一个重要的特性是,基于我们内部用于单元测试PromQL本身的语法,现在promtool中对规则和警报进行了单元测试。Prometheus 现在还会在加载配置文件时捕捉一些警告模板错误,而不是在评估模板时。

第二个特性是,现在对一个查询一次可以在内存中拥有的查询数量有一个限制,这样可以防止大量查询导致的 RAM 升高引起 OOM 威胁你的 Prometheus。可以通过 --query.max-samples flag 来调整这个值。每个示例使用 16 bytes 的内存,但是请记住,在内存中,用于查询的不仅仅是 active samples 。

第三个值得注意的特性是,这是第一个支持抓取 OpenMetrics 格式的版本。该格式仍在草案中,因此这是实验性的 Prometheus。目前只有 Prometheus Python 客户端可以生成这种格式,但是如果您同时使用这两种格式的最新版本,那么将使用 OpenMetrics 而不是 Prometheus 文本格式。

远程读取有一些改进,减少了内存使用、新的 metric 和并发限制。在服务发现方面,OpenStack 现在可以从所有项目中发现、发现所有网络接口并使用 TLS。Triton SD 可以按组进行过滤,并具有关联的新元数据。Kubernetes SD和SD通常都获得了一些新的 metric。

最后还有一个bug修复,它主要影响用户在 metric 名称上错误使用匹配器。如果您正在执行速率 ({__name__=~"som.*thing"}[5m]) 之类的操作,那么现在将失败,因为一旦删除 metric 名称,速率将生成两个具有相同标签的时间序列,这是没有意义的,并且会造成问题。前面已经讨论了如何正确地处理这个问题。

这次还有很多的提升、bug fix 和其他的改变,可以查看 release notes 来获取更多的信息。

原文链接

相关文章
|
Prometheus Kubernetes Cloud Native
Prometheus 2.31.0 新特性
Prometheus [2.31.0](https://github.com/prometheus/prometheus/releases/tag/v2.31.0) 现在(2021.11.02)已经发布,在上个月的 [2.30.0](http://erdong.site/Prometheus/New-Features/New-Features-in-Prometheus-2-30-0.html) 之后又进行了很多的修复和改进。
171 0
Prometheus 2.31.0 新特性
|
存储 缓存 Prometheus
Prometheus 2.30.0 新特性
Prometheus [2.30.0](https://github.com/prometheus/prometheus/releases/tag/v2.30.0) 现在(2021.09.14)已经发布,在上个月的 [2.29.0](http://erdong.site/Prometheus/New-Features/New-Features-in-Prometheus-2-29-0.html) 之后又进行了很多的修复和改进。
212 0
|
存储 Prometheus Cloud Native
Prometheus 2.29.0 新特性
Prometheus [2.29.0](https://github.com/prometheus/prometheus/releases/tag/v2.29.0) 现在(2021.08.11)已经发布,在上个月的 [2.28.0] 之后又进行了很多的修复和改进。
142 0
|
Prometheus Kubernetes Cloud Native
Prometheus 2.28.0 新特性
Prometheus [2.28.0](https://github.com/prometheus/prometheus/releases/tag/v2.28.0) 现在(2021.06.21)已经发布,在上个月的 [2.27.0](http://erdong.site/Prometheus/New-Features/New-Features-in-Prometheus-2-27-0.html) 之后又进行了很多的修复和改进。
127 0
|
存储 Prometheus Cloud Native
Prometheus 2.26.0 新特性
Prometheus [2.26.0](https://github.com/prometheus/prometheus/releases/tag/v2.26.0) 现在(2021.03.31)已经发布,在上个月的 [2.25.0](http://erdong.site/Prometheus/New-Features/New-Features-in-Prometheus-2-25-0.html) 之后又进行了很多的修复和改进。
174 0
|
Prometheus 监控 Kubernetes
Prometheus 2.25.0 新特性
Prometheus [2.25.0](https://github.com/prometheus/prometheus/releases/tag/v2.25.0) 现在(2021.02.17)已经发布,在上个月的 [2.24.0](http://erdong.site/Prometheus/New-Features/New-Features-in-Prometheus-2-24-0.html) 之后又进行了很多的修复和改进。
193 0
|
Prometheus Kubernetes 监控
Prometheus 2.24.0 新特性
Prometheus [2.24.0](https://github.com/prometheus/prometheus/releases/tag/v2.24.0) 现在(2021.01.06)已经发布,在上个月的 [2.23.0](http://erdong.site/Prometheus/New-Features/New-Features-in-Prometheus-2-23-0.html) 之后又进行了很多的修复和改进。
152 0
|
Prometheus Kubernetes Cloud Native
Prometheus 2.21.0 新特性
Prometheus [2.21.0]已经发布
141 0
|
Prometheus Cloud Native Docker
Prometheus 2.20.0 新特性
Prometheus 2.20.0 版本发布了,我们看看有什么新的特性。
2967 0
|
存储 Prometheus Cloud Native
Prometheus 2.19.0 新特性
Prometheus [2.19.0](https://github.com/prometheus/prometheus/releases/tag/v2.19.0) 现在(2020.06.15)已经发布,在上个月的 [2.18.0](http://erdong.site/Prometheus/New-Features/New-Features-in-Prometheus-2-18-0.html) 之后又进行了很多的修复和改进。
638 0