liuhaijun e94826ce29 add server
Change-Id: I0760f17f6a01c0121b59fcbfafc666032dbc30af
2024-09-19 09:44:15 +00:00

16 lines
475 B
Go

package config
type PrometheusConfig struct {
Url string `ini:"url" yaml:"url" mapstructure:"url"`
AuthEnable bool `ini:"auth_enable" yaml:"auth_enable" mapstructure:"auth_enable"`
User string `ini:"user" yaml:"user" mapstructure:"user"`
Password string `ini:"password" yaml:"password" mapstructure:"password"`
}
var Prometheus = PrometheusConfig{
Url: "http://127.0.0.1:9090",
AuthEnable: false,
User: "admin",
Password: "admin",
}