Skip to content

New timescale sink #939

Open

Description

@binarylogic

I'd like to support Timescale as a sink, and after talking to them it appears we just need to support Postgres since Timescale is built on Postgres. I'm hesitant to call it a Postgres sink given that we'll probably want to make certain assumptions about how we're writing data. Before we begin work we should determine if this is the appropriate course of action.

Ref #935

Activity

  1. added
    needs:approval
    on Sep 26, 2019
  2. jamessewell commented on Oct 3, 2019

    @jamessewell
    Contributor

    As far as writing data there is no difference between Timescale and Postgres.

    It would be up to the user to configure the destination tables (and hypertables in the Timscaledb case) before the sink was used.

  3. akulkarni commented on Oct 8, 2019

    @akulkarni

    A general unified SQL sink might be challenging given the language variants between the different databases.

    But @jamessewell is correct, there should be no difference in writing data between Timescale and Postgres (but there may be other reasons for creating a Timescale specific sink).

  4. added
    needs:requirements
    and removed
    needs:approval
    on Jan 13, 2020
  5. jamessewell commented on Feb 21, 2020

    @jamessewell
    Contributor

    I forgot to note our progress here: this can be achieved using PostgREST (a REST gateway for PostgreSQL) . Performance is very good.

  6. added
    type:feature
    and removed on Jun 16, 2020
  7. removed this from the Initial Metrics Support milestone on Aug 2, 2020
  8. added
    domain:metrics
    on Aug 7, 2020
  9. 2 remaining items

  10. 123BLiN commented on May 20, 2021

    @123BLiN

    @jamessewell Could you please elaborate on details of your implementation of this if possible?
    Are you using http sink to drop events to PostgREST? And how do you create some tables in timescaledb before starting to push events?

  11. ypid-geberit commented on Aug 17, 2021

    @ypid-geberit
    Contributor

    Note that there is a more generic issue #6556 which should probably be implemented first. As discussed above, it might even already solve this issue.

  12. added
    sink:new
    on Aug 1, 2022
  13. changed the title [-]New `timescale` / `postgres` sink[/-] [+]New `postgres` sink[/+] on Dec 28, 2022
  14. changed the title [-]New `postgres` sink[/-] [+]New `timescale` sink[/+] on Dec 28, 2022
  15. jszwedko commented on Dec 28, 2022

    @jszwedko
    Contributor

    Repurposing this to be for timescale specifically. #15765 is tracking a generic postgres sink.

  16. jorgehermo9 commented on Mar 6, 2025

    @jorgehermo9
    Contributor

    I wonder if what is done at #21248 would work out-of-the-box for timescale. Is anyone willing to try? I could try that if I found enough time 😃

  17. jorgehermo9 commented on Jun 15, 2025

    @jorgehermo9
    Contributor

    I think we can close this issue as the postgres source should work with timescale. @isbm Afaik, you are using timescale, right? (as you said here)

    @jszwedko

  18. CameronNemo commented on Jun 16, 2025

    @CameronNemo

    I think at some point folks were talking about the timescaledb sink setting up the hypertable and perhaps other options, but I think folks are probably okay with that not being included in vector and setting up the schema themselves via some other means.

  19. jszwedko commented on Jun 16, 2025

    @jszwedko
    Contributor

    Thanks @CameronNemo . That is something I was wondering about. I'm not familiar with Timescale so I'm not sure if there are additional things that would be beneficial to include in a timescale sink beyond simply sending the data (which the postgres sink is capable of, thanks @jorgehermo9 !). I think someone may need to dig into this more to validate there wouldn't be additional benefit to a timescale sink that wraps the postgres sink before closing it.

  20. jorgehermo9 commented on Jun 16, 2025

    @jorgehermo9
    Contributor

    I think we could take this approach if custom behaviour for timescale is needed #21308 (comment). But it would be very useful to have a concrete feature request (for example, enable that hypertable parameter) instead of a generic one.

    The current postgres sink require the user to manage the DDL, as it does not create tables. I think it would be the same with hypertables (docs) @CameronNemo

  21. jamessewell commented on Jun 16, 2025

    @jamessewell
    Contributor
  22. isbm commented on Jun 17, 2025

    @isbm

    @isbm Afaik, you are using timescale, right?

    Yes. But we are losing data on Vector shutdown tho. 😉

  23. removed
    type:feature
    on Feb 23, 2026
  24. added theissue type on Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    domain:metricsdomain:sinksneeds:approvalneeds:requirementssink:new

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions