{
  "id": "redis-di-monitor",
  "title": "redis-di monitor",
  "url": "https://redis.io/docs/latest/integrate/write-behind/reference/cli/redis-di-monitor/",
  "summary": "Monitors Write-behind by collecting metrics and exporting to Prometheus",
  "tags": [
    "docs",
    "integrate",
    "rs",
    "rdi"
  ],
  "last_updated": "2026-04-01T08:10:08-05:00",
  "page_type": "content",
  "content_hash": "36c8dd8f6e989ec0844e35c2bb1ec3862bc98c57546041ee30c882b31d0d52bb",
  "sections": [
    {
      "id": "usage",
      "title": "Usage",
      "role": "syntax",
      "text": "[code example]"
    },
    {
      "id": "options",
      "title": "Options",
      "role": "parameters",
      "text": "- `loglevel`:\n\n  - Type: Choice(['DEBUG', 'INFO', 'WARN', 'ERROR', 'CRITICAL'])\n  - Default: `info`\n  - Usage: `--loglevel\n-log-level`\n\n- `rdi_host` (REQUIRED):\n\n  - Type: STRING\n  - Default: `none`\n  - Usage: `--rdi-host`\n\n  Host/IP of Write-behind Database\n\n- `rdi_port` (REQUIRED):\n\n  - Type: <IntRange 1000<=x<=65535>\n  - Default: `none`\n  - Usage: `--rdi-port`\n\n  Port of Write-behind Database\n\n- `rdi_password`:\n\n  - Type: STRING\n  - Default: `none`\n  - Usage: `--rdi-password`\n\n  Write-behind Database Password\n\n- `rdi_key`:\n\n  - Type: STRING\n  - Default: `none`\n  - Usage: `--rdi-key`\n\n  Private key file to authenticate with\n\n- `rdi_cert`:\n\n  - Type: STRING\n  - Default: `none`\n  - Usage: `--rdi-cert`\n\n  Client certificate file to authenticate with\n\n- `rdi_cacert`:\n\n  - Type: STRING\n  - Default: `none`\n  - Usage: `--rdi-cacert`\n\n  CA certificate file to verify with\n\n- `rdi_key_password`:\n\n  - Type: STRING\n  - Default: `none`\n  - Usage: `--rdi-key-password`\n\n  Password for unlocking an encrypted private key\n\n- `exporter_port`:\n\n  - Type: <IntRange 1000<=x<=65535>\n  - Default: `9121`\n  - Usage: `--exporter-port`\n\n  HTTP port to start the exporter on\n\n- `collect_interval`:\n\n  - Type: <IntRange 1<=x<=60>\n  - Default: `5`\n  - Usage: `--collect-interval`\n\n  Metrics collection interval (seconds)\n\n- `help`:\n\n  - Type: BOOL\n  - Default: `false`\n  - Usage: `--help`\n\n  Show this message and exit."
    },
    {
      "id": "cli-help",
      "title": "CLI help",
      "role": "content",
      "text": "[code example]"
    }
  ],
  "examples": [
    {
      "id": "usage-ex0",
      "language": "plaintext",
      "code": "Usage: redis-di monitor [OPTIONS]",
      "section_id": "usage"
    },
    {
      "id": "cli-help-ex0",
      "language": "plaintext",
      "code": "Usage: redis-di monitor [OPTIONS]\n\n  Monitors Write-behind by collecting metrics and exporting to Prometheus\n\nOptions:\n  -log-level, --loglevel [DEBUG|INFO|WARN|ERROR|CRITICAL]\n                                  [default: INFO]\n  --rdi-host TEXT                 Host/IP of Write-behind Database  [required]\n  --rdi-port INTEGER RANGE        Port of Write-behind Database  [1000<=x<=65535;\n                                  required]\n  --rdi-password TEXT             Write-behind Database Password\n  --rdi-key TEXT                  Private key file to authenticate with\n  --rdi-cert TEXT                 Client certificate file to authenticate with\n  --rdi-cacert TEXT               CA certificate file to verify with\n  --rdi-key-password TEXT         Password for unlocking an encrypted private\n                                  key\n  --exporter-port INTEGER RANGE   HTTP port to start the exporter on\n                                  [1000<=x<=65535]\n  --collect-interval INTEGER RANGE\n                                  Metrics collection interval (seconds)\n                                  [1<=x<=60]\n  --help                          Show this message and exit.",
      "section_id": "cli-help"
    }
  ]
}
