package main import ( "database/sql" "encoding/json" "fmt" "io/ioutil" "log" "net/http" "github.com/prometheus/client_golang/prometheus/promhttp" _ "github.com/go-sql-driver/mysql" ) // Greeting : record of greetings table type Greeting struct { ID int `json:"id"` Text string `json:"text"` } func main() { http.Handle("/metrics", promhttp.Handler()) http.HandleFunc("/greetings", func(w http.Respons