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

Prometheus relabeling broken (relabel_configs unmarshal errors)

Details

    • Bug
    • Status: Done
    • High
    • Resolution: Fixed
    • 2.5.0
    • 2.9.0
    • PMM ManageD
    • None
    • Running PMM2 under Docker

      OS: Ubuntu 18.04.4 LTS (GNU/Linux 5.3.0-46-generic x86_64)

      Docker version: 19.03.6-0ubuntu1~18.04.1

       

    • 2
    • Yes
    • Yes
    • No

    Description

      I have updated today my PMM2 server and i get yml parsing errors:
      /srv/logs/pmm-managed.log

      line 21: cannot unmarshal !!seq into string

      line 41: cannot unmarshal !!seq into string

      line 43: cannot unmarshal !!seq into string

      line 45: cannot unmarshal !!seq into string

      That lines are relabeling ones in my custom prometheus configuration file:

      /srv/prometheus/prometheus.base.yml

      [root@3550a92c2086 opt]# cat /srv/prometheus/prometheus.base.yml


      scrape_configs:

      • job_name: blackbox80
        params:
        module:
      • http_2xx
        scrape_interval: 1m
        scrape_timeout: 10s
        metrics_path: /probe
        scheme: http

      static_configs:

      • targets:
      • www.alfaexploit.com
        metrics_path: "/archive"

      relabel_configs:

      • source_labels: [__address__]
        target_label: __param_target
      • source_labels: [__param_target]
        target_label: instance
      • source_labels: [__param_target]
        target_label: node_name
      • target_label: _address_
        replacement: grafana2.adsalsa.net:9115

      In previous version it worked without problems.

      Attachments

        1. prometheus.base.yml
          0.1 kB
        2. prometheus.base.yml
          0.5 kB
        3. prometheus.base.yml
          0.5 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              b4buFr1k kr0m
              Votes:
              1 Vote for this issue
              Watchers:
              6 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 - 3 hours, 18 minutes
                  3h 18m

                  Smart Checklist