Prometheus Configuration
prometheus Configuration
Config Prometheus configuration, we will start a prometheus port in the process.
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 |