-
Notifications
You must be signed in to change notification settings - Fork 73
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
improve metric package #937
Conversation
3cc722d
to
4df31c6
Compare
Codecov Report
@@ Coverage Diff @@
## main #937 +/- ##
=======================================
Coverage 82.09% 82.09%
=======================================
Files 8 8
Lines 592 592
=======================================
Hits 486 486
Misses 87 87
Partials 19 19
Flags with carried forward coverage won't be shown. Click here to find out more. |
9fa579c
to
12edac3
Compare
pkg/metric/metrics_instance.go
Outdated
|
||
// spiderpool controller IP GC metrics name | ||
ip_gc_total_counts = "ip_gc_total_counts" | ||
ip_gc_failure_counts = "ip_gc_failure_counts" | ||
|
||
ippool_left_ip_counts = "ippool_left_ip_counts" |
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.
(0)
(1)一起更新 doc
pkg/metric/metrics_instance.go
Outdated
|
||
// spiderpool controller IP GC metrics name | ||
ip_gc_total_counts = "ip_gc_total_counts" | ||
ip_gc_failure_counts = "ip_gc_failure_counts" | ||
|
||
ippool_left_ip_counts = "ippool_left_ip_counts" | ||
subnet_left_ip_counts = "subnet_left_ip_counts" |
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.
subnet_total_ip_counts
subnet_free_ip_counts
pkg/metric/metrics_instance.go
Outdated
ippool_left_ip_counts = "ippool_left_ip_counts" | ||
subnet_left_ip_counts = "subnet_left_ip_counts" | ||
|
||
subnet_ips_apply_counts = "subnet_ips_apply_counts" |
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.
subnet_ippool_count
77b3c1d
to
01d0851
Compare
Signed-off-by: Icarus9913 <icaruswu66@qq.com>
01d0851
to
2006c4e
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
make it easy to use the otel gauge
Reference:
https://github.com/open-telemetry/opentelemetry-go/blob/042d938989bfe4960c96328328f1f324bc72bdf3/example/prometheus/main.go#L61
open-telemetry/opentelemetry-go#3168
Signed-off-by: Icarus9913 icaruswu66@qq.com