im trying to send data with nats client to telegraf
but I’m getting invalid timestamp or invalid number error on telegraf
using (IEncodedConnection _c = new ConnectionFactory().CreateEncodedConnection(“nats://10.1.70.174:4222”))
{
_c.Publish(“api_sniffer”, Encoding.UTF8.GetBytes(string.Format(“weather,location={0} temperature={1},bug_concentration={2} 1465839830100400200”, “bla”,55,66)));
_c.Close();
}
this will throw
2017-06-25T13:30:03Z E! Error in plugin [inputs.nats_consumer]: E! subject: api_
sniffer, error: metric parsing error, reason: [invalid timestamp], buffer: [
??? Lweather,location=bla temperature=55,bug_concentration=66 146
5839830100400200♂