Skip to content

What classes need to be modified to support Codis monitoring?(Acquisition method:dashboard restful api) #267

Closed
@SenLinLeo

Description

@SenLinLeo

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions