We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc75805 commit ba3e853Copy full SHA for ba3e853
framework/promtail.go
@@ -60,7 +60,7 @@ scrape_configs:
60
lokiTenantID := os.Getenv("LOKI_TENANT_ID")
61
62
if lokiURL == "" {
63
- lokiURL = "http://host.docker.internal:3030/loki/api/v1/push"
+ lokiURL = "http://loki:3100/loki/api/v1/push"
64
}
65
if lokiTenantID == "" {
66
lokiTenantID = "promtail"
@@ -131,6 +131,10 @@ func NewPromtail() error {
131
ExposedPorts: []string{"9080/tcp"},
132
Name: "promtail",
133
Cmd: cmd,
134
+ Networks: []string{DefaultNetworkName},
135
+ NetworkAliases: map[string][]string{
136
+ DefaultNetworkName: {"loki"},
137
+ },
138
Files: []testcontainers.ContainerFile{
139
{
140
HostFilePath: pcn,
0 commit comments