Skip to main content

Prometheus Configuration

prometheus Configuration

Config Prometheus configuration, we will start a prometheus port in the process. This configuration has already deprecated after version v1.4.3,please use instead, for details please see Basic Service Configuration

Definition of parameters

// A Config is a prometheus config.
type Config struct {
Host string `json:",optional"`
Port int `json:",default=9101"`
Path string `json:",default=/metrics"`

ParamsDataTypeDefault valueNote
HoststringListening address
Portint9101Listening Port
PathstringThe path to listen