Skip to 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
  mongodb:
    - name: mongo password
      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
Field Description Scheme Required
name Name of the check string
auth.username Username Authentication Yes
auth.password Password Authentication Yes
connection Connection string to connect to the Mongo server, can use $(username) and $(password) to replace values string Yes
description Description for the check string
icon Icon for overwriting default icon on the dashboard string