github.com/Jeffail/benthos/v3@v3.65.0/resources/docker/profiling/config.yaml (about) 1 http: 2 address: 0.0.0.0:4195 3 debug_endpoints: true 4 5 input: 6 bloblang: 7 interval: "1us" 8 mapping: | 9 root = { 10 "locations": [ 11 {"name": "Seattle", "state": "WA"}, 12 {"name": "New York", "state": "NY"}, 13 {"name": "Bellevue", "state": "WA"}, 14 {"name": "Olympia", "state": "WA"} 15 ] 16 } 17 18 pipeline: 19 threads: 20 20 processors: 21 - resource: with_bloblang 22 # - resource: with_jq 23 # - resource: with_jmespath 24 - catch: 25 - log: 26 message: "Err: ${! error() }" 27 - bloblang: 'root = deleted()' 28 29 output: 30 type: drop 31 32 resources: 33 processors: 34 with_bloblang: 35 bloblang: '{"Cities":this.locations.filter(this.state == "WA").map_each(this.name).sort().join(", ")}' 36 37 with_jq: 38 jq: 39 query: '{Cities: .locations | map(select(.state == "WA").name) | sort | join(", ") }' 40 41 with_jmespath: 42 jmespath: 43 query: "locations[?state == 'WA'].name | sort(@) | {Cities: join(', ', @)}" 44 45 metrics: 46 prometheus: 47 prefix: benthos 48 push_interval: 1s 49 push_job_name: benthos_push 50 push_url: "http://localhost:9091" 51 52 # tracer: 53 # jaeger: 54 # agent_address: 'localhost:6831'