Closed
Description
The following metrics are available in the metrics interface.However, as not shown in Grafana, the forecast is that Prometheus is stored without scheduled polling.Don't know how to change?
Part of the code:
`
buildCodis := prometheus.NewGaugeVec(prometheus.GaugeOpts{
Name: "codis_exporter_build_info",
Help: "codis exporter build_info",
}, []string{"addr", "alias"})
buildCodis.WithLabelValues("192.32.61.178:19000", "").Set(result.Sessions.Total)
``
interface data(http://192.32.61.178:9121/metrics):
_# HELP codis_exporter_build_info codis exporter build_info
# TYPE codis_exporter_build_info gauge
codis_exporter_build_info{addr="192.32.61.178:19000",alias=""} 655
codis_exporter_build_info{addr="192.32.61.179:19000",alias=""} 655
`
Metadata
Metadata
Assignees
Labels
No labels