@@ -97,62 +97,16 @@ omit_hostname = false
97
97
# # or "gosmi" which translates using the built-in gosmi library.
98
98
# snmp_translator = "netsnmp"
99
99
100
- # Generic HTTP write listener
101
- [[inputs .http_listener_v2 ]]
102
- # # Address and port to host HTTP listener on
103
- service_address = " :8080"
104
-
105
- # # Paths to listen to.
106
- paths = [" /remote_write" ]
107
-
108
- # # Save path as http_listener_v2_path tag if set to true
109
- # path_tag = false
110
-
111
- # # HTTP methods to accept.
112
- # methods = ["POST", "PUT"]
113
-
114
- # # maximum duration before timing out read of the request
115
- # read_timeout = "10s"
116
- # # maximum duration before timing out write of the response
117
- # write_timeout = "10s"
118
-
119
- # # Maximum allowed http request body size in bytes.
120
- # # 0 means to use the default of 524,288,000 bytes (500 mebibytes)
121
- # max_body_size = "500MB"
122
-
123
- # # Part of the request to consume. Available options are "body" and
124
- # # "query".
125
- # data_source = "body"
126
-
127
- # # Set one or more allowed client CA certificate file names to
128
- # # enable mutually authenticated TLS connections
129
- # tls_allowed_cacerts = ["/etc/telegraf/clientca.pem"]
130
-
131
- # # Add service certificate and key
132
- # tls_cert = "/etc/telegraf/cert.pem"
133
- # tls_key = "/etc/telegraf/key.pem"
134
-
135
- # # Minimal TLS version accepted by the server
136
- # tls_min_version = "TLS12"
137
-
138
- # # Optional username and password to accept for HTTP basic authentication.
139
- # # You probably want to make sure you have TLS configured above for this.
140
- # basic_username = "foobar"
141
- # basic_password = "barfoo"
142
-
143
- # # Optional setting to map http headers into tags
144
- # # If the http header is not present on the request, no corresponding tag will be added
145
- # # If multiple instances of the http header are present, only the first value will be used
146
- # http_header_tags = {"HTTP_HEADER" = "TAG_NAME"}
147
-
148
- # # Data format to consume.
149
- # # Each data format has its own unique set of configuration options, read
150
- # # more about them here:
151
- # # https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
152
- data_format = " prometheusremotewrite"
153
-
154
- [[outputs .cnosdb ]]
155
- url = " localhost:31006"
156
- user = " user"
157
- password = " pass"
158
- database = " telegraf"
100
+ [[inputs .cnosdb ]]
101
+ service_address = " :8803"
102
+
103
+ [[outputs .http ]]
104
+ url = " http://127.0.0.1:6041/influxdb/v1/write?db=telegraf"
105
+ timeout = " 5s"
106
+ method = " POST"
107
+ username = " root"
108
+ password = " taosdata"
109
+ data_format = " influx"
110
+ use_batch_format = true
111
+ content_encoding = " identity"
112
+ idle_conn_timeout = 10
0 commit comments