Ping

检查Traefik实例的运行状况

Configuration Examples

要启用API处理程序:

[ping]
ping: {}
--ping=true

Configuration Options

/ping运行状况检查URL通过命令行--ping或配置文件选项[ping]启用.

您可以自定义entryPoint/ping是主动配合entryPoint选项(默认值: traefik

Path Method Description
/ping GET, HEAD 一个简单的端点,用于检查Traefik进程的活跃性. 返回带有内容的代码200OK

Note

cli附带一个healthcheck命令,该命令可用于调用此端点.

entryPoint

在专用EntryPoint上启用/ ping.

[entryPoints]
  [entryPoints.ping]
    address = ":8082"

[ping]
  entryPoint = "ping"
entryPoints:
  ping:
    address: ":8082"

ping:
  entryPoint: "ping"
--entryPoints.ping.address=:8082
--ping.entryPoint=ping