Project

General

Profile

Actions

Bug #36595

closed

Standby mgrs don't forward/redirect requests for /metrics when prometheus enabled

Added by Bryan Stillwell over 5 years ago. Updated over 5 years ago.

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

0%

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

Description

When using the prometheus plugin in 12.2.8 it seems the standby mgr nodes don't forward/redirect requests for /metrics on port 9283 to the primary/active mgr:

$ curl -s http://a2cephmon001:9283/metrics | wc -l
7968
$ curl -s http://a2cephmon002:9283/metrics | wc -l
0
$ curl -s http://a2cephmon003:9283/metrics | wc -l
0

Actions #1

Updated by John Spray over 5 years ago

  • Status changed from New to Closed

This is by design. We don't want to send prometheus three copies of the statistics, so only the active mgr daemon returns results.

Rather than pointing prometheus at a single server, configure it to scrape to all your mgr nodes, and it'll get data from whichever one is up.

Actions

Also available in: Atom PDF