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)
}

 

 

posted @ 2023-02-24 09:55  老鲜肉  阅读(13)  评论(0编辑  收藏  举报