Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vmctl: migrate data out of Promscale (TimescaleDB) #4655

Closed
feld opened this issue Jul 17, 2023 · 5 comments
Closed

vmctl: migrate data out of Promscale (TimescaleDB) #4655

feld opened this issue Jul 17, 2023 · 5 comments
Assignees
Labels
enhancement New feature or request vmctl

Comments

@feld
Copy link

feld commented Jul 17, 2023

Describe the bug

Promscale has been deprecated and VictoriaMetrics seems like an appropriate replacement for many use cases.

vmctl can support migrating data from many Prometheus/Influx time series implementations.

Promscale does not store data in the normal Prometheus format so loading the data from snapshots is not possible.

Promscale does not implement the /api/v1/read API endpoint

To Reproduce

try to use vmctl with prometheus remote read

Version

git head

Logs

2023/07/17 17:48:55 remote read error: request failed for: error while fetching data from remote storage: unexpected response code 404 for http://REDACTED:9201/api/v1/read. Response body "404 page not found\n"

Screenshots

No response

Used command-line flags

No response

Additional information

No response

@feld feld added the bug Something isn't working label Jul 17, 2023
@dmitryk-dk dmitryk-dk self-assigned this Jul 18, 2023
@dmitryk-dk
Copy link
Contributor

Hi @feld ! I checked the Promscale code they have the /api/v1/read api. Please check this link.

Can you share how you run your Promscale and vmctl?

@hagen1778
Copy link
Collaborator

Hey @dmitryk-dk can we try migrating data from Promscale to see if issue exists?

@dmitryk-dk
Copy link
Contributor

Hey @dmitryk-dk can we try migrating data from Promscale to see if issue exists?

Hi! Yes of course. I asked just to clarify how user run the Promscale and vmctl. But I will try to reproduce it by mysels

@hagen1778 hagen1778 added TBD To Be Done enhancement New feature or request and removed bug Something isn't working labels Jul 31, 2023
@hagen1778
Copy link
Collaborator

Promscale exposes read API at non-standard path: /read instead of /api/v1/read. Since vmctl expects the standard API path, this difference of Promscale requires to change the expected path. @dmitryk-dk is addressing this here #4744

valyala added a commit that referenced this issue Aug 11, 2023
- Fix default value for --remote-read-disable-path-append
- Clarify description for the change at docs/CHANGELOG.md

Updates #4655

TODO: address the comment at #4744
valyala added a commit that referenced this issue Aug 11, 2023
- Fix default value for --remote-read-disable-path-append
- Clarify description for the change at docs/CHANGELOG.md

Updates #4655

TODO: address the comment at #4744
@valyala
Copy link
Collaborator

valyala commented Aug 12, 2023

vmctl gains support for --remote-read-disable-path-append command-line flag starting from v1.93.0. If this flag is set, then the --remote-read-src-addr may contain full address for the Prometheus read API. For example, the following command should read data from Promscale, which exposes the Prometheus read API at /read path:

./vmctl --remote-read-src-addr=http://promscale-host/read --remote-read-disable-path-append

Closing the feature request as done.

@valyala valyala closed this as completed Aug 12, 2023
@valyala valyala removed the TBD To Be Done label Aug 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request vmctl
Projects
None yet
Development

No branches or pull requests

4 participants