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

Send data to VictoriaMetrics #67

Open
macjl opened this issue Sep 27, 2024 · 3 comments
Open

Send data to VictoriaMetrics #67

macjl opened this issue Sep 27, 2024 · 3 comments

Comments

@macjl
Copy link

macjl commented Sep 27, 2024

Hello,

I’m trying to use vmagent to send InfluxDB compatible data to Prometheus/VictoriaMetrics. The goal is that this agent handle cache. So it would keep datas on disk till connection is availble. And the agent can run on arm32, so would work on Victon VenusOS.

But I’m facing an issue. On Signalk side, I have this error :
Sep 27 17:36:03 t [HttpError]: 400 Bad Request : remoteAddr: "127.0.0.1:54660"; requestURI: /api/v2/orgs?org=test; unsupported path requested: "/api/v2/orgs" at IncomingMessage.<anonymous> (/data/conf/signalk/node_modules/@influxdata/influxdb-client/dist/index.js:5:5684) at IncomingMessage.emit (node:events:529:35) at endReadableNT (node:internal/streams/readable:1400:12) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { statusCode: 400, statusMessage: 'Bad Request', body: 'remoteAddr: "127.0.0.1:54660"; requestURI: /api/v2/orgs?org=test; unsupported path requested: "/api/v2/orgs"\n', contentType: 'text/plain; charset=utf-8', headers: { 'content-type': 'text/plain; charset=utf-8', vary: 'Accept-Encoding', 'x-content-type-options': 'nosniff', 'x-server-hostname': 'raspberrypi4', date: 'Fri, 27 Sep 2024 17:36:03 GMT', 'content-length': '109', connection: 'close' }, _retryAfter: 0 }

And on vmagent side, this one :
2024-09-27T17:36:03.276Z warn VictoriaMetrics/lib/httpserver/httpserver.go:422 remoteAddr: "127.0.0.1:54660"; requestURI: /api/v2/orgs?org=test; unsupported path requested: "/api/v2/orgs"

Would it be possible to send data unauthenticated, if it’s the issue ?

@tiny-pangolin
Copy link

Would it be possible to allow users to bypass the orgs and buckets endpoints and throw a warning about not being to validate if their settings are correct?

@macjl
Copy link
Author

macjl commented Oct 11, 2024

Hello @tkurki,

I also opened an issue on VictiriaMetrics side, and they may add /api/v2/orgs endpoint. But is that the only thing that’s needed by that plugin to work ?

@macjl
Copy link
Author

macjl commented Oct 13, 2024

FYI, I now use another plugin for SignalK, that exposes data in Prometheus Exporter format.

So I don’t need this anymore. But other may need it for other uses cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants