-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Documented /ready, /metrics and /flush endpoints (#743)
- Loading branch information
1 parent
d5688b5
commit a2ceb8d
Showing
3 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Promtail API | ||
|
||
Promtail features an embedded web server exposing a web console at `/` and the following API endpoints: | ||
|
||
- `GET /ready` | ||
|
||
This endpoint returns 200 when Promtail is up and running, and there's at least one working target. | ||
|
||
- `GET /metrics` | ||
|
||
This endpoint returns Promtail metrics for Prometheus. See "[Operations > Observability > Metrics](./operations.md)" to have a list of exported metrics. | ||
|
||
|
||
## Promtail web server config | ||
|
||
The web server exposed by Promtail can be configured in the promtail `.yaml` config file: | ||
|
||
``` | ||
server: | ||
http_listen_host: 127.0.0.1 | ||
http_listen_port: 9080 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters