2019-02-26 13:50:07 +00:00
|
|
|
# Ping
|
|
|
|
|
|
|
|
Checking the Health of Your Traefik Instances
|
|
|
|
{: .subtitle }
|
|
|
|
|
|
|
|
## Configuration Examples
|
|
|
|
|
2019-03-26 15:32:06 +00:00
|
|
|
??? example "Enabling /ping"
|
2019-02-26 13:50:07 +00:00
|
|
|
|
2019-07-22 07:58:04 +00:00
|
|
|
```toml tab="File (TOML)"
|
|
|
|
[ping]
|
|
|
|
```
|
|
|
|
|
|
|
|
```yaml tab="File (YAML)"
|
|
|
|
ping: {}
|
|
|
|
```
|
|
|
|
|
|
|
|
```bash tab="CLI"
|
|
|
|
--ping=true
|
|
|
|
```
|
2019-02-26 13:50:07 +00:00
|
|
|
|
2019-03-26 15:32:06 +00:00
|
|
|
| Path | Method | Description |
|
|
|
|
|---------|---------------|-----------------------------------------------------------------------------------------------------|
|
2019-02-26 13:50:07 +00:00
|
|
|
| `/ping` | `GET`, `HEAD` | A simple endpoint to check for Traefik process liveness. Return a code `200` with the content: `OK` |
|
|
|
|
|
|
|
|
## Configuration Options
|
|
|
|
|
2019-07-19 10:28:07 +00:00
|
|
|
The `/ping` health-check URL is enabled with the command-line `--ping` or config file option `[ping]`.
|