Hi folks:

The issue is not really an issue. It is only the natural behavior of 
Telegraf and InfluxDB. First, Telegraf sets the same time to all outs of my 
script and then InfluxDB overwrites the metrics that have same time and 
tags. So, to solve this, I modified the script to produce the outs as 
follow:

telegraf,domain="example.org" amount=311
telegraf,domain="example.com" amount=17

The idea is to define differents tags for each out.

El miércoles, 18 de enero de 2017, 18:00:49 (UTC-4), Roannel Fernandez 
escribió:
>
> Hi folks:
>
> I'm using Telegraf 1.0.1. I have a Python script and I use the exec input 
> to execute the script. The script output is:
>
> telegraf domain="example.org",amount=311
> telegraf domain="example.com",amount=17
>
> The input configuration is:
>
> [[inputs.exec]]
>    commands = [
>      "/opt/exec.py"
>    ]
>    interval = "3h"
>    timeout = "20s"
>    data_format = "influx"
>    tags = []
>
> My problem is that into influxdb is just the last metric, after telegraf 
> inserts the data.
>
> Regards 
>

-- 
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/8b42096a-86bc-46ed-920b-97ae873b91b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to