Add http_listener class to system.telegraf.agent
Change-Id: I5d24665c65d015942e563855cf2889a5431d85f2
diff --git a/telegraf/agent/init.yml b/telegraf/agent/init.yml
index 3f6133d..ca7e2b0 100644
--- a/telegraf/agent/init.yml
+++ b/telegraf/agent/init.yml
@@ -1,5 +1,6 @@
classes:
- service.telegraf.agent
+- system.telegraf.agent.input.http_listener
- system.telegraf.sudo
parameters:
telegraf:
diff --git a/telegraf/agent/input/http_listener.yml b/telegraf/agent/input/http_listener.yml
index 89720e4..6cdcf3c 100644
--- a/telegraf/agent/input/http_listener.yml
+++ b/telegraf/agent/input/http_listener.yml
@@ -1,13 +1,2 @@
-parameters:
- _param:
- telegraf_agent_http_listener_port: 8186
- telegraf:
- agent:
- input:
- http_listener:
- bind:
- address: 127.0.0.1
- port: ${_param:telegraf_agent_http_listener_port}
- read_timeout: 10s
- write_timeout: 10s
- tagexclude: ['hostname']
+classes:
+- service.telegraf.agent.input.http_listener