-
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:
CentOS Linux release 7.5.1804 (Core)
docker create \
-v /opt/prometheus/data \
-v /opt/consul-data \
-v /var/lib/mysql \
-v /var/lib/grafana \
--name pmm-data \
percona/pmm-server:latest /bin/truedocker run -d \
-p 80:80 \
--volumes-from pmm-data \
--name pmm-server \
--restart always \
-e DISABLE_TELEMETRY=true \
-e DISABLE_UPDATES=true \
-e ORCHESTRATOR_ENABLED=true \
percona/pmm-server:latestCentOS Linux release 7.5.1804 (Core) docker create \ -v /opt/prometheus/data \ -v /opt/consul-data \ -v /var/lib/mysql \ -v /var/lib/grafana \ --name pmm-data \ percona/pmm-server:latest /bin/true docker run -d \ -p 80:80 \ --volumes-from pmm-data \ --name pmm-server \ --restart always \ -e DISABLE_TELEMETRY=true \ -e DISABLE_UPDATES=true \ -e ORCHESTRATOR_ENABLED=true \ percona/pmm-server:latest
when I run flowing command:
- 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
- is duplicated by
-
PMM-2845 pmm-admin purge causes client to panic
-
- Done
-