Closed ajayanaj closed 5 years ago
This is the error i'm seeing in the browser console.
Failed to load resource: the server /api/datasources/proxy/74/api/v2/query:1 responded with a status of 500 () Failed to load resource: the server /api/datasources/proxy/83/api/v2/query:1 responded with a status of 504 ()
Similar isssue, not able to load the plugin on 6.2 grafana build.
I'm not even able to authenticate the same as the InfluxDB datasource. Using this Docker Compose:
version: "3.7"
services:
grafana:
image: grafana/grafana:6.2.0
volumes:
- ./plugins:/var/lib/grafana/plugins
ports:
- "3000:3000"
myinfluxdb:
image: influxdb:1.7.5
environment:
- INFLUXDB_HTTP_AUTH_ENABLED=true
- INFLUXDB_HTTP_REALM=testing
- INFLUXDB_ADMIN_USER=testing
- INFLUXDB_ADMIN_PASSWORD=testing
- INFLUXDB_DB=testing
- INFLUXDB_LOGGING_LEVEL=debug
- HTTP_FLUX_ENABLED=true
There's a volume mapping for the plugins directory. So:
mkdir plugins
cd plugins
# Downloading the latest, 5.2.11
wget https://github.com/grafana/influxdb-flux-datasource/releases/download/5.2.11/influxdb-flux-datasource-5.2.11.zip
unzip influxdb-flux-datasource-5.2.11.zip
The InfluxDB datasource works fine.
But the Flux 5.2.11 datasource doesn't. I'm getting a 403, though, which is different than the other people in this issue.
Hello team, Any update on this?
Is this in a nebulous state because of the InfluxDB 2.0 alpha? I tried to hook that up to this plugin and it seems like there's very substantial changes in configuration and, I assume, the API.
I may be able to pitch in on this project, but I'm not sure what's going on.
For example, this article says Flux will be a built in datasource. But I saw the commit in the main repo where you split this plugin into its own repository.
Also...are you an employee of Grafana or contributing your free time to this?
This repo is maintained by Grafana. Apologies if things are moving a bit slow on this front, keeping up with API changes for 2.0 has been a bit slow. Community contributions are welcome, and if you rely on this shortterm, those might be your best bet.
Okay! I hope I didn't seem like I was rushing you.
I'll try and contribute something soon.
- HTTP_FLUX_ENABLED=true
In my docker-compose file i had to use this to enable flux:
- INFLUXDB_HTTP_FLUX_ENABLED=true
Oh, shit. What an irritating oversight on my part! Yes, it actually works because the new error message is:
Data source connected, but has no data. Verify the "bucket" field and make sure the bucket has data.
I inserted some data and was able to see it in a panel with the Flux data source. I'm not sure what's going on in my main application, but since it works in the test harness I'm sure I can figure it out. Thanks, @briangann, for noticing that!
@briangann I updated the latest version 5.3.0 and tried to configure the same, but am getting the below error.
That configuration doesn't look right, can you try recreating the datasource?
@briangann It's not even showing the configuration part, I tried to to remove the datasource then added back again. I'm just seeing this only.
When I click on Save&test It's throwing validation failed error.
It looks like the module.js is missing. If you download the grafana-influxdb-flux-datasource-5.3.0.tar.gz file from "Releases" here at "grafana/influxdb-flux-datasource", then extract it you will find that module.js is located into the "dist" folder. When checking out the source with git or installing with "grafana-cli plugins install grafana-influxdb-flux-datasource" you will also miss the "dist" folder.
So installing the flux datasource plugin with the "release file" will make things work for you.
FWIW, I coerced grafana-cli
to install the plugin from the github release like so:
# grafana-cli --pluginUrl https://github.com/grafana/influxdb-flux-datasource/releases/download/v5.3.0/grafana-influxdb-flux-datasource-5.3.0.zip plugins install grafana-influxdb-flux-datasource
Plugin is working for me, against a v1.7.6 server.
Thanks @dswarbrick That worked after I picked the "correct" plugin file: grafana-influxdb-flux-datasource-5.3.0.zip
It was a faulty release to grafana.com, upgrading to 5.3.1 (latest) will fix it.
We've implemented a good build pipeline for releases, but there's one step where a mistake can occur, and that's what I managed to do :(
Closing this issue, as it works now (tested with Grafana 6.2, Influx 2.0.0-alpha, Plugin 5.3.1)
@davkal Sorry to reopen this issue again. I'm still facing error with this plugin. I installed flux V5.3.1 in grafana V6.0, while trying to configure the plugin am getting "Network Error: Forbidden(403)" In grafana log I found the below.
It seems it's looking for for InfluxDB V2.0 org. Even I tried to put "InfluxDB 2.0.0 Details" as vacant, but no luck. I'm using influxDB version 1.7.4.
I also noticed another error "Network Error: Bad Request(400)" with Flux plugin on one of our production grafana instance(With influxDB version 1.7.6). There I found grafana log as below.
In the production instance grafana I put "InfluxDB 2.0.0 Details" as vacant and tried to configure the plugin, but still it fails. Can you please check and help me here?
What happened: Unable to add Flux datasource in Grafana version 6.0, I'm getting Network Error (500) and Network Error (504). I have an another Grafana instance version 5.4.2, which is working fine as expected.![image](https://user-images.githubusercontent.com/45065725/56666808-362f3080-66ca-11e9-953c-379642dcc8a2.png)
What you expected to happen: It should be added without any errors
How to reproduce it (as minimally and precisely as possible): Add datasource>> Update credentials >> Save and test
Anything else we need to know?:
Environment:
Grafana version: V6.0 Data source type & version: InfluxDB(Flux) datasource and version: 5.2.9 OS Grafana is installed on: Ubuntu 14 User OS & Browser: MAC and Chrome Grafana plugins: Others: