Skip to content

Commit

Permalink
Update configuration files by removing deprecated tags in octane.yaml…
Browse files Browse the repository at this point in the history
…, adding new tags in octane-pdns.yaml, and introducing AWS credentials in vector.toml.
  • Loading branch information
nsouto committed Oct 1, 2024
1 parent 5a1c477 commit a6ac3c9
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 32 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/octane-pdns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,12 @@ jobs:
fail-fast: false
matrix:
build:
- {tag: "8.2-cli-buster", platforms: "linux/arm64,linux/amd64"}
- {tag: "8.2-cli-bullseye", platforms: "linux/arm64,linux/amd64"}
- {tag: "8.2-cli-bookworm", platforms: "linux/arm64,linux/amd64"}
- {tag: "8.2.12-cli-bullseye", platforms: "linux/arm64,linux/amd64"}
- {tag: "8.2.12-cli-bookworm", platforms: "linux/arm64,linux/amd64"}
- {tag: "8.3-cli-bullseye", platforms: "linux/arm64,linux/amd64"}
- {tag: "8.3-cli-bookworm", platforms: "linux/arm64,linux/amd64"}
- {tag: "latest", platforms: "linux/arm64,linux/amd64"}

Expand Down
9 changes: 0 additions & 9 deletions .github/workflows/octane.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,6 @@ jobs:
fail-fast: false
matrix:
build:
# - {tag: "8.0-cli-buster", platforms: "linux/arm64,linux/amd64"}
# - {tag: "8.0-cli-bullseye", platforms: "linux/arm64,linux/amd64"}
# - {tag: "8.0.30-cli-buster", platforms: "linux/arm64,linux/amd64"}
# - {tag: "8.0.30-cli-bullseye", platforms: "linux/arm64,linux/amd64"}
# - {tag: "8.1-cli-buster", platforms: "linux/arm64,linux/amd64"}
# - {tag: "8.1-cli-bullseye", platforms: "linux/arm64,linux/amd64"}
# - {tag: "8.1-cli-bookworm", platforms: "linux/arm64,linux/amd64"}
# - {tag: "8.1.25-cli-bullseye", platforms: "linux/arm64,linux/amd64"}
# - {tag: "8.1.25-cli-bookworm", platforms: "linux/arm64,linux/amd64"}
- {tag: "8.2-cli-buster", platforms: "linux/arm64,linux/amd64"}
- {tag: "8.2-cli-bullseye", platforms: "linux/arm64,linux/amd64"}
- {tag: "8.2-cli-bookworm", platforms: "linux/arm64,linux/amd64"}
Expand Down
4 changes: 4 additions & 0 deletions octane-pdns/etc/vector/vector.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
source = '''
.kinesis_stream_name = .kinesis_stream_name
.aws_region = .aws_region
.aws_access_key_id = .aws_access_key_id
.aws_secret_access_key = .aws_secret_access_key
. = parse_json!(.message)
'''

Expand All @@ -28,6 +30,8 @@
inputs = ["parse_json"]
stream_name = "{{kinesis_stream_name}}"
region = "{{aws_region}}"
auth.access_key_id = "{{aws_access_key_id}}"
auth.secret_access_key = "{{aws_secret_access_key}}"
encoding.codec = "json"

# Optional: Configure batching to optimize network usage
Expand Down
50 changes: 27 additions & 23 deletions octane/etc/vector/vector.toml
Original file line number Diff line number Diff line change
@@ -1,40 +1,44 @@
# TCP source for incoming JSON data
[sources.socket_tcp]
type = "socket"
address = "0.0.0.0:9001"
mode = "tcp"
max_length = 1024000
type = "socket"
address = "0.0.0.0:9001"
mode = "tcp"
max_length = 1024000

# UDP source for incoming JSON data
[sources.socket_udp]
type = "socket"
address = "0.0.0.0:9002"
mode = "udp"
max_length = 1024000
type = "socket"
address = "0.0.0.0:9002"
mode = "udp"
max_length = 1024000

# Transform: Parse incoming JSON and isolate the message field
[transforms.parse_json]
type = "remap"
inputs = ["socket_tcp", "socket_udp"]
source = '''
type = "remap"
inputs = ["socket_tcp", "socket_udp"]
source = '''
.kinesis_stream_name = .kinesis_stream_name
.aws_region = .aws_region
.aws_access_key_id = .aws_access_key_id
.aws_secret_access_key = .aws_secret_access_key
. = parse_json!(.message)
'''

# Kinesis sink with dynamically set stream name and region
[sinks.kinesis_dynamic]
type = "aws_kinesis_streams"
inputs = ["parse_json"]
stream_name = "{{kinesis_stream_name}}"
region = "{{aws_region}}"
encoding.codec = "json"
type = "aws_kinesis_streams"
inputs = ["parse_json"]
stream_name = "{{kinesis_stream_name}}"
region = "{{aws_region}}"
auth.access_key_id = "{{aws_access_key_id}}"
auth.secret_access_key = "{{aws_secret_access_key}}"
encoding.codec = "json"

# Optional: Configure batching to optimize network usage
batch.max_bytes = 1024000
batch.timeout_secs = 1
# Optional: Configure batching to optimize network usage
batch.max_bytes = 1024000
batch.timeout_secs = 1

# Retry settings
request.in_flight_limit = 5
request.retry_attempts = 10
request.timeout_secs = 30
# Retry settings
request.in_flight_limit = 5
request.retry_attempts = 10
request.timeout_secs = 30

0 comments on commit a6ac3c9

Please sign in to comment.