Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.2:Staging:A
golang-github-prometheus-prometheus
0002-Default-settings.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0002-Default-settings.patch of Package golang-github-prometheus-prometheus
From 6b1180bc4cb98e20afa0db6e738f5790a0c982c7 Mon Sep 17 00:00:00 2001 From: Jan Fajerski <jfajerski@suse.com> Date: Fri, 8 Feb 2019 09:28:12 +0100 Subject: [PATCH] Adjust default settings Signed-off-by: Jan Fajerski <jfajerski@suse.com> --- cmd/prometheus/main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/prometheus/main.go b/cmd/prometheus/main.go index 045ec537..380296ab 100644 --- a/cmd/prometheus/main.go +++ b/cmd/prometheus/main.go @@ -134,7 +134,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) @@ -164,16 +164,16 @@ 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) a.Flag("storage.tsdb.path", "Base path for metrics storage."). - Default("data/").StringVar(&cfg.localStoragePath) + Default("/var/lib/prometheus/metrics/").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) -- 2.20.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor