Skip to main content

MongoDB

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

apiVersion: canaries.flanksource.com/v1
kind: Canary
metadata:
name: mongo-check
spec:
interval: 30
spec:
mongodb:
- connection: mongodb://$(username):$(password)@mongo.default.svc:27017/?authSource=admin
description: mongo ping
auth:
username:
valueFrom:
secretKeyRef:
name: mongo-credentials
key: USERNAME
password:
valueFrom:
secretKeyRef:
name: mongo-credentials
key: PASSWORD
dns:
- query: mongo.default.svc

FieldDescriptionSchemeRequired
authUsername and password value, configMapKeyRef or SecretKeyRef for Mongo serverAuthentication
connectionConnection string to connect to the Mongo serverstringYes
descriptionDescription for the checkstring
iconIcon for overwriting default icon on the dashboardstring
nameName of the checkstring

Scheme Reference

Authentication

FieldDescriptionSchemeRequired
passwordSet password for authentication using string, configMapKeyRef, or SecretKeyRef.kommons.EnvVarYes
usernameSet username for authentication using string, configMapKeyRef, or SecretKeyRef.kommons.EnvVarYes