Skip to content

Commit 5edddc1

Browse files
authored
refactor: reorg ingestor config files (#64)
1 parent 40ba7bb commit 5edddc1

File tree

4 files changed

+22
-15
lines changed

4 files changed

+22
-15
lines changed

docker/ingestor/Dockerfile

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,20 @@ FROM base as dev
1414

1515
EXPOSE 8002 8686
1616

17-
ENTRYPOINT ["vector", "-c", "http-server.core.toml", "-c", "http-server.sinks.toml", "--require-healthy", "true"]
17+
ENTRYPOINT ["vector", \
18+
"-c", "sources.toml", \
19+
"-c", "core.toml", \
20+
"-c", "http-sinks.toml", \
21+
"--require-healthy", "true"]
1822

1923

2024
## prod #############################################################################################
2125
FROM base as prod
2226

2327
EXPOSE 8002 8686
2428

25-
ENTRYPOINT ["vector", "-c", "http-server.core.toml", "-c", "http-server.sinks.toml", "--require-healthy", "true"]
29+
ENTRYPOINT ["vector", \
30+
"-c", "sources.toml", \
31+
"-c", "core.toml", \
32+
"-c", "http-sinks.toml", \
33+
"--require-healthy", "true"]

docker/ingestor/http-server.core.toml renamed to docker/ingestor/core.toml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,6 @@ acknowledgements.enabled = true
88
[api]
99
enabled = true
1010
address = "0.0.0.0:8686"
11-
12-
[sources.http_server]
13-
type = "http_server"
14-
address = "0.0.0.0:8002"
15-
headers = ["authorization", "Content-Type", "Traceparent"]
16-
strict_path = false
17-
path = ""
18-
query_parameters = [
19-
"hdx_platform",
20-
"hdx_token",
21-
"sentry_key",
22-
"sentry_version"
23-
]
2411
# --------------------------------------------------------------------------------
2512

2613

File renamed without changes.

docker/ingestor/sources.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[sources.http_server]
2+
type = "http_server"
3+
address = "0.0.0.0:8002"
4+
headers = ["authorization", "Content-Type", "Traceparent"]
5+
strict_path = false
6+
path = ""
7+
query_parameters = [
8+
"hdx_platform",
9+
"hdx_token",
10+
"sentry_key",
11+
"sentry_version"
12+
]

0 commit comments

Comments
 (0)