|
| 1 | +--- |
| 2 | +# yamllint disable rule:line-length |
| 3 | +argument_specs: |
| 4 | + main: |
| 5 | + short_description: "Prometheus mongodb_exporter" |
| 6 | + description: |
| 7 | + - "Deploy prometheus L(mongodb exporter,https://github.com/percona/mongodb_exporter) using ansible" |
| 8 | + author: |
| 9 | + - "Prometheus Community" |
| 10 | + options: |
| 11 | + mongodb_exporter_version: |
| 12 | + description: "mongodb_exporter package version. Also accepts latest as parameter." |
| 13 | + default: "0.40.0" |
| 14 | + mongodb_exporter_skip_install: |
| 15 | + description: "mongodb_exporter installation tasks gets skipped when set to true." |
| 16 | + type: bool |
| 17 | + default: false |
| 18 | + mongodb_exporter_binary_local_dir: |
| 19 | + description: |
| 20 | + - "Enables the use of local packages instead of those distributed on github." |
| 21 | + - "The parameter may be set to a directory where the C(mongodb_exporter) binary is stored on the host where ansible is run." |
| 22 | + - "This overrides the I(mongodb_exporter_version) parameter" |
| 23 | + mongodb_exporter_binary_url: |
| 24 | + description: "URL of the mongodb_exporter binaries .tar.gz file" |
| 25 | + default: "https://github.com/{{ _mongodb_exporter_repo }}/releases/download/v{{ mongodb_exporter_version }}/mongodb_exporter-{{ mongodb_exporter_version }}.linux-{{ go_arch }}.tar.gz" |
| 26 | + mongodb_exporter_checksums_url: |
| 27 | + description: "URL of the mongodb_exporter checksums file" |
| 28 | + default: "https://github.com/{{ _mongodb_exporter_repo }}/releases/download/v{{ mongodb_exporter_version }}/mongodb_exporter_{{ mongodb_exporter_version }}_checksums.txt" |
| 29 | + mongodb_exporter_web_listen_address: |
| 30 | + description: "Address on which mongodb exporter will listen" |
| 31 | + default: "0.0.0.0:9216" |
| 32 | + mongodb_exporter_web_telemetry_path: |
| 33 | + description: "Path under which to expose metrics" |
| 34 | + default: "/metrics" |
| 35 | + mongodb_exporter_config_dir: |
| 36 | + description: "The path where exporter configuration is stored" |
| 37 | + default: "/etc/mongodb_exporter" |
| 38 | + mongodb_exporter_tls_server_config: |
| 39 | + description: |
| 40 | + - "Configuration for TLS authentication." |
| 41 | + - "Keys and values are the same as in L(mongodb_exporter docs,https://github.com/prometheus/exporter-toolkit/blob/master/docs/web-configuration.md)." |
| 42 | + type: "dict" |
| 43 | + mongodb_exporter_http_server_config: |
| 44 | + description: |
| 45 | + - "Config for HTTP/2 support." |
| 46 | + - "Keys and values are the same as in L(mongodb_exporter docs,https://github.com/prometheus/exporter-toolkit/blob/master/docs/web-configuration.md)." |
| 47 | + type: "dict" |
| 48 | + mongodb_exporter_basic_auth_users: |
| 49 | + description: "Dictionary of users and password for basic authentication. Passwords are automatically hashed with bcrypt." |
| 50 | + type: "dict" |
| 51 | + mongodb_exporter_log_level: |
| 52 | + description: "Only log messages with the given severity or above." |
| 53 | + default: "error" |
| 54 | + choices: |
| 55 | + - "debug" |
| 56 | + - "info" |
| 57 | + - "warn" |
| 58 | + - "error" |
| 59 | + - "fatal" |
| 60 | + mongodb_exporter_uri: |
| 61 | + description: "MongoDB connection URI" |
| 62 | + required: true |
| 63 | + type: "str" |
| 64 | + mongodb_exporter_collectors: |
| 65 | + description: |
| 66 | + - "List collectors from L(documantation, https://github.com/percona/mongodb_exporter/blob/main/REFERENCE.md)." |
| 67 | + - "You can specify 'all' to enable all collectors" |
| 68 | + mongodb_exporter_collstats_colls: |
| 69 | + description: "List of databases.collections to get $collStats" |
| 70 | + type: "list" |
| 71 | + mongodb_exporter_indexstats_colls: |
| 72 | + description: "List of databases.collections to get $indexStats" |
| 73 | + type: "list" |
| 74 | + mongodb_exporter_collstats_limit: |
| 75 | + description: "Disable collstats, dbstats, topmetrics and indexstats collector if there are more than <n> collections. 0=No limit" |
| 76 | + type: "int" |
| 77 | + default: 0 |
| 78 | + mongodb_exporter_timeout_offset: |
| 79 | + description: "Offset to subtract from the timeout in seconds" |
| 80 | + type: "int" |
| 81 | + default: 1 |
| 82 | + mongodb_exporter_profile_time_ts: |
| 83 | + description: "Set time for scrape slow queries" |
| 84 | + type: "int" |
| 85 | + default: 30 |
| 86 | + mongodb_exporter_compatible_mode: |
| 87 | + description: "Enable old mongodb-exporter compatible metrics" |
| 88 | + type: bool |
| 89 | + default: false |
| 90 | + mongodb_exporter_discovering_mode: |
| 91 | + description: "Enable autodiscover collections" |
| 92 | + type: bool |
| 93 | + default: false |
| 94 | + mongodb_exporter_direct_connect: |
| 95 | + description: "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" |
| 96 | + type: bool |
| 97 | + default: false |
| 98 | + mongodb_exporter_global_conn_pool: |
| 99 | + description: "Use global connection pool instead of creating new pool for each http request" |
| 100 | + type: bool |
| 101 | + default: false |
| 102 | + mongodb_exporter_metrics_overridedescendingindex: |
| 103 | + description: "Enable descending index name override to replace -1 with _DESC" |
| 104 | + type: bool |
| 105 | + default: false |
| 106 | + mongodb_exporter_binary_install_dir: |
| 107 | + description: |
| 108 | + - "I(Advanced)" |
| 109 | + - "Directory to install mongodb_exporter binary" |
| 110 | + default: "/usr/local/bin" |
| 111 | + mongodb_exporter_system_group: |
| 112 | + description: |
| 113 | + - "I(Advanced)" |
| 114 | + - "System group for mongodb_exporter" |
| 115 | + default: "mongodb-exp" |
| 116 | + mongodb_exporter_system_user: |
| 117 | + description: |
| 118 | + - "I(Advanced)" |
| 119 | + - "mongodb_exporter user" |
| 120 | + default: "mongodb-exp" |
0 commit comments