promethues exporter 开发
package main import ( "github.com/prometheus/client_golang/prometheus/promhttp" "net/http" ) type item struct { Name string Tag map[string]string value interface{} } func main() { http.Handle("/metrics", promhttp.Handler()) http.ListenAndServe(":8080", nil) }