Skip to content

Commit d2aa290

Browse files
committed
Fixed a couple of small typos/phrasings.
1 parent b282978 commit d2aa290

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

content/docs/tutorials/alerting_based_on_metrics.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Alerting based on metrics.
2+
title: Alerting based on metrics
33
sort_rank: 5
44
---
55

@@ -8,13 +8,13 @@ sort_rank: 5
88
In this tutorial we will create alerts on the `ping_request_count` metric that we instrumented earlier in the
99
[Instrumenting HTTP server written in Go](../instrumenting_http_server_in_go/) tutorial.
1010

11-
For the sake of this tutorial we will alert when the `ping_request_count` metric is greater than 5, Checkout real world [best practices](../../practices/alerting) to learn more about alerting principles.
11+
For the sake of this tutorial we will alert when the `ping_request_count` metric is greater than 5. Check out real world [best practices](../../practices/alerting) to learn more about alerting principles.
1212

13-
Download the latest release of Alertmanager for your operating system from [here](https://github.com/prometheus/alertmanager/releases)
13+
Download the latest release of Alertmanager for your operating system from [here](https://github.com/prometheus/alertmanager/releases).
1414

1515
Alertmanager supports various receivers like `email`, `webhook`, `pagerduty`, `slack` etc through which it can notify when an alert is firing. You can find the list of receivers and how to configure them [here](../../alerting/latest/configuration). We will use `webhook` as a receiver for this tutorial, head over to [webhook.site](https://webhook.site) and copy the webhook URL which we will use later to configure the Alertmanager.
1616

17-
First let's setup Alertmanager with webhook receiver.
17+
First let's setup Alertmanager with the webhook receiver.
1818

1919
> alertmanager.yml
2020
@@ -61,7 +61,7 @@ scrape_configs:
6161
- targets: ["localhost:8090"]
6262
```
6363

64-
If you notice the `evaluation_interval`,`rule_files` and `alerting` sections are added to the Prometheus config, the `evaluation_interval` defines the intervals at which the rules are evaluated, `rule_files` accepts an array of yaml files that defines the rules and the `alerting` section defines the Alertmanager configuration. As mentioned in the beginning of this tutorial we will create a basic rule where we want to
64+
Note that the `evaluation_interval`,`rule_files` and `alerting` sections were added to the Prometheus config. `evaluation_interval` defines the intervals at which the rules are evaluated, `rule_files` accepts an array of yaml files that defines the rules and the `alerting` section defines the Alertmanager configuration. As mentioned in the beginning of this tutorial we will create a basic rule where we want to
6565
raise an alert when the `ping_request_count` value is greater than 5.
6666

6767
> rules.yml
@@ -79,7 +79,7 @@ Now let's run Prometheus using the following command.
7979

8080
`prometheus --config.file=./prometheus.yml`
8181

82-
Open [http://localhost:9090/rules](http://localhost:9090/rules) in your browser to see the rules. Next run the instrumented ping server and visit the [http://localhost:8090/ping](http://localhost:8090/ping) endpoint and refresh the page atleast 6 times. You can check the ping count by navigating to [http://localhost:8090/metrics](http://localhost:8090/metrics) endpoint. To see the status of the alert visit [http://localhost:9090/alerts](http://localhost:9090/alerts). Once the condition `ping_request_count > 5` is true for more than 10s the `state` will become `FIRING`. Now if you navigate back to your `webhook.site` URL you will see the alert message.
82+
Open [http://localhost:9090/rules](http://localhost:9090/rules) in your browser to see the rules. Next run the instrumented ping server and visit the [http://localhost:8090/ping](http://localhost:8090/ping) endpoint and refresh the page at least 6 times. You can check the ping count by navigating to the [http://localhost:8090/metrics](http://localhost:8090/metrics) endpoint. To see the status of the alert visit [http://localhost:9090/alerts](http://localhost:9090/alerts). Once the condition `ping_request_count > 5` is true for more than 10s the `state` will become `FIRING`. Now if you navigate back to your `webhook.site` URL you will see the alert message.
8383

8484
<iframe width="560" height="315" src="https://www.youtube.com/embed/xaMXVrle98M" frameborder="0" allowfullscreen></iframe>
8585

0 commit comments

Comments
 (0)