|
|
@ -99,10 +99,6 @@ func newRootCmd() *cobra.Command {
|
|
|
|
&cfg.web.RoutePrefix, "web.route-prefix", "",
|
|
|
|
&cfg.web.RoutePrefix, "web.route-prefix", "",
|
|
|
|
"Prefix for the internal routes of web endpoints. Defaults to path of -web.external-url.",
|
|
|
|
"Prefix for the internal routes of web endpoints. Defaults to path of -web.external-url.",
|
|
|
|
)
|
|
|
|
)
|
|
|
|
rootCmd.PersistentFlags().StringVar(
|
|
|
|
|
|
|
|
&cfg.web.MetricsPath, "web.telemetry-path", "/metrics",
|
|
|
|
|
|
|
|
"Path under which to expose metrics.",
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
rootCmd.PersistentFlags().StringVar(
|
|
|
|
rootCmd.PersistentFlags().StringVar(
|
|
|
|
&cfg.web.UserAssetsPath, "web.user-assets", "",
|
|
|
|
&cfg.web.UserAssetsPath, "web.user-assets", "",
|
|
|
|
"Path to static asset directory, available at /user.",
|
|
|
|
"Path to static asset directory, available at /user.",
|
|
|
@ -122,7 +118,7 @@ func newRootCmd() *cobra.Command {
|
|
|
|
|
|
|
|
|
|
|
|
// Storage.
|
|
|
|
// Storage.
|
|
|
|
rootCmd.PersistentFlags().StringVar(
|
|
|
|
rootCmd.PersistentFlags().StringVar(
|
|
|
|
&cfg.localStoragePath, "storage.local.path", "data",
|
|
|
|
&cfg.localStoragePath, "storage.tsdb.path", "data",
|
|
|
|
"Base path for metrics storage.",
|
|
|
|
"Base path for metrics storage.",
|
|
|
|
)
|
|
|
|
)
|
|
|
|
rootCmd.PersistentFlags().BoolVar(
|
|
|
|
rootCmd.PersistentFlags().BoolVar(
|
|
|
@ -141,10 +137,6 @@ func newRootCmd() *cobra.Command {
|
|
|
|
&cfg.tsdb.Retention, "storage.tsdb.retention",
|
|
|
|
&cfg.tsdb.Retention, "storage.tsdb.retention",
|
|
|
|
"How long to retain samples in the storage.",
|
|
|
|
"How long to retain samples in the storage.",
|
|
|
|
)
|
|
|
|
)
|
|
|
|
rootCmd.PersistentFlags().StringVar(
|
|
|
|
|
|
|
|
&cfg.localStorageEngine, "storage.local.engine", "persisted",
|
|
|
|
|
|
|
|
"Local storage engine. Supported values are: 'persisted' (full local storage with on-disk persistence) and 'none' (no local storage).",
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Alertmanager.
|
|
|
|
// Alertmanager.
|
|
|
|
rootCmd.PersistentFlags().IntVar(
|
|
|
|
rootCmd.PersistentFlags().IntVar(
|
|
|
|