I written prometheus exporter by golang
here is my code:
var (
nodeCounter = prometheus.NewGaugeVec(
prometheus.GaugeOpts{
Name: "service_status",
Help: "Soa manager service status.",
},
[]string{"venture", "service", "satus", "resource"},
)
)
func init() {
prometheus.MustRegister(nodeCounter)
}
It's work perfect but it show the default metric like this:
# HELP go_memstats_heap_objects Number of allocated objects.
# TYPE go_memstats_heap_objects gauge
go_memstats_heap_objects 7335
# HELP go_memstats_heap_released_bytes Number of heap bytes released to OS.
# TYPE go_memstats_heap_released_bytes gauge
go_memstats_heap_released_bytes 0
# HELP go_memstats_heap_sys_bytes Number of heap bytes obtained from system.
# TYPE go_memstats_heap_sys_bytes gauge
go_memstats_heap_sys_bytes 1.736704e+06
# HELP go_memstats_last_gc_time_seconds Number of seconds since 1970 of last garbage collection.
# TYPE go_memstats_last_gc_time_seconds gauge
go_memstats_last_gc_time_seconds 0
But i don't want to show this, i only want to show my custom information
How can i do this?
thanks