Project

General

Profile

Actions

Bug #58526

closed

invalid prometheus configuration file

Added by Redouane Kachach Elhichou over 1 year ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Category:
cephadm/monitoring
Target version:
-
% Done:

0%

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

Description

cephadm generates an invalid prometheus configuration (bad urls):


# This file is generated by cephadm.
global:
  scrape_interval: 10s
  evaluation_interval: 10s
rule_files:
  - /etc/prometheus/alerting/*

alerting:
  alertmanagers:
    - scheme: http
      http_sd_configs:
        - url: https://172.21.15.138:8765/sd/prometheus/sd-config?service=alertmanager
          tls_config:
            ca_file: root_cert.pem

scrape_configs:
  - job_name: 'ceph'
    honor_labels: true
    http_sd_configs:
    - url: https://172.21.15.138:8765/sd/prometheus/sd-config?service=mgr-prometheus
      tls_config:
        ca_file: root_cert.pem

  - job_name: 'node'
    http_sd_configs:
    - url: https://172.21.15.138:8765/sd/prometheus/sd-config?service=node-exporter
      tls_config:
        ca_file: root_cert.pem

  - job_name: 'ceph-exporter'
    honor_labels: true
    http_sd_configs:
    - url: https://172.21.15.138:8765/sd/prometheus/sd-config?service=ceph-exporter
      tls_config:
        ca_file: root_cert.pem
Actions #1

Updated by Adam King over 1 year ago

  • Pull request ID set to 49813
Actions #2

Updated by Adam King over 1 year ago

  • Translation missing: en.field_tag_list set to test-failure
Actions #3

Updated by Adam King over 1 year ago

  • Status changed from New to Resolved
Actions

Also available in: Atom PDF