#influxdb

/

      • aah joined the channel
      • GiLgAmEzH has quit
      • NhanH__ joined the channel
      • ipsecguy joined the channel
      • aah joined the channel
      • ghounds has quit
      • edrocks joined the channel
      • ipsecguy joined the channel
      • Phantom7 has quit
      • ipsecguy joined the channel
      • HalfEatenPie joined the channel
      • pauldix has quit
      • pauldix joined the channel
      • ipsecguy joined the channel
      • pauldix has quit
      • pauldix joined the channel
      • edrocks joined the channel
      • ipsecguy joined the channel
      • Phantom7 joined the channel
      • hillar joined the channel
      • robswain[m] joined the channel
      • robswain[m] has quit
      • robswain[m] joined the channel
      • edrocks joined the channel
      • SkyRocknRoll joined the channel
      • Sharebear joined the channel
      • pedrojimenez joined the channel
      • pauldix has quit
      • Phantom7 has quit
      • hillar has quit
      • winem_ joined the channel
      • edrocks joined the channel
      • deniszh joined the channel
      • productiondba joined the channel
      • damjan joined the channel
      • overlord_tm joined the channel
      • Danielss89
        phendryx in regards to my question the other day, about the CQ resampling, i'm looking for some documentation for RESAMPLE, i can only find what you've sent, and all it documents is how to do it for NOW - x, not from the last X entries or TIMESTAMP - x
      • do you know where i can find more documentation on that?
      • Cohedrin joined the channel
      • Issif joined the channel
      • ton31337 joined the channel
      • ton31337
        how to profile influxdb queries?
      • robswain[m] has quit
      • valvin has left the channel
      • ton31337 has left the channel
      • scottc1 joined the channel
      • pauldix joined the channel
      • hillar joined the channel
      • pauldix has quit
      • Druid_ joined the channel
      • edrocks joined the channel
      • hillar has quit
      • hillar joined the channel
      • hillar has quit
      • sztanpet has quit
      • sztanpet joined the channel
      • robswain[m] joined the channel
      • Sharebear joined the channel
      • Issif has quit
      • edrocks joined the channel
      • Phantom7 joined the channel
      • Issif joined the channel
      • phendryx
        Danielss89 thats all the documentation you really need. There are 2 use cases for resampling.
      • 1) when everything is flowing smoothly, you might get some data a little late. Having a CQ with RESAMPLE options will allow you to check the last x iterations. In this case, the following query RESAMPLES the last 2 groups of 30 minutes to ensure the data is correct in your rollup measurement:
      • CREATE CONTINUOUS QUERY vampires_1 ON transylvania RESAMPLE FOR 60m BEGIN SELECT count(dracula) INTO vampire_populations_1 FROM raw_vampires GROUP BY time(30m) END
      • 2) when you need to backfill a rollup from "last week" or something along those lines. Thats when you use a query that looks something like:
      • SELECT min(temp) as min_temp, max(temp) as max_temp INTO "reading.minmax.5m" FROM reading WHERE time >= '2015-12-14 00:05:20' AND time < '2015-12-15 00:05:20' GROUP BY time(5m)
      • tommyboy113 joined the channel
      • tommyboy113
        hello, I have a small question: is it possible to add new tag, when downsampling data? That tag doesn't exist in the table from which data is downsampled.
      • phendryx
        tommyboy113 are you downsampling to a new measurement?
      • tommyboy113
        yes
      • phendryx
        actually, that question was pointless, you can always add a new tag, sorry
      • my question, not yours :)
      • wait.. thats downsampling, not via http or api, etc..
      • I spoke too soon
      • Danielss89
        phendryx ok, well my "problem" is that a device might send a datapoint from 1 year ago, so the resample would have to be from the period where the time is from
      • tommyboy113
        to be honest it doesn't matter. I'm trying to use it for data migration. I'm downsampling old data and I need to add new tags.
      • Danielss89
        phendryx and as i understand it, a CQ uses NOW()?
      • and not the actual time from the datapoint
      • tommyboy113
        I can use whatever I want, api, http and so on.
      • phendryx
        tommyboy113 then if I were doing data migration, Id write a script in ruby/python/etc that would select my data out, allow me to transform it, and push it back into the new measurement
      • otherwise Id try to find a built in solution.. guess it depends on your data size too
      • Danielss89 thats the thing, CQ with RESAMPLE is not meant to catch data from a year ago
      • Danielss89
        phendryx yeah thought so :( so how would i accomplish this? I mean, i don't know when a datapoint like this comes in
      • tommyboy113
        @phendryx okay, got it. So as I understand from the direction I should take is I can't add new tags in select into statements ant so on?
      • phendryx
        Danielss89 that's a good question... for work, I had to build a "replay" system that its purpose in life was backfilling data and then running downsampling/rollup
      • Danielss89
        what about kapacitor, can that do what i want?
      • or would that be the same?
      • phendryx
        Danielss89 if you have 2 retention policies, 1 for 30 days of all data (as it flows in, not necessarily the timestamp of the record), another for all downsampled data, you could write some sort of check that looks for data older than 30 days and then do a manual downsample
      • thehunt33r has quit
      • Danielss89 thats interesting.. I havent looked into that before.. maybe?
      • edrocks joined the channel
      • tommyboy113 yeah, I dont think so.. https://github.com/influxdata/influxdb/issues/3904 shows other people wanting the same, but the issue was closed
      • tommyboy113
        phendryx, okay, thanks :)
      • productiondba joined the channel
      • edrocks joined the channel
      • hydro-b has quit
      • edrocks has quit
      • Phantom7 has quit
      • edrocks joined the channel
      • tommyboy113 has quit
      • ghounds joined the channel
      • thehunt33r joined the channel
      • aah joined the channel
      • GiLgAmEzH joined the channel
      • edrocks joined the channel
      • ghounds has quit
      • ghounds joined the channel
      • hydro-b joined the channel
      • hydro-b has quit
      • hydro-b joined the channel
      • nefilim joined the channel
      • ghounds has quit
      • pedrojimenez has quit
      • einnjo joined the channel
      • aah joined the channel
      • tomaz_b joined the channel
      • ghounds joined the channel
      • ghounds has quit
      • GiLgAmEzH has quit
      • Issif has quit
      • Phantom7 joined the channel
      • hanine_ joined the channel
      • GiLgAmEzH joined the channel
      • ghounds joined the channel
      • pauldix joined the channel
      • pauldix has quit
      • pauldix joined the channel
      • pauldix has quit
      • pauldix joined the channel
      • hanine_ joined the channel
      • Sharebear joined the channel
      • Phantom7 has quit
      • ghounds has quit
      • Phantom7 joined the channel
      • Mattch has quit
      • pauldix has quit
      • hillar joined the channel
      • pauldix joined the channel
      • pauldix has quit
      • pauldix joined the channel
      • Cohedrin joined the channel
      • edrocks joined the channel
      • pauldix has quit
      • pauldix joined the channel
      • sztanpet has quit
      • pauldix has quit
      • arcanez
        you're only able to insert one 'row' per timestamp, correct? there is no way to augment it's uniqueness (tags, etc)?
      • *its
      • sztanpet joined the channel