【翻译】Prometheus 2.0.0 新特性

简介: Prometheus 2.0.0 现在(2017.11.8)已经发布,从上个月的 1.8.0 到 2.0.0 有显著的改进。 最大的变化是新的存储引擎,它被完全重写,并与检索系统中的变化相结合,带来了可观的性能收益。

Prometheus 2.0.0 现在(2017.11.8)已经发布,从上个月的 1.8.0 到 2.0.0 有显著的改进。

最大的变化是新的存储引擎,它被完全重写,并与检索系统中的变化相结合,带来了可观的性能收益。现在,Prometheus 的服务器每秒可以摄取数百万个样本。这是由于与文本展示格式相关联的优化。如果您使用的导出器非常罕见,只支持protobuf公开格式,那么您需要添加对文本格式的支持。这个新的存储引擎不向后兼容,但是有一种方法可以透明地访问仍然存储在1.x中的旧数据。

新的存储引擎不需要通过 flag 进行调优。它通过 mmaped files 进行工作,因此依赖于现代内核的页面缓存。这种设计还允许为希望进行备份的用户制作快照。

第二个大的变化是PromQL中的新过时语义。在通常情况下,从服务发现中删除时间序列后,不再需要等待整整5分钟才会过期,现在需要大约一个scrape 间隔。

规则文件格式已更改为YAML,我们之前已经了解了如何使用 promtool 对其进行转换。规则现在按组划分,并按顺序执行。

PromQL有一些小的更改。添加了一个 timestamp 函数,删除了count_scalardrop_common_tagskeep_common

出于安全原因,默认情况下禁用 admin 和 lifecycle API。你可以通过 --web.enable-admin-api--web.enable-lifecycle 这两个 flag 来重新开启。说到 flag ,Kingpin 现在也在使用,所以所有 flag 的前缀都是双连字符而不是单连字符。用于指定AlertManager的命令行 flag 已被删除,现在要使用 AlertManager 只能在配置文件中开启,这个选项已经在1.4 的配置文件中添加过了。

如果使用远程读取的对象不是远程存储,则需要启用新的 read_recent 选项。默认情况下,远程读取不再请求它应该在本地拥有的数据。

原文链接

相关文章
|
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) 之后又进行了很多的修复和改进。
173 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) 之后又进行了很多的修复和改进。
216 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] 之后又进行了很多的修复和改进。
143 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) 之后又进行了很多的修复和改进。
128 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) 之后又进行了很多的修复和改进。
196 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) 之后又进行了很多的修复和改进。
155 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 版本发布了,我们看看有什么新的特性。
2971 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) 之后又进行了很多的修复和改进。
639 0