Project

General

Profile

Actions

Bug #20899

closed

prometheus module generates invalid output when counter names contain non-alphanum characters

Added by John Spray over 6 years ago. Updated about 6 years ago.

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

0%

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

Description

When I enabled an MDS, I found that prometheus threw an error scraping our stats. I assume it's due to counter names (maybe the ones that have a plus/minus sign in them?)


Related issues 1 (0 open1 closed)

Copied to mgr - Backport #21452: luminous: prometheus module generates invalid output when counter names contain non-alphanum charactersResolvedNathan CutlerActions
Actions #1

Updated by John Spray over 6 years ago

  • Category set to prometheus module
Actions #2

Updated by Jeremy Austin over 6 years ago

I created an account just so I could submit this bug… so I concur,

mds_mem_cap+ is an example (the first sequentially) of one on which prometheus choked.

I propose:

https://github.com/ceph/ceph/compare/master...jermudgeon:patch-1

Actions #3

Updated by John Spray over 6 years ago

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

Thanks for the patch, I took the liberty of turning it into a pull request here:

https://github.com/ceph/ceph/pull/17310

Actions #4

Updated by Jeremy Austin over 6 years ago

Thanks, John — I wasn't sure which branch to create the pull request on, luminous or master. Be gentle with me, it's my first time :)

Actions #6

Updated by John Spray over 6 years ago

  • Status changed from Fix Under Review to Pending Backport
Actions #7

Updated by Nathan Cutler over 6 years ago

  • Copied to Backport #21452: luminous: prometheus module generates invalid output when counter names contain non-alphanum characters added
Actions #8

Updated by John Spray about 6 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF