Closed gangsta closed 4 years ago
Thanks for the report @kalinux. I think the remote storage adapters have rotted a little. As of influx v1.4.0 you don't need the remote storage adapter IIRC, influx supports our remote read/write APIs natively.
Hi @tomwilkie
Can you give me prometheus.yaml example (or point to some documentation) how to configure Prometheus with Influxdb ?
as far as I can find documentation it touches remote_storage_adapter
Regards Karen
Or you meant ?
remote_read:
- url: http://domain.com:8086/
remote_write:
- url: http://domain.com:8086/
I've not used it before, but this blog post has some details: https://www.influxdata.com/blog/influxdb-now-supports-prometheus-remote-read-write-natively/
By now there is also official documentation on how to use the native API: https://docs.influxdata.com/influxdb/v1.4/supported_protocols/prometheus#prometheus-remote-read-and-write-api-support
However until https://github.com/influxdata/influxdb/issues/9244 is not resolved, the native backend is not backwards compatible with the remote_storage_adapter.
Hi @tomwilkie @fmoessbauer , so that means we can close this issue until InfluxDB fixes issue/adds feature ?
@kalinux this depends on how the prometheus team is going to proceed with the remote_storage_adapter. If support is going to be dropped in favor of the influxdb native one, this issue should be at least documented as a known error.
I chatted to @brian-brazil this weekend at FOSDEM and remote_storage_adapter is going to hang around a little longer, as it serves as a good example. I'm going to update it, add it to our CI etc. I'll chat to influx and see if we should remove the influx path from the adapter or not.
@tomwilkie the same from me , chatted with @brian-brazil at FOSDEM about how to solve this Influxdb and remote_storage_adapter story , seems only way so far is just to use url: influxdburl+credentials
cause Influxdb is not providing basic http authentication . so to me its more in Influxdb side ?
@kalinux That's a different problem you're thinking of.
I note that our influx adpater is the only example of a read adapter we have, though others (such as the CrateDB adapter) also exist out there.
so what is solution ? use remote_storage_adapter or not ? use url: influxdb+credentials
or not ?
When referring to the original issue in the first post, i now have the same problem as well. I won't drop remote_storage_adapter
from my setup until InfluxDB fixes the bug @fmoessbauer mentioned - although it seems that for now i have to live without influxdb integration at all.
@simonszu you can use as temporary solution putting all in URL, that's works for as well, but again - as temporary solution.
What do you mean @kalinux ? Adding username and password as GET parameters to the remote storage adapter url?
copied from Docs.
# Remote write configuration (for Graphite, OpenTSDB, or InfluxDB).
remote_write:
* url: "http://localhost:8086/api/v1/prom/write?u=paul&p=foo&db=prometheus"
# Remote read configuration (for InfluxDB only at the moment).
remote_read:
* url: "http://localhost:8086/api/v1/prom/read?u=paul&p=foo&db=prometheus"
Insecure I know , but there is no other solution so far ,
Yeah, ok, this is for InfluxDBs new native Prometheus API. Unfortunately there's https://github.com/influxdata/influxdb/issues/9244 which causes the data sent by Prometheus not properly written into InfluxDBs storage.
seems only way so far is just to use url: influxdburl+credentials cause Influxdb is not providing basic http authentication . so to me its more in Influxdb side
@gangsta Does this mean that basic_auth config doesn't work at all?
Hi all, I am trying to config adapter for prometheus. I want to use basic_auth for the authentication, but I got error from adapter "err="{\"error\":\"unable to parse authentication credentials\"}", which I guess is something wrong in the authentication. How can I use adapter to communicate with influxdb using certain credentials?
@weih1214 I`m using influxdburl+credentials as remote storage url, as far as I get, basic_auth works from Prometheus side, but Influxdb is not supporting it , probably thats why you get this error.
We went through this issue in our bugscrub and have decided to close this as the upstream issue from Influx is fixed. Please feel free to reopen this if you're still seeing problems!
Hi ,
Getting
prometheus.yaml
url: http://localhost:9201/write remote_write:
url: http://localhost:9201/read
remote_stroage_adapter