Giter VIP home page Giter VIP logo

sensu-plugins-mongodb-stats's Introduction

sensu-plugins-mongodb-stats

Collect stats from server status and include/exclude metrics based on regex/lists

  • help
$  ./metrics-mongodb-server-status.rb --help
Collect metrics from MongoDB server status. Use include and exclude list/regex to limit the metrics returned
You can use both lists and filters to restrict the metrics to collect
The processing order defaults to: list_include filter_include filter_exclude list_exclude -- but it can be managed using --filter_order
  • Simple run with filters
$  ./metrics-mongodb-server-status.rb --filter-include '.*repl\..*,.*ops.*,.*plan.*' --filter-exclude '.*failed$,.*readersCreated$' --host localhost --port 27017 --prefix ${HOSTNAME}.a_random_prefix
miniserver.mydomain.a_random_prefix.standalone.other.miniserver.metrics.commands.planCacheClear.total 0 1476313862
miniserver.mydomain.a_random_prefix.standalone.other.miniserver.metrics.commands.planCacheClearFilters.total 0 1476313862
miniserver.mydomain.a_random_prefix.standalone.other.miniserver.metrics.commands.planCacheListFilters.total 0 1476313862
miniserver.mydomain.a_random_prefix.standalone.other.miniserver.metrics.commands.planCacheListPlans.total 0 1476313862
miniserver.mydomain.a_random_prefix.standalone.other.miniserver.metrics.commands.planCacheListQueryShapes.total 0 1476313862
miniserver.mydomain.a_random_prefix.standalone.other.miniserver.metrics.commands.planCacheSetFilter.total 0 1476313862
miniserver.mydomain.a_random_prefix.standalone.other.miniserver.metrics.repl.apply.batches.num 0 1476313862
miniserver.mydomain.a_random_prefix.standalone.other.miniserver.metrics.repl.apply.batches.totalMillis 0 1476313862
miniserver.mydomain.a_random_prefix.standalone.other.miniserver.metrics.repl.apply.ops 0 1476313862
miniserver.mydomain.a_random_prefix.standalone.other.miniserver.metrics.repl.buffer.count 0 1476313862
miniserver.mydomain.a_random_prefix.standalone.other.miniserver.metrics.repl.buffer.maxSizeBytes 268435456 1476313862
miniserver.mydomain.a_random_prefix.standalone.other.miniserver.metrics.repl.buffer.sizeBytes 0 1476313862
miniserver.mydomain.a_random_prefix.standalone.other.miniserver.metrics.repl.network.bytes 0 1476313862
miniserver.mydomain.a_random_prefix.standalone.other.miniserver.metrics.repl.network.getmores.num 0 1476313862
miniserver.mydomain.a_random_prefix.standalone.other.miniserver.metrics.repl.network.getmores.totalMillis 0 1476313862
miniserver.mydomain.a_random_prefix.standalone.other.miniserver.metrics.repl.network.ops 0 1476313862
miniserver.mydomain.a_random_prefix.standalone.other.miniserver.metrics.repl.preload.docs.num 0 1476313862
miniserver.mydomain.a_random_prefix.standalone.other.miniserver.metrics.repl.preload.docs.totalMillis 0 1476313862
miniserver.mydomain.a_random_prefix.standalone.other.miniserver.metrics.repl.preload.indexes.num 0 1476313862
miniserver.mydomain.a_random_prefix.standalone.other.miniserver.metrics.repl.preload.indexes.totalMillis 0 1476313862
  • Run with filters and managing the order in which they are applied
$  ./metrics-mongodb-server-status.rb --filter_exclude '.*indexes.*' --filter_include '.*preload.*,.*Executor.*' --filter_order 'filter_exclude,filter_include,list_include,list_exclude' --host localhost --port 27017 --list_exclude 'metrics.queryExecutor.scannedObjects'
standalone.other.miniserver.metrics.queryExecutor.scanned 0 1476316515
standalone.other.miniserver.metrics.repl.preload.docs.num 0 1476316515
standalone.other.miniserver.metrics.repl.preload.docs.totalMillis 0 1476316515

sensu-plugins-mongodb-stats's People

Contributors

dezmodue avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.