/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
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
  creationTimestamp: null
  labels:
    prometheus: k8s
    role: alert-rules
    app.kubernetes.io/instance: breezy-site
  name: syncer-rules
  namespace: breezy
spec:
  groups:
  - name: breezy-syncer.rules
    rules:
    - alert: BreezyImportNotRunning
      expr: ((time() - job_last_success_unixtime{exported_job="breezy-lp-import"}) / 3600) > 48
      for: 2h
      annotations:
        summary: breezy lp import not running
    - alert: BreezyGitPushNotRunning
      expr: ((time() - job_last_success_unixtime{exported_job="breezy-sync-git"}) / 3600) > 48
      for: 2h
      annotations:
        summary: breezy push to git not running