Commit e23dcb64 authored by Julius Volz's avatar Julius Volz

Update rule-checking documentation to use "promtool".

parent 19bd12c6
...@@ -17,14 +17,12 @@ process. The changes are only applied if all rule files are well-formatted. ...@@ -17,14 +17,12 @@ process. The changes are only applied if all rule files are well-formatted.
## Syntax-checking rules ## Syntax-checking rules
To quickly check whether a rule file is syntactically correct without starting To quickly check whether a rule file is syntactically correct without starting
a Prometheus server, install and run Prometheus's `rule_checker` tool: a Prometheus server, install and run Prometheus's `promtool` command-line
utility tool:
```bash ```bash
# If $GOPATH/github.com/prometheus/prometheus already exists, update it first: go get github.com/prometheus/prometheus/cmd/promtool
go get -u github.com/prometheus/prometheus promtool check-rules /path/to/example.rules
go install github.com/prometheus/prometheus/tools/rule_checker
rule_checker /path/to/example.rules
``` ```
When the file is syntactically valid, the checker prints a textual When the file is syntactically valid, the checker prints a textual
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment