Basic Prometheus metrics #7
|
@ -724,7 +724,6 @@ SELECT count(*)
|
||||||
FROM pastes
|
FROM pastes
|
||||||
`
|
`
|
||||||
var pastes float64
|
var pastes float64
|
||||||
// Execute query using 'id' and place value into 'output'
|
|
||||||
db.QueryRow(q).Scan(&pastes)
|
db.QueryRow(q).Scan(&pastes)
|
||||||
totalPastes.Set(pastes)
|
totalPastes.Set(pastes)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue