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

Client.Timeout error when querying metrics #1046

Closed
mfarhan28 opened this issue Sep 3, 2020 · 3 comments
Closed

Client.Timeout error when querying metrics #1046

mfarhan28 opened this issue Sep 3, 2020 · 3 comments

Comments

@mfarhan28
Copy link

Hi @alexanderzobnin

Describe the bug
An error Post "https://x.x.x.x/api/api_jsonrpc.php": net/http: request canceled (Client.Timeout exceeded while awaiting headers) has been thrown after input metrics query parameter for table type of visualisation panel.

Expected behavior
Metrics data preview should appear in the table.

Screenshots
Screenshot 2020-09-04 at 4 22 54 AM

Network data
Post "https://x.x.x.x/api/api_jsonrpc.php": net/http: request canceled (Client.Timeout exceeded while awaiting headers)
Object
status:500
statusText:"Internal Server Error"
data:Object
error:"Internal Server Error"
message:"Post "https://x.x.x.x/api/api_jsonrpc.php": net/http: request canceled (Client.Timeout exceeded while awaiting headers)"
message:"Post "https://x.x.x.x/api/api_jsonrpc.php": net/http: request canceled (Client.Timeout exceeded while awaiting headers)"

Software versions

Grafana Zabbix Grafana-Zabbix Plugin
7.1.5 4.4.0 4.0.1
@alexanderzobnin
Copy link
Collaborator

Hi! Could you enable debug logging and show logs from the Grafana server?

@h1tman23
Copy link

h1tman23 commented Oct 1, 2020

Same problem here, if request exeeds 30s I get this error too. How to increase timeout limit?
Debug does not show more info:
lvl=eror msg="Zabbix API request error" logger=plugins.backend pluginId=alexanderzobnin-zabbix-datasource error="Post "https://x.x.x.x/api_jsonrpc.php\": net/http: request canceled (Client.Timeout exceeded while awaiting headers)"

@alexanderzobnin
Copy link
Collaborator

It's not configurable now, but I can add this to the data source config.

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

No branches or pull requests

3 participants