Learn

Monitoring (Prometheus, Grafana, OpenTelemetry)

The Monitoring page connects WAF Gateway to your monitoring infrastructure.

Monitoring

Prometheus

The gateway always exposes metrics at http://127.0.0.1:8900/metrics on the admin listener — available without configuration for a Prometheus on the same machine.

For a Prometheus on another machine:

  1. Choose a port (e.g. 9090).
  2. Click Make a new token (shown once — copy it immediately).
  3. Add the IP addresses of your Prometheus servers to the allowlist.

The page shows the scrape configuration to copy into your prometheus.yml.

The /metrics endpoint is never served on the public ports (80/443) or through remote admin access.

OpenTelemetry

Enter the endpoint of your OTLP collector (e.g. https://otlp.example.com:4318), the protocol (gRPC or HTTP) and an optional header such as api-key=…. Changes apply at once.

Grafana

Enter your Grafana address to get direct links to the dashboards from the Monitoring page and the Performance page.

Click Download dashboards and alert rules (zip) to get:

  • Four Grafana dashboards (Traffic, Attacks, Backends, Gateway health)
  • Tested Prometheus alert rules
  • A Docker Compose stack with Prometheus and Grafana, pre-filled with this gateway's address and token

What is in the metrics

  • Requests by outcome, kind and route
  • Blocks by kind and reason (by signature ID when enabled)
  • Backend response times (histogram)
  • Fail-closed state and configuration version
  • Backend health and certificate days left
  • ACME failures, event export drops, alert drops
  • Sessions, bans, connections, queues
  • ASP.NET Core, Kestrel and .NET runtime metrics

Client addresses, paths and user names are never in the metrics labels.

Example: setting up Prometheus on the same machine

The simplest setup: Prometheus runs on the gateway's machine.

Add to prometheus.yml:

scrape_configs:
  - job_name: wafgateway
    static_configs:
      - targets: ['127.0.0.1:8900']
    metrics_path: /metrics

The Monitoring page shows the exact scrape configuration for your setup.