summaryrefslogtreecommitdiffstats
path: root/src/go/collectors/go.d.plugin/modules/fluentd/testdata
diff options
context:
space:
mode:
Diffstat (limited to 'src/go/collectors/go.d.plugin/modules/fluentd/testdata')
-rw-r--r--src/go/collectors/go.d.plugin/modules/fluentd/testdata/config.json21
-rw-r--r--src/go/collectors/go.d.plugin/modules/fluentd/testdata/config.yaml18
-rw-r--r--src/go/collectors/go.d.plugin/modules/fluentd/testdata/plugins.json101
3 files changed, 140 insertions, 0 deletions
diff --git a/src/go/collectors/go.d.plugin/modules/fluentd/testdata/config.json b/src/go/collectors/go.d.plugin/modules/fluentd/testdata/config.json
new file mode 100644
index 000000000..6477bd57d
--- /dev/null
+++ b/src/go/collectors/go.d.plugin/modules/fluentd/testdata/config.json
@@ -0,0 +1,21 @@
+{
+ "update_every": 123,
+ "url": "ok",
+ "body": "ok",
+ "method": "ok",
+ "headers": {
+ "ok": "ok"
+ },
+ "username": "ok",
+ "password": "ok",
+ "proxy_url": "ok",
+ "proxy_username": "ok",
+ "proxy_password": "ok",
+ "timeout": 123.123,
+ "not_follow_redirects": true,
+ "tls_ca": "ok",
+ "tls_cert": "ok",
+ "tls_key": "ok",
+ "tls_skip_verify": true,
+ "permit_plugin_id": "ok"
+}
diff --git a/src/go/collectors/go.d.plugin/modules/fluentd/testdata/config.yaml b/src/go/collectors/go.d.plugin/modules/fluentd/testdata/config.yaml
new file mode 100644
index 000000000..0afd42e67
--- /dev/null
+++ b/src/go/collectors/go.d.plugin/modules/fluentd/testdata/config.yaml
@@ -0,0 +1,18 @@
+update_every: 123
+url: "ok"
+body: "ok"
+method: "ok"
+headers:
+ ok: "ok"
+username: "ok"
+password: "ok"
+proxy_url: "ok"
+proxy_username: "ok"
+proxy_password: "ok"
+timeout: 123.123
+not_follow_redirects: yes
+tls_ca: "ok"
+tls_cert: "ok"
+tls_key: "ok"
+tls_skip_verify: yes
+permit_plugin_id: "ok"
diff --git a/src/go/collectors/go.d.plugin/modules/fluentd/testdata/plugins.json b/src/go/collectors/go.d.plugin/modules/fluentd/testdata/plugins.json
new file mode 100644
index 000000000..1fd921f7c
--- /dev/null
+++ b/src/go/collectors/go.d.plugin/modules/fluentd/testdata/plugins.json
@@ -0,0 +1,101 @@
+{
+ "plugins": [
+ {
+ "plugin_id": "input_forward",
+ "plugin_category": "input",
+ "type": "forward",
+ "config": {
+ "@type": "forward",
+ "@id": "input_forward"
+ },
+ "output_plugin": false,
+ "retry_count": null
+ },
+ {
+ "plugin_id": "input_http",
+ "plugin_category": "input",
+ "type": "http",
+ "config": {
+ "@type": "http",
+ "@id": "input_http",
+ "port": "8888"
+ },
+ "output_plugin": false,
+ "retry_count": null
+ },
+ {
+ "plugin_id": "input_debug_agent",
+ "plugin_category": "input",
+ "type": "debug_agent",
+ "config": {
+ "@type": "debug_agent",
+ "@id": "input_debug_agent",
+ "bind": "127.0.0.1",
+ "port": "24230"
+ },
+ "output_plugin": false,
+ "retry_count": null
+ },
+ {
+ "plugin_id": "object:3f7e4d08e3e0",
+ "plugin_category": "input",
+ "type": "monitor_agent",
+ "config": {
+ "@type": "monitor_agent",
+ "bind": "0.0.0.0",
+ "port": "24220"
+ },
+ "output_plugin": false,
+ "retry_count": null
+ },
+ {
+ "plugin_id": "output_td",
+ "plugin_category": "output",
+ "type": "tdlog",
+ "config": {
+ "@type": "tdlog",
+ "@id": "output_td",
+ "apikey": "xxxxxx",
+ "auto_create_table": ""
+ },
+ "output_plugin": true,
+ "buffer_queue_length": 0,
+ "buffer_total_queued_size": 0,
+ "retry_count": 0,
+ "retry": {}
+ },
+ {
+ "plugin_id": "output_stdout",
+ "plugin_category": "output",
+ "type": "stdout",
+ "config": {
+ "@type": "stdout",
+ "@id": "output_stdout"
+ },
+ "output_plugin": true,
+ "retry_count": 0,
+ "retry": {}
+ },
+ {
+ "plugin_id": "object:3f7e4b836770",
+ "plugin_category": "filter",
+ "type": "grep",
+ "config": {
+ "@type": "grep",
+ "regexp1": "message cool"
+ },
+ "output_plugin": false,
+ "retry_count": null
+ },
+ {
+ "plugin_id": "object:3f7e4bbe5a38",
+ "plugin_category": "filter",
+ "type": "record_transformer",
+ "config": {
+ "@type": "record_transformer"
+ },
+ "output_plugin": false,
+ "retry_count": null
+ }
+ ]
+} \ No newline at end of file