We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4d97970 + db62fb4 commit 732df41Copy full SHA for 732df41
1 file changed
query.go
@@ -66,6 +66,8 @@ func (q *Query) Run(conn *connection) error {
66
if q.AllowZeroRows {
67
failedScrapes.WithLabelValues(conn.driver, conn.host, conn.database, conn.user, q.jobName, q.Name).Set(0.0)
68
} else {
69
+ failedScrapes.WithLabelValues(conn.driver, conn.host, conn.database, conn.user, q.jobName, q.Name).Set(1.0)
70
+ failedQueryCounter.WithLabelValues(q.jobName, q.Name).Inc()
71
return fmt.Errorf("zero rows returned")
72
}
73
0 commit comments