-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prometheus metrics #3
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems the vendor files were directly copied. Can you use Glide to manage them instead (see https://glide.sh and the glide.yaml
file)?
You also need to update the documentation files in doc/
to describe the new PromListen
parameter (it may be renamed prom_listen
to match the other parameters?).
@@ -26,12 +26,17 @@ import ( | |||
|
|||
"github.com/op/go-logging" | |||
"gopkg.in/yaml.v2" | |||
|
|||
"github.com/prometheus/client_golang/prometheus" | |||
"github.com/prometheus/client_golang/prometheus/promhttp" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move these imports below the go-logging
import.
|
||
"github.com/prometheus/client_golang/prometheus" | ||
"github.com/prometheus/client_golang/prometheus/promhttp" | ||
"net/http" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move this import with the other standard imports.
710519c
to
3167b79
Compare
7e642a4
to
5896abc
Compare
7ca0082
to
6d3fa42
Compare
dd3157a
to
ddf56a4
Compare
64c8f1a
to
9931db0
Compare
fb62b12
to
a6f0cc8
Compare
Depends on #1