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
Unable to write influx data when using cluster (installed with helm) insert endpoint #263
Comments
Which Influx client do you use? It looks like it doesn't support enpoints with paths after the domain and port like
This command sends
|
It got a different error with the command |
This error means that
cc'ing @tenmozes , since this could be related to incorrect Helm chart configuration. |
On fresh environment which is deployed via helm helm install -n victoria-metrics-cluster vm/victoria-metrics-cluster ➜ scripts git:(master) ✗ helm list
NAME REVISION UPDATED STATUS CHART APP VERSION NAMESPACE
victoria-metrics-cluster 1 Sat Dec 14 10:20:38 2019 DEPLOYED victoria-metrics-cluster-0.3.0 1.30.5 default i was able to write data to using influx protocol / # curl -d 'test_measurement value=123' -X POST http://victoria-metrics-cluster-vminsert.default.svc.cluster.local:8480/insert/0/influx/write
/ # curl -d 'test_measurement value=123' -X POST http://victoria-metrics-cluster-vminsert.default.svc.cluster.local:8480/insert/0/influx/write |
@madazone the second message means that you have no healty storage nodes. |
The issue is now solved, it was related to a connection issue in my cluster nodes. I have few more questions:
|
I don't know . cc'ing @tenmozes , who could have more information about this.
As I know the official helm chart for VictoriaMetrics cluster doesn't support authentication. It must be performed by a separate authentication proxy sitting in front of
Data between |
There are two supported options for vmselect and insert to expose endpoints
You may support of basic auth on ingress level
|
Thanks for the answers I thought victoriametrics has milliseconds precision, but the following request returns second precision {'status': 'success', 'data': {'resultType': 'matrix', 'result': [{'metric': {'name': 'metric_1', 'db': 'write'}, 'values': [[1576972800, '479']]}]}} |
VictoriaMetrics stores timestamps with millisecond precision. These timestamps could be obtained via /api/v1/export API. As for
|
Closing the issue as resolved. @madazone , feel free re-opening it if you have additional questions regarding this issue. |
Bumps [@date-io/dayjs](https://github.com/dmtrKovalenko/date-io) from 2.11.0 to 2.13.1. - [Release notes](https://github.com/dmtrKovalenko/date-io/releases) - [Commits](dmtrKovalenko/date-io@v2.11.0...v2.13.1) --- updated-dependencies: - dependency-name: "@date-io/dayjs" dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [@date-io/dayjs](https://github.com/dmtrKovalenko/date-io) from 2.11.0 to 2.13.1. - [Release notes](https://github.com/dmtrKovalenko/date-io/releases) - [Commits](dmtrKovalenko/date-io@v2.11.0...v2.13.1) --- updated-dependencies: - dependency-name: "@date-io/dayjs" dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Describe the bug
I am not able to insert influx points when using the cluster deployed with helm
To Reproduce
influxdb client endpoint:
http://victoria-metrics-cluster-vminsert.victoria-metrics-cluster.svc.cluster.local:8480/insert/0/influx/write
vminsert logs:
error VictoriaMetrics@/lib/httpserver/httpserver.go:368 cannot parse path "/write": cannot find {prefix}
2019-12-12T18:54:04.039+0000 error VictoriaMetrics@/lib/httpserver/httpserver.go:368 cannot parse path "/write": cannot find {prefix}
Expected behavior
A clear and concise description of what you expected to happen.
I have no issues when running it from a standalone mode using the following endpoint and the same client:
http://victoria:8428/feeds
Screenshots
If applicable, add screenshots to help explain your problem.
Version
The line returned when passing
--version
command line flag to binary. For example:Additional context
Add any other context about the problem here such as error logs,
/metrics
output, screenshots from the official Grafana dashboard for VictoriaMetrics.The text was updated successfully, but these errors were encountered: