Merge pull request #169 from trails-cool/docs/infra-spec-promtail
Add Promtail log shipping to infrastructure spec
This commit is contained in:
commit
b7e3d315ab
1 changed files with 8 additions and 1 deletions
|
|
@ -127,7 +127,14 @@ All services SHALL be deployed via Docker Compose, including Grafana, Prometheus
|
|||
|
||||
#### Scenario: Monitoring stack starts
|
||||
- **WHEN** `docker compose up -d` is run
|
||||
- **THEN** Grafana, Prometheus, and Loki containers start alongside the application containers
|
||||
- **THEN** Grafana, Prometheus, Loki, and Promtail containers start alongside the application containers
|
||||
|
||||
### Requirement: Container log shipping
|
||||
Promtail SHALL scrape all Docker container logs and push them to Loki for querying in Grafana.
|
||||
|
||||
#### Scenario: Logs visible in Grafana
|
||||
- **WHEN** a container writes to stdout or stderr
|
||||
- **THEN** the log line is available in Grafana Explore via Loki with container name labels
|
||||
|
||||
### Requirement: Caddy access logging
|
||||
Caddy SHALL emit structured JSON access logs for all requests.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue