-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #141 from K-Phoen/new-alerts
Bootstrap new alerting support
- Loading branch information
Showing
157 changed files
with
7,885 additions
and
4,210 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
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
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
|
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,34 @@ | ||
apiVersion: k8s.kevingomez.fr/v1 | ||
kind: GrafanaDashboard | ||
metadata: | ||
name: dark-graphite-query | ||
annotations: | ||
dark/folder: DARK | ||
|
||
spec: | ||
title: Dark with graphite query | ||
editable: true | ||
shared_crosshair: true | ||
tags: [dark, graphite, generated] | ||
auto_refresh: 5s | ||
time: [now-1h, now] | ||
|
||
rows: | ||
- name: Overview | ||
panels: | ||
- timeseries: | ||
title: Stats count | ||
datasource: Graphite | ||
targets: | ||
- graphite: | ||
query: 'aliasByMetric(stats_counts.*.*)' | ||
alert: | ||
summary: 'Some graphite-based alert' | ||
description: "Very description, much wow" | ||
targets: | ||
- graphite: | ||
ref: A | ||
query: 'aliasByMetric(stats_counts.*.*)' | ||
lookback: 5m | ||
if: | ||
- { avg: A, above: 0 } |
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,41 @@ | ||
apiVersion: k8s.kevingomez.fr/v1 | ||
kind: GrafanaDashboard | ||
metadata: | ||
name: dark-loki-query | ||
annotations: | ||
dark/folder: DARK | ||
|
||
spec: | ||
title: Dark with loki query | ||
editable: true | ||
shared_crosshair: true | ||
tags: [dark, loki, generated] | ||
auto_refresh: 5s | ||
time: [now-1h, now] | ||
|
||
rows: | ||
- name: Overview | ||
panels: | ||
- timeseries: | ||
title: Logs ingestion rate | ||
datasource: Loki | ||
span: 12 | ||
targets: | ||
- loki: | ||
query: 'sum(rate({app="loki"}[$__interval])) by (app)' | ||
legend: '{{ app }}' | ||
alert: | ||
summary: 'No logs ingested on loki' | ||
targets: | ||
- loki: | ||
ref: A | ||
query: 'count_over_time({app="loki"}[5m])' | ||
lookback: 5m | ||
if: | ||
- { avg: A, below: 0 } | ||
- logs: | ||
title: Loki logs explorer | ||
datasource: Loki | ||
span: 12 | ||
targets: | ||
- loki: { query: "{app=\"loki\"}" } |
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,48 @@ | ||
apiVersion: k8s.kevingomez.fr/v1 | ||
kind: GrafanaDashboard | ||
metadata: | ||
name: dark-stackdriver-query | ||
annotations: | ||
dark/folder: DARK | ||
|
||
spec: | ||
title: Dark with stackdriver query | ||
editable: true | ||
shared_crosshair: true | ||
tags: [dark, stackdriver, generated] | ||
auto_refresh: 5s | ||
time: [now-1h, now] | ||
|
||
rows: | ||
- name: Overview | ||
panels: | ||
- timeseries: | ||
title: CPU utilization per database | ||
datasource: Stackdriver | ||
axis: { unit: percentunit } | ||
targets: | ||
- stackdriver: | ||
type: gauge | ||
metric: cloudsql.googleapis.com/database/cpu/utilization | ||
group_by: [resource.label.database_id] | ||
legend: '{{ resource.label.database_id }}' | ||
aggregation: mean | ||
alignment: | ||
method: mean | ||
period: stackdriver-auto | ||
alert: | ||
summary: 'High CPU usage' | ||
targets: | ||
- stackdriver: | ||
ref: A | ||
lookback: 5m | ||
type: gauge | ||
metric: cloudsql.googleapis.com/database/cpu/utilization | ||
group_by: [ resource.label.database_id ] | ||
legend: '{{ resource.label.database_id }}' | ||
aggregation: mean | ||
alignment: | ||
method: mean | ||
period: stackdriver-auto | ||
if: | ||
- { avg: A, above: 0.75 } |
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.