docs: Fix minor issues with the docs. (#3389)

Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
This commit is contained in:
Goutham Veeramachaneni 2017-11-01 21:05:50 +05:30 committed by Brian Brazil
parent b6494960d1
commit 646e33242e
4 changed files with 19 additions and 19 deletions

View file

@ -12,17 +12,17 @@ configuration file defines everything related to scraping [jobs and their
instances](https://prometheus.io/docs/concepts/jobs_instances/), as well as instances](https://prometheus.io/docs/concepts/jobs_instances/), as well as
which [rule files to load](recording_rules.md#configuring-rules). which [rule files to load](recording_rules.md#configuring-rules).
To view all available command-line flags, run `prometheus -h`. To view all available command-line flags, run `./prometheus -h`.
Prometheus can reload its configuration at runtime. If the new configuration Prometheus can reload its configuration at runtime. If the new configuration
is not well-formed, the changes will not be applied. is not well-formed, the changes will not be applied.
A configuration reload is triggered by sending a `SIGHUP` to the Prometheus process or A configuration reload is triggered by sending a `SIGHUP` to the Prometheus process or
sending a HTTP POST request to the `/-/reload` endpoint. sending a HTTP POST request to the `/-/reload` endpoint (when the `--web.enable-lifecycle` flag is enabled).
This will also reload any configured rule files. This will also reload any configured rule files.
## Configuration file ## Configuration file
To specify which configuration file to load, use the `-config.file` flag. To specify which configuration file to load, use the `--config.file` flag.
The file is written in [YAML format](http://en.wikipedia.org/wiki/YAML), The file is written in [YAML format](http://en.wikipedia.org/wiki/YAML),
defined by the scheme described below. defined by the scheme described below.

View file

@ -32,9 +32,8 @@ When the file is syntactically valid, the checker prints a textual
representation of the parsed rules to standard output and then exits with representation of the parsed rules to standard output and then exits with
a `0` return status. a `0` return status.
If there are any syntax errors, it prints an error message to standard error If there are any syntax errors or invalid input arguments, it prints an error
and exits with a `1` return status. On invalid input arguments the exit status message to standard error and exits with a `1` return status.
is `2`.
## Recording rules ## Recording rules

View file

@ -13,16 +13,17 @@ data, etc. The Prometheus templating language is based on the
## Simple alert field templates ## Simple alert field templates
ALERT InstanceDown ```
IF up == 0 alert: InstanceDown
FOR 5m expr: up == 0
LABELS { for: 5m
severity="page" labels:
} - severity: page
ANNOTATIONS {
summary = "Instance {{$labels.instance}} down", annotations:
description = "{{$labels.instance}} of job {{$labels.job}} has been down for more than 5 minutes.", - summary: "Instance {{$labels.instance}} down"
} - description: "{{$labels.instance}} of job {{$labels.job}} has been down for more than 5 minutes."
```
Alert field templates will be executed during every rule iteration for each Alert field templates will be executed during every rule iteration for each
alert that fires, so keep any queries and templates lightweight. If you have a alert that fires, so keep any queries and templates lightweight. If you have a

View file

@ -119,11 +119,11 @@ For more about the expression language, see the
To graph expressions, navigate to http://localhost:9090/graph and use the "Graph" To graph expressions, navigate to http://localhost:9090/graph and use the "Graph"
tab. tab.
For example, enter the following expression to graph the per-second rate of all For example, enter the following expression to graph the per-second rate of chunks
storage chunk operations happening in the self-scraped Prometheus: being created in the self-scraped Prometheus:
``` ```
rate(prometheus_local_storage_chunk_ops_total[1m]) rate(prometheus_tsdb_head_chunks_created_total[1m])
``` ```
Experiment with the graph range parameters and other settings. Experiment with the graph range parameters and other settings.