stp-statusboard/stp-statusboard-mongolab

MongoLab status widget for stp-statusboard

0.2.0 2015-05-13 13:49 UTC

This package is not auto-updated.

Last update: 2021-04-30 23:18:41 UTC


README

Config

You can use one (or both) widgets.

-
    id: mongolab2
    provider: \StpBoard\MongoLab\MongoLabControllerProvider
    refresh: 60
    width: 4
    params:
      action: status
      name: MongoDB Status
      
-
    id: mongolab1
    provider: \StpBoard\MongoLab\MongoLabControllerProvider
    refresh: 60
    width: 4
    params:
      action: connections
      name: MongoDB Connections
      cluster: CLUSTER
      apiKey: API_KEY
      threshold_warning: THRESHOLD_WARNING
      threshold_error: THRESHOLD_ERROR

Values for THRESHOLD_WARNING and THRESHOLD_ERROR are optional. If options not passed, widget box will change its color to yellow, when number of items is greater than 50, and it will change its color to red when number of items is greater than 70.