MongoDB
The MongoDB check connects to MongoDB and pings the primary to verify availability.
mongodb.yamlapiVersion: canaries.flanksource.com/v1
kind: Canary
metadata:
name: mongo
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 |
|
connection | Connection reference or URL to use. Inline username and password can supply credentials when the check supports them | |
password | ||
url | MongoDB connection string, such as |
|
username | ||
dependsOn | Checks that must complete before this check runs |
|
description | Description for the check |
|
icon | Icon for overwriting default icon on the dashboard | |
labels | Labels for check |
|
markFailOnEmpty | If a transformation or datasource returns empty results, the check should fail |
|
metrics | Metrics to export from | |
namespace | Namespace to insert the check result into when it differs from the canary namespace |
|
transformDeleteStrategy | Status to apply to transformed checks when the source check no longer returns them |
|