Skip to main content

Git

Standard Edition Required

Execute as SQL style query against a github repo using mergestat-lite.

github-check.yaml
apiVersion: 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
FieldDescriptionScheme
githubToken*

Github Personal Access Token

EnvVar

name*

Name of the check, must be unique within the canary

string

query*

Query to be executed. See mergestat-lite for syntax

string

description

Description for the check

string

display

Expression to change the formatting of the display

Expression

icon

Icon for overwriting default icon on the dashboard

Icon

labels

Labels for check

map[string]string

metrics

Metrics to export from

[]Metrics

test

Evaluate whether a check is healthy

Expression

transform

Transform data from a check into multiple individual checks

Expression