PROMETHEUS-MONGODB-EXPORTER(1)

πŸ’… PROMETHEUS-MONGODB-EXPORTER πŸ’…

okay so bestie, welcome to the PROMETHEUS-MONGODB-EXPORTER(1) page β€” yes, section 1, the User Commands girlies, we're in the big leagues. this is the manual for prometheus-mongodb-exporter, and i am going to walk you through every single flag like we're texting at 2am. no skips. periodt. ✨


✨ NAME ✨

prometheus-mongodb-exporter β€” Prometheus exporter for MongoDB πŸ¦‹


🌸 DESCRIPTION 🌸

so basically: prometheus-mongodb-exporter is your little bridge between MongoDB and Prometheus. it's giving main character observability energy. πŸ’œ


πŸŽ€ Usage of prometheus-mongodb-exporter πŸŽ€

here come the flags, and there are a lot of them, so buckle up. every one is listed below, exactly as it lives in the code, i'm not gatekeeping a single one. πŸ’–

  • -alsologtostderr β€” log to standard error as well as files (both, bestie, it does both)
  • -auth.pass string β€” Password for basic auth.
  • -auth.user string β€” Username for basic auth.
  • -groups.enabled string β€” comma-separated list of groups to use; for more info see: docs.mongodb.org/manual/reference/command/serverStatus/
  • -log_backtrace_at value β€” when logging hits line file:N, emit a stack trace
  • -log_dir string β€” if it's non-empty, write log files in this directory
  • -logtostderr β€” log to standard error instead of files
  • -mongodb.collect.collection β€” collect MongoDB collection metrics
  • -mongodb.collect.connpoolstats β€” collect MongoDB connpoolstats
  • -mongodb.collect.database β€” collect MongoDB database metrics
  • -mongodb.collect.oplog β€” collect MongoDB Oplog status (default true)
  • -mongodb.collect.profile β€” collect MongoDB profile metrics
  • -mongodb.collect.replset β€” collect MongoDB replica set status (default true)
  • -mongodb.collect.top β€” collect MongoDB Top metrics
  • -mongodb.mechanism string β€” auth mechanism to connect to MongoDB (ie: MONGODB-X509)
  • -mongodb.tls-ca string β€” Path to PEM file that contains the CAs that are trusted for server connections.
    • if provided: MongoDB servers connecting to should present a certificate signed by one of this CAs.
    • if not provided: system default CAs are used.
  • -mongodb.tls-cert string β€” Path to PEM file that contains the certificate (and optionally also the private key in PEM format).
    • this should include the whole certificate chain.
    • if provided: the connection will be opened via TLS to the MongoDB server.
  • -mongodb.tls-disable-hostname-validation β€” do hostname validation for server connection.
  • -mongodb.tls-private-key string β€” Path to PEM file that contains the private key (if it's not contained in the mongodb.tls-cert file).
  • -mongodb.uri string β€” MongoDB URI, format: [mongodb://] [user:pass@] host1[:port1] [,host2[:port2],...] [/database] [?options]. Note: default "mongodb://localhost:27017"
  • -mongodb.username string β€” Username to connect to MongoDB
  • -stderrthreshold value β€” logs at or above this threshold go to stderr
  • -v value β€” log level for V logs
  • -version β€” print mongodb_exporter version
  • -vmodule value β€” comma-separated list of pattern=N settings for file-filtered logging
  • -web.listen-address string β€” address on which to expose metrics and web interface. (default ":9001")
  • -web.metrics-path string β€” path under which to expose metrics. (default "/metrics")
  • -web.tls-cert string β€” Path to PEM file that contains the certificate (and optionally also the private key in PEM format).
    • this should include the whole certificate chain.
    • if provided: the web socket will be a HTTPS socket.
    • if not provided: only HTTP.
  • -web.tls-client-ca string β€” Path to PEM file that contains the CAs that are trusted for client connections.
    • if provided: connecting clients should present a certificate signed by one of this CAs.
    • if not provided: every client will be accepted. πŸ‘€
  • -web.tls-private-key string β€” Path to PEM file that contains the private key (if it's not contained in the web.tls-cert file).
fr fr, that's every single flag. not one got left behind. πŸ’…

πŸ‘‘ AUTHOR πŸ‘‘

this manpage was written by Nilesh Patra for the Debian distribution, and it can be used for any other usage of the program. absolute legend behaviour, we love to see it. 🫢


and that's the whole thing, bestie! this page is for prometheus-mongodb-exporter 1.0...., dated May 2020 β€” go forth and export those metrics. you ate. no cap. πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈ