Skip to main content

Web Dashboard

The Traefik dashboard provides a visual interface for monitoring active routes, services, middlewares, and overall system health.

Overview

The dashboard is the central place to visualize and monitor:
  • Active HTTP, TCP, and UDP routers
  • Services and their health status
  • Middleware chain configurations
  • Entry points and their usage
  • Provider information
  • Real-time system statistics
The dashboard is served at /dashboard/ (trailing slash mandatory) on the same location as the API.
The trailing slash in /dashboard/ is mandatory. Accessing /dashboard without the trailing slash will redirect to /dashboard/.

Access Methods

There are two ways to access the dashboard:
  1. Secure Mode (Recommended) - With authentication and custom routing
  2. Insecure Mode - For development/testing only

Secure Mode Configuration

This is the recommended approach for production environments.
1

Enable the API

First, enable the API in your static configuration:
2

Create Router with Authentication

Configure a router pointing to the api@internal service with authentication middleware:
3

Access the Dashboard

Navigate to https://traefik.example.com/dashboard/ in your browser and enter your credentials.

Dashboard Router Rule

The router rule must match both /api and /dashboard path prefixes.
This matches all paths on the host domain, including /dashboard/ and /api.

Alternative: Path Prefix Rule

Matches only the API and dashboard paths.

Combined Rule

Matches API and dashboard paths on a specific host only.
Using a Host-based rule is the simplest and most reliable approach.

Authentication Examples

Basic Authentication

Generate password hash:
Configure the middleware:

Forward Authentication

Delegate authentication to an external service:

IP Allow List

Restrict access by IP address:

Custom Base Path

Customize the base path for API and dashboard endpoints:
This configuration:
  • Serves the API at /traefik/api
  • Serves the dashboard at /traefik/dashboard/
Update your router rule accordingly:

Insecure Mode

Insecure mode is for development and testing only. Never use in production.
Enable insecure mode:
The dashboard is accessible at:
  • http://<traefik-ip>:8080/dashboard/
If the traefik entry point doesn’t exist, it’s automatically created on port 8080. Limitations of insecure mode:
  • Cannot add authentication middleware
  • Incompatible with custom base path
  • Exposes all API endpoints without protection

Dashboard Features

HTTP Routers View

Displays all HTTP routers with:
  • Router name and provider
  • Rule configuration
  • Service assignment
  • Middleware chain
  • Entry points in use
  • Status (enabled/disabled/warning/error)

HTTP Services View

Shows all services including:
  • Service name and type (load balancer, weighted, mirroring)
  • Backend servers and their health status
  • Load balancing configuration
  • Used by which routers

HTTP Middlewares View

Lists all middlewares with:
  • Middleware name and type
  • Configuration summary
  • Which routers use this middleware

TCP Routers & Services

Similar views for TCP routers, services, and middlewares.

UDP Routers & Services

Similar views for UDP routers and services.

Features Overview

Displays:
  • Enabled providers (Docker, Kubernetes, File, etc.)
  • Active features (Metrics, Tracing, Access Logs)
  • System statistics

Disabling the Dashboard

To disable the dashboard while keeping the API enabled:

Docker Example

Complete Docker Compose example with secure dashboard:
docker-compose.yml

Kubernetes Example

dashboard-ingress.yaml

Troubleshooting

Dashboard Shows 404

1

Check Trailing Slash

Ensure you’re accessing /dashboard/ with the trailing slash.
2

Verify Router Rule

Confirm the router rule matches both /api and /dashboard paths.
3

Check API Enabled

Verify api.dashboard=true is set in static configuration.

Authentication Not Working

  • Verify password hash is correctly formatted
  • Check middleware is attached to the router
  • Ensure router points to api@internal service

Dashboard Not Loading Assets

  • Check browser console for errors
  • Verify Content-Security-Policy headers
  • Ensure base path is correctly configured if using custom paths

Source Code Reference

Dashboard implementation: pkg/api/dashboard/dashboard.go:66-127

Additional Resources