- What Grafana version and what operating system are you using?
11.3.0 on OKD (OpenShift upstream) - What are you trying to achieve?
getting dashboard to show graph values for specified time range - How are you trying to achieve it?
TIG-Stack deployed on Openshift. Dashboard connected to influxDB data-source. - What happened?
Setup
I initially had TIG-stack (Telegraf, InfluxDB and Grafana) deployed in a linux server where it worked as expected. I’ve recently deployed it on OKD (OpenShift upstream). I have several dashboards each of which work when the time range is small enough and data can be loaded ‘instantaneously’.
Problem
But when I specify a time range of over an hour, I start to see POST requests getting blocked by browser from the network tab of webpage inspect. This behaviour is consistent across several browsers (Firefox, Edge and Chrome).
The POST requests are blocked almost right as they are sent and don’t fail after a timeout. In Firefox, I see the error NS_BINDING_ABORTED. Grafana dashboard keeps sending the request with no luck (as seen from inspect screenshot below).
After a minute or two, these POST requests intermittently start to succeed out of the blue. I have not been able to figure out what’s causing this issue.
- What did you expect to happen?
Grafana dashboard to load graphs for the specified time range. - Can you copy/paste the configuration(s) that you are having problems with?
grafana.ini:
[plugin.marcusolsson-csv-datasource]
allow_local_mode = true
[dataproxy]
logging = true
[dashboards]
min_refresh_interval = 1s
[auth]
token_rotation_interval_minutes = 120
[feature_management]
hidden_toggles =
read_only_toggles =
- Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
- Did you follow any online instructions?
I copied the request body and headers of these requests into postman and tried sending from there which worked flawlessly. I also sent the curl request directly to the grafana pod from within the Openshift nodes which also worked without error, leading me to think this may be a grafana issue with browser and not an issue with the load-balancer.
I also exposed grafana on a nodeport service to access it outside of a load-balancer and got the same errors in the browser.
To see if this is an issue with influxdb, I ran the queries specified in the request body directly within influxdb pod and got an appropriate output.
Some online posts suggest firewalls can cause these issues but I don’t have any firewall installed. The client request goes to the load-balancer which routes it to one of the OKD servers.
Another post suggested HTTP traffic to HTTPS connection can be a cause of this. I have self-signed certificates for the HTTPS connections so could this be an issue? So far I haven’t found any evidence backing this in my problem. To negate this issue, I created an HTTP/insecure route and got the same behaviour leading me to think this may also be not the issue.
It appears to me some sort of configuratin issue that would resolve it for the browser. Please let me know how I can further troubleshoot this as I’ve spend sigificant time on this issue without any luck. Please let me know what further info I can provide on this.
Really appreciate any help I can get on this, Thanks