The v1 client libraries for InfluxDB were typically developed and maintained by community members. For InfluxDB 3.0 users, this library is succeeded by the lightweight v3 client library.
This repo has moved to InfluxDB main repo
The v1 client libraries for InfluxDB were typically developed and maintained by community members. For InfluxDB 3.0 users, this library is succeeded by the lightweight v3 client library.
This repo has moved to InfluxDB main repo
What format should we send to specify a time value in go? time.Unix() UnixNano() ?
Hi,
I have the following code:
series := &influxdb.Series{
Name: "foometer",
Columns: []string{"time", "frequency"},
Points: [][]interface{}{
[]interface{}{reading.Timestamp.Unix() * 1000, reading.Value},
},
}
fmt.Printf("%v\n", series)
data, err := json.Marshal(series)
if err != nil {
log.Fatal("Error serializing into json: ", err.Error())
}
fmt.Printf("%s\n", data)
if err := client.WriteSeries([]*influxdb.Series{series}); err != nil {
log.Fatal("Failed to store data: ", err)
}
The WriteSeries call fails with the message
2014/07/02 17:41:01 Failed to store data: Server returned (400): invalid character '\x1f' looking for beginning of value
but the json-serialized series value looks fine to me:
{"name":"foometer","columns":["time","frequency"],"points":[[1404315661000,50.042]]}
Any ideas where this is coming from? I'm using
$ influxdb -v
InfluxDB v0.7.0 (git: 696d61d) (leveldb: 1.15)
$ uname -a
Linux work 3.2.0-64-generic-pae #97-Ubuntu SMP Wed Jun 4 22:22:15 UTC 2014 i686 i686 i386 GNU/Linux
Since InfluxDB has support for ssl, the client should be able to connect on the ssl port.
methods should check the status code of the response and return appropriate errors
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.