You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/how-to-guides/create-team.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ This how-to guide shows you how to create a NAIS team.
6
6
Creating a team comes with quite a bit of overhead so this excersise should only be completeted if you are not part of a relevant team and just want find your bearings and get started.
Copy file name to clipboardExpand all lines: docs/how-to-guides/observability/alerts/create.md
+5-6
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ This guide shows you how to create alerts for your application.
8
8
9
9
You can define alerts by using Kubernetes resources (`PrometheusRule`), as well as directly in Grafana (GUI based).
10
10
11
-
You will have a separate alertmanager for each environment available at `https://alertmanager.<ENVIRONMENT>.<<tenant()>>.cloud.nais.io/`
11
+
You will have a separate alertmanager for each environment available at `https://alertmanager.<MY-ENV>.<<tenant()>>.cloud.nais.io/`
12
12
13
13
## 1. Create PrometheusRule
14
14
@@ -18,8 +18,7 @@ You can define alerts by creating a `PrometheusRule` resource in your teams name
18
18
19
19
???+ note ".nais/alert.yaml"
20
20
21
-
```yaml
22
-
---
21
+
```yaml hl_lines="4-5 7 10 23"
23
22
apiVersion: monitoring.coreos.com/v1
24
23
kind: PrometheusRule
25
24
metadata:
@@ -48,22 +47,22 @@ You can define alerts by creating a `PrometheusRule` resource in your teams name
48
47
49
48
## 2. Activate the alert
50
49
=== "Automatically"
51
-
Add the file to your application repository, alongside `nais.yaml` to deploy with [NAIS github action](../../cicd/github-action.md).
50
+
Add the file to your application repository, alongside `nais.yaml` to deploy with [NAIS github action](../../github-action.md).
52
51
=== "Manually"
53
52
```bash
54
53
kubectl apply -f ./nais/alert.yaml
55
54
```
56
55
57
56
## 3. Verify your alert
58
-
You can see the alerts in the Alertmanager at `https://alertmanager.<ENVIRONMENT>.<<tenant()>>.cloud.nais.io/` and the defined rules in Prometheus at `https://prometheus.<ENVIRONMENT>.<<tenant()>>.cloud.nais.io/rules`
57
+
You can see the alerts in the Alertmanager at `https://alertmanager.<MY-ENV>.<<tenant()>>.cloud.nais.io/` and the defined rules in Prometheus at `https://prometheus.<MY-ENV>.<<tenant()>>.cloud.nais.io/rules`
59
58
60
59
## 4. Disable resolved (Optional)
61
60
62
61
A message will be automatically sent when the alert is resolved. In some cases this message may be unnecessary and can be disabled by adding the label `send_resolved: "false"`:
0 commit comments