Skip to content

Commit

Permalink
just inline proxy_url
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelEischer committed Oct 30, 2024
1 parent 5d32e84 commit cbd1766
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions internal/helper/loadbalancermachine.go
Original file line number Diff line number Diff line change
Expand Up @@ -487,11 +487,6 @@ func generatePromtailConfig(
return "", err
}

proxy := ""
if logForward.ProxyURL != "" {
proxy = " proxy_url: '" + logForward.ProxyURL + "'"
}

return `server:
disable: true
Expand All @@ -500,7 +495,7 @@ positions:
clients:
- url: '` + logForward.LokiURL + `'
` + proxy + `
proxy_url: '` + logForward.ProxyURL + `'
scrape_configs:
- job_name: messages
Expand Down
2 changes: 1 addition & 1 deletion internal/helper/loadbalancermachine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ positions:
clients:
- url: 'localhost'
proxy_url: ''
scrape_configs:
- job_name: messages
Expand Down

0 comments on commit cbd1766

Please sign in to comment.