Uploaded image for project: 'Percona Monitoring and Management'
  1. Percona Monitoring and Management
  2. PMM-6002

PMM2 Custom Prometheus configuration is broken: /srv/prometheus/prometheus.base.yml

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Invalid
    • Affects Version/s: 2.6.1
    • Fix Version/s: None
    • Component/s: PMM Server
    • Labels:
    • Environment:

      Description

      Extending Prometheus config with custom file is broken, the steps to reproduce:

      docker network create --driver bridge pmm-net
      docker pull percona/pmm-server:2
      docker create -v /srv --name pmm-data percona/pmm-server:2 /bin/true
      docker run -d -p 80:80 -p 443:443 --volumes-from pmm-data --network=pmm-net --name pmm-server --restart always percona/pmm-server:2
      docker exec -it pmm-server /bin/bash

      tail -f /srv/logs/pmm-managed.log
      ERRO[2020-05-21T08:16:25.094+00:00] Failed to load base prometheus config /srv/prometheus/prometheus.base.yml: read /srv/prometheus/prometheus.base.yml: is a directory component=prometheus

      [root@cf635b7bbaac opt]# ls -la /srv/prometheus/prometheus.base.yml
      total 8
      drwxr-xr-x 2 root root 4096 May 21 08:16 .
      drwxr-xr-x 5 pmm pmm 4096 May 21 08:15 ..

        Smart Checklist

          Attachments

            Activity

              People

              Assignee:
              nailya.kutlubaeva Nailya Kutlubaeva
              Reporter:
              b4buFr1k kr0m
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 30 minutes
                  30m