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 https://github.com/zeromicro/go-zero/blob/master/internal/devserver/config.go 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"`
}
Params | DataType | Default value | Note |
---|---|---|---|
Host | string | Listening address | |
Port | int | 9101 | Listening Port |
Path | string | The path to listen |