github.com/observiq/carbon@v0.9.11-0.20200820160507-1b872e368a5e/examples/simple_plugins/plugins/decorator.yaml (about) 1 # This plugin is registered as the type 'decorator'. 2 # The type comes from the filename. 3 # It take any entries sent to it, and add the label 4 # 'decorated' to those entries with a value specified 5 # by the argument 'value' in the top-level pipeline 6 pipeline: 7 # The input parameter is replaced with the ID of the 8 # operator in the top-level config so that the plugin 9 # graph can be connected properly. 10 - id: {{ .input }} 11 type: metadata 12 labels: 13 # The value parameter comes from the configuration 14 # of the plugin in the top-level config 15 decorated: {{ .value }} 16 # The output is parameterized with go templates 17 # so that it can use the output that is configured for the 18 # plugin in the top-level pipeline 19 output: {{ .output }}