Skip to content

Commit d6b3b77

Browse files
author
fiknytte
committed
moved comment
1 parent 7c63447 commit d6b3b77

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

postgres_exporter.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,12 +477,13 @@ func (e *Exporter) scrape(ch chan<- prometheus.Metric) {
477477

478478
for namespace, mapping := range e.metricMap {
479479
log.Debugln("Querying namespace: ", namespace)
480-
func () { // Don't fail on a bad scrape of one metric
480+
func () {
481481
query, er := queryOverrides[namespace]
482482
if er == false {
483483
query = fmt.Sprintf("SELECT * FROM %s;", namespace)
484484
}
485485

486+
// Don't fail on a bad scrape of one metric
486487
rows, err := db.Query(query)
487488
if err != nil {
488489
log.Println("Error running query on database: ", namespace, err)

0 commit comments

Comments
 (0)