ServiceInput示例插件
Last updated
service_input_example 可作为编写ServiceInput类插件的参考示例样例,可以在指定端口接收模拟HTTP请求。
Type
String
是
插件类型,固定为service_input_example
Address
String
否
接收端口。
默认取值为:19000。
采集配置
enable: true
inputs:
- Type: service_input_example
flushers:
- Type: flusher_stdout
OnlyStdout: true 输入
curl --header "test:val123" http://127.0.0.1:19000/data输出
Last updated
{
"test":"val123",
"__time__":"1658495321"
}