DumbMonit

集成网站和 Web 服务器

用 DumbMonit 监控 Traefik

The reverse proxy: routers disabled by a configuration error, backend servers failing their health check, certificates that never arrive or are not renewed, and the share of 5xx answers.

文档官方网站:Traefik

产品说明为英文,与产品内一致。页面标签使用您的语言。

DumbMonit 监控的内容

The reverse proxy: routers disabled by a configuration error, backend servers failing their health check, certificates that a resolver never obtained or that are not renewed, and the share of 5xx answers.

典型用途. Reverse proxy: disabled routers, backend servers down, certificates not obtained or not renewed, 5xx share

示例

  • Traefik in Docker
  • Traefik on Kubernetes
  • Traefik in front of self-hosted apps

连接方式

您需要准备

  • basicAuth userThe user of the basicAuth middleware in front of the API and the metrics.

无需账户。

需要开放的网络端口

  • 8080/TCPAPI and metrics (HTTP, default)
设置步骤: Let DumbMonit read Traefik's API
  1. Add these arguments to Traefik's command (or the same keys to its static configuration), then restart it.

    --api.insecure=true
    --metrics.prometheus=true
  2. Open http://traefik.lan:8080/api/overview from the DumbMonit host: it must answer with JSON.

  3. Optional: protect /api and /metrics with a basicAuth middleware on an entry point of your own, and create the user with htpasswd.

    htpasswd -nbB dumbmonit 'a-long-password'
  4. In DumbMonit, enter the Traefik host, for example traefik.lan, with the port of that entry point if it is not 8080.

注意. Port 8080 answers without a password: filter it so that only the DumbMonit host reaches it.