Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
qorus
prometheus
Commits
686050d8
Commit
686050d8
authored
Aug 08, 2017
by
KalivarapuReshma
Browse files
Change -config.file to --config.file in Readme and error message
parent
4d3d8ee2
Changes
2
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
686050d8
...
...
@@ -66,7 +66,7 @@ vendoring feature, so you will also need to set the `GO15VENDOREXPERIMENT=1`
environment variable in this case:
$ GO15VENDOREXPERIMENT=1 go get github.com/prometheus/prometheus/cmd/...
$ prometheus -config.file=your_config.yml
$ prometheus
-
-config.file=your_config.yml
You can also clone the repository yourself and build using
`make`
:
...
...
@@ -75,7 +75,7 @@ You can also clone the repository yourself and build using `make`:
$ git clone https://github.com/prometheus/prometheus.git
$ cd prometheus
$ make build
$ ./prometheus -config.file=your_config.yml
$ ./prometheus
-
-config.file=your_config.yml
The Makefile provides several targets:
...
...
cmd/prometheus/main.go
View file @
686050d8
...
...
@@ -362,7 +362,7 @@ func reloadConfig(filename string, logger log.Logger, rls ...Reloadable) (err er
conf
,
err
:=
config
.
LoadFile
(
filename
)
if
err
!=
nil
{
return
fmt
.
Errorf
(
"couldn't load configuration (-config.file=%s): %v"
,
filename
,
err
)
return
fmt
.
Errorf
(
"couldn't load configuration (-
-
config.file=%s): %v"
,
filename
,
err
)
}
failed
:=
false
...
...
@@ -373,7 +373,7 @@ func reloadConfig(filename string, logger log.Logger, rls ...Reloadable) (err er
}
}
if
failed
{
return
fmt
.
Errorf
(
"one or more errors occurred while applying the new configuration (-config.file=%s)"
,
filename
)
return
fmt
.
Errorf
(
"one or more errors occurred while applying the new configuration (-
-
config.file=%s)"
,
filename
)
}
return
nil
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment