new exporter version
This commit is contained in:
@@ -21,7 +21,7 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: export
|
||||
image: serviceplant/goexp:0.0.30
|
||||
image: serviceplant/goexp:0.0.31
|
||||
ports:
|
||||
- containerPort: 9040
|
||||
name: metrics
|
||||
|
||||
@@ -37,6 +37,7 @@ func getMetrics(cephConn CephConnection) {
|
||||
result = append(result, x)
|
||||
}
|
||||
|
||||
metrics.total_rbd_requested_size_per_pool.Reset()
|
||||
for _,v := range result {
|
||||
if !v.hasRBD {continue}
|
||||
FillMetrics(v,metrics)
|
||||
|
||||
@@ -27,7 +27,6 @@ func InitMetrics() *Metrics {
|
||||
|
||||
func FillMetrics(pool Pool,metrics *Metrics) {
|
||||
var totalSizePerPool uint64 = 0
|
||||
metrics.total_rbd_requested_size_per_pool.Reset()
|
||||
|
||||
logger.Debugf("Processing pool %s",pool.Name)
|
||||
for _,v := range pool.RBDlist {
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user