-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4615d66
commit 613a713
Showing
11 changed files
with
212 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
global: | ||
resolve_timeout: 5m | ||
route: | ||
group_by: ['alertname'] | ||
repeat_interval: 1m | ||
receiver: 'email' | ||
receivers: | ||
- name: 'email' | ||
email_configs: | ||
- to: 'test@gmail.com' | ||
from: 'test@gmail.com' | ||
smarthost: smtp.gmail.com:587 | ||
auth_username: 'test@gmail.com' | ||
auth_identity: 'test@gmail.com' | ||
auth_password: 'test' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
groups: | ||
- name: Service availability | ||
rules: | ||
- alert: Metadata service down | ||
expr: up{service="metadata"} == 0 | ||
labels: | ||
severity: warning | ||
annotations: | ||
title: Metadata service is down | ||
description: Failed to scrape {{ $labels.service }} service on {{ $labels.instance }}. Service possibly down. | ||
- alert: Rating service down | ||
expr: up{service="rating"} == 0 | ||
labels: | ||
severity: warning | ||
annotations: | ||
title: Metadata service is down | ||
description: Failed to scrape {{ $labels.service }} service on {{ $labels.instance }}. Service possibly down. | ||
- alert: Movie service down | ||
expr: up{service="movie"} == 0 | ||
labels: | ||
severity: warning | ||
annotations: | ||
title: Metadata service is down | ||
description: Failed to scrape {{ $labels.service }} service on {{ $labels.instance }}. Service possibly down. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
global: | ||
scrape_interval: 15s | ||
scrape_timeout: 10s | ||
evaluation_interval: 15s | ||
alerting: | ||
alertmanagers: | ||
- follow_redirects: true | ||
enable_http2: true | ||
scheme: http | ||
timeout: 10s | ||
api_version: v2 | ||
static_configs: | ||
- targets: | ||
- host.containers.internal:9093 | ||
rule_files: | ||
- alerts.rules | ||
scrape_configs: | ||
- job_name: prometheus | ||
honor_timestamps: true | ||
scrape_interval: 15s | ||
scrape_timeout: 10s | ||
metrics_path: /metrics | ||
scheme: http | ||
follow_redirects: true | ||
enable_http2: true | ||
static_configs: | ||
- targets: | ||
- localhost:9090 | ||
- targets: | ||
- host.containers.internal:8091 | ||
labels: | ||
service: metadata | ||
- targets: | ||
- host.containers.internal:8092 | ||
labels: | ||
service: rating | ||
- targets: | ||
- host.containers.internal:8093 | ||
labels: | ||
service: movie |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.