Skip to content

Commit

Permalink
feat(regression): convert all regression cases configs to YAML (#18825)
Browse files Browse the repository at this point in the history
* feat(regression): convert all regression cases configs to YAML

* spell checking

* yaml format fixes

* conversion fixes

* workload checks - vector.yaml
  • Loading branch information
pront authored Oct 13, 2023
1 parent 3c4ae86 commit 92fa200
Show file tree
Hide file tree
Showing 53 changed files with 1,031 additions and 940 deletions.
1 change: 1 addition & 0 deletions .github/actions/spelling/allow.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ Collectd
Comcast
Consolas
Coolpad
BADDCAFE
DEBHELPER
Danew
dkr
Expand Down
49 changes: 0 additions & 49 deletions regression/cases/datadog_agent_remap_blackhole/vector/vector.toml

This file was deleted.

51 changes: 51 additions & 0 deletions regression/cases/datadog_agent_remap_blackhole/vector/vector.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
data_dir: "/var/lib/vector"

##
## Sources
##

sources:
internal_metrics:
type: "internal_metrics"

datadog_agent:
type: "datadog_agent"
acknowledgements: false
address: "0.0.0.0:8282"

##
## Transforms
##

transforms:
remap:
type: "remap"
inputs: [ "datadog_agent" ]
source: |
.hostname = "vector"
if .status == "warning" {
.thing = upcase(.hostname)
} else if .status == "notice" {
.thung = downcase(.hostname)
} else {
.nong = upcase(.hostname)
}
.matches = { "name": .message, "num": "2" }
.origin, .err = .hostname + "/" + .matches.name + "/" + .matches.num
##
## Sinks
##

sinks:
prometheus:
type: "prometheus_exporter"
inputs: [ "internal_metrics" ]
address: "0.0.0.0:9090"

blackhole:
type: "blackhole"
print_interval_secs: 0
inputs: [ "remap" ]

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
data_dir: "/var/lib/vector"

##
## Sources
##

sources:
internal_metrics:
type: "internal_metrics"

datadog_agent:
type: "datadog_agent"
acknowledgements: true
address: "0.0.0.0:8282"

##
## Transforms
##

transforms:
remap:
type: "remap"
inputs: [ "datadog_agent" ]
source: |
.hostname = "vector"
if .status == "warning" {
.thing = upcase(.hostname)
} else if .status == "notice" {
.thung = downcase(.hostname)
} else {
.nong = upcase(.hostname)
}
.matches = { "name": .message, "num": "2" }
.origin, .err = .hostname + "/" + .matches.name + "/" + .matches.num
##
## Sinks
##

sinks:
prometheus:
type: "prometheus_exporter"
inputs: [ "internal_metrics" ]
address: "0.0.0.0:9090"

blackhole:
type: "blackhole"
print_interval_secs: 0
inputs: [ "remap" ]

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
data_dir: "/var/lib/vector"

##
## Sources
##

sources:
internal_metrics:
type: "internal_metrics"

datadog_agent:
type: "datadog_agent"
acknowledgements: false
address: "0.0.0.0:8282"

##
## Transforms
##

transforms:
parse_message:
type: "remap"
inputs: [ "datadog_agent" ]
source: |
pyld, err = parse_json(.message)
if err == null {
.message = pyld.mineral
}
##
## Sinks
##

sinks:
prometheus:
type: "prometheus_exporter"
inputs: [ "internal_metrics" ]
address: "0.0.0.0:9090"

datadog_logs:
type: "datadog_logs"
inputs: [ "parse_message" ]
endpoint: "http://localhost:8080"
default_api_key: "DEADBEEF"
healthcheck:
enabled: false
buffer:
type: "memory"
max_events: 50000 # buffer 50 payloads at a time

This file was deleted.

Loading

0 comments on commit 92fa200

Please sign in to comment.