Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
docs
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
docs
Commits
e23dcb64
Commit
e23dcb64
authored
Jun 29, 2015
by
Julius Volz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update rule-checking documentation to use "promtool".
parent
19bd12c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
rules.md
content/docs/querying/rules.md
+4
-6
No files found.
content/docs/querying/rules.md
View file @
e23dcb64
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment