Skip to content

Commit

Permalink
Add example configs to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Tischner committed Dec 17, 2019
1 parent a284bc3 commit 28a31fb
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,32 @@ You can now scrape the metrics directly via prometheus kubernetes discovery, ann
| prometheus.io/port | 2112 |
| prometheus.io/path | /metrics |

## Example StatefulSet config
```
apiVersion: apps/v1
kind: StatefulSet
spec:
template:
metadata:
annotations:
backup.velero.io/backup-volumes: data,logging
backup.velero.io/backup-volumes-excludes: tmp
```

## Example Alertmanager config
```
alert: Velero PVC Check
for: 10m
expr: |
backupmonitor_missing != 0
labels:
severity: warning
annotations:
text: >-
{{ $labels.instance }} {{ $labels.namespace }} {{ $labels.owner_kind }}/{{ $labels.owner_name }}
pvc backup is not configured or deactivated.
```

## Build
```console
CGO_ENABLED=0 go build .
Expand Down

0 comments on commit 28a31fb

Please sign in to comment.