-
Notifications
You must be signed in to change notification settings - Fork 77
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
Add support to Prometheus #163
Conversation
703730a
to
2c8e560
Compare
cmd/overlaybd-snapshotter/main.go
Outdated
@@ -64,6 +64,10 @@ func main() { | |||
} | |||
logrus.Infof("%+v", *pconfig) | |||
|
|||
if pconfig.MonitorPort != "" { |
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.
Add MonitorPort in config.json ?
159180b
to
490442c
Compare
@HileQAQ remove this binary? cmd/overlaybd-snapshotter/overlaybd-snapshotter |
docs/PROMETHEUS.md
Outdated
"logReportCaller": false, | ||
"autoRemoveDev": false, | ||
"exporterConfig": { | ||
"enable": false, |
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.
true?
Signed-off-by: Haoqi Miao <[email protected]>
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.
LGTM
Now we can provide a port (for example, in
/etc/overlaybd-snapshotter/config.json
, we setmonitorPort: 9099
) for prometheus to monitor some metrics like GRPC APIs latency or error count.(from #140)
Signed-off-by: Haoqi Miao [email protected]