Skip to content

Instantly share code, notes, and snippets.

@samhld
Last active March 4, 2021 01:17
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 samhld/38c1a76d45d3cb87d7cca5f7ca8db814 to your computer and use it in GitHub Desktop.
Save samhld/38c1a76d45d3cb87d7cca5f7ca8db814 to your computer and use it in GitHub Desktop.
json_parsing.conf
[agent]
# All defaults
interval = "10s"
round_interval = true
metric_batch_size = 5000
metric_buffer_limit = 10000
collection_jitter = "0s"
flush_interval = "10s"
flush_jitter = "5s"
precision = ""
debug = false
quiet = false
logfile = ""
hostname = ""
omit_hostname = false
[[inputs.file]]
files = ["/path/to/file.json"]
data_format = "value"
data_type = "string"
[[processors.starlark]]
namepass = ["file"]
script = "/Users/samdillard/demos/json_parsing/multi-metric_json.star"
# [[outputs.influxdb]]
# urls = ["<url>"]
# [[outputs.file]]
# defaults to "stdout"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment