/k8s

To get this branch, use:
bzr branch https://code.breezy-vcs.org/k8s
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
  creationTimestamp: null
  labels:
    prometheus: k8s
    role: alert-rules
    app.kubernetes.io/instance: breezy-site
  name: breezy-rules
spec:
  groups:
  - name: breezy.rules
    rules:
    - alert: BreezyCodeNotWorking
      expr: probe_http_status_code{instance="https://code.breezy-vcs.org/"} != 200
      for: 2h
      annotations:
        summary: code.breezy-vcs.org is not working
    - alert: BreezySiteNotWorking
      expr: probe_http_status_code{instance="https://www.breezy-vcs.org"} != 200
      for: 2h
      annotations:
        summary: www.breezy-vcs.org is not working
    - alert: BreezyGitHubSyncNotRunning
      expr: ((time() - job_last_success_unixtime{exported_job="sync-github"}) / 3600) > 48
      for: 2h
      annotations:
        summary: sync-github not running
    - alert: BreezyBranchSyncNotRunning
      expr: ((time() - job_last_success_unixtime{exported_job="breezy-lp-import"}) / 3600) > 48
      for: 2h
      annotations:
        summary: breezy-lp-import not running
    - alert: BreezyBranchPushNotRunning
      expr: ((time() - job_last_success_unixtime{exported_job="code.breezy-vcs.org-push"}) / 3600) > 48
      for: 2h
      annotations:
        summary: code.breezy-vcs.org pushes not running