feat: support prometheus metric url. (#168)

This commit is contained in:
Bo-Yi Wu
2017-01-19 16:56:30 +08:00
committed by GitHub
parent cbbbc4eef0
commit a669070ffb
9 changed files with 180 additions and 44 deletions

View File

@@ -38,6 +38,7 @@ type SectionAPI struct {
StatAppURI string `yaml:"stat_app_uri"`
ConfigURI string `yaml:"config_uri"`
SysStatURI string `yaml:"sys_stat_uri"`
MetricURI string `yaml:"metric_uri"`
}
// SectionAndroid is sub section of config.
@@ -129,6 +130,7 @@ func BuildDefaultPushConf() ConfYaml {
conf.API.StatAppURI = "/api/stat/app"
conf.API.ConfigURI = "/api/config"
conf.API.SysStatURI = "/sys/stats"
conf.API.MetricURI = "/metrics"
// Android
conf.Android.Enabled = false