User documentation
  1. What is redirection.io?
  2. Starter's guide
  3. What are organizations and projects?
  4. Invite new collaborators
  5. User account and preferences
  6. Using traffic logs
  7. Create a rule
  8. Triggers and markers reference
  9. Actions reference
  10. How to bulk-import or export redirection rules?
  11. Managing instances
  12. Project notifications
  13. Project segmentation
  14. How much does it cost?
  15. Can I use redirection.io for free?
  16. About us

Developer documentation
  1. TL;DR; Fast track
  2. Available integrations
  3. nginx module
  4. Apache module
  5. platform.sh integration
  6. Cloudflare Workers integration
  7. Fastly Compute@Edge integration
  8. Vercel Middleware Integration
  9. Using redirection.io with Docker
  10. How fast is it?
  11. Public API

Agent documentation
  1. Installing the agent
  2. Upgrading the agent
  3. Agent command line options
  4. The agent as a reverse proxy
  5. Agent configuration reference
  6. Minimal configuration
  7. Listening for requests
  8. Forwarding requests to the backend
  9. Virtualhosts
  10. Trusted proxies
  11. GeoIP database
  12. Response compression
  13. Performance tweaks
  14. Access logs
  15. Persisting data in a s3 bucket
  16. Monitoring the agent
  17. Using the agent behind a HTTPS proxy
  18. Agent configuration examples

Managed instances
  1. What are managed instances?
  2. Add a domain to your project
  3. Managed instances limits and quota
  4. Frequently asked questions

Crawler
  1. What is the redirection.io crawler?
  2. Start a crawl
  3. Schedule a crawl
  4. Analyzing the results of a crawl
  5. The crawls list
  6. Crawl credits and pricing
  7. Crawl Errors
  8. Crawler metrics reference
  9. Crawler columns reference

Knowledge base
  1. Create your first redirections
  2. redirection.io rules cookbook
  3. Setting up a redirection server on Azure Cloud
  4. Structured data and Rich Snippets
  5. What is a URL redirection?
  6. Why use URL redirections and how to setup

Legacy versions
  1. Agent 1.x configuration reference
  2. Agent 2.x configuration reference
  3. Legacy integrations
  4. Legacy Cloudflare Workers integration

Changelogs
  1. redirectionio-agent
  2. libnginx-mod-redirectionio
  3. libapache2-mod-redirectionio

Monitoring the agent

The agent can be monitored using two approches: using technical logs (to get insights about the internal behavior of the agent), and using Prometheus metrics, to collect metrics about the performance and the traffic of the agent.

Technical logs

The agent can be configured to log technical information about its internal behavior, which can be useful for debugging purposes or for monitoring the health of the agent. The technical logs are different from the access logs, as they are not focused on the incoming requests, but rather on the internal operations of the agent such as the handling of the rules, the communication with the backend servers, the management of the SSL certificates, the collection of logs, etc.

The log configuration key allows you to specify the type of the output (as a file, on the standard output or to a syslog server), the format of the logs (json, text, rfc3164 or rfc5424) and the path to the log file.

For example:

View in configuration explorer
instance:
    name: 'My Instance'
reverse_proxy:
    listen:
        - 'tcp://0.0.0.0:80'
    forward:
        address: 'backend:8080'
    agent:
        project_key: my-project-key
log:
    -
        output: file
        format: json
        path: /var/log/redirection.log.json
    -
        output: stdout
        format: text
    -
        output: stderr
        format: json
    -
        output: syslog
        format: rfc5424
        address: 'syslog-server:514'

Prometheus metrics

The redirection.io agent can expose a set of Prometheus metrics that can be used to monitor the performance and the traffic of the agent.

By default, the metrics endpoint is disabled, but you can enable it by configuring the metrics.listen configuration key in the agent configuration file.

For example:

View in configuration explorer
instance:
    name: 'My Instance'
reverse_proxy:
    listen:
        - 'tcp://0.0.0.0:80'
    forward:
        address: 'backend:8080'
    agent:
        project_key: my-project-key
metrics:
    listen: '127.0.0.1:9000'

The Prometheus metrics include:

  • global agent metrics:
    • process_cpu_seconds_total: Total user and system CPU time spent, in seconds.
    • process_max_fds: Maximum number of open file descriptors allowed for the agent process.
    • process_open_fds: Number of open file descriptors.
    • process_resident_memory_bytes: Resident memory size, in bytes.
    • process_start_time_seconds: Start time of the process since unix epoch in seconds.
    • process_threads: Number of OS threads in the process.
    • process_virtual_memory_bytes: Virtual memory size in bytes.
  • per-project metrics:
    • redirectionio_matching_requests: Number of times a matching request was executed by the router
    • redirectionio_rules_count: Number of rules inside the router
    • redirectionio_rules_count_live: Number of rules inside the router (in live mode)
    • redirectionio_rules_update_histogram: Histogram of the duration of the rules update process, in milliseconds
    • redirectionio_logs_buffer_size: Memory size of the logs buffer, in bytes
  • per-hostname metrics:
    • redirectionio_request_bytes: Number of bytes received in the requests
    • redirectionio_response_bytes: Number of bytes sent in the responses
    • redirectionio_request_count: Number of requests received by the agent
This page has been updated on Mar 30, 2026
Can't find your answer?