{"repo":"raffis/mongodb-query-exporter","free":true,"listed":false,"github":"https://github.com/raffis/mongodb-query-exporter","clone":"git clone https://github.com/raffis/mongodb-query-exporter.git","description":"Prometheus MongoDB aggregation query exporter","language":"Go","stars":110,"topics":["prometheus-exporter","metrics","mongodb","mongodb-query","mongodb-aggregation","prometheus"],"license":"MIT","category":"analytics","readme_excerpt":"Prometheus MongoDB query exporter MongoDB aggregation query exporter for Prometheus. Features Support for gauge metrics Pull and Push (Push is only supported for MongoDB = 3.6) Supports multiple MongoDB servers Metric caching support Note that this is not designed to be a replacement for the MongoDB exporter to instrument MongoDB internals. This application exports custom MongoDB metrics in the prometheus format based on the queries (aggregations) you want. Installation Get Prometheus MongoDB aggregation query exporter, either as a binaray from the latest release or packaged as a Docker image. Helm Chart For kubernetes users there is an official helm chart for the MongoDB query exporter. Please read the installation instructions here. Docker You can run the exporter using docker (This will start it using the example config provided in the example folder): Usage Use the -help flag to get help information. If you use MongoDB Authorization, best practices is to create a dedicated readonly user with access to all databases/collections required: 1. Create a user with ' read ' on your database, like the following ( replace username/password/db! ): 2. Set environment variable MONGODB URI before starting the exporter: Note: The URI is substituted using env variables ${MY ENV} , given that you may also pass credentials from other env variables. See the example bellow. If you use x.509 Certificates to Authenticate Clients, pass in username and authMechanism via connection options to th","default_branch":null,"files":null,"tree":[],"storefront":"/r/raffis","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/raffis/mongodb-query-exporter/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}