-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(regression): convert all regression cases configs to YAML (#18825)
* feat(regression): convert all regression cases configs to YAML * spell checking * yaml format fixes * conversion fixes * workload checks - vector.yaml
- Loading branch information
Showing
53 changed files
with
1,031 additions
and
940 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,6 +44,7 @@ Collectd | |
Comcast | ||
Consolas | ||
Coolpad | ||
BADDCAFE | ||
DEBHELPER | ||
Danew | ||
dkr | ||
|
49 changes: 0 additions & 49 deletions
49
regression/cases/datadog_agent_remap_blackhole/vector/vector.toml
This file was deleted.
Oops, something went wrong.
51 changes: 51 additions & 0 deletions
51
regression/cases/datadog_agent_remap_blackhole/vector/vector.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" ] |
49 changes: 0 additions & 49 deletions
49
regression/cases/datadog_agent_remap_blackhole_acks/vector/vector.toml
This file was deleted.
Oops, something went wrong.
51 changes: 51 additions & 0 deletions
51
regression/cases/datadog_agent_remap_blackhole_acks/vector/vector.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" ] |
45 changes: 0 additions & 45 deletions
45
regression/cases/datadog_agent_remap_datadog_logs/vector/vector.toml
This file was deleted.
Oops, something went wrong.
49 changes: 49 additions & 0 deletions
49
regression/cases/datadog_agent_remap_datadog_logs/vector/vector.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
45 changes: 0 additions & 45 deletions
45
regression/cases/datadog_agent_remap_datadog_logs_acks/vector/vector.toml
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.