Skip to content

Instantly share code, notes, and snippets.

@perfectayush
Created August 18, 2020 09:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save perfectayush/3aaec7fd63439be69f07440f72b80ca6 to your computer and use it in GitHub Desktop.
Save perfectayush/3aaec7fd63439be69f07440f72b80ca6 to your computer and use it in GitHub Desktop.
[sources.generator]
type = "generator"
lines = ["Line 1", "Line 2"]
batch_interval = 1
[transforms.transform]
type = "add_fields"
inputs = ["generator"]
overwrite = true
fields.string_field = "string value"
[sources.internal_metrics]
type = "internal_metrics"
[sinks.statsd]
type = "statsd"
inputs = ["internal_metrics"]
namespace = "test"
address = "127.0.0.1:8125"
[sinks.stdout]
type = "console"
inputs = ["internal_metrics", "transform"]
target = "stdout"
encoding = "json"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment