• Stars
    star
    353
  • Rank 120,322 (Top 3 %)
  • Language
    Go
  • License
    MIT License
  • Created almost 10 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

MongoDB exporter for prometheus.io

Mongodb Exporter

MongoDB exporter for prometheus.io, written in go.

screenshot

Grafana Dashboard

Installing

Download a release

Building

Requires glide for dependency management

git clone [email protected]:dcu/mongodb_exporter.git $GOPATH/src/github.com/dcu/mongodb_exporter
cd $GOPATH/src/github.com/dcu/mongodb_exporter
make build
./mongodb_exporter -h

Building Docker image

Build the Docker image

docker build -t mongodb_exporter .

Verify Docker image runs

docker run --rm mongodb_exporter -h

The mongodb url can contain credentials which can be seen by other users on the system when passed in as command line flag. To pass in the mongodb url securely, you can set the MONGODB_URL environment variable instead.

Available groups of data

Name Description
asserts The asserts group reports the number of asserts on the database. While assert errors are typically uncommon, if there are non-zero values for the asserts, you should check the log file for the mongod process for more information. In many cases these errors are trivial, but are worth investigating.
durability The durability group contains data regarding the mongod's journaling-related operations and performance. mongod must be running with journaling for these data to appear in the output of "serverStatus".
background_flushing mongod periodically flushes writes to disk. In the default configuration, this happens every 60 seconds. The background_flushing group contains data regarding these operations. Consider these values if you have concerns about write performance and journaling.
connections The connections groups contains data regarding the current status of incoming connections and availability of the database server. Use these values to assess the current load and capacity requirements of the server.
extra_info The extra_info group holds data collected by the mongod instance about the underlying system. Your system may only report a subset of these fields.
global_lock The global_lock group contains information regarding the database’s current lock state, historical lock status, current operation queue, and the number of active clients.
index_counters The index_counters groupp reports information regarding the state and use of indexes in MongoDB.
network The network group contains data regarding MongoDB’s network use.
op_counters The op_counters group provides an overview of database operations by type and makes it possible to analyze the load on the database in more granular manner. These numbers will grow over time and in response to database use. Analyze these values over time to track database utilization.
op_counters_repl The op_counters_repl group, similar to the op_counters data structure, provides an overview of database replication operations by type and makes it possible to analyze the load on the replica in more granular manner. These values only appear when the current host has replication enabled. These values will differ from the opcounters values because of how MongoDB serializes operations during replication. These numbers will grow over time in response to database use. Analyze these values over time to track database utilization.
memory The memory group holds information regarding the target system architecture of mongod and current memory use
locks The locks group containsdata that provides a granular report on MongoDB database-level lock use
metrics The metrics group holds a number of statistics that reflect the current use and state of a running mongod instance.
cursors The cursors group contains data regarding cursor state and use. This group is disabled by default because it is deprecated in mongodb >= 2.6.
top The top group provides an overview of database operations by type for each database collections and makes it possible to analyze the load on the database in more granular manner. These numbers will grow over time and in response to database use. Analyze these values over time to track database utilization. For more information see the official documentation.

For more information see the official documentation.

Roadmap

More Repositories

1

gin-scaffold

Gin scaffold is CLI to generate scaffolds for the gin gonic framework.
Go
63
star
2

go-authy

Go lang library for Authy API
Go
36
star
3

nanite-rails

easy nanite integration with rails
Ruby
32
star
4

magent

simple job queue system based on mongodb
Ruby
27
star
5

mongomapper_ext

mongomapper extensions
Ruby
26
star
6

onetouch-ssh

Authy OneTouch for SSH
Go
18
star
7

mongoid_ext

Mongoid Plugins
Ruby
14
star
8

godl

godl: Go Deep Learning framework
Go
14
star
9

http-einhorn

Go library to run http servers on top of stripe's einhorn.
Go
10
star
10

multiauth

authentication for rails 3 based on omniauth
Ruby
8
star
11

htmlconverter

library/application to convert html to PDF, SVG or PNG
Ruby
8
star
12

gem2deb

convert ruby gem to debian package
Ruby
8
star
13

git-http-server

Git HTTP server and library
ApacheConf
6
star
14

nanite-rails-example

nanite rails example
JavaScript
5
star
15

gitd

Git server written in go
Go
4
star
16

xlsx

Package to parse simple xlsx files
Go
3
star
17

hmac-signature

HMAC signature example
Go
3
star
18

optimize-lambda-cost

Analyzes AWS Lambda logs and provides suggestions for memory usage
Go
3
star
19

mongobile

admin ui for mongodb based on jquery mobile
JavaScript
3
star
20

rae

library to access to rae.es
Ruby
3
star
21

1p

1Password cli
Go
3
star
22

rr2fetcher

Download files from a rapidshare free account
Ruby
3
star
23

elvish-completer-generator

Roff
2
star
24

message_hub

A simple gem to fetch/send messages from/to facebook, twitter and gmail.
Ruby
2
star
25

fast_gem

load ruby gems faster
Ruby
2
star
26

closecheck

Static code analyzer for Go which checks whether a return value that implements io.Closer is correctly closed
Go
2
star
27

pronghorn

Minimal HTTP server for Rack applications
Ruby
1
star
28

hipbot

Bot for hipchat written in Go
Go
1
star
29

apex-slack

Simple package to build bots on top of Apex (AWS Lambda and API Gateway)
Go
1
star
30

lyrics

mirror of amarok lyrics script with ruby1.9 and gem support
Ruby
1
star
31

mongoid-xapian

xapian for mongoid
Ruby
1
star
32

verifyiface

Verify interface compliance as described here: https://github.com/uber-go/guide/blob/master/style.md#verify-interface-compliance
Go
1
star
33

capn-hook

Runs a manifest with a list of commands when a git hook is triggered
Go
1
star
34

plasmoid

kde plasmoid generator written in ruby
Ruby
1
star
35

splix-driver-samsung

C++
1
star
36

soapclient

SOAP Client for Go
Go
1
star