defang
defang copied to clipboard
Image build logs have different names in BYOC vs Playground
In playground, image builds can be seen using defang tail -n service1-image, but in BYOC it's defang tail -n kaniko. This is inconsistent.
BYOC should use he same naming as playground.
Blocked by #426
Some notes on what needs to be done here after #426 is fixed
- [ ] Update the CLI to add a
--buildflag to thetailcommand which will let you get the build logs for a list of services:defang tail --build -n service-name - [ ] Exclude build logs from
defang tailby default. - Implement build log partitioning for each platform:
- [ ] BYOC DO: DigitalOcean already partitions build logs from runtime logs
- [ ] BYOC AWS: Use AWS LogGroups
- Build logs:
- Tail from
defang-cd-LogGroup-randomidandDefang/project-name/beta/builds- How can we find that
defang-cd-LogGroup-*? I think we can find log groups by prefix.
- How can we find that
- Tail from
- Runtime logs:
- Tail
/Defang/project-name/beta/logs.
- Tail
- Build logs:
- [ ] Playground (filtering happens in fabric)
- Build logs:
- Use the Loki Labels
job=pulumiorjob=kaniko. (Do not includejob=ecs_status).
- Use the Loki Labels
- Runtime logs:
- Use the Loki Labels
job=service.
- Use the Loki Labels
- Build logs: