revert main.go

Signed-off-by: B1F030 <b1fzhang@gmail.com>
This commit is contained in:
B1F030 2024-07-15 10:54:54 +08:00
parent 4c74d359eb
commit 5c2590c358
1 changed files with 1 additions and 1 deletions

View File

@ -343,7 +343,7 @@ func main() {
a.Flag("web.page-title", "Document title of Prometheus instance."). a.Flag("web.page-title", "Document title of Prometheus instance.").
Default("Prometheus Time Series Collection and Processing Server").StringVar(&cfg.web.PageTitle) Default("Prometheus Time Series Collection and Processing Server").StringVar(&cfg.web.PageTitle)
a.Flag("web.cors.origin", `Regex for CORS origin. It is fully anchored. Example: 'https?://(domain1\|domain2)\.com'`). a.Flag("web.cors.origin", `Regex for CORS origin. It is fully anchored. Example: 'https?://(domain1|domain2)\.com'`).
Default(".*").StringVar(&cfg.corsRegexString) Default(".*").StringVar(&cfg.corsRegexString)
serverOnlyFlag(a, "storage.tsdb.path", "Base path for metrics storage."). serverOnlyFlag(a, "storage.tsdb.path", "Base path for metrics storage.").