Merge pull request #27 from prometheus/flag-cleanup

Make flag names consistent across projects.
This commit is contained in:
juliusv 2015-02-09 12:25:24 +01:00
commit 3191b2a8d0
2 changed files with 5 additions and 5 deletions

View File

@ -27,9 +27,9 @@ import (
)
var (
configFile = flag.String("configFile", "alertmanager.conf", "Alert Manager configuration file name.")
silencesFile = flag.String("silencesFile", "silences.json", "Silence storage file name.")
minRefreshPeriod = flag.Duration("minRefreshPeriod", 5*time.Minute, "Minimum required alert refresh period before an alert is purged.")
configFile = flag.String("config.file", "alertmanager.conf", "Alert Manager configuration file name.")
silencesFile = flag.String("silences.file", "silences.json", "Silence storage file name.")
minRefreshPeriod = flag.Duration("alerts.min-refresh-period", 5*time.Minute, "Minimum required alert refresh period before an alert is purged.")
)
func main() {

View File

@ -29,8 +29,8 @@ import (
// Commandline flags.
var (
listenAddress = flag.String("listenAddress", ":9090", "Address to listen on for web interface.")
useLocalAssets = flag.Bool("useLocalAssets", false, "Read assets/templates from file instead of binary.")
listenAddress = flag.String("web.listen-address", ":9093", "Address to listen on for the web interface and API.")
useLocalAssets = flag.Bool("web.use-local-assets", false, "Serve assets and templates from local files instead of from the binary.")
)
type WebService struct {