| 1 |
.\" Copyright (c) 2024 Sipwise GmbH, Austria |
| 2 |
.\" |
| 3 |
.\" Permission is hereby granted, free of charge, to any person obtaining a copy |
| 4 |
.\" of this software and associated documentation files (the "Software"), to deal |
| 5 |
.\" in the Software without restriction, including without limitation the rights |
| 6 |
.\" to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 7 |
.\" copies of the Software, and to permit persons to whom the Software is |
| 8 |
.\" furnished to do so, subject to the following conditions: |
| 9 |
.\" |
| 10 |
.\" The above copyright notice and this permission notice shall be included in all |
| 11 |
.\" copies or substantial portions of the Software. |
| 12 |
.\" |
| 13 |
.\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 14 |
.\" IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 15 |
.\" FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 16 |
.\" AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 17 |
.\" LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 18 |
.\" OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 19 |
.\" SOFTWARE. |
| 20 |
. |
| 21 |
.TH prometheus\-redis\-exporter 1 "2020\-03\-13" 1.4.0 "prometheus" |
| 22 |
.SH NAME |
| 23 |
prometheus\-redis\-exporter \- Prometheus exporter for Valkey/Redis metrics |
| 24 |
.SH SYNOPSIS |
| 25 |
.B prometheus\-redis\-exporter |
| 26 |
.RI [ option ...] |
| 27 |
.SH DESCRIPTION |
| 28 |
This Prometheus exporter retrieves monitoring data from Valkey (or Redis) |
| 29 |
servers, |
| 30 |
and exposes them via an HTTP server to be collected by Prometheus. |
| 31 |
.SH OPTIONS |
| 32 |
.TP |
| 33 |
.BI \-check\-key\-groups " string" |
| 34 |
Comma separated list of lua regex for grouping keys |
| 35 |
.TP |
| 36 |
.BI \-check\-keys " string" |
| 37 |
Comma separated list of key-patterns to export value and length/size, |
| 38 |
searched for with SCAN. |
| 39 |
.TP |
| 40 |
.BI \-check\-keys\-batch\-size " int" |
| 41 |
Approximate number of keys to process in each execution, larger value speeds |
| 42 |
up scanning. |
| 43 |
WARNING: Valkey and Redis are still single-threaded apps (unlike KeyDB), |
| 44 |
so a huge COUNT can affect production environment (default \fB1000\fP). |
| 45 |
.TP |
| 46 |
.BI \-check\-single\-keys " string" |
| 47 |
Comma separated list of single keys to export value and length/size. |
| 48 |
.TP |
| 49 |
.BI \-check\-single\-streams " string" |
| 50 |
Comma separated list of single streams to export info about streams, groups |
| 51 |
and consumers. |
| 52 |
.TP |
| 53 |
.BI \-check\-streams " string" |
| 54 |
Comma separated list of stream-patterns to export info about streams, groups |
| 55 |
and consumers, searched for with SCAN. |
| 56 |
.TP |
| 57 |
.BI \-config\-command " string" |
| 58 |
What to use for the |
| 59 |
.B CONFIG |
| 60 |
command (default "\fBCONFIG\fP"). |
| 61 |
.TP |
| 62 |
.BI \-connection\-timeout " string" |
| 63 |
Timeout for connection to Valkey/Redis instance (default "\fB15s\fP"). |
| 64 |
.TP |
| 65 |
.BI \-count\-keys " string" |
| 66 |
Comma separated list of patterns to count |
| 67 |
(eg: 'db0=production_*,db3=sessions:*'), searched for with SCAN. |
| 68 |
.TP |
| 69 |
.BI \-disable\-exporting\-key\-values |
| 70 |
Whether to disable values of keys stored in redis as labels or not when |
| 71 |
using. |
| 72 |
.B \-check\-keys |
| 73 |
or |
| 74 |
.BR \-check\-single\-key . |
| 75 |
.TP |
| 76 |
.B \-exclude\-latency\-histogram\-metrics |
| 77 |
Do not try to collect latency histogram metrics. |
| 78 |
.TP |
| 79 |
.BI \-export\-client\-list |
| 80 |
Whether to scrape Client List specific metrics. |
| 81 |
.TP |
| 82 |
.BI \-export\-client\-port |
| 83 |
Whether to include the client's port when exporting the client list. |
| 84 |
Warning: including the port increases the number of metrics generated and |
| 85 |
will make your Prometheus server take up more memory. |
| 86 |
.TP |
| 87 |
.B \-include\-config\-metrics |
| 88 |
Whether to include all config settings as metrics. |
| 89 |
.TP |
| 90 |
.BI \-include\-system\-metrics |
| 91 |
Whether to include system metrics like e.g. |
| 92 |
.IR redis_total_system_memory_bytes . |
| 93 |
.TP |
| 94 |
.BI \-is\-cluster |
| 95 |
Whether this is a Valkey/Redis cluster (enable this if you need to fetch key |
| 96 |
level data on a Valkey/Redis Cluster). |
| 97 |
.TP |
| 98 |
.BI \-is\-tile38 |
| 99 |
Whether to scrape Tile38 specific metrics. |
| 100 |
.TP |
| 101 |
.BI \-log\-format " string" |
| 102 |
Log format, valid options are txt and json (default "\fBtxt\fP"). |
| 103 |
.TP |
| 104 |
.BI \-max\-distinct\-key\-groups " int" |
| 105 |
The maximum number of distinct key groups with the most memory utilization |
| 106 |
to present as distinct metrics per database, the leftover key groups will |
| 107 |
be aggregated in the 'overflow' bucket (default 100). |
| 108 |
.TP |
| 109 |
.BI \-namespace " string" |
| 110 |
Namespace for metrics (default "\fBredis\fP"). |
| 111 |
.TP |
| 112 |
.BI \-ping\-on\-connect |
| 113 |
Whether to ping the redis instance after connecting. |
| 114 |
.TP |
| 115 |
.B \-redact\-config\-metrics |
| 116 |
Whether to redact config settings that include potentially sensitive |
| 117 |
information like passwords (default true). |
| 118 |
.TP |
| 119 |
.BI \-redis\-only\-metrics |
| 120 |
Whether to also export go runtime metrics. |
| 121 |
.TP |
| 122 |
.BI \-redis.addr " string" |
| 123 |
Address of the Valkey/Redis instance to scrape |
| 124 |
(default "\fBredis://localhost:6379\fP"). |
| 125 |
.TP |
| 126 |
.BI \-redis.password " string" |
| 127 |
Password of the Valkey/Redis instance to scrape. |
| 128 |
.TP |
| 129 |
.BI \-redis.password\-file " string" |
| 130 |
Password file of the Valkey/Redis instance to scrape. |
| 131 |
.TP |
| 132 |
.BI \-redis.user " string" |
| 133 |
User name to use for authentication (Valkey/Redis ACL for Valkey/Redis 6.0 |
| 134 |
and newer). |
| 135 |
.TP |
| 136 |
.BI \-script " string" |
| 137 |
Path to Lua Valkey/Redis script for collecting extra metrics. |
| 138 |
.TP |
| 139 |
.BI \-set\-client\-name |
| 140 |
Whether to set client name to redis_exporter |
| 141 |
(default \fBtrue\fP). |
| 142 |
.TP |
| 143 |
.BI \-skip\-tls\-verification |
| 144 |
Whether to to skip TLS verification. |
| 145 |
.TP |
| 146 |
.B \-streams\-exclude\-consumer\-metrics |
| 147 |
Do not collect per consumer metrics for streams (decreases cardinality). |
| 148 |
.TP |
| 149 |
.BI \-tls\-ca\-cert\-file " string" |
| 150 |
Name of the CA certificate file (including full path) if the server requires |
| 151 |
TLS client authentication. |
| 152 |
.TP |
| 153 |
.BI \-tls\-client\-cert\-file " string" |
| 154 |
Name of the client certificate file (including full path) if the server |
| 155 |
requires TLS client authentication. |
| 156 |
.TP |
| 157 |
.BI \-tls\-client\-key\-file " string" |
| 158 |
Name of the client key file (including full path) if the server requires |
| 159 |
TLS client authentication. |
| 160 |
.TP |
| 161 |
.BI \-tls\-server\-ca\-cert\-file " string" |
| 162 |
Name of the CA certificate file (including full path) if the web interface |
| 163 |
and telemetry should require TLS client authentication. |
| 164 |
.TP |
| 165 |
.BI \-tls\-server\-cert\-file " string" |
| 166 |
Name of the server certificate file (including full path) if the web |
| 167 |
interface and telemetry should use TLS. |
| 168 |
.TP |
| 169 |
.BI \-tls\-server\-key\-file " string" |
| 170 |
Name of the server key file (including full path) if the web interface and |
| 171 |
telemetry should use TLS. |
| 172 |
.TP |
| 173 |
.BI \-tls\-server\-min\-version " string" |
| 174 |
Minimum TLS version that is acceptable by the web interface and telemetry |
| 175 |
when using TLS (default "TLS1.2"). |
| 176 |
.TP |
| 177 |
.BI \-web.listen\-address " string" |
| 178 |
Address to listen on for web interface and telemetry |
| 179 |
(default "\fB:9121\fP"). |
| 180 |
.TP |
| 181 |
.BI \-web.telemetry\-path " string" |
| 182 |
Path under which to expose metrics |
| 183 |
(default "\fB/metrics\fP"). |
| 184 |
.TP |
| 185 |
.BI \-debug |
| 186 |
Output verbose debug information. |
| 187 |
.TP |
| 188 |
.BI \-version |
| 189 |
Show version information and exit. |
| 190 |
.SH SEE ALSO |
| 191 |
.BR valkey\-server (1), |
| 192 |
.BR redis\-server (8), |
| 193 |
.BR prometheus (1). |