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

pmm-client can not purge the series on prometheus 2 integrated in pmm-server:1.13.0

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Duplicate
    • Affects Version/s: 1.13.0
    • Fix Version/s: None
    • Component/s: PMM Client
    • Labels:
      None
    • Environment:

      Description

      when I run flowing command:

      1. pmm-admin purge mongodb:metrics 83_33

      the console report this error.
      panic: interface conversion: interface {} is nil, not map[string]interface {}

      goroutine 1 [running]:
      github.com/percona/pmm-client/pmm.(*Admin).PurgeMetrics(0xbe4e60, 0x7ffe31b878ce, 0xf, 0xc4201e2578, 0xc420195b68, 0x7ff262)
      /tmp/go/src/github.com/percona/pmm-client/pmm/main.go:427 +0x5a4
      main.glob..func39(0xbde460, 0xc4201631e0, 0x2, 0x2)
      /tmp/go/src/github.com/percona/pmm-client/pmm-admin.go:1179 +0xd1
      github.com/percona/pmm-client/vendor/github.com/spf13/cobra.(*Command).execute(0xbde460, 0xc420163160, 0x2, 0x2, 0xbde460, 0xc420163160)
      /tmp/go/src/github.com/percona/pmm-client/vendor/github.com/spf13/cobra/command.go:654 +0x2a2
      github.com/percona/pmm-client/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xbdeb20, 0xc420195dd0, 0x49b302, 0x0)
      /tmp/go/src/github.com/percona/pmm-client/vendor/github.com/spf13/cobra/command.go:729 +0x2d4
      github.com/percona/pmm-client/vendor/github.com/spf13/cobra.(*Command).Execute(0xbdeb20, 0xc0263c, 0x92bf0f)
      /tmp/go/src/github.com/percona/pmm-client/vendor/github.com/spf13/cobra/command.go:688 +0x2b
      main.main()
      /tmp/go/src/github.com/percona/pmm-client/pmm-admin.go:1398 +0x18dc

       

      when I request same request via curl,it shows 'not implemented'.

      curl -v -X DELETE -g 'http://127.0.0.1/prometheus/api/v1/series?match[]={job="mongodb",instance="83_33"}'

      • About to connect() to 127.0.0.1 port 80 (#0)
      • Trying 127.0.0.1...
      • Connected to 127.0.0.1 (127.0.0.1) port 80 (#0)
        > DELETE /prometheus/api/v1/series?match[]={job="mongodb",instance="83_33"} HTTP/1.1
        > User-Agent: curl/7.29.0
        > Host: 127.0.0.1
        > Accept: /
        >
        < HTTP/1.1 500 Internal Server Error
        < Server: nginx
        < Date: Mon, 03 Sep 2018 04:51:17 GMT
        < Content-Type: application/json
        < Content-Length: 67
        < Connection: keep-alive
        < Access-Control-Allow-Headers: Accept, Authorization, Content-Type, Origin
        < Access-Control-Allow-Methods: GET, OPTIONS
        < Access-Control-Allow-Origin: *
        < Access-Control-Expose-Headers: Date
        <Connection #0 to host 127.0.0.1 left intact
        {"status":"error","errorType":"internal","error":"not implemented"}

       

      pmm-client install method:

      wget https://www.percona.com/downloads/pmm/1.13.0/binary/redhat/7/x86_64/pmm-client-1.13.0-1.el7.x86_64.rpm && yum localinstall pmm-client-1.13.0-1.el7.x86_64.rpm -y

        Smart Checklist

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  kamil.dziedzic Kamil Dziedzic (Inactive)
                  Reporter:
                  c781022 Chen Min
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: