MongoDB
The Mongo check tries to connect to a specified Mongo Database to ensure connectivity.
icmp.yamlapiVersion: canaries.flanksource.com/v1
kind: Canary
metadata:
name: mongo
namespace: canaries
spec:
schedule: "@every 5m"
mongodb:
- url: mongodb://$(username):$(password)@mongo.canaries.svc.cluster.local:27017/?authSource=admin
name: mongo ping check
username:
value: mongoadmin
password:
value: secret
Field | Description | Scheme |
---|---|---|
name* | Name of the check, must be unique within the canary |
|
url* | MongoDB connection-string e.g. | |
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 | |
username | ||
password |