Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions framework/.changeset/v0.10.7.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Test observability stack in CI, move promtail to ctf default network
2 changes: 1 addition & 1 deletion framework/observability.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ func ObservabilityUp() error {
if err := extractAllFiles("observability"); err != nil {
return err
}
_ = DefaultNetwork(nil)
if err := NewPromtail(); err != nil {
return err
}
_ = DefaultNetwork(nil)
err := RunCommand("bash", "-c", fmt.Sprintf(`
cd %s && \
docker compose up -d
Expand Down
6 changes: 5 additions & 1 deletion framework/promtail.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ scrape_configs:
lokiTenantID := os.Getenv("LOKI_TENANT_ID")

if lokiURL == "" {
lokiURL = "http://host.docker.internal:3030/loki/api/v1/push"
lokiURL = "http://loki:3100/loki/api/v1/push"
}
if lokiTenantID == "" {
lokiTenantID = "promtail"
Expand Down Expand Up @@ -131,6 +131,10 @@ func NewPromtail() error {
ExposedPorts: []string{"9080/tcp"},
Name: "promtail",
Cmd: cmd,
Networks: []string{DefaultNetworkName},
NetworkAliases: map[string][]string{
DefaultNetworkName: {"promtail"},
},
Files: []testcontainers.ContainerFile{
{
HostFilePath: pcn,
Expand Down
Loading