Commit f3e1a25
authored
Grafana Loki Local Setup | Fix Metrics Service Conflicts in api_dev and worker_dev services (#201)
* feat(entrypoint): loki log backend implemented along with console logger to stream logs to console
Everything tested. api_dev (development container service in docker-compose) works as expected.
NOTE: the workers service specified in docker-compose must use a different port or should not expose its metrics (or can use port forwarding), since they are all on the same network (host network)
* fix(configure): start prometheus service on a different port when running workers as processes
This is required to avoid starting metrics server on exact same port when running locally with docker-compose (api_dev and worker_dev are both on host network)
* fixup! fix(configure): start prometheus service on a different port when running workers as processes
* fix: fixed some linting errors, refactored shared method to handle vapor application for tests
Specifically the `withApp` method
* fix: fixed all linting errors, deleted CLI and cli testing gh workflow1 parent 0af53b7 commit f3e1a25
45 files changed
Lines changed: 262 additions & 1584 deletions
File tree
- .github/workflows
- Backend
- Sources/App
- Clients
- AutomaWebCoreClient
- ChatCompletionClient/OpenAIChatCompletionClient
- Extensions/Vapor
- Services
- ArticleContentScraperService
- SNSService
- TigrisService
- Tests/AppTests
- Clients
- AutomaWebCoreClientTests
- ChatCompletionClientTests/Types
- TwitterClientTests
- Services/ArticleContentScraperServiceTests
- CLI
- Sources/AutomaCLI
- Commands
- GenerateAppComponent
- Tests/CLITests
- generators
- backend-async-job
- backend-controller
- backend-service
- command
- controller-interactor
- dto
- migration
- model
- screen
- ui-component
- ui-modifier
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
This file was deleted.
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
59 | | - | |
| 60 | + | |
| 61 | + | |
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
| |||
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
19 | 28 | | |
20 | 29 | | |
21 | 30 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
| 133 | + | |
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
| 159 | + | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| |||
Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
0 commit comments