Skip to content
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

Merged
merged 1 commit into from
Jan 12, 2023
Merged

Conversation

HileQAQ
Copy link
Contributor

@HileQAQ HileQAQ commented Dec 15, 2022

Now we can provide a port (for example, in /etc/overlaybd-snapshotter/config.json, we set monitorPort: 9099) for prometheus to monitor some metrics like GRPC APIs latency or error count.

(from #140)

Signed-off-by: Haoqi Miao [email protected]

@HileQAQ HileQAQ force-pushed the prometheus branch 3 times, most recently from 703730a to 2c8e560 Compare December 15, 2022 08:36
@@ -64,6 +64,10 @@ func main() {
}
logrus.Infof("%+v", *pconfig)

if pconfig.MonitorPort != "" {
Copy link
Member

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 ?

@HileQAQ HileQAQ force-pushed the prometheus branch 2 times, most recently from 159180b to 490442c Compare January 9, 2023 09:51
@liulanzheng
Copy link
Member

@HileQAQ remove this binary? cmd/overlaybd-snapshotter/overlaybd-snapshotter

"logReportCaller": false,
"autoRemoveDev": false,
"exporterConfig": {
"enable": false,
Copy link
Member

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]>
Copy link
Member

@liulanzheng liulanzheng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@liulanzheng liulanzheng merged commit 81a52e6 into containerd:main Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants