Project

General

Profile

Actions

Bug #22717

closed

mgr: prometheus: impossible to join labels from metadata metrics.

Added by Konstantin Shalygin over 6 years ago. Updated about 6 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
prometheus module
Target version:
% Done:

0%

Source:
Community (user)
Tags:
prometheus mgr
Backport:
luminous
Regression:
No
Severity:
3 - minor
Reviewed:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

By default we have pool metrics like this:

ceph_pool_objects{pool_id="1"} 1075534
ceph_pool_metadata{name="name_of_pool_1",pool_id="1"} 0

When I was try to join 'name' label from metadata series (to use label with Grafana) like this:

ceph_pool_objects * on (pool_id) group_left(name) ceph_pool_metadata

Result returned without metric, only labels:

{name="name_of_pool_1",pool_id="1"}

This is because metadata metric always have value '0'.
This behavior will be fixed if set value to '1'.


Files

Selection_002.png (76.4 KB) Selection_002.png Konstantin Shalygin, 01/17/2018 06:21 AM
Actions #2

Updated by John Spray over 6 years ago

  • Status changed from New to Fix Under Review
  • Backport set to luminous
Actions #3

Updated by John Spray about 6 years ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF