Git
Standard Edition RequiredExecute as SQL style query against a github repo using mergestat-lite.
github-check.yamlapiVersion: canaries.flanksource.com/v1
kind: Canary
metadata:
name: github-pass
spec:
schedule: "@every 5m"
github:
- query: "SELECT * FROM commits('https://github.com/flanksource/commons')"
name: github-check
test:
expr: size(results) > 0
githubToken:
valueFrom:
secretKeyRef:
name: github-token
key: GITHUB_TOKEN
Field | Description | Scheme |
---|---|---|
githubToken* | Github Personal Access Token | |
name* | Name of the check, must be unique within the canary |
|
query* | Query to be executed. See mergestat-lite for syntax |
|
description | Description for the check |
|
display | Expression to change the formatting of the display | |
icon | Icon for overwriting default icon on the dashboard | |
labels | Labels for check | map[string]string |
metrics | Metrics to export from | |
test | Evaluate whether a check is healthy | |
transform | Transform data from a check into multiple individual checks |