Skip to content

Settings File

Lujeni edited this page Dec 16, 2015 · 5 revisions

Settings

  • You can find the default settings in the mongoop folder of the repository, look at the default_settings.py file.
  • Mongoop CLI support the YAML format and PYTHON format.

settings.yaml

mongodb_host: localhost

mongodb_port: 27017

mongodb_credentials:

mongodb_options:

frequency: 10

threshold_timeout: 60

triggers:
  mongodb:
    threshold: 5
    database: mongoop
    collection: history

  nsca:
    threshold: 5
    monitoring_server: nagios.foo.com
    service: mongoop

  nsca:
    threshold: 60
    monitoring_server: nagios.foo.com
    service: mongoop
    status: critical

  email:
    threshold: 60
    subject: 'Mongoop report'
    from: 'mongoop@localhost'
    to: 'root'
    smtp_host: 'localhost'

  sentry:
    threshold: 80
    dsn: 'https://898weqe899qweqeq8:wqeqw8888@app.getsentry.com/76885'
    message: 'mongoop slow operation :: {opid}'
    level: info

  killer:
    threshold: 120
Clone this wiki locally