MSSQL
This check will try to connect to a specified MsSQL database, run a query against it and verify the results.
apiVersion: canaries.flanksource.com/v1
kind: Canary
metadata:
name: mssql-check
spec:
interval: 30
mssql:
- name: mssql pass
connection: "server=mssql.default.svc;user id=$(username);password=$(password);port=1433;database=master"
auth:
username:
valueFrom:
secretKeyRef:
name: mssql-credentials
key: USERNAME
password:
valueFrom:
secretKeyRef:
name: mssql-credentials
key: PASSWORD
query: <insert-query>
results: 1
Field | Description | Scheme | Required |
---|---|---|---|
auth |
Username and password value, configMapKeyRef or SecretKeyRef for Postgres server | Authentication | |
connection |
Connection string to connect to the MsSQL server | string | Yes |
description |
Description for the check | string | |
display |
Template to display query results in text (overrides default bar format for UI) | Template | |
icon |
Icon for overwriting default icon on the dashboard | string | |
name |
Name of the check | string | |
query |
query that needs to be executed on the server | string | Yes |
results |
Number rows to check for | int | Yes |
test |
Template to test the result against | Template |