prometheus.prometheus.mongodb_exporter role – Prometheus mongodb_exporter
Note
This role is part of the prometheus.prometheus collection (version 0.23.0).
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it use: ansible-galaxy collection install prometheus.prometheus
.
To use it in a playbook, specify: prometheus.prometheus.mongodb_exporter
.
Entry point main
– Prometheus mongodb_exporter
Synopsis
Deploy prometheus mongodb exporter using ansible
Parameters
Parameter |
Comments |
---|---|
Dictionary of users and password for basic authentication. Passwords are automatically hashed with bcrypt. |
|
Advanced Directory to install mongodb_exporter binary Default: |
|
URL of the mongodb_exporter binaries .tar.gz file Default: |
|
URL of the mongodb_exporter checksums file Default: |
|
List collectors from documantation. You can specify ‘all’ to enable all collectors |
|
List of databases.collections to get $collStats |
|
Disable collstats, dbstats, topmetrics and indexstats collector if there are more than <n> collections. 0=No limit Default: |
|
Enable old mongodb-exporter compatible metrics Choices:
|
|
Path to directory with mongodb_exporter configuration Default: |
|
Whether or not a direct connect should be made. Direct connections are not valid if multiple hosts are specified or an SRV URI is used Choices:
|
|
Enable autodiscover collections Choices:
|
|
Use global connection pool instead of creating new pool for each http request Choices:
|
|
Config for HTTP/2 support. Keys and values are the same as in mongodb_exporter docs. |
|
List of databases.collections to get $indexStats |
|
Local path to stash the archive and its extraction Default: |
|
Only log messages with the given severity or above. Choices:
|
|
Enable descending index name override to replace -1 with _DESC Choices:
|
|
Set time for scrape slow queries Default: |
|
Advanced System group for mongodb_exporter Default: |
|
Advanced mongodb_exporter user Default: |
|
Offset to subtract from the timeout in seconds Default: |
|
Configuration for TLS authentication. Keys and values are the same as in mongodb_exporter docs. |
|
MongoDB connection URI |
|
mongodb_exporter package version. Also accepts latest as parameter. Default: |
|
Address on which mongodb exporter will listen Default: |
|
Path under which to expose metrics Default: |