You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When database timeouts, error log on line 40 does not show in the logs, even though error log on line 47 shows a list of errors, where one of them is context deadline exceeded.
To Reproduce
Steps to reproduce the behavior:
Use the config below
Go to /metrics
Check logs
See error
Expected behavior
I expected to see Timeout collecting metrics from target: ...
I just found out, if you try to reproduce the bug, the sql_exporter also caches result of a "timeout" query.
How to reproduce:
0, use the aforementioned config
1, set min_interval to 1m
2, go to /metrics
3, wait for timeout → scrape_duration 10 seconds + context deadline exceeded
4, refresh the page → scrape duration under 1 second + context deadline exceeded
Describe the bug
When database timeouts, error log on line 40 does not show in the logs, even though error log on line 47 shows a list of errors, where one of them is
context deadline exceeded
.To Reproduce
Steps to reproduce the behavior:
/metrics
Expected behavior
I expected to see
Timeout collecting metrics from target: ...
Configuration
Additional context
Logs I got when reproducing the error:
The text was updated successfully, but these errors were encountered: