Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • May 07 07:10
    maoe commented #91
  • May 05 16:46
    dcolle opened #91
  • May 02 00:53
    maoe commented #90
  • May 02 00:52
    maoe commented #90
  • May 02 00:21

    maoe on develop

    Relax upper version bound for t… (compare)

  • May 01 23:05
    dcolle opened #90
  • Nov 21 2021 01:36

    maoe on master

    Update dependencies Prepare v1.9.2.2 Merge branch 'hotfix/v1.9.2.2' (compare)

  • Nov 21 2021 01:36

    maoe on develop

    Update dependencies Prepare v1.9.2.2 Merge branch 'hotfix/v1.9.2.2' and 1 more (compare)

  • Nov 21 2021 01:36

    maoe on v1.9.2.2

    (compare)

  • Nov 21 2021 01:36

    maoe on v1.9.2.2

    (compare)

  • Nov 21 2021 01:29

    maoe on v1.9.2.2

    (compare)

  • Nov 21 2021 01:18

    maoe on v1.9.2.2

    Regenerate CI settings with new… (compare)

  • Nov 21 2021 01:06

    maoe on v1.9.2.2

    Regenerate CI settings with new… (compare)

  • Nov 21 2021 00:44

    maoe on v1.9.2.2

    Regenerate CI settings with new… (compare)

  • Nov 21 2021 00:29

    maoe on v1.9.2.2

    Regenerate CI settings with new… (compare)

  • Nov 21 2021 00:08

    maoe on v1.9.2.2

    WIP (compare)

  • Nov 21 2021 00:07

    maoe on v1.9.2.2

    Regenerate CI settings with new… (compare)

  • Nov 21 2021 00:03

    maoe on v1.9.2.2

    Regenerate CI settings with new… (compare)

  • Nov 20 2021 23:59

    maoe on v1.9.2.2

    Regenerate CI settings with new… (compare)

  • Nov 20 2021 23:47

    maoe on v1.9.2.2

    Regenerate CI settings with new… (compare)

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
Jan Rock
@janrock-git

Please, please, need a help (example) ;)

let db = "db"
let cred = credentials "admin" "password"
let p = queryParams db & authentication ?~ cred
manage p $ formatQuery ("CREATE DATABASE "%F.database) db

how I can modify the default server.host and add it into the connection string?

Thank you!

Mitsutoshi Aoe
@maoe
@janrock-git hi. you can write queryParams db & authentication ?~ cred & server.host .~ "127.0.0.2" for example.