Skip to main content

MongoDB

The Mongo check tries to connect to a specified Mongo Database to ensure connectivity.

icmp.yaml
apiVersion: 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
FieldDescriptionScheme
name*

Name of the check, must be unique within the canary

string

url*

MongoDB connection-string e.g. mongodb://:27017/?authSource=admin

password

EnvVar

username

EnvVar

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]

markFailOnEmpty

If a transformation or datasource returns empty results, the check should fail

boolean

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