Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 603 Bytes

api.md

File metadata and controls

22 lines (13 loc) · 603 Bytes

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" 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