Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 20 00:23

    maoe on update-travis

    Regenerate .travis.yml (compare)

  • Jul 19 08:13
    joell commented #75
  • Jul 18 23:39
    maoe commented #75
  • Jul 18 23:35

    maoe on master

    Merge tag 'v1.6.1.2' into devel… Merge tag 'v1.6.1.3' into devel… Relax version constraint(s) and 20 more (compare)

  • Jul 18 23:34

    maoe on v1.7.1

    (compare)

  • Jul 18 23:34

    maoe on develop

    Prepare for v1.7.1 Merge branch 'release/v1.7.1' Merge tag 'v1.7.1' into develop… (compare)

  • Jul 18 23:18

    maoe on develop

    Update Stackage LTS Ignore stack.yaml.lock (compare)

  • Jul 18 23:16

    maoe on fix-75

    (compare)

  • Jul 18 23:16
    maoe closed #75
  • Jul 18 23:16

    maoe on develop

    Add a test case for #75 Escape backslashes in escapeStr… Merge pull request #76 from mao… (compare)

  • Jul 18 23:16
    maoe closed #76
  • Jul 18 22:40
    maoe commented #75
  • Jul 18 14:49
    joell commented #75
  • Jul 18 13:56
    maoe commented #75
  • Jul 18 13:55
    maoe opened #76
  • Jul 18 13:54

    maoe on fix-75

    Add a test case for #75 Escape backslashes in escapeStr… (compare)

  • Jul 18 00:58
    maoe commented #75
  • Jul 17 15:20
    joell opened #75
  • May 03 10:08
    maoe closed #74
  • May 03 10:08
    maoe commented #74
Mitsutoshi Aoe
@maoe
This message was deleted
Mitsutoshi Aoe
@maoe
test
Mitsutoshi Aoe
@maoe
maoe/influxdb-haskell@4f661ad
test again
Erlend Hamberg
@ehamberg
Hi. How mature/complete would you say this library is? Do you use it in production?
Mitsutoshi Aoe
@maoe
Hi. I’d say this is still immature and the API is likely to change. I’ve been using it at work and it works fine, but I think this library and influxdb itself are both still immature. Are you thinking to use it in production?
Erlend Hamberg
@ehamberg
I'm just investigating influxdb and would prefer to use Haskell, but not sure if I dare to use it. Interesting to hear that you use it in your work. :)
Mitsutoshi Aoe
@maoe
well, we use it to store some time series data and visualize them using grafana (http://grafana.org/). since our data is not that big for now (several points in a second), everything works fine so far.
so currently the library is used just for inserting data.
Erlend Hamberg
@ehamberg
Okay. I'll see if I end up using Influxdb. Interesting to hear how you use it. :)
Tomas Carnecky
@wereHamster
Are there any examples how to use this? The haddock docs don't include any
at least an example how to send some data to the server
Tomas Carnecky
@wereHamster
if I have a type data D = A Int | B String | C Bool, how do I make the ToSeriesData instance?
the toSeriesColumns function has no access to the value, only the proxy, so I can't define different columns based on the constructor.
Ideally I would encode that point as {type:'A', int: x} or {type:'B',string:x} or {type:'C',bool:x}
Tomas Carnecky
@wereHamster
and SeriesData is not an instance of ToSeriesData
Mitsutoshi Aoe
@maoe
Okay, I understand your use case. Currently ToDataSeries doesn't support sum types. I'm planning to change some data types and functions in the near future. I'll add the support for sum types then. As a quick workaround, I'll add a helper function in the next release so you can send SeriesData directly without having to use ToSeriesData type class.
Tomas Carnecky
@wereHamster
Hi, I just released http://hackage.haskell.org/package/libinfluxdb, which works with influxdb 0.9 but only includes code for writing data (so no queries)
It's therefore really small, but includes everything one should need to write metrics data from an application to influxdb.
Mitsutoshi Aoe
@maoe
ah cool
i haven't gotten around to looking at influxdb 0.9 yet but would like to fix the influxdb package in the near future. a guy is also interested in doing that in #23.
Moritz Kiefer
@cocreature
@maoe Hey, I was wondering what the remaining blockers for #30 are? I’d be happy to help out but so far I know very little about influxdb (but quite a bit of Haskell)
Mitsutoshi Aoe
@maoe
@cocreature thanks for your interest. i've been trying that branch at work and polishing the API at the moment. it would be great if you could try it in your application and give me feedback.
Moritz Kiefer
@cocreature
@maoe I don’t have an application yet (wanted to make sure 1.1 support is somewhat ready before I start) but I’ll see what I can do
Mitsutoshi Aoe
@maoe
I just released v1.0.0 which supports the latest InfluxDB
Xander Dunn
@xanderdunn
@maoe Thanks very much for writing the InfluxDB Haskell library, especially for the recent update to Influx 1.2
We're considering using InfluxDB for time series stock data
However, we just noticed that JOIN operations can be executed only on the time column. How do you get around this limitation?
Let's say you wanted to join different measurements on their stock ticker tag, or some ID?
Mitsutoshi Aoe
@maoe
thanks for your interest. i think that's a general question about influxdb, not about this binding, right?
yes, influxdb stopped allowing joining different measurements as of v0.9 or something. i think you can just use tags for ticker symbols. then if you select without the tag, you'll get all the stocks combined.
Xander Dunn
@xanderdunn
Yeah, that's right
odsogunro
@odsogunro
hi @maoe, I would like to send csv data (which includes historical timestamps to millisecond precision, ex: 2017-01-02 03:04:05.006) to influxdb using your package. Can I pass existing timestamps?
Mitsutoshi Aoe
@maoe
@odsogunro sorry for the delayed response. i didn't notice your message. yes, you can pass timestamps by putting them in the last field of the Line type: https://hackage.haskell.org/package/influxdb-1.2.2.2/docs/Database-InfluxDB-Line.html#t:Line
you can take a look at this example: https://hackage.haskell.org/package/influxdb-1.2.2.2/docs/Database-InfluxDB.html#v:write
here you can change Nothing :: Maybe UTCTime to whatever timestamp you have