All Projects → percona → Mongodb_exporter

percona / Mongodb_exporter

Licence: apache-2.0
A Prometheus exporter for MongoDB including sharding, replication and storage engines

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Mongodb exporter

prometheus-hetzner-sd
Prometheus Service Discovery for Hetzner
Stars: ✭ 15 (-97.51%)
Mutual labels:  prometheus, prometheus-exporter
Kminion
KMinion is a feature-rich Prometheus exporter for Apache Kafka written in Go. It is lightweight and highly configurable so that it will meet your requirements.
Stars: ✭ 274 (-54.49%)
Mutual labels:  prometheus, prometheus-exporter
K8s
Important production-grade Kubernetes Ops Services
Stars: ✭ 253 (-57.97%)
Mutual labels:  mongodb, prometheus
gobgp exporter
Prometheus Exporter for GoBGP
Stars: ✭ 15 (-97.51%)
Mutual labels:  prometheus, prometheus-exporter
Haproxy exporter
Simple server that scrapes HAProxy stats and exports them via HTTP for Prometheus consumption
Stars: ✭ 465 (-22.76%)
Mutual labels:  prometheus, prometheus-exporter
geoip-exporter
GeoIP exporter for Prometheus
Stars: ✭ 27 (-95.51%)
Mutual labels:  prometheus, prometheus-exporter
Kube State Metrics
Add-on agent to generate and expose cluster-level metrics.
Stars: ✭ 3,433 (+470.27%)
Mutual labels:  prometheus, prometheus-exporter
aws-ec2-sg-exporter
A dockerized Prometheus exporter that compares desired/wanted IPv4/IPv6 CIDR against currently applied inbound CIDR rules in your security group(s).
Stars: ✭ 23 (-96.18%)
Mutual labels:  prometheus, prometheus-exporter
Pihole Exporter
A Prometheus exporter for PI-Hole's Raspberry PI ad blocker
Stars: ✭ 352 (-41.53%)
Mutual labels:  prometheus, prometheus-exporter
Zenko
Zenko is the open source multi-cloud data controller: own and keep control of your data on any cloud.
Stars: ✭ 353 (-41.36%)
Mutual labels:  mongodb, prometheus
resoto
Resoto - Find leaky resources, manage quota limits, detect drift, and clean up!
Stars: ✭ 562 (-6.64%)
Mutual labels:  prometheus, prometheus-exporter
Statping
Status Page for monitoring your websites and applications with beautiful graphs, analytics, and plugins. Run on any type of environment.
Stars: ✭ 5,806 (+864.45%)
Mutual labels:  prometheus, prometheus-exporter
loki exporter
Prometheus exporter to collect metrics and run queries against the Grafana Loki API.
Stars: ✭ 28 (-95.35%)
Mutual labels:  prometheus, prometheus-exporter
sa-prometheus-exporters
Collection of the preselected prometheus exporters to be installed on a target nodes
Stars: ✭ 17 (-97.18%)
Mutual labels:  prometheus, prometheus-exporter
s3 exporter
Exports Prometheus metrics about S3 buckets and objects
Stars: ✭ 65 (-89.2%)
Mutual labels:  prometheus, prometheus-exporter
Exporterhub.io
A Curated List of Prometheus Exporters
Stars: ✭ 252 (-58.14%)
Mutual labels:  prometheus, prometheus-exporter
deluge exporter
Prometheus exporter for the Deluge BitTorrent client
Stars: ✭ 24 (-96.01%)
Mutual labels:  prometheus, prometheus-exporter
prometheus-mysql-exporter
Prometheus MySQL Exporter
Stars: ✭ 33 (-94.52%)
Mutual labels:  prometheus, prometheus-exporter
Consul exporter
Exporter for Consul metrics
Stars: ✭ 323 (-46.35%)
Mutual labels:  prometheus, prometheus-exporter
Nginx Vts Exporter
(NOT MAINTAINED) Simple server that scrapes Nginx vts stats and exports them via HTTP for Prometheus consumption
Stars: ✭ 477 (-20.76%)
Mutual labels:  prometheus, prometheus-exporter

MongoDB exporter

Release Build Status codecov.io Code Coverage Go Report Card CLA assistant

This is the new MongoDB exporter implementation that handles ALL metrics exposed by MongoDB monitoring commands. This new implementation loops over all the fields exposed in diagnostic commands and tries to get data from them.

Currently, these metric sources are implemented:

  • $collStats
  • $indexStats
  • getDiagnosticData
  • replSetGetStatus
  • serverStatus
Old Percona MongoDB exporter
old 0.1x.y version (ex master branch) is moved to the release-0.1x branch

Flags

Flag Description Example
-h, --help Show context-sensitive help
--compatible-mode Exposes new metrics in the new and old format at the same time
--mongodb.collstats-colls List of comma separated databases.collections to get stats --mongodb.collstats-colls=testdb.testcol1,testdb.testcol2
--mongodb.indexstats-colls List of comma separated database.collections to get index stats --mongodb.indexstats-colls=db1.col1,db1.col2
--mongodb.dsn MongoDB connection URI --mongodb.dsn=mongodb://user:[email protected]:27017/admin?ssl=true
--expose-path Metrics expose path --expose-path=/metrics_new
--expose-port HTTP expose server port --expose-port=9216
-D, --debug Enable debug mode
--version Show version and exit

Build the exporter

The build process uses the dockerized version of goreleaser so you don't need to install Go. Just run make build and the new binaries will be generated under the build directory.

├── build
│ ├── config.yaml
│ ├── mongodb_exporter_7c73946_checksums.txt
│ ├── mongodb_exporter-7c73946.darwin-amd64.tar.gz
│ ├── mongodb_exporter-7c73946.linux-amd64.tar.gz
│ ├── mongodb_exporter_darwin_amd64
│ │ └── mongodb_exporter <--- MacOS binary
│ └── mongodb_exporter_linux_amd64
│ └── mongodb_exporter <--- Linux binary

Build the exporter

The build process uses the dockerized version of goreleaser so you don't need to install Go. Just run make build and the new binaries will be generated under the build directory.

├── build
│ ├── config.yaml
│ ├── mongodb_exporter_7c73946_checksums.txt
│ ├── mongodb_exporter-7c73946.darwin-amd64.tar.gz
│ ├── mongodb_exporter-7c73946.linux-amd64.tar.gz
│ ├── mongodb_exporter_darwin_amd64
│ │ └── mongodb_exporter <--- MacOS binary
│ └── mongodb_exporter_linux_amd64
│ └── mongodb_exporter <--- Linux binary

Running the exporter

If you built the exporter using the method mentioned in the previous section, the generated binaries are in mongodb_exporter_linux_amd64/mongodb_exporter or mongodb_exporter_darwin_amd64/mongodb_exporter

Example

mongodb_exporter_linux_amd64/mongodb_exporter --mongodbdsn=mongodb://127.0.0.1:17001

Enabling collstats metrics gathering

--mongodb.collstats-colls receives a list of databases and collections to monitor using collstats. Usage example: --mongodb.collstats-colls=database1.collection1,database2.collection2

mongodb_exporter_linux_amd64/mongodb_exporter --mongodbdsn=mongodb://127.0.0.1:17001 --mongodb.collstats-colls=db1.c1,db2.c2

Enabling compatibility mode.

When compatibility mode is enabled by the --compatible-mode, the exporter will expose all new metrics with the new naming and labeling schema and at the same time will expose metrics in the version 1 compatible way. For example, if compatibility mode is enabled, the metric mongodb_ss_wt_log_log_bytes_written (new format)

# HELP mongodb_ss_wt_log_log_bytes_written serverStatus.wiredTiger.log.
# TYPE mongodb_ss_wt_log_log_bytes_written untyped
mongodb_ss_wt_log_log_bytes_written 2.6208e+06

will be also exposed as mongodb_mongod_wiredtiger_log_bytes_total with the unwritten label.

HELP mongodb_mongod_wiredtiger_log_bytes_total mongodb_mongod_wiredtiger_log_bytes_total
# TYPE mongodb_mongod_wiredtiger_log_bytes_total untyped
mongodb_mongod_wiredtiger_log_bytes_total{type="unwritten"} 2.6208e+06

Submitting Bug Reports and adding new functionality

please see Contribution Guide

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].