From: Martina Ferrari Date: Sat, 20 Jun 2020 15:14:34 -0300 Subject: Add default settings adapted for Debian. Forwarded: not-needed --- cmd/prometheus/main.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) --- a/cmd/prometheus/main.go +++ b/cmd/prometheus/main.go @@ -148,7 +148,7 @@ func main() { a.HelpFlag.Short('h') a.Flag("config.file", "Prometheus configuration file path."). - Default("prometheus.yml").StringVar(&cfg.configFile) + Default("/etc/prometheus/prometheus.yml").StringVar(&cfg.configFile) a.Flag("web.listen-address", "Address to listen on for UI, API, and telemetry."). Default("0.0.0.0:9090").StringVar(&cfg.web.ListenAddress) @@ -170,7 +170,7 @@ func main() { "Prefix for the internal routes of web endpoints. Defaults to path of --web.external-url."). PlaceHolder("").StringVar(&cfg.web.RoutePrefix) - a.Flag("web.user-assets", "Path to static asset directory, available at /user."). + a.Flag("web.user-assets", "Path to user asset directory, available at /user."). PlaceHolder("").StringVar(&cfg.web.UserAssetsPath) a.Flag("web.enable-lifecycle", "Enable shutdown and reload via HTTP request."). @@ -180,10 +180,10 @@ func main() { Default("false").BoolVar(&cfg.web.EnableAdminAPI) a.Flag("web.console.templates", "Path to the console template directory, available at /consoles."). - Default("consoles").StringVar(&cfg.web.ConsoleTemplatesPath) + Default("/etc/prometheus/consoles").StringVar(&cfg.web.ConsoleTemplatesPath) a.Flag("web.console.libraries", "Path to the console library directory."). - Default("console_libraries").StringVar(&cfg.web.ConsoleLibrariesPath) + Default("/etc/prometheus/console_libraries").StringVar(&cfg.web.ConsoleLibrariesPath) a.Flag("web.page-title", "Document title of Prometheus instance."). Default("Prometheus Time Series Collection and Processing Server").StringVar(&cfg.web.PageTitle) @@ -192,7 +192,7 @@ func main() { Default(".*").StringVar(&cfg.corsRegexString) a.Flag("storage.tsdb.path", "Base path for metrics storage."). - Default("data/").StringVar(&cfg.localStoragePath) + Default("/var/lib/prometheus").StringVar(&cfg.localStoragePath) a.Flag("storage.tsdb.min-block-duration", "Minimum duration of a data block before being persisted. For use in testing."). Hidden().Default("2h").SetValue(&cfg.tsdb.MinBlockDuration)