On Tuesday, December 20, 2016 at 7:17:48 AM UTC-8, [email protected] wrote:
> Hi, please help!) Have ip tv stream Cesbo Astra.. Astra can sending 
> statistics to remoted host in json format. How i can insert json array in 
> influxdb
>  
> Example json array:
>  
> [{"hostname":"ubuntu","channel":{"input":["udp://239.224.20.1:1234"],"id":"1","type":"spts","name":"Первый","enable":true},"timestamp":1482177084}]
> [{"pes_error":0,"input_id":1,"bitrate":4001,"onair":true,"scrambled":false,"cc_error":0,"timestamp":1482177085,"channel_id":"1"}]

You could write a Telegraf input plugin [1] to accept that JSON, or you could 
write a separate standalone utility to directly convert that JSON to line 
protocol [2] and insert it in InfluxDB.

[1] 
https://github.com/influxdata/telegraf/blob/master/CONTRIBUTING.md#service-input-plugins
[2] 
https://docs.influxdata.com/influxdb/v1.1/write_protocols/line_protocol_tutorial/

-- 
Remember to include the version number!
--- 
You received this message because you are subscribed to the Google Groups 
"InfluxData" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/influxdb.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/influxdb/a614bf3d-6af2-4cd7-854a-5d080a911d62%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to