add new chinese translations
This commit is contained in:
20
pages.zh/common/promtool.md
Normal file
20
pages.zh/common/promtool.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# promtool
|
||||
|
||||
> 用于 Prometheus 监控系统的工具。
|
||||
> 更多信息:<https://prometheus.io/docs/prometheus/latest/getting_started/>。
|
||||
|
||||
- 检查配置文件是否有效(如有错误,请报告):
|
||||
|
||||
`promtool check config {{config_file.yml}}`
|
||||
|
||||
- 检查规则文件是否有效(如有错误,请报告):
|
||||
|
||||
`promtool check rules {{rules_file.yml}}`
|
||||
|
||||
- 通过 `stdin` 传递 Prometheus 指标以检查其一致性和正确性:
|
||||
|
||||
`curl --silent {{http://example.com:9090/metrics/}} | promtool check metrics`
|
||||
|
||||
- 针对规则配置的单元测试:
|
||||
|
||||
`promtool test rules {{test_file.yml}}`
|
Reference in New Issue
Block a user