Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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

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: 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