Commit c38f73e
authored
Update query.go
Scenario : Initially there is no data or zero rows returned for a SQL query for a particular DB and then if we start sql_exporter . In this case, sql_exporter Metrics UI doesn't have any details to show that SQL query is executed and it is failed.
With this change, SQL Exported Metrics indicates user on SQL query is executed and it is failed.
Below is entry will come in Metrics with this code change.
sql_exporter_last_scrape_failed{database="DB",driver="postgres",host="hostNmae",query="sql_exporter_query",sql_job="sql_exporter_query",user="reader"} 11 parent 12bc92e commit c38f73e
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| |||
0 commit comments